/* ================================
   THE COME UP - Landing Page Styles
   ================================ */

/* Prevent all zooming and scaling */
html, body.landing-page {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow: hidden !important;
}

/* Landing page layout */
.landing-page {
    overflow: hidden !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    touch-action: manipulation;
    width: 100%;
}

/* Main content wrapper - must fill available space */
.landing-page main,
.landing-page #main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

/* Fix for iOS */
@supports (-webkit-touch-callout: none) {
    .landing-page {
        height: -webkit-fill-available;
        overflow: hidden !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--space-lg) var(--space-md);
    overflow: visible;
}

/* Signups Ticker - Outside hero, blends with gradient */
.landing-page .signups-ticker {
    background: linear-gradient(180deg, rgba(60, 30, 90, 0.6) 0%, rgba(40, 20, 60, 0.5) 100%);
    border-top: 1px solid rgba(100, 50, 150, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    position: relative;
    width: 100%;
    min-height: 28px;
    height: 28px;
    margin-top: 56px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    flex-shrink: 0 !important;
    flex-grow: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: linear-gradient(135deg, #9147ff 0%, #7c3aed 100%);
    color: white;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

/* Title Banner - Inside Hero */
.title-banner {
    text-align: center;
    padding: 0 20px 0;
    background: transparent;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-top: -17px;
}

.banner-title {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.banner-title .title-line {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-100);
    display: inline-block;
    line-height: 1.05;
    padding-bottom: 0;
}

.banner-title .title-line.gradient-text {
    background: linear-gradient(135deg, #9147ff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    width: max-content;
}

@keyframes tickerScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    font-size: 13px;
    line-height: normal;
    text-decoration: none;
    transition: color var(--transition-fast);
    flex-shrink: 0;
    font-family: var(--font-body);
}

.ticker-position {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-400);
    min-width: 14px;
    text-align: right;
}

.ticker-item:hover {
    color: var(--primary-400);
}

.ticker-avatar {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ticker-name {
    font-weight: 500;
    color: var(--gray-400);
    font-size: 12px;
    line-height: normal;
}

.ticker-time {
    color: var(--gray-500);
    font-size: 11px;
    line-height: normal;
}

/* Ultra Condensed Hero */
.hero.hero-ultra {
    min-height: 0;
    flex: 1 1 auto;
    padding: 25px var(--space-md) 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(100, 50, 150, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(145, 71, 255, 0.3) 0%, transparent 50%);
    position: relative;
}

/* Hero Footer */
.hero-footer {
    text-align: center;
    z-index: 1;
    flex-shrink: 0;
    padding-bottom: 20px;
    margin-top: 10px;
}

.hero-footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.hero-footer .footer-links a {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero-footer .footer-links a:hover {
    color: var(--primary-400);
}

.hero-footer .footer-links .divider {
    color: var(--gray-600);
    font-size: 0.75rem;
}

.hero-footer .copyright {
    color: var(--gray-600);
    font-size: 0.65rem;
    margin: 0;
    line-height: 1.4;
    padding-bottom: 4px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-500);
    top: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-500);
    bottom: -150px;
    right: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 5s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    margin-bottom: var(--space-xl);
}

/* Ultra condensed title */
.hero-title.ultra {
    margin-bottom: 4px;
    margin-top: 0;
}

.hero-title.ultra .title-line {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(145, 71, 255, 0.3);
    display: inline-block;
    line-height: 1.1;
    padding-bottom: 0;
}

.title-line {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.title-line:first-child {
    color: var(--gray-100);
}

.hero-tagline {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-300);
}

/* Ultra condensed tagline */
.hero-tagline.ultra {
    max-width: 550px;
    margin: 5px auto 15px;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--gray-300);
    font-weight: 400;
}

/* Countdown Section */
.countdown-section {
    background: rgba(145, 71, 255, 0.1);
    border: 1px solid rgba(145, 71, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-glow);
}

/* Compact countdown - 40% smaller */
.countdown-section.compact {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.countdown-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.countdown-section.compact .countdown-label {
    font-size: 0.7rem;
    margin-bottom: var(--space-sm);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.countdown-timer.compact {
    gap: var(--space-sm);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-timer.compact .countdown-unit {
    min-width: 50px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-timer.compact .countdown-value {
    font-size: 2.4rem;
}

.countdown-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.countdown-timer.compact .countdown-text {
    font-size: 0.55rem;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-500);
    opacity: 0.5;
    animation: pulse 1s ease-in-out infinite;
}

.countdown-timer.compact .countdown-separator {
    font-size: 1.8rem;
}

.countdown-date {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.countdown-section.compact .countdown-date {
    margin-top: var(--space-sm);
    font-size: 0.7rem;
}

/* Featured Signup Form - Primary CTA */
.hero-signup-form {
    margin-top: 0;
}

.hero-signup-form.featured {
    background: rgba(145, 71, 255, 0.06);
    border: 1px solid rgba(145, 71, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 12px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(145, 71, 255, 0.12);
    backdrop-filter: blur(10px);
}

.vertical-signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Form group with icon */
.form-group-icon {
    position: relative;
    width: 100%;
}

.form-group-icon .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--primary-500);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-group-icon .input-icon.twitch-icon {
    color: var(--primary-500);
}

.form-group-icon input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    background: rgba(20, 20, 30, 0.95) !important;
    background-color: rgba(20, 20, 30, 0.95) !important;
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: var(--radius-md);
    -webkit-text-fill-color: var(--gray-100) !important;
    color: var(--gray-100);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.form-group-icon input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.7;
}

.form-group-icon input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(145, 71, 255, 0.15);
}

/* Force dark mode on ALL input states - prevents white background */
.form-group-icon input,
.form-group-icon input:valid,
.form-group-icon input:invalid,
.form-group-icon input:-webkit-autofill,
.form-group-icon input:-webkit-autofill:hover,
.form-group-icon input:-webkit-autofill:focus,
.form-group-icon input:-webkit-autofill:active,
.form-group-icon input:-internal-autofill-selected {
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 30, 0.98) inset !important;
    -webkit-text-fill-color: #f4f4f5 !important;
    box-shadow: 0 0 0 1000px rgba(20, 20, 30, 0.98) inset !important;
    background-color: rgba(20, 20, 30, 0.98) !important;
    background: rgba(20, 20, 30, 0.98) !important;
    caret-color: #f4f4f5 !important;
    color: #f4f4f5 !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

.form-group-icon:focus-within .input-icon {
    color: var(--primary-400);
}

.form-group-icon:focus-within .input-icon.twitch-icon {
    color: var(--primary-300);
}

/* Password Toggle Button */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px !important;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: rgba(30, 30, 40, 0.8);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow: hidden;
}

.password-toggle:hover {
    background: rgba(145, 71, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle .eye-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-400);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 50%;
    left: 50%;
}

.password-toggle:hover .eye-icon {
    color: var(--primary-300);
}

/* Eye icons animation - only show one at a time */
.password-toggle .eye-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.password-toggle .eye-closed {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
}

.password-toggle.showing .eye-open {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
}

.password-toggle.showing .eye-closed {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Glow effect when showing password */
.password-toggle.showing {
    background: rgba(145, 71, 255, 0.3);
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.5);
}

.password-toggle.showing .eye-icon {
    color: #c084fc;
}

.vertical-signup-form .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 8px var(--space-md);
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-md);
}

