/* style.css – Clean mobile menu with animated links */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: #f0faf2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    animation: fadeInBody 0.8s ease-out;
}

@keyframes fadeInBody {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.result-content{
    color: red;
}

.app-wrapper {
    max-width: 1320px;
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -16px rgba(0, 80, 40, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUpWrapper 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideUpWrapper {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 2px solid rgba(0, 120, 60, 0.06);
    flex-wrap: wrap;
    gap: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: slideFromLeft 0.6s ease-out;
    flex-shrink: 0;
}

@keyframes slideFromLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

.brand-icon-small {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 100, 50, 0.2);
}

.brand-icon-small img {
    border-radius: 8px;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a3d2a;
    letter-spacing: -0.02em;
}

.brand-dept {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1a8a4e;
    background: rgba(0, 120, 60, 0.06);
    padding: 0.1rem 0.7rem;
    border-radius: 30px;
    margin-left: 0.2rem;
}

/* ===== SIDEWAYS ANIMATING MENU ===== */
.nav-links {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.nav-links.slide-out {
    transform: translateX(-120%);
    opacity: 0;
}

.nav-links.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    color: #3a5a3a;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.8rem;
    color: #5a8a6a;
    transition: 0.25s;
}

.nav-link.active {
    background: #1a8a4e;
    color: white;
}

.nav-link.active i {
    color: white;
}

.nav-link:hover:not(.active) {
    background: rgba(0, 120, 60, 0.06);
    color: #0a6b3a;
    transform: translateY(-2px);
}

.nav-link:hover:not(.active) i {
    color: #0a6b3a;
}

/* ===== AUTH BUTTONS ===== */
.nav-auth {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    animation: slideFromRight 0.6s ease-out;
}

@keyframes slideFromRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

.auth-link {
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.login-link {
    color: #1a6b3a;
    border: 2px solid #1a8a4e;
}

.login-link:hover {
    background: #1a8a4e;
    color: white;
    transform: scale(1.04);
}

.register-link {
    background: #1a8a4e;
    color: white;
    border: 2px solid #1a8a4e;
}

.register-link:hover {
    background: #0a6b3a;
    border-color: #0a6b3a;
    transform: scale(1.04);
}

.mobile-toggle {
    display: none;
    background: #1a8a4e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1002;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(26, 138, 78, 0.2);
}

.mobile-toggle:hover {
    background: #0a6b3a;
    transform: rotate(90deg);
}

.mobile-toggle:focus {
    outline: 2px solid #1a8a4e;
    outline-offset: 2px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 2rem 2rem 1.2rem;
}

/* ===== PAGE HEADER ANIMATIONS ===== */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    animation: fadeInHeader 0.8s ease-out 0.2s both;
}

@keyframes fadeInHeader {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a1a;
}

.header-text h1 span {
    color: #0a6b3a;
    position: relative;
}

.header-text h1 span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a8a4e;
    border-radius: 4px;
    transform: scaleX(0);
    animation: underlineSlide 0.8s ease-out 0.8s forwards;
}

@keyframes underlineSlide {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

.header-desc {
    color: #2a5a3a;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    font-weight: 500;
}

.header-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 120, 60, 0.04);
    padding: 0.3rem 1.2rem;
    border-radius: 60px;
    font-size: 0.85rem;
    color: #1a4a2a;
    border: 1px solid rgba(0, 120, 60, 0.04);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 120, 60, 0.08);
    transform: translateY(-2px);
}

.stat-item i {
    color: #1a8a4e;
}

.stat-item strong {
    color: #0a6b3a;
}

/* ===== CONTESTANT CARDS - NO ACTION BUTTONS ===== */
.contestants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contestant-card {
    background: white;
    border-radius: 1.8rem;
    padding: 1.8rem 1.2rem 1.2rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 80, 40, 0.03);
    border: 1px solid rgba(0, 120, 60, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: cardFadeIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    position: relative;
    cursor: pointer;
}

