/* assets/css/style.css */
:root {
    /* Dark Theme (Default) */
    --bg-color: #0c0c0c;
    --surface-color: #161616;
    --modal-bg: rgba(22, 22, 22, 0.95);
    --input-bg: #222;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-green: #4caf50;
    --accent-glow: rgba(76, 175, 80, 0.2);
    --header-bg: rgba(12, 12, 12, 0.7);

    --sidebar-width: 260px;
    --header-height: 72px;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --glass-blur: 16px;
}

/* Polar Light Theme */
body.light-mode {
    --bg-color: #f5f7fa;
    --surface-color: #ffffff;
    --modal-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #f0f2f5;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --border-color: rgba(0, 0, 0, 0.05);
    --header-bg: rgba(245, 247, 250, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
    /* Smooth theme transition */
}

body.light-mode {
    background-color: #ffffff;
    /* Brighter pure white for light mode */
}

/* Base Layout Structure */
.layout-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Styling - Modern Advanced */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 10, 0.7);
    /* Glass effect base */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.3);
    /* Deep shadow */
}

.sidebar-header {
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #888;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.nav-item.active .icon {
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.5));
}

.icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: #555;
    font-size: 0.8rem;
    text-align: center;
}

/* Professional Sticky Header */
.main-header {
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Consistent gap between items */
}

.top-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s;
}

.top-nav a:hover {
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.1);
}

/* Advanced Theme & Settings Buttons */
.theme-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-2px) rotate(8deg);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.2);
}

.theme-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Modern Gear Alignment & Styling */
#settings-btn,
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

#settings-btn:hover {
    animation: gearRotate 3s linear infinite;
}

@keyframes gearRotate {
    from {
        transform: translateY(-2px) rotate(0deg);
    }

    to {
        transform: translateY(-2px) rotate(360deg);
    }
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hamburger-btn:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    transform: scale(1.05);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover span {
    background: white;
}

@media (min-width: 992px) {
    .hamburger-btn {
        display: none;
    }
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    padding: 40px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tool Hero Section - Advanced Surprise Mesh */
.tool-hero {
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(33, 150, 243, 0.03) 0%, transparent 40%);
    animation: meshRotate 30s linear infinite;
    z-index: -1;
}

@keyframes meshRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#main-clock {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -4px;
    color: var(--text-primary);
    /* Use color instead of text-fill-color to allow overrides */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

#main-date {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 60px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-trigger {
    background-color: var(--accent-green);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.btn-trigger:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-trigger:active {
    transform: translateY(0);
}

/* Clock Utilities Bar */
.clock-utilities {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.util-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.util-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.util-btn svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

/* Modern Glassmorphism Modal - Ultra Sexy & Responsive */
.modal-content {
    background: var(--modal-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    width: 95%;
    max-width: 480px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    color: var(--text-primary);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(128, 128, 128, 0.03);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}


/* Modern Close Button */
.close-modal {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-modal:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px 24px;
    position: relative;
    z-index: 1;
}

/* Glass Shine Reflection */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: skewX(-20deg);
    transition: 0.8s;
    pointer-events: none;
    z-index: 0;
}

.modal-content:hover::before {
    left: 150%;
}


/* Modern Picker Inputs */
.input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.input-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    /* Higher contrast */
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
}

.picker-control {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    height: 64px;
    /* Larger touch target */
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.picker-control:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

.picker-btn {
    width: 44px;
    font-size: 1.1rem;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.1s;
}

.picker-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.picker-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.picker-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.picker-input {
    width: 60px;
    background: transparent;
    border: none;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    outline: none;
    padding: 0;
}

/* Sound Select */
.sound-row,
.qualification-row {
    margin-bottom: 24px;
}

.sound-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.sound-select-wrap {
    background: rgba(0, 0, 0, 0.4);
    height: 50px;
    border-radius: 12px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    position: relative;
}

/* Hide default arrow if possible or style it */
.sound-select {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Custom Arrow Icon */
.sound-select-wrap::after {
    content: '▼';
    font-size: 0.7rem;
    color: #888;
    position: absolute;
    right: 16px;
    pointer-events: none;
}

/* Modern Toggle Switch */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    /* Consistent spacing */
    cursor: pointer;
    user-select: none;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--accent-green);
}

.checkbox-group input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-group input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}


.qualification-input {
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.qualification-input:focus {
    border-color: var(--accent-green);
}

/* Modern Sound Controls */
.sound-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
}