.vertical-signup-form .btn-primary.btn-glow {
    box-shadow: 0 4px 20px rgba(145, 71, 255, 0.4);
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(145, 71, 255, 0.4); }
    50% { box-shadow: 0 0 30px rgba(145, 71, 255, 0.6); }
}

.vertical-signup-form .btn-primary .arrow-up {
    width: 16px;
    height: 16px;
}

/* Mini Countdown - Styled */
.countdown-mini {
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.countdown-prefix {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-family: var(--font-display);
    margin-bottom: 0;
}

.countdown-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-200);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    margin-top: -5px;
    margin-bottom: 15px;
}

.countdown-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-display);
    flex-wrap: nowrap !important;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.15) 0%, rgba(200, 100, 255, 0.1) 100%);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(145, 71, 255, 0.3);
    box-shadow: 0 0 40px rgba(145, 71, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.cd-unit {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.cd-unit span {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #d4b8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
    filter: drop-shadow(0 0 10px rgba(145, 71, 255, 0.5));
}

.cd-unit small {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-300);
    text-transform: uppercase;
    margin-left: 2px;
    line-height: 1;
}

.cd-sep {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-300);
    margin: 0 4px;
    display: inline;
    opacity: 0.8;
}

/* CTA Button - Small with up arrow */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-cta .arrow-up {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.btn-cta:hover .arrow-up {
    transform: translateY(-2px);
}


/* Modal Animation Styles */
.modal-animated {
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.active .modal-overlay {
    animation: fadeIn 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-sm);
    animation: float 3s ease-in-out infinite;
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-subtitle {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}


/* Minimal Footer */
.footer-minimal {
    padding: var(--space-sm) 0;
    background: transparent;
    border-top: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-400);
}

.footer-legal .divider {
    color: var(--gray-700);
    font-size: 0.75rem;
}

.footer-minimal .copyright {
    font-size: 0.7rem;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 1024px) {
    .signups-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .signup-card-item:nth-child(4),
    .signup-card-item:nth-child(5) {
        display: none;
    }

    .banner-title .title-line {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar {
        padding: 0 15px;
        height: 56px;
    }

    .nav-container {
        height: 56px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 8px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    #signupBtn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Ticker adjustments */
    .signups-ticker {
        height: 22px;
    }

    .ticker-item {
        font-size: 0.65rem;
    }

    .ticker-avatar {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
    }

    /* Title Banner adjustments */
    .title-banner {
        padding: 0 15px 5px;
    }

    .banner-title {
        gap: 8px;
    }

    .banner-title .title-line {
        font-size: 2.2rem;
    }

    /* Hero adjustments */
    .hero.hero-ultra {
        padding: 8px 15px 5px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-tagline.ultra {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    /* Countdown adjustments */
    .countdown-mini {
        padding: 8px 15px;
    }

    .countdown-prefix {
        font-size: 0.6rem;
    }

    .countdown-date {
        font-size: 0.75rem;
    }

    .cd-unit span {
        font-size: 1.1rem;
    }

    .cd-unit small {
        font-size: 0.65rem;
    }

    /* Form adjustments */
    .hero-signup-form.featured {
        max-width: 320px;
        padding: 12px;
    }

    .form-group-icon input {
        padding: 12px 12px 12px 38px;
        font-size: 0.85rem;
    }

    .vertical-signup-form .btn-primary {
        padding: 12px;
        font-size: 0.85rem;
    }

    /* Footer adjustments */
    .hero-footer {
        padding-bottom: 10px;
    }

    .hero-footer .footer-links a {
        font-size: 0.7rem;
    }

    .hero-footer .copyright {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    /* Navbar for small mobile - longer bar with more space */
    .landing-page .navbar {
        padding: 0 10px !important;
        height: 56px !important;
    }

    .landing-page .nav-container {
        height: 56px !important;
        padding: 0 10px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .landing-page .logo {
        gap: 8px;
        margin-left: 0;
        flex-shrink: 0;
    }

    .landing-page .logo-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .landing-page .logo-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .landing-page .logo-text {
        font-size: 1rem !important;
        white-space: nowrap !important;
    }

    /* Hide social links and sign up button on mobile */
    .landing-page .social-links {
        display: none !important;
    }

    .landing-page #signupBtn {
        display: none !important;
    }

    /* Ticker for small mobile */
    .signups-ticker {
        height: 22px;
        overflow: hidden;
    }

    .ticker-label {
        padding: 0 8px;
        font-size: 0.5rem;
    }

    .ticker-item {
        font-size: 0.55rem;
        gap: 3px;
    }

    .ticker-avatar {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
        font-size: 0.45rem;
    }

    .ticker-name {
        font-size: 0.55rem;
    }

    .ticker-time {
        display: none;
    }

    /* Title Banner for small mobile - larger title */
    .title-banner {
        padding: 10px 10px 5px;
    }

    .banner-title {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .banner-title .title-line {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    /* Hero for small mobile - use more of the page */
    .hero.hero-ultra {
        padding: 10px 15px 0;
        justify-content: space-between;
        gap: 8px;
    }

    .hero-content {
        flex: 1;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-tagline.ultra {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 340px;
        margin-bottom: 2px;
    }

    /* Countdown for small mobile - bigger */
    .countdown-mini {
        padding: 8px 15px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .countdown-prefix {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .countdown-date {
        font-size: 0.85rem;
        margin-top: -14px;
    }

    .countdown-inline {
        gap: 6px;
        padding: 10px 20px;
    }

    .cd-unit {
        padding: 4px 8px;
    }

    .cd-unit span {
        font-size: 1.5rem;
    }

    .cd-unit small {
        font-size: 0.75rem;
    }

    .cd-sep {
        font-size: 1rem;
        margin: 0 3px;
    }

    /* Form for small mobile */
    .hero-signup-form.featured {
        max-width: 300px;
        padding: 12px;
    }

    .vertical-signup-form {
        gap: 8px;
    }

    /* 16px minimum prevents iOS zoom on focus */
    .form-group-icon input {
        padding: 12px 12px 12px 38px;
        font-size: 16px;
    }

    .form-group-icon .input-icon {
        width: 16px;
        height: 16px;
        left: 12px;
    }

    .password-toggle {
        width: 24px;
        height: 24px;
        right: 6px;
    }

    .password-toggle .eye-icon {
        width: 14px;
        height: 14px;
    }

    .vertical-signup-form .btn-primary {
        padding: 12px;
        font-size: 0.85rem;
        margin-top: 4px;
    }

    .vertical-signup-form .btn-primary .arrow-up {
        width: 16px;
        height: 16px;
    }

    /* Footer for small mobile - more visible */
    .hero-footer {
        padding-bottom: 10px;
        margin-top: auto;
    }

    .hero-footer .footer-links {
        gap: 8px;
        margin-bottom: 2px;
    }

    .hero-footer .footer-links a {
        font-size: 0.7rem;
        color: var(--gray-400);
    }

    .hero-footer .footer-links .divider {
        font-size: 0.7rem;
        color: var(--gray-500);
    }

    .hero-footer .copyright {
        font-size: 0.65rem;
        color: var(--gray-500);
        line-height: 1.4;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .landing-page .logo-text {
        font-size: 0.85rem !important;
    }

    .landing-page .social-link {
        width: 28px !important;
        height: 28px !important;
    }

    .landing-page .social-links {
        gap: 4px;
    }

    .banner-title .title-line {
        font-size: 1.5rem;
    }

    .hero-tagline.ultra {
        font-size: 0.9rem;
        max-width: 300px;
    }

    .countdown-prefix {
        font-size: 0.6rem;
    }

    .countdown-date {
        font-size: 0.75rem;
    }

    .cd-unit span {
        font-size: 1.25rem;
    }

    .cd-unit small {
        font-size: 0.65rem;
    }

    .countdown-inline {
        padding: 8px 14px;
    }

    .hero-signup-form.featured {
        max-width: 280px;
        padding: 10px;
    }

    .form-group-icon input {
        padding: 10px 10px 10px 34px;
        font-size: 16px;
    }

    .vertical-signup-form .btn-primary {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-page {
        overflow: hidden !important;
    }

    .banner-title .title-line {
        font-size: 1.5rem;
    }

    .hero-tagline.ultra {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .countdown-mini {
        padding: 5px 10px;
        margin-bottom: 5px;
    }

    .hero-signup-form.featured {
        max-width: 300px;
        padding: 8px;
    }

    .vertical-signup-form {
        gap: 5px;
    }

    .form-group-icon input {
        padding: 8px 8px 8px 32px;
    }

    .vertical-signup-form .btn-primary {
        padding: 8px;
    }

    .hero-footer {
        padding-bottom: 5px;
    }
}

/* ================================
   GREEN THEME - Applied after signup
   ================================ */
body.signed-up {
    --primary-500: #22c55e;
    --primary-400: #4ade80;
    --primary-300: #86efac;
    --primary-200: #bbf7d0;
    --primary-600: #16a34a;
}

body.signed-up .gradient-text,
body.signed-up .banner-title .title-line.gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.signed-up .hero-signup-form.featured {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.12);
}

body.signed-up .countdown-inline {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(74, 222, 128, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

body.signed-up .cd-unit span {
    background: linear-gradient(180deg, #ffffff 0%, #bbf7d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5));
}

body.signed-up .cd-unit small,
body.signed-up .cd-sep {
    color: #4ade80;
}

body.signed-up .btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

body.signed-up .btn-primary.btn-glow {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    animation: pulseGlowGreen 2.5s ease-in-out infinite;
}

@keyframes pulseGlowGreen {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
}

body.signed-up .form-group-icon .input-icon {
    color: #22c55e;
}

body.signed-up .form-group-icon input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Green theme password toggle */
body.signed-up .password-toggle:hover {
    background: rgba(34, 197, 94, 0.15);
}

body.signed-up .password-toggle:hover .eye-icon {
    color: #4ade80;
}

body.signed-up .password-toggle.showing {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

body.signed-up .password-toggle.showing .eye-icon {
    color: #4ade80;
}

body.signed-up .password-toggle::before {
    background: #22c55e;
}

body.signed-up .signups-ticker {
    background: transparent;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

body.signed-up .ticker-label {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

body.signed-up .ticker-avatar {
    background: linear-gradient(135deg, #22c55e 0%, #86efac 100%);
}

body.signed-up .ticker-item:hover {
    color: #4ade80;
}

body.signed-up .gradient-orb.orb-1 {
    background: #22c55e;
}

body.signed-up .gradient-orb.orb-2 {
    background: #86efac;
}

body.signed-up .countdown-label,
body.signed-up .countdown-prefix {
    color: #86efac;
}

body.signed-up .countdown-date {
    color: #bbf7d0;
}

body.signed-up .logo-icon svg circle,
body.signed-up .logo-icon svg path {
    stroke: url(#logoGradientGreen) !important;
}

body.signed-up .logo-icon svg circle[fill] {
    fill: url(#logoGradientGreen) !important;
}

/* Logo text green */
body.signed-up .logo-text {
    background: linear-gradient(135deg, #22c55e 0%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav buttons green */
body.signed-up .btn-outline {
    border-color: #22c55e;
    color: #22c55e;
}

body.signed-up .btn-outline:hover {
    background: #22c55e;
    color: white;
}

/* Hide sign up button when signed up */
body.signed-up #signupBtn {
    display: none !important;
}

/* ================================
   USER MENU - Logged in state
   ================================ */
.user-menu {
    position: relative;
    margin-left: auto;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #86efac 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.user-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #86efac;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-arrow {
    color: #86efac;
    transition: transform 0.2s ease;
}

.user-menu.active .menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--gray-900);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
}

.dropdown-item:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}

.dropdown-item svg {
    flex-shrink: 0;
    color: #22c55e;
}

.dropdown-item.logout-btn {
    color: var(--gray-400);
    border-top: 1px solid var(--gray-800);
    margin-top: 4px;
    padding-top: 12px;
    border-radius: 0 0 8px 8px;
}

.dropdown-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.dropdown-item.logout-btn:hover svg {
    color: #ef4444;
}

/* Mobile user menu adjustments */
@media (max-width: 480px) {
    .user-menu-toggle {
        padding: 4px 10px;
        gap: 6px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .user-name {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .menu-arrow {
        width: 14px;
        height: 14px;
    }

    .user-dropdown {
        min-width: 160px;
        right: -10px;
    }

    .dropdown-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* Custom Form Validation Styling */
input:invalid:not(:placeholder-shown) {
    border-color: #ef4444 !important;
}

input:valid:not(:placeholder-shown) {
    border-color: var(--primary-500);
}

/* Green theme validation */
body.signed-up input:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* Custom validation tooltip */
.validation-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 8px);
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.95) 0%, rgba(200, 100, 255, 0.95) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(145, 71, 255, 0.4);
    z-index: 100;
    animation: tooltipFadeIn 0.2s ease;
}

.validation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(145, 71, 255, 0.95);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Green theme tooltip */
body.signed-up .validation-tooltip {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(74, 222, 128, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

body.signed-up .validation-tooltip::after {
    border-top-color: rgba(34, 197, 94, 0.95);
}