.contestant-card:nth-child(1) { animation-delay: 0.1s; }
.contestant-card:nth-child(2) { animation-delay: 0.18s; }
.contestant-card:nth-child(3) { animation-delay: 0.26s; }
.contestant-card:nth-child(4) { animation-delay: 0.34s; }
.contestant-card:nth-child(5) { animation-delay: 0.42s; }
.contestant-card:nth-child(6) { animation-delay: 0.50s; }

@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.contestant-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 56px -16px rgba(0, 80, 40, 0.18);
    border-color: rgba(0, 120, 60, 0.12);
}

/* Card glow effect */
.contestant-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.8rem;
    pointer-events: none;
    transition: box-shadow 0.4s ease;
}

.contestant-card:hover::after {
    box-shadow: inset 0 0 30px rgba(26, 138, 78, 0.04);
}

.card-image {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 0.8rem;
    transition: transform 0.4s ease;
}

.contestant-card:hover .card-image {
    transform: scale(1.06) rotate(-2deg);
}

.card-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8f0ea;
    transition: all 0.4s ease;
}

.contestant-card:hover .card-image img {
    border-color: #1a8a4e;
    box-shadow: 0 8px 24px rgba(0, 100, 50, 0.15);
}

.card-badge {
    position: absolute;
    bottom: 2px;
    right: -2px;
    background: #1a8a4e;
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
    border: 2px solid white;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contestant-card:hover .card-badge {
    background: #0a6b3a;
    transform: scale(1.05);
}

.contestant-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2a1a;
    margin-bottom: 0.1rem;
    transition: color 0.3s ease;
}

.contestant-card:hover h3 {
    color: #0a6b3a;
}

.card-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a8a4e;
    background: rgba(0, 120, 60, 0.06);
    display: inline-block;
    padding: 0.05rem 0.9rem;
    border-radius: 30px;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.contestant-card:hover .card-role {
    background: rgba(0, 120, 60, 0.12);
}

.card-bio {
    font-size: 0.8rem;
    color: #3a5a3a;
    line-height: 1.4;
    min-height: 36px;
}

/* ===== VIEW RESULTS BUTTON ===== */
.view-results-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0 1.5rem 0;
}

.view-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(145deg, #1a8a4e, #0a6b3a);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 138, 78, 0.25);
}

.view-results-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(26, 138, 78, 0.35);
    background: linear-gradient(145deg, #0a6b3a, #0a5a30);
}

.view-results-btn i {
    font-size: 1.1rem;
}

.main-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 120, 60, 0.04);
    color: #2a5a3a;
    font-size: 0.8rem;
    animation: fadeInFooter 0.8s ease-out 0.6s both;
}

@keyframes fadeInFooter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.main-footer i {
    color: #1a8a4e;
    margin-right: 6px;
}

