/**
 * Waitlist Page Styles - Figma Design Implementation
 * Light theme with blue accents matching Figma specifications
 * 
 * @package Tradenos
 */

/* Loading Screen - Matches Splash Screen Style */
.tradenos-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(124deg, rgb(0, 64, 193) 0%, rgb(39, 57, 199) 50%, rgb(73, 90, 217) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.4s ease-out;
    pointer-events: all;
}

.tradenos-loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.tradenos-loading-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.tradenos-loading-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.tradenos-loading-logo {
    width: 87px;
    height: auto;
    flex-shrink: 0;
}

.tradenos-loading-text-wrapper {
    display: flex;
    overflow: hidden;
    width: max-content;
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25em;
    text-shadow: 0 70px 0 #ffffff;
    user-select: none;
}

.tradenos-loading-text-wrapper span {
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    white-space: pre;
    flex-shrink: 0;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: 1.25em;
    color: #ffffff;
    animation: rollText 2s ease-in-out infinite;
    animation-delay: calc(var(--char-index) * 0.05s);
}

.tradenos-loading-progress-container {
    width: 300px;
    max-width: 90%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 0.7s forwards;
}

.tradenos-loading-progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 999px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rollText {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-70px);
    }
}

@media (max-width: 768px) {
    .tradenos-loading-text-wrapper {
        font-size: 40px;
    }
    
    .tradenos-loading-logo {
        width: 70px;
    }
    
    .tradenos-loading-progress-container {
        width: 250px;
        height: 6px;
    }
}

:root {
    /* Figma Color Palette */
    --color-primary: #0140C0;
    --color-primary-hover: #0133a0;
    --color-text-dark: #0B0F1A;
    --color-text-muted: #6E7485;
    --color-bg-light: #F5F7FF;
    --color-bg-white: #ffffff;
    --color-bg-gray: #F3F3F5;
    --color-border-gray: #E5E5E5;
    --color-whatsapp: #25D366;
    --color-twitter: #1DA1F2;
    --color-instagram: #E4405F;
    --color-email: #6E7485;
    --color-success: #22c55e;
    --color-error: #d4183d;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(1, 64, 192, 0.04);
    --shadow-md: 0 4px 24px rgba(1, 64, 192, 0.08);
    --shadow-lg: 0 8px 32px rgba(1, 64, 192, 0.12);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

/* Base Styles */
.waitlist-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F9FAFB;
    color: var(--color-text-dark);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.waitlist-page * {
    box-sizing: border-box;
}

/* Blue Header Section */
.waitlist-header {
    background: linear-gradient(135deg, #0140C0 0%, #001F60 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* World Map Pattern */
.world-map-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

.world-map-pattern svg {
    width: 100%;
    height: 100%;
}

/* Header Content */
.waitlist-header-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

/* Header Main Content - Two Column Layout */
.header-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    flex: 1;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .header-main-content {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-xl);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.waitlist-logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: auto;
    color: white;
    width: 100%;
    justify-content: flex-start;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.waitlist-logo-header:hover {
    opacity: 0.8;
}

.waitlist-logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.waitlist-logo-text {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.position-display {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .position-display {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.position-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: block;
}

.position-number {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #ffffff 0%, #b8d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* Header Signup Form (shown when user not signed up) */
.header-signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

@media (min-width: 1024px) {
    .header-signup-form {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.header-signup-content {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.header-signup-title {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.02em;
}

.header-signup-subtitle {
    font-size: 14px;
    color: rgba(184, 212, 255, 0.8);
    margin-bottom: 24px;
    text-align: center;
}

.header-signup-form-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.header-signup-input {
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    font-size: 18px;
    font-family: inherit;
    color: var(--color-primary);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(184, 212, 255, 0.9) 100%);
    border: none;
    border-radius: 10px;
    outline: none;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.header-signup-input::placeholder {
    color: rgba(1, 64, 192, 0.5);
}

.header-signup-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    outline: none;
}

.header-signup-submit {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-primary);
    background: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.05em;
}

.header-signup-submit:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.header-signup-submit:active {
    transform: translateY(0);
}

.header-signup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.header-signup-error {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    color: var(--color-error);
    font-size: 14px;
    display: none;
    margin-top: 8px;
    text-align: center;
}

.header-signup-error.show {
    display: block;
}

/* Prizes Information Section */
.header-prizes-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    color: white;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all var(--transition-base);
}

@media (min-width: 1024px) {
    .header-prizes-section {
        flex: 0 0 100%;
        max-width: 100%;
        order: 3; /* Move after form/position on desktop */
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    .header-signup-form,
    .position-display {
        order: 1;
        flex: 0 0 calc(50% - var(--spacing-xl) / 2);
        max-width: calc(50% - var(--spacing-xl) / 2);
    }
}

/* Prizes Toggle Button */
.prizes-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.prizes-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Prizes Header */
.prizes-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

@media (min-width: 1024px) {
    .prizes-header {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
        cursor: pointer;
    }
    
    .header-prizes-section[aria-expanded="true"] .prizes-header,
    .header-prizes-section.expanded .prizes-header {
        margin-bottom: var(--spacing-lg);
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding-bottom: var(--spacing-md);
    }
}

/* Prizes Arrow (Desktop Only) */
.prizes-arrow {
    margin-left: auto;
    display: none;
    transition: transform var(--transition-base);
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1024px) {
    .prizes-arrow {
        display: block;
    }
    
    .header-prizes-section[aria-expanded="true"] .prizes-arrow,
    .header-prizes-section.expanded .prizes-arrow {
        transform: rotate(180deg);
    }
    
    /* Header border only shows when expanded */
    .prizes-header {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
        cursor: pointer;
    }
    
    .header-prizes-section[aria-expanded="true"] .prizes-header,
    .header-prizes-section.expanded .prizes-header {
        margin-bottom: var(--spacing-lg);
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding-bottom: var(--spacing-md);
    }
}

/* Prizes Content (Dropdown) */
.prizes-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .prizes-content {
        max-height: 0;
        opacity: 0;
    }
    
    .header-prizes-section[aria-expanded="true"] .prizes-content,
    .header-prizes-section.expanded .prizes-content {
        max-height: 1000px;
        opacity: 1;
    }
}

/* Mobile: Always show content */
@media (max-width: 1023px) {
    .prizes-content {
        max-height: none !important;
        opacity: 1 !important;
    }
    
    .prizes-toggle {
        cursor: default;
        pointer-events: none;
    }
    
    .prizes-arrow {
        display: none;
    }
}

.prizes-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.3) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.prizes-icon-emoji {
    font-size: 28px;
    line-height: 1;
    display: block;
}

.prizes-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Prizes List */
.prizes-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.prize-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.prize-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.8) 0%, rgba(255, 165, 0, 0.8) 100%);
    border-radius: 0 4px 4px 0;
}

.prize-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.prize-item-premium::before {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 140, 0, 0.9) 100%);
}