.btn-icon:active {
    transform: translateY(0);
}

/* Premium Footer Actions */
.modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 12px;
}

.footer-btn {
    flex: 1;
    height: 54px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Surprise Shine Effect on Buttons */
.footer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.footer-btn:hover::after {
    left: 100%;
}

.btn-prove {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prove:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.btn-start {
    flex: 1.4;
    /* Ultra prominent */
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    animation: startPulse 2s infinite;
}

@keyframes startPulse {
    0% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    }
}

.btn-start:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.6);
    filter: brightness(1.2);
    animation: none;
}


.btn-cancel {
    background: rgba(255, 255, 255, 0.04);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.2);
}

/* Mobile Responsiveness Fine-tuning */
@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column;
        padding: 20px;
    }

    .footer-btn {
        width: 100%;
        height: 48px;
    }

    .btn-start {
        order: -1;
        /* Start button first on mobile */
    }
}


/* Sexy Hero Clock */
#main-clock {
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.1), 0 0 40px rgba(76, 175, 80, 0.05);
    background: linear-gradient(180deg, #fff 20%, #ddd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s;
    transform: scale(var(--clock-zoom, 1));
    will-change: transform;
}

#main-clock:hover {
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
    /* Remove the hardcoded scale here to respect the variable */
    filter: brightness(1.1);
}


/* Animations & Feedback */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn-shake {
    animation: shake 0.2s ease-in-out 0s 2;
}

.sexy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-green);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: toastPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toastPop {
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Content Area (SEO) */
.content-area {
    margin-top: 60px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.content-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-card {
    background: var(--surface-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-accordion {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 500px;
}

/* Home Extra Sections (Presets & Recently Used) */
.home-extra-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 60px 0;
}

.section-head {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
}

.preset-btn {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 14px 8px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #252525;
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.recent-list {
    list-style: none;
}

.recent-item {
    padding: 12px 16px;
    border-bottom: 1px solid #222;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.recent-item:last-child {
    border-bottom: none;
}

/* Active Alarm Info */
.active-alarm-info {
    display: none;
    margin-top: 32px;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
}

.active-alarm-info.show {
    display: block;
}

.active-alarm-info p {
    margin: 0 0 12px 0;
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 16px 0;
    border-bottom: 1px solid #222;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list strong {
    color: var(--text-primary);
}

/* Related Tools */
.related-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.tool-link {
    background: var(--surface-color);
    color: var(--accent-green);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.2s;
}

.tool-link:hover {
    border-color: var(--accent-green);
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* Fullscreen Mode - Fully Responsive */
body.is-fullscreen {
    overflow: hidden;
    background: #000;
}

body.is-fullscreen .main-header,
body.is-fullscreen .sidebar,
body.is-fullscreen .sidebar-overlay,
body.is-fullscreen .clock-utilities,
body.is-fullscreen .home-extra-sections,
body.is-fullscreen .content-area,
body.is-fullscreen footer,
body.is-fullscreen .btn-trigger:not(.ringing-btn) {
    display: none !important;
}

body.is-fullscreen .layout-main {
    margin-left: 0;
}

body.is-fullscreen .tool-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 9999;
    padding: 5vw;
    margin: 0;
}

body.is-fullscreen .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

body.is-fullscreen #main-clock {
    font-size: clamp(3rem, 12vw, 20rem);
    line-height: 0.9;
    margin: 0;
    padding: 0;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

body.is-fullscreen #main-date {
    font-size: clamp(1rem, 2.5vw, 2rem);
    margin-top: clamp(16px, 3vh, 40px);
    opacity: 0.6;
    text-align: center;
    white-space: nowrap;
}

body.is-fullscreen .active-alarm-info {
    position: absolute;
    bottom: clamp(40px, 8vh, 100px);
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90vw;
    text-align: center;
}

body.is-fullscreen .active-alarm-info p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 16px;
}

body.is-fullscreen .active-alarm-info button {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    padding: clamp(10px, 2vh, 16px) clamp(20px, 4vw, 32px);
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    body.is-fullscreen #main-clock {
        font-size: clamp(2.5rem, 15vh, 12rem);
    }

    body.is-fullscreen #main-date {
        font-size: clamp(0.9rem, 3vh, 1.5rem);
        margin-top: clamp(12px, 2vh, 24px);
    }

    body.is-fullscreen .active-alarm-info {
        bottom: clamp(20px, 4vh, 60px);
    }
}