/* ===== TOAST NOTIFICATION - TOP RIGHT WITH COUNTDOWN BAR ===== */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 300px;
    max-width: 420px;
    border-left: 4px solid #1a8a4e;
    opacity: 0;
    transform: translateX(120px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    pointer-events: none;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

.custom-toast .toast-inner {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-toast .toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.custom-toast .toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a2a1a;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.4;
}

.custom-toast .toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-toast .toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.custom-toast .toast-progress {
    height: 3px;
    width: 100%;
    background: #1a8a4e;
    transition: width 0.1s linear;
}

/* Toast variants */
.custom-toast.toast-success {
    border-left-color: #1a8a4e;
}
.custom-toast.toast-success .toast-progress {
    background: #1a8a4e;
}

.custom-toast.toast-error {
    border-left-color: #dc3545;
}
.custom-toast.toast-error .toast-progress {
    background: #dc3545;
}

.custom-toast.toast-warning {
    border-left-color: #ffc107;
}
.custom-toast.toast-warning .toast-progress {
    background: #ffc107;
}

.custom-toast.toast-info {
    border-left-color: #17a2b8;
}
.custom-toast.toast-info .toast-progress {
    background: #17a2b8;
}

/* ======================================== */
/* ===== ANIMATED MOBILE MENU ===== */
/* ======================================== */
@media (max-width: 820px) {
    .top-nav {
        padding: 0.8rem 1.2rem;
        flex-wrap: nowrap;
        z-index: 1001;
        overflow: visible;
        min-height: 65px;
        position: sticky;
        top: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    /* ===== ANIMATED DROPDOWN MENU ===== */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        z-index: 999;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0.5rem 0 0.8rem 0;
        overflow: hidden;
        display: flex;
        pointer-events: none;
        border-bottom: 3px solid #1a8a4e;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        max-height: 0;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
        max-height: 600px;
        padding: 0.8rem 0 1.2rem 0;
    }

    /* Individual link animations - slide in from left with stagger */
    .nav-links .nav-link,
    .nav-links .auth-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 0 !important;
        font-size: 0.95rem;
        padding: 0.6rem 1.5rem;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        text-align: left;
        border-radius: 0;
        background: transparent;
        color: #1a3d2a;
        border: none;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        align-items: center;
        gap: 0.8rem;
        font-weight: 500;
        position: relative;
        flex-shrink: 0;
        margin: 0;
        transform: translateX(-30px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* When menu is open, animate each link */
    .nav-links.open .nav-link,
    .nav-links.open .auth-link {
        opacity: 1 !important;
        transform: translateX(0);
    }

    /* Stagger delays for each link */
    .nav-links.open .nav-link:nth-child(1) { 
        transition-delay: 0.05s; 
    }
    .nav-links.open .nav-link:nth-child(2) { 
        transition-delay: 0.10s; 
    }
    .nav-links.open .nav-link:nth-child(3) { 
        transition-delay: 0.15s; 
    }
    .nav-links.open .nav-link:nth-child(4) { 
        transition-delay: 0.20s; 
    }
    .nav-links.open .auth-link:nth-child(5) { 
        transition-delay: 0.25s; 
    }
    .nav-links.open .auth-link:nth-child(6) { 
        transition-delay: 0.30s; 
    }

    /* Hover effects */
    .nav-links .nav-link i,
    .nav-links .auth-link i {
        font-size: 1rem;
        width: 1.6rem;
        text-align: center;
        color: #1a8a4e;
        transition: all 0.3s ease;
    }

    .nav-links .nav-link.active {
        background: rgba(26, 138, 78, 0.06);
        color: #1a8a4e;
        border-left-color: #1a8a4e;
        font-weight: 600;
    }

    .nav-links .nav-link.active i {
        color: #1a8a4e;
    }

    .nav-links .nav-link:hover:not(.active),
    .nav-links .auth-link:hover {
        background: rgba(26, 138, 78, 0.04);
        color: #0a6b3a;
        border-left-color: rgba(26, 138, 78, 0.3);
        transform: translateX(4px);
    }

    .nav-links .nav-link:hover:not(.active) i,
    .nav-links .auth-link:hover i {
        color: #0a6b3a;
        transform: scale(1.1);
    }

    /* Separator between menu items */
    .nav-links .nav-link:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1.5rem;
        right: 1.5rem;
        height: 1px;
        background: rgba(0, 0, 0, 0.04);
    }

    /* Auth links in mobile menu - clean */
    .nav-links .auth-link.login-link {
        margin-top: 0.3rem;
        background: rgba(26, 138, 78, 0.04);
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        padding-top: 0.8rem;
        border-radius: 0;
    }

    .nav-links .auth-link.login-link i {
        color: #1a8a4e;
    }

    .nav-links .auth-link.login-link:hover {
        background: rgba(26, 138, 78, 0.08);
    }

    .nav-links .auth-link.register-link {
        background: #1a8a4e;
        color: white;
        margin-top: 0.3rem;
        border-radius: 8px;
        padding: 0.6rem 1.5rem;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        width: calc(100% - 3rem);
        justify-content: center;
        font-weight: 600;
        border-left: none !important;
    }

    .nav-links .auth-link.register-link i {
        color: white;
    }

    .nav-links .auth-link.register-link:hover {
        background: #0a6b3a;
        transform: scale(1.02) !important;
        border-left: none !important;
    }

    /* Mobile toggle button - clean floating */
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        position: fixed;
        top: 12px;
        right: 18px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin: 0;
        box-shadow: 0 3px 12px rgba(26, 138, 78, 0.25);
        background: #1a8a4e;
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-toggle:hover {
        background: #0a6b3a;
        transform: scale(1.05);
    }

    .mobile-toggle.open {
        background: #dc3545;
        border-radius: 12px;
        transform: rotate(90deg);
    }

    .mobile-toggle.open:hover {
        background: #c82333;
        transform: rotate(90deg) scale(1.05);
    }

    .main-content {
        padding: 1.2rem;
        position: relative;
        z-index: 1;
    }

    .header-text h1 {
        font-size: 1.6rem;
    }

    .contestants-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1rem;
    }

    .header-stats {
        width: 100%;
    }

    .view-results-btn {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }

    /* Toast on tablet */
    .custom-toast {
        top: 15px;
        right: 15px;
        min-width: 260px;
        max-width: 380px;
    }
}