.prize-item-subscription::before {
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.9) 0%, rgba(169, 169, 169, 0.9) 100%);
}

.prize-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.prize-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.prize-badge-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 140, 0, 0.3) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.prize-badge-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3) 0%, rgba(169, 169, 169, 0.3) 100%);
    border: 1px solid rgba(192, 192, 192, 0.5);
    color: #C0C0C0;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.2);
}

.prize-badge-icon {
    font-size: 14px;
    line-height: 1;
}

.prize-badge-text {
    font-size: 10px;
}

.prize-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.prize-rank-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.prize-description {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    padding-left: 4px;
}

.prize-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.2);
    border: 1.5px solid rgba(34, 197, 94, 0.6);
    border-radius: 50%;
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

/* Prizes Footer */
.prizes-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.prizes-note-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.prizes-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.prizes-rules-link {
    color: rgba(255, 255, 255, 0.98);
    text-decoration: underline;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.prizes-rules-link:hover {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Rules Modal */
.rules-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.rules-overlay.show {
    display: flex;
}

.rules-modal {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rules-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.rules-close:hover {
    background: var(--color-border-gray);
    transform: rotate(90deg);
}

.rules-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-dark);
}

/* Rules Header */
.rules-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #001F60 100%);
    padding: var(--spacing-xl);
    color: white;
    text-align: center;
    position: relative;
}

.rules-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rules-icon-emoji {
    font-size: 36px;
    line-height: 1;
    display: block;
}

.rules-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rules-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

/* Rules Content */
.rules-content {
    padding: var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
}

.rule-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-base);
}

.rule-item:hover {
    background: rgba(1, 64, 192, 0.05);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rule-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 64, 192, 0.1);
    border-radius: 12px;
}

.rule-text {
    flex: 1;
}

.rule-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.rule-text p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Rules Footer */
.rules-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border-gray);
}

.rules-warning {
    display: flex;
    gap: 12px;
    padding: var(--spacing-md);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
}

.rules-warning-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.rules-warning p {
    font-size: 13px;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.6;
}

.rules-warning strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