/* Portrait Orientation - Mobile */
@media (orientation: portrait) and (max-width: 768px) {
    body.is-fullscreen #main-clock {
        font-size: clamp(3rem, 18vw, 12rem);
    }

    body.is-fullscreen #main-date {
        font-size: clamp(1rem, 4vw, 1.8rem);
    }
}

/* Very Small Screens */
@media (max-width: 375px) {
    body.is-fullscreen #main-clock {
        font-size: clamp(2.5rem, 16vw, 8rem);
        letter-spacing: -0.05em;
    }

    body.is-fullscreen .tool-hero {
        padding: 3vw;
    }
}

/* Large Screens - Prevent Oversizing */
@media (min-width: 1920px) {
    body.is-fullscreen #main-clock {
        font-size: clamp(10rem, 15vw, 24rem);
    }

    body.is-fullscreen #main-date {
        font-size: clamp(1.5rem, 2.5vw, 3rem);
    }
}

/* Ultra-Wide Screens */
@media (min-aspect-ratio: 21/9) {
    body.is-fullscreen #main-clock {
        font-size: clamp(8rem, 10vw, 18rem);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.ringing {
    color: var(--accent-red) !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .layout-main {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .hamburger-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    #main-clock {
        font-size: 4rem;
    }

    .home-extra-sections {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode specific tweaks */
[data-theme="dark"] {
    --bg-color: #0c0c0c;
    --surface-color: #161616;
}

/* Surprise Features - Pulse Animation */
@keyframes alarmPulse {
    0% {
        background-color: #0c0c0c;
        box-shadow: inset 0 0 0 0 rgba(244, 67, 54, 0);
    }

    50% {
        background-color: #1a0505;
        box-shadow: inset 0 0 50px 20px rgba(244, 67, 54, 0.2);
    }

    100% {
        background-color: #0c0c0c;
        box-shadow: inset 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

body.alarm-ringing-bg {
    animation: alarmPulse 1s infinite;
}

.modal-content.pulse {
    animation: modalPulse 1s infinite;
}

/* FAQ Accordion Styling */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    background: rgba(128, 128, 128, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
@keyframes modalPulse {
    0% {
        transform: scale(1);
        border-color: #333;
    }

    50% {
        transform: scale(1.02);
        border-color: #f44336;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
    }

    100% {
        transform: scale(1);
        border-color: #333;
    }
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f4f6f8;
    --surface-color: #ffffff;
    --modal-bg: #ffffff;
    --input-bg: #eebbbb;
    /* Debug red? No, make it nice */
    --input-bg: #f1f3f4;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --sidebar-bg: #ffffff;
    --sidebar-active: #e8f0fe;
}

/* Light mode specific adjustments */
body.light-mode .main-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e0e0e0;
}

body.light-mode .sidebar {
    border-right: 1px solid #e0e0e0;
}

body.light-mode .sidebar-logo {
    color: #202124;
}

body.light-mode .nav-item:hover {
    background: #f1f3f4;
    color: #202124;
}

body.light-mode .nav-item.active {
    background: #e6f4ea;
    /* Green tint */
    color: #137333;
    border-left-color: #34a853;
}

body.light-mode .picker-control {
    background: #e0e0e0;
}

body.light-mode .picker-btn {
    color: #333;
}

body.light-mode .picker-btn:hover {
    background: #ccc;
}

body.light-mode .picker-input-wrap {
    background: #fff;
    border: 1px solid #ccc;
}

body.light-mode .picker-input {
    color: #000;
}

body.light-mode .sound-select-wrap,
body.light-mode .qualification-input {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

body.light-mode .sound-select {
    color: #333;
    background: #fff;
}

body.light-mode #play-preview {
    background: #e0e0e0;
    color: #333;
}

body.light-mode .contact-form,
body.light-mode .feature-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Outdated theme button styles removed - unified above in header section */

/* Settings Modal & Toggles */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-row:last-of-type {
    border-bottom: none;
}

.setting-label {
    color: var(--text-primary);
    font-size: 1rem;
}

/* iOS Style Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-green);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Labels inside switch (I vs O) - Optional but in screenshot */
/* Screenshot shows 'I' and 'O' on the track. */

/* Color Picker */
.color-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-circle.selected {
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* High-Quality Digital-7 Font */
@import url('https://fonts.cdnfonts.com/css/digital-7');

.digital-font-active #main-clock {
    font-family: 'Digital-7', sans-serif;
    letter-spacing: 0.12rem;
    font-weight: 400;
    text-shadow:
        0 0 15px var(--accent-glow),
        0 0 30px var(--accent-glow);
    -webkit-font-smoothing: initial;
}

/* 12h Format Hidden AM/PM */
.ampm-indicator {
    font-size: 0.4em;
    margin-left: 10px;
    display: none;
}

.show-ampm .ampm-indicator {
    display: inline-block;
}

/* Grayscale Mode */
html.grayscale-mode {
    filter: grayscale(100%);
}

/* ============================================
   PREMIUM STOPWATCH STYLING
   ============================================ */

.stopwatch-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.chrono-ring {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stopwatch-active .chrono-ring {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.chrono-ring svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 597;
    /* 2 * PI * 95 */
    stroke-dashoffset: 597;
    transition: stroke-dashoffset 0.1s linear;
}

.chrono-display {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 10;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.digital-font-active .chrono-display {
    font-family: 'Digital-7', var(--font-mono);
    letter-spacing: 2px;
}

.chrono-display small {
    font-size: 0.6em;
    opacity: 0.7;
}

/* Stopwatch Layout Grid */
.stopwatch-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.glass {
    background: var(--modal-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
}

.lap-container h3,
.stats-container h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

.lap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lap-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    padding: 10px 15px;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.lap-history {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.lap-item {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lap-item span:first-child {
    color: var(--text-secondary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: rgba(128, 128, 128, 0.03);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-top: 5px;
}

.minimal-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.minimal-btn:hover {
    transform: scale(1.1);
}

.empty-laps {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-size: 0.9rem;
}

.lap-item.is-fastest {
    color: #4caf50;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.05);
    border-left: 4px solid #4caf50;
}

.lap-item.is-slowest {
    color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

/* Responsive Stopwatch */
@media (max-width: 768px) {
    .stopwatch-grid {
        grid-template-columns: 1fr;
    }

    .chrono-display {
        font-size: 2.5rem;
    }

    .chrono-ring {
        width: 280px;
        height: 280px;
    }
}

/* ============================================
   SOUND FEATURES STYLING
   ============================================ */

/* Sound Toggle Button */
.btn-sound {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 20px;
    min-width: auto;
    position: relative;
    overflow: hidden;
}

.btn-sound::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-sound:hover::before {
    width: 300px;
    height: 300px;
}

.btn-sound .icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Sound Settings Panel */
.sound-settings-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: var(--modal-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sound-settings-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sound-panel-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.sound-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sound-panel-content {
    padding: 20px;
}

.sound-option {
    margin-bottom: 20px;
}

.sound-option:last-of-type {
    margin-bottom: 0;
}

.sound-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.sound-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-green);
}

.sound-label span {
    color: var(--text-primary);
    font-weight: 500;
}

.sound-label-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sound-label-block span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.sound-label-block strong {
    color: var(--accent-green);
}

/* Volume Slider */
.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(to right,
            var(--border-color) 0%,
            var(--accent-green) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1);
}

/* Sound Theme Select */
.sound-theme-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.sound-theme-select:hover {
    border-color: var(--accent-green);
    background: rgba(76, 175, 80, 0.05);
}

.sound-theme-select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.sound-theme-select option {
    background: var(--modal-bg);
    color: var(--text-primary);
    padding: 10px;
}

/* Sound Info */
.sound-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    border-radius: 8px;
}

.sound-info small {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Milestone Notification */
.milestone-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.milestone-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Sound Panel */
@media (max-width: 768px) {
    .sound-settings-panel {
        width: 280px;
        right: -10px;
    }

    .btn-sound {
        padding: 12px 16px;
    }

    .milestone-notification {
        font-size: 1.5rem;
        padding: 20px 35px;
    }
}

/* Timer Controls - Update to accommodate sound button */
.timer-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

@media (max-width: 480px) {
    .timer-controls {
        gap: 8px;
    }

    .btn-trigger {
        font-size: 0.9rem;
        padding: 12px 18px;
    }

    .btn-sound {
        padding: 12px;
    }

    .sound-settings-panel {
        width: calc(100vw - 40px);
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px) scale(0.95);
    }

    .sound-settings-panel.show {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ============================================
   FOOTER STYLING
   ============================================ */
.main-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-info p {
    color: #888;
    font-size: 0.95rem;
}

.footer-info strong {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4caf50;
}