@media (max-width: 500px) {
    .app-wrapper {
        border-radius: 1.2rem;
    }

    .top-nav {
        padding: 0.6rem 1rem;
        min-height: 56px;
        position: sticky;
        top: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-dept {
        font-size: 0.55rem;
        padding: 0.05rem 0.5rem;
    }

    .brand-icon-small {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .brand-icon-small img {
        width: 24px !important;
    }

    .main-content {
        padding: 0.8rem;
    }

    .header-text h1 {
        font-size: 1.3rem;
    }

    .contestants-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .contestant-card {
        padding: 1rem 0.6rem 0.8rem;
        border-radius: 1.4rem;
    }

    .card-image {
        width: 72px;
        height: 72px;
    }

    .card-badge {
        font-size: 0.4rem;
        padding: 0.05rem 0.4rem;
    }

    .contestant-card h3 {
        font-size: 0.9rem;
    }

    .stat-item {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
    }

    /* Mobile menu - compact */
    .nav-links.open {
        max-height: 450px;
        padding: 0.6rem 0 1rem 0;
    }

    .nav-links .nav-link,
    .nav-links .auth-link {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
        gap: 0.6rem;
        transform: translateX(-20px);
    }

    .nav-links .nav-link i,
    .nav-links .auth-link i {
        font-size: 0.9rem;
        width: 1.4rem;
    }

    .nav-links .auth-link.register-link {
        padding: 0.5rem 1.2rem;
        margin-left: 1.2rem;
        margin-right: 1.2rem;
        width: calc(100% - 2.4rem);
        font-size: 0.85rem;
    }

    .nav-links .nav-link:not(:last-child)::after {
        left: 1.2rem;
        right: 1.2rem;
    }

    /* Stagger delays for mobile */
    .nav-links.open .nav-link:nth-child(1) { 
        transition-delay: 0.03s; 
    }
    .nav-links.open .nav-link:nth-child(2) { 
        transition-delay: 0.06s; 
    }
    .nav-links.open .nav-link:nth-child(3) { 
        transition-delay: 0.09s; 
    }
    .nav-links.open .nav-link:nth-child(4) { 
        transition-delay: 0.12s; 
    }
    .nav-links.open .auth-link:nth-child(5) { 
        transition-delay: 0.15s; 
    }
    .nav-links.open .auth-link:nth-child(6) { 
        transition-delay: 0.18s; 
    }

    .mobile-toggle {
        top: 10px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .mobile-toggle.open {
        border-radius: 10px;
    }

    /* Toast on mobile - full width at top */
    .custom-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        border-radius: 10px;
    }

    .custom-toast .toast-inner {
        padding: 12px 16px;
    }

    .custom-toast .toast-message {
        font-size: 13px;
    }

    .custom-toast .toast-icon {
        font-size: 17px;
    }

    .view-results-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        gap: 0.6rem;
    }
}

/* ===== ADDITIONAL PAGE ANIMATIONS ===== */
/* Subtle pulse on stats */
.stat-item {
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Ensure auth links in nav-links are always visible */
.nav-links .auth-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

/* Make sure nav-links items don't get hidden */
.nav-links > * {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}