.rules-understand-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.rules-understand-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* Responsive Rules Modal */
@media (max-width: 768px) {
    .rules-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }
    
    .rules-header {
        padding: var(--spacing-lg);
    }
    
    .rules-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .rules-icon-emoji {
        font-size: 28px;
    }
    
    .rules-title {
        font-size: 24px;
    }
    
    .rules-subtitle {
        font-size: 13px;
    }
    
    .rules-content {
        padding: var(--spacing-md);
    }
    
    .rule-item {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .rule-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .rule-title {
        font-size: 15px;
    }
    
    .rule-text p {
        font-size: 13px;
    }
    
    .rules-footer {
        padding: var(--spacing-md);
    }
}

/* Main Content Area */
.waitlist-main {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Decorative Divider */
.waitlist-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.divider-line {
    width: 64px;
    height: 1px;
    background: var(--color-border-gray);
}

.divider-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.divider-icon svg {
    width: 12px;
    height: 12px;
    color: var(--color-text-muted);
}

/* Heading Section */
.waitlist-heading {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.waitlist-heading h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin: 0 0 8px;
}

.waitlist-heading-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 400;
}

/* Cards Container Wrapper */
.waitlist-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

/* Cards Container */
.waitlist-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Vertical Divider (Desktop Only) */
.waitlist-cards-divider {
    display: none;
}

/* Leaderboard Card */
.leaderboard-card-new {
    width: 100%;
    order: 2; /* On mobile, leaderboard comes after cards */
}

/* Desktop Layout - Side by Side */
@media (min-width: 1024px) {
    .waitlist-cards-wrapper {
        flex-direction: row;
        gap: 24px;
        align-items: flex-start;
    }
    
    .waitlist-cards {
        flex: 1;
        order: 1; /* Cards on left */
    }
    
    .waitlist-cards-divider {
        display: block;
        width: 1px;
        background: var(--color-border-gray);
        min-height: 400px;
        flex-shrink: 0;
        order: 2;
    }
    
    .leaderboard-card-new {
        flex: 0 0 300px;
        max-width: 300px;
        order: 3; /* Leaderboard on right */
    }
}

/* Invite Card */
.invite-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.invite-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(1, 64, 192, 0.08);
    border-radius: 8px;
    text-align: center;
}

.invite-card-badge .badge-main {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    line-height: 1.2;
}

.invite-card-badge .badge-sub {
    font-size: 10px;
    color: rgba(1, 64, 192, 0.7);
    display: block;
    line-height: 1.2;
    margin-top: 2px;
}

.invite-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-text-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.invite-card-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.invite-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.invite-link-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-bg-light);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: var(--spacing-md);
}

.invite-link-text {
    flex: 1;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-link-empty {
    background: var(--color-bg-gray);
    cursor: not-allowed;
}

.invite-link-placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    font-family: inherit;
}

.invite-link-copy {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.invite-link-copy:hover {
    transform: scale(1.1);
}

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

.invite-description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

/* Social Share Buttons */
.social-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast);
}

.social-share-btn:hover {
    transform: translateY(-2px);
}

.social-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share-icon svg {
    width: 20px;
    height: 20px;
}

.social-share-label {
    font-size: 12px;
    color: var(--color-text-dark);
    font-weight: 500;
}

/* WhatsApp */
.social-whatsapp .social-share-icon {
    background: rgba(37, 211, 102, 0.1);
}

.social-whatsapp .social-share-icon svg {
    color: var(--color-whatsapp);
}

/* Email */
.social-email .social-share-icon {
    background: var(--color-bg-gray);
}

.social-email .social-share-icon svg {
    color: var(--color-email);
}

/* Instagram */
.social-instagram .social-share-icon {
    background: rgba(228, 64, 95, 0.1);
}

.social-instagram .social-share-icon svg {
    color: var(--color-instagram);
}

/* Twitter */
.social-twitter .social-share-icon {
    background: rgba(29, 161, 242, 0.1);
}

.social-twitter .social-share-icon svg {
    color: var(--color-twitter);
}

/* Friends Counter */
.invite-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #F0F0F0;
}

.invite-counter-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invite-counter-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* Occupation Card */
.occupation-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.occupation-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(1, 64, 192, 0.08);
    border-radius: 8px;
}

.occupation-card-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

.occupation-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-text-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.occupation-card-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.occupation-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

.occupation-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.occupation-input {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    width: 100%;
    background: var(--color-bg-light);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text-dark);
    font-family: inherit;
    outline: none;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.occupation-input::placeholder {
    color: var(--color-text-muted);
}

.occupation-input:focus {
    box-shadow: 0 0 0 2px rgba(1, 64, 192, 0.2);
}

.occupation-submit {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-base);
    white-space: nowrap;
}

