/* 1. Global Reset & Body Centering Layout */
body {
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 2. Typography Styling */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.05em;
}

/* 3. Counters Section Layout */
.counter-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    width: 100%;
}

.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-label {
    font-size: 11px;
    font-weight: 700;
    color: #555555;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.counter-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#local-counter {
    color: #8e8e93;
}

#global-counter {
    color: #ffffff;
}

/* 4. 3D Red Panic Button Configuration Layout */
.button-wrapper {
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panic-button {
    background: radial-gradient(circle at 50% 30%, #ff453a, #c41c16);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    height: 180px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    outline: none;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
    width: 180px;
    box-shadow: 
        0 15px 0 #800e0b,
        0 20px 25px rgba(0, 0, 0, 0.7),
        inset 0 4px 10px rgba(255, 255, 255, 0.4),
        inset 0 -10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation; /* Prevents double-tap gestures from zooming the window viewport */
}

.panic-button:active {
    transform: translateY(12px);
    box-shadow: 
        0 3px 0 #800e0b,
        0 8px 15px rgba(0, 0, 0, 0.7),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        inset 0 -5px 15px rgba(0, 0, 0, 0.5);
}

/* 5. Notification Consequence Logging Panel */
.log-container {
    height: 80px; /* Lock structural height dimensions */
    margin-top: 20px;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#log-text {
    font-size: 15px;
    color: #eaeaea;
    line-height: 1.6;
    margin: 0;
    opacity: 1;
    transition: opacity 0.1s ease-in-out;
}

/* 6. Secure Donation Component Module Layout */
.donation-container {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1c1c1e;
    max-width: 500px;
    width: 100%;
}

.donation-text {
    font-size: 12px;
    color: #48484a;
    line-height: 1.5;
    margin-bottom: 8px;
}

.donation-link {
    display: inline-block;
    font-size: 13px;
    color: #ff453a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.donation-link:hover {
    color: #ff6961;
    text-decoration: underline;
}

/* Responsive adjustment configurations */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .counter-container { gap: 20px; }
    .counter-value { font-size: 1.6rem; }
    .panic-button { width: 150px; height: 150px; font-size: 15px; }
}