.occupation-submit:hover {
    background: var(--color-primary-hover);
}

.occupation-submit:active {
    transform: scale(0.98);
}

/* Form Styles (for initial signup) */
.waitlist-form-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.waitlist-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    border: none;
    border-radius: 12px;
    outline: none;
    transition: all var(--transition-base);
}

.waitlist-input::placeholder {
    color: var(--color-text-muted);
}

.waitlist-input:focus {
    box-shadow: 0 0 0 3px rgba(1, 64, 192, 0.15);
    background: white;
}

.waitlist-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.waitlist-submit:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.waitlist-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.waitlist-error {
    padding: 12px 16px;
    background: rgba(212, 24, 61, 0.1);
    border: 1px solid rgba(212, 24, 61, 0.2);
    border-radius: 10px;
    color: var(--color-error);
    font-size: 14px;
    display: none;
}

.waitlist-error.show {
    display: block;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Modal */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-overlay.show {
    display: flex;
}

.success-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

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

.success-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.success-close:hover {
    background: var(--color-border-gray);
}

.success-close svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-dark);
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 16px 0 8px;
    text-align: center;
}

.success-message {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: 14px;
}

/* Leaderboard Card */
.leaderboard-card-new {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    width: 100%;
}

.leaderboard-card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.leaderboard-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--color-bg-light);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.leaderboard-item:hover {
    background: rgba(1, 64, 192, 0.05);
    transform: translateX(4px);
}

.leaderboard-item-current {
    background: rgba(1, 64, 192, 0.1);
    border: 1px solid rgba(1, 64, 192, 0.2);
}

.leaderboard-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.leaderboard-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 30px;
    text-align: center;
}

.leaderboard-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.leaderboard-points {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Custom Alert Modal */
.custom-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--transition-base);
}

.custom-alert-modal {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

.custom-alert-content {
    text-align: center;
}

.custom-alert-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.custom-alert-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.custom-alert-message {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.custom-alert-close {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.custom-alert-close:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
/* Tablet and below - stack vertically */
@media (max-width: 1023px) {
    .waitlist-cards-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .waitlist-cards-divider {
        display: none;
    }
    
    .leaderboard-card-new {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .waitlist-header {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
        min-height: 350px;
    }
    
    .waitlist-logo-header {
        margin-bottom: auto;
    }
    
    .waitlist-logo-image {
        width: 40px;
        height: 40px;
    }
    
    .waitlist-logo-text {
        font-size: 20px;
    }
    
    .header-signup-title {
        font-size: 32px;
    }
    
    .header-signup-input {
        height: 48px;
        font-size: 16px;
    }
    
    .header-signup-submit {
        height: 44px;
        font-size: 15px;
    }
    
    .position-number {
        font-size: 80px;
    }
    
    .waitlist-main {
        padding: var(--spacing-md) 16px;
    }
    
    .waitlist-heading h2 {
        font-size: 24px;
    }
    
    .waitlist-heading-subtitle {
        font-size: 14px;
    }
    
    .social-share-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .social-share-icon {
        width: 44px;
        height: 44px;
    }
    
    .social-share-label {
        font-size: 11px;
    }
    
    .invite-card,
    .occupation-card,
    .leaderboard-card-new {
        padding: 16px;
    }
    
    .header-prizes-section {
        padding: var(--spacing-md);
    }
    
    .prizes-header {
        margin-bottom: var(--spacing-md);
    }
    
    .prizes-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .prizes-icon-emoji {
        font-size: 24px;
    }
    
    .prizes-title {
        font-size: 18px;
    }
    
    .prize-item {
        padding: 14px;
    }
    
    .prize-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .prize-rank {
        font-size: 14px;
    }
    
    .prize-description {
        font-size: 12px;
    }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
    .invite-card,
    .occupation-card,
    .leaderboard-card-new {
        padding: 16px;
    }
    
    .occupation-form {
        flex-direction: column;
        width: 100%;
    }
    
    .occupation-input {
        width: 100%;
        min-width: 100%;
    }
    
    .occupation-submit {
        width: 100%;
    }
    
    .waitlist-heading h2 {
        font-size: 20px;
    }
    
    .invite-card-title,
    .occupation-card-title,
    .leaderboard-card-title {
        font-size: 20px;
    }
}

/* Medium screens - 769px to 1023px */
@media (min-width: 769px) and (max-width: 1023px) {
    .waitlist-main {
        max-width: 700px;
    }
    
    .waitlist-cards-wrapper {
        flex-direction: column;
    }
}

/* Large screens - 1024px and above */
@media (min-width: 1024px) {
    .waitlist-main {
        max-width: 1200px;
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
