/* Ensure full height */
html, body {
    height: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Base Container */
body {
    background: 
        radial-gradient(circle at 1px 1px, rgba(107, 70, 193, 0.15) 2px, transparent 0) 0 0 / 40px 40px,
        radial-gradient(circle at 50% 50%, rgba(107, 70, 193, 0.15) 0%, transparent 70%) center/250% 250%,
        linear-gradient(to bottom right, #f8f9ff, #ffffff);
    min-height: 100vh;
    height: auto;
    background-attachment: scroll;
    background-repeat: repeat;
    background-size: 40px 40px, 250% 250%, cover;
    animation: 
        moveDots 15s linear infinite,
        glowLight 8s ease-in-out infinite alternate;
}

/* Ensure animated-bg class also covers full height */
body.animated-bg {
    min-height: 100vh;
    height: auto;
    position: relative;
}

/* Override animated-bg.css to ensure full height coverage */
body.animated-bg::before {
    content: '';
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(circle at 1px 1px, rgba(107, 70, 193, 0.15) 2px, transparent 0) 0 0 / 40px 40px,
        radial-gradient(circle at 50% 50%, rgba(107, 70, 193, 0.15) 0%, transparent 70%) center/250% 250%,
        linear-gradient(to bottom right, #f8f9ff, #ffffff);
    z-index: -1;
    animation: 
        moveDots 15s linear infinite,
        glowLight 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes moveDots {
    0% {
        background-position: 0 0, center, 0 0;
    }
    100% {
        background-position: 40px 40px, center, 0 0;
    }
}

@keyframes glowLight {
    0% {
        background-position: 0 0, -50% -50%, 0 0;
    }
    100% {
        background-position: 40px 40px, 150% 150%, 0 0;
    }
}

.auth-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Ensure main also takes full height */
main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: auto;
    width: 100%;
    overflow-x: hidden;
}

/* Auth Welcome Text */
.auth-welcome {
    text-align: center;
    margin: 1.5rem auto;
    max-width: 600px;
}

.auth-welcome,
.auth-card {
    animation: fadeInContainer 0.6s ease-out forwards;
}

.auth-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.auth-welcome p {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.5;
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto 2rem auto;
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Social Auth Buttons */
.social-auth-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .social-auth-buttons {
        flex-direction: column;
    }
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 1rem;
    color: #718096;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-button {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    -webkit-appearance: none;
}

.social-button:hover {
    border-color: #CBD5E0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-button {
    color: #4285F4;
    border-color: #4285F4;
}

.google-button:hover {
    background: rgba(66, 133, 244, 0.05);
    border-color: #4285F4;
}

.apple-button {
    color: #000000;
    border-color: #000000;
}

.apple-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000000;
}

.social-button i {
    font-size: 1.2rem;
}

/* Password Groups Animation */
.password-group {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.password-group.show {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 1rem;
}

.password-requirements {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.password-requirements.show {
    opacity: 1;
    max-height: 50px;
    margin-top: 0.375rem;
}

/* Only apply animation to submit buttons, not social buttons */
.auth-form .button {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.auth-form .button.show {
    opacity: 1;
    max-height: 60px;
    margin-top: 1rem;
}

.forgot-password {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.forgot-password.show {
    opacity: 1;
    max-height: 30px;
    margin-top: 1rem;
}

/* Glassmorphism Cards */
.plan-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 10px 30px -5px rgba(31, 38, 135, 0.1),
        0 4px 6px -2px rgba(31, 38, 135, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 
        0 20px 40px -5px rgba(31, 38, 135, 0.15),
        0 8px 12px -3px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.plan-card.expanded {
    transform: translateY(-5px);
    border-color: var(--main-color);
    height: auto;
    flex-grow: 1;
    box-shadow: 
        0 25px 50px -12px rgba(31, 38, 135, 0.25),
        0 10px 15px -3px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.plan-card.selected {
    border-color: var(--main-color);
    box-shadow: 
        0 25px 50px -12px rgba(31, 38, 135, 0.25),
        0 10px 15px -3px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
}

.plan-card.selected::before,
.plan-card.selected::after {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

.plan-card:not(.expanded) {
    height: auto;
    flex-grow: 0;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin: 1rem auto;
    padding: 0 1rem;
}

.welcome-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 1rem;
    color: #718096;
    line-height: 1.5;
}

/* Header */
header {
    background-color: var(--main-color);
    height: 40px;
    margin: 0;
    opacity: 0.9;
}

header img {
    margin: 0 auto;
    max-width: 180px;
    height: auto;
}

header .spacer {
    width: 40px;
}

/* Tabs */
.tabs {
    display: none;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0.3rem auto;
    padding: 0 0.75rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.pricing-plans .plan-card {
    display: flex !important;
}

.plan-card {
    position: relative;
    padding: 1.25rem;
    background: white !important;
    background-image: none !important;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plan-card.recommended {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
}

.plan-card.recommended::before,
.plan-card.recommended::after {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

@media (min-width: 481px) {
    .plan-card.recommended {
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
    }
}

.plan-card.expanded {
    border-color: #0EA5E9;
}

/* ============================================
   BADGE - Base Styles (Desktop)
   ============================================ */
.badge {
    /* Layout */
    display: inline-block;
    position: absolute;
    top: -1.1rem;
    right: 1rem;
    z-index: 1;
    
    /* Size - Dynamic width based on content */
    width: auto;
    min-width: fit-content;
    
    /* Typography */
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    color: white;
    
    /* Appearance */
    background: #ED8936;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.2);
    
    /* Behavior */
    pointer-events: none;
}

.plan-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D3748;
    margin: 0.5625rem 0 0.75rem 0;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: #2D3748;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1rem 0;
}

.price span {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
}

.savings {
    display: inline-block;
    color: #ED8936;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    background: rgba(237, 137, 54, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.2);
}

.one-time {
    display: inline-block;
    color: #718096;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: auto 0;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0;
    color: #4A5568;
    font-size: 0.9rem;
}

.features-list li i {
    color: #38A169;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: #4A5568;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #2D3748;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.form-group input:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    outline: none;
    -webkit-user-select: text;
}

.password-requirements {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.375rem;
}

.button {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    -webkit-appearance: none;
}

.button:hover {
    opacity: 0.9;
}

.button:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
}

/* Login Form */
.auth-form {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #0EA5E9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Messages */
.error-message,
.success-message {
    position: fixed;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    width: calc(100% - 1rem);
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.error-message {
    background: #E53E3E;
}

.success-message {
    background: #38A169;
}

.error-message.show,
.success-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.auth-content.hidden {
    display: none;
}

/* Plan Form */
.plan-form {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.plan-card.expanded .plan-form {
    max-height: 400px;
    opacity: 1;
    margin-top: 0rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    width: 100%;
}

/* Hide mobile price structure on desktop */
.plan-left,
.price-total,
.price-monthly {
    display: none;
}

@media (min-width: 481px) {
    /* Use same compact structure as mobile for desktop */
    .plan-left,
    .price-total,
    .price-monthly {
        display: flex !important;
    }
    
    .price {
        display: none !important;
    }
    
    /* Hide all features on desktop */
    .features-list {
        display: none !important;
    }
    
    /* Hide price-subtext, cancel-policy, savings on desktop */
    .price-subtext,
    .cancel-policy,
    .savings,
    .one-time {
        display: none !important;
    }
}

/* Global animations for subscribe button - available everywhere */
@keyframes bounceButton {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.95);
    }
    60% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .auth-container {
        max-width: 1200px;
        padding: 0.25rem;
    }

    header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    header img {
        max-width: none;
    }

    .welcome-text {
        margin: 2rem auto;
        max-width: 600px;
        padding: 0 1.25rem;
    }

    .welcome-text h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .welcome-text p {
        font-size: 1.1rem;
    }

    .tabs {
        margin: 2rem auto;
    }

    .tab {
        min-width: 140px;
        padding: 0.875rem 1.5rem;
    }

    /* Use same layout as mobile: cards stacked vertically */
    .pricing-plans {
        gap: 0.1rem !important;
        margin: 0.1rem auto !important;
        max-width: 600px;
        padding: 0 0.5rem;
        display: flex;
        flex-direction: column;
    }

    .plan-card {
        padding: 1rem 1.25rem !important;
        margin-bottom: 0.1rem !important;
        min-height: 72px !important;
        height: auto !important;
        max-height: none;
        overflow: visible;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        transform: none !important;
        position: relative !important;
        border: 1px solid #E2E8F0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }
    
    .plan-content {
        padding: 0rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 1rem;
    }
    
    .plan-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        flex: 1;
        gap: 0.25rem;
    }
    
    .plan-card h2 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
        text-align: left;
        line-height: 1.2;
    }
    
    .price-total {
        font-size: 0.75rem !important;
        color: #718096 !important;
        font-weight: 500 !important;
        margin: 0 !important;
        line-height: 1.2;
    }
    
    .price-monthly {
        font-size: 1.1rem !important;
        margin: 0 !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: baseline !important;
        gap: 0.25rem;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: right;
    }
    
    .price-monthly span {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }
    
    /* Hide old price structure */
    .price {
        display: none !important;
    }
    
    /* Hide subscribe button in cards on desktop */
    .plan-card .subscribe-button {
        display: none !important;
    }
    
    /* Selected state with violet border on desktop */
    .plan-card.selected {
        border: 2px solid #7C3AED !important;
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
        position: relative !important;
        box-shadow: 
            0 2px 8px rgba(124, 58, 237, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Checkmark icon on selected card - desktop */
    .plan-card.selected::after {
        content: '\f00c' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        position: absolute !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
        width: 20px !important;
        height: 20px !important;
        background: #7C3AED !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.65rem !important;
        z-index: 21 !important;
        pointer-events: none !important;
        box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3) !important;
    }
    
    /* Checkmark for recommended card - desktop */
    .plan-card.selected.recommended::after {
        top: 0.25rem !important;
        right: 0.25rem !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 21 !important;
    }
    
    /* Badge positioning on desktop - centered at top like mobile */
    .plan-card .badge {
        display: inline-block !important;
        position: absolute !important;
        top: -0.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
        color: white !important;
        background: #ED8936 !important;
        padding: 0.2rem 0.35rem !important;
        border-radius: 100px !important;
        box-shadow: 0 2px 6px rgba(237, 137, 54, 0.3) !important;
        pointer-events: none !important;
    }
    
    /* Badge on selected cards - desktop */
    .plan-card.selected .badge,
    .plan-card.selected.recommended .badge {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: -0.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
    }
    
    /* Recommended card without selected state */
    .plan-card.recommended:not(.selected) {
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
        border: 1px solid #E2E8F0 !important;
    }
    
    /* Subscribe header and subtitle on desktop */
    .subscribe-header {
        margin-bottom: 0.1rem;
    }
    
    .subscribe-header h1 {
        font-size: 1.7rem;
        margin-bottom: 0.2rem;
    }
    
    .subscribe-subtitle {
        font-size: 0.7rem;
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 0.1rem;
    }
    
    /* Use exact same button styles as mobile on desktop */
    .mobile-subscribe-button {
        display: block !important;
        margin: 1.5rem auto 0 auto !important;
        width: calc(100% - 2rem) !important;
        max-width: 600px !important;
        position: relative !important;
        bottom: auto !important;
        z-index: 999 !important;
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.2),
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 2px 6px rgba(0, 0, 0, 0.1) !important;
        padding: 1.75rem 0.875rem !important;
        min-height: 72px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }
    
    /* Icon margin in mobile subscribe button */
    .mobile-subscribe-button i {
        margin-right: 0.5rem !important;
    }
    
    /* Shimmer effect overlay - same as mobile */
    .mobile-subscribe-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 45%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.2) 55%,
            transparent 100%
        );
        background-size: 200% 100%;
        animation: shimmer 4s infinite;
        pointer-events: none;
        z-index: 1;
    }
    
    /* Ensure button content is above shimmer */
    .mobile-subscribe-button > * {
        position: relative;
        z-index: 2;
    }
    
    /* Bounce animation class - same as mobile */
    .mobile-subscribe-button.bounce {
        animation: bounceButton 0.5s ease;
    }
    
    /* Sticky promo banner on desktop - same as mobile */
    .promo-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 8px 8px 0 0 !important;
        z-index: 1000 !important;
        transition: transform 0.3s ease !important;
        padding: 0.75rem !important;
    }
    
    .promo-banner.temp-hide {
        transform: translateY(100%) !important;
    }
    
    .promo-banner::before {
        display: none !important;
    }
    
    .promo-content {
        padding: 0 !important;
    }
    
    .promo-line {
        font-size: 1rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    .promo-bottom-line {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }
    
    .countdown-text {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }
    
    .promo-instruction {
        font-size: 0.65rem !important;
        opacity: 0.85 !important;
        margin: 0 !important;
        font-weight: 400 !important;
    }
    
    /* Add padding to the bottom of the content to prevent overlap with sticky banner */
    .pricing-plans {
        padding-bottom: 0.5rem;
    }

    .auth-form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .error-message,
    .success-message {
        bottom: 1rem;
        width: calc(100% - 2rem);
        padding: 0.75rem 1.25rem;
    }
    
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Fix scroll issues on mobile Chrome */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
    }
    
    body {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .auth-container {
        padding: 0;
        margin: 0;
    }

    #login-content,
    #register-content {
        padding: 0;
        margin: 0;
        width: 95%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .auth-card {
        margin: 0.5rem auto 1.5rem auto;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        width: calc(100% - 2rem);
        max-width: none;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input {
        padding: 0.75rem;
    }

    .button {
        padding: 0.875rem;
    }
    
    /* Pricing plans container adjustments */
    .pricing-plans {
        gap: 0.1rem !important;
        margin: 0.1rem auto !important;
        max-width: 100%;
        padding: 0 0.5rem;
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: flex-start;
    }
    
    /* Compact plan cards for mobile - Ultra minimal */
    .plan-card {
        padding: 1rem 1.25rem !important;
        margin-bottom: 0.1rem !important;
        min-height: 72px !important;
        height: auto !important;
        max-height: none;
        overflow: visible;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        transform: none !important;
        position: relative !important;
        border: 1px solid #E2E8F0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* No movement animation on selection */
    .plan-card.selecting {
        /* No animation - cards stay in place */
    }
    
    .plan-content {
        padding: 0rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 1rem;
    }
    
    .plan-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        flex: 1;
        gap: 0.25rem;
    }
    
    .plan-card h2 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
        text-align: left;
        line-height: 1.2;
    }
    
    .price-total {
        font-size: 0.75rem !important;
        color: #718096 !important;
        font-weight: 500 !important;
        margin: 0 !important;
        line-height: 1.2;
    }
    
    .price-monthly {
        font-size: 1.1rem !important;
        margin: 0 !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: baseline !important;
        gap: 0.25rem;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: right;
    }
    
    .price-monthly span {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }
    
    /* Hide old price structure on mobile */
    .price {
        display: none !important;
    }
    
    /* Show new mobile price structure */
    .plan-left,
    .price-total,
    .price-monthly {
        display: flex !important;
    }
    
    /* Hide all features on mobile */
    .features-list {
        display: none !important;
    }
    
    /* Hide price-subtext, cancel-policy, savings on mobile */
    .price-subtext,
    .cancel-policy,
    .savings,
    .one-time {
        display: none !important;
    }
    
    /* ============================================
       BADGE - Mobile Styles
       ============================================ */
    .badge {
        /* Layout - Centered horizontally at top */
        display: inline-block !important;
        position: absolute !important;
        top: -0.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        
        /* Size - Dynamic width based on content */
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
        
        /* Typography */
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
        color: white !important;
        
        /* Appearance */
        background: #ED8936 !important;
        padding: 0.2rem 0.35rem !important;
        border-radius: 100px !important;
        box-shadow: 0 2px 6px rgba(237, 137, 54, 0.3) !important;
        
        /* Behavior */
        pointer-events: none !important;
    }
    
    /* Selected state with violet border ONLY (no background gradient, no movement) */
    .plan-card.selected {
        border: 2px solid #7C3AED !important;
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
        position: relative !important;
        box-shadow: 
            0 2px 8px rgba(124, 58, 237, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Ensure recommended selected card has violet border */
    .plan-card.recommended.selected {
        border: 2px solid #7C3AED !important;
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
    }
    
    /* Checkmark icon on selected card - positioned higher and more to the right */
    .plan-card.selected::after {
        content: '\f00c' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        position: absolute !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
        width: 20px !important;
        height: 20px !important;
        background: #7C3AED !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.65rem !important;
        z-index: 11 !important;
        pointer-events: none !important;
        box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3) !important;
    }
    
    /* Checkmark for recommended card - positioned independently from badge */
    .plan-card.selected.recommended::after {
        content: '\f00c' !important;
        display: flex !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
        bottom: auto !important;
        left: auto !important;
        position: absolute !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        width: 20px !important;
        height: 20px !important;
        background: #7C3AED !important;
        color: white !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.65rem !important;
        z-index: 21 !important;
        pointer-events: none !important;
        box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3) !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    /* ============================================
       BADGE - Selected Card State (Mobile)
       ============================================ */
    .plan-card.selected .badge,
    .plan-card.selected.recommended .badge {
        /* Ensure badge remains visible and properly positioned */
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        
        /* Maintain centered position */
        top: -0.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        
        /* Maintain dynamic width */
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
    }
    
    /* Ensure content is above the border and clickable */
    .plan-card.selected .plan-content {
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Ensure the card itself is clickable */
    .plan-card.selected {
        pointer-events: auto !important;
    }
    
    .plan-card {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Force no gradient and no border on recommended cards on mobile (unless selected) */
    .plan-card.recommended:not(.selected) {
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
        border-color: transparent !important;
        border: 1px solid #E2E8F0 !important;
    }
    
    .plan-card.recommended::before,
    .plan-card.recommended:not(.selected)::after {
        display: none !important;
        background: none !important;
        background-image: none !important;
    }
    
    
    /* Hide subscribe button on mobile - will be shown separately */
    .plan-card .subscribe-button {
        display: none !important;
    }
    
    /* Bounce size animation for subscribe button - more dynamic */
    @keyframes bounceButton {
        0% {
            transform: scale(1);
        }
        30% {
            transform: scale(0.95);
        }
        60% {
            transform: scale(1.08);
        }
        100% {
            transform: scale(1);
        }
    }
    
    /* Shimmer/Reflet animation for subscribe button - stronger */
    @keyframes shimmer {
        0% {
            background-position: -200% center;
        }
        100% {
            background-position: 200% center;
        }
    }
    
    /* Mobile subscribe button */
    .mobile-subscribe-button {
        display: block !important;
        margin: 1.5rem auto 0 auto !important;
        width: calc(100% - 2rem) !important;
        max-width: 400px !important;
        position: sticky !important;
        bottom: 0;
        z-index: 999;
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.2),
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 2px 6px rgba(0, 0, 0, 0.1) !important;
        padding: 1.75rem 0.875rem !important;
        min-height: 72px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }
    
    /* Icon margin in mobile subscribe button */
    .mobile-subscribe-button i {
        margin-right: 0.5rem !important;
    }
    
    /* Shimmer effect overlay - subtle animation */
    .mobile-subscribe-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 45%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.2) 55%,
            transparent 100%
        );
        background-size: 200% 100%;
        animation: shimmer 4s infinite;
        pointer-events: none;
        z-index: 1;
    }
    
    /* Ensure button content is above shimmer */
    .mobile-subscribe-button > * {
        position: relative;
        z-index: 2;
    }
    
    /* Bounce animation class */
    .mobile-subscribe-button.bounce {
        animation: bounceButton 0.5s ease;
    }
    
    /* Mobile subscribe button is now shown on desktop too - no need to hide it */
    
    .subscribe-header {
        margin-bottom: 0.1rem;
    }
    
    .subscribe-header h1 {
        font-size: 1.7rem;
        margin-bottom: 0.2rem;
    }
    
    .subscribe-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    /* Sticky promo banner */
    .promo-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 8px 8px 0 0 !important;
        z-index: 1000 !important;
        transition: transform 0.3s ease !important;
    }
    
    .promo-banner.temp-hide {
        transform: translateY(100%) !important;
    }
    
    .promo-banner::before {
        display: none !important;
    }
    
    .promo-content {
        padding: 0 !important;
    }
    
    .promo-line {
        font-size: 1rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    .promo-bottom-line {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }
    
    .countdown-text {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }
    
    .promo-instruction {
        font-size: 0.65rem !important;
        opacity: 0.85 !important;
        margin: 0 !important;
        font-weight: 400 !important;
    }
    
    /* Add padding to the bottom of the content to prevent overlap with sticky banner */
    .pricing-plans {
        padding-bottom: 0.5rem;
    }
    
    .price-subtext, .cancel-policy {
        font-size: 0.85rem;
    }
    
    .price-subtext {
        margin-top: -0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .cancel-policy {
        margin-bottom: 0.75rem;
    }
    
    .button.subscribe-button {
        margin: 1.5rem auto;
        width: 90%;
        display: block;
    }
}

/* Guarantee Section */
/* Guarantee Carousel */
.guarantee-carousel {
    margin: 1.5rem auto 0.75rem auto;
    max-width: 600px;
    width: calc(100% - 2rem);
    position: relative;
    overflow: visible;
    padding-bottom: 0.25rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    min-height: 120px;
    align-items: stretch;
}

.carousel-slide .slide-progress-bar,
.carousel-slide .slide-progress-bar::after {
    transition: none !important;
}

.carousel-slide.active {
    opacity: 1;
}

/* Slide Progress Bar */
.slide-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 10;
    overflow: hidden;
}

.carousel-slide.active .slide-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 161, 105, 0.4);
    animation: slideProgress 6s linear forwards;
    transition: none !important;
    will-change: width;
}

@keyframes slideProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

.guarantee-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-top: 2px;
    min-height: 120px;
    flex: 1;
}

/* Promo Slide Section - Same style as guarantee-section */
.promo-slide-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-top: 2px;
    min-height: 120px;
    flex: 1;
}

.promo-slide-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    align-items: center;
    text-align: center;
}

.promo-slide-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #38A169;
}

.promo-slide-line i {
    color: #38A169;
}

.promo-slide-line .promo-code-carousel {
    background: rgba(56, 161, 105, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.promo-slide-line .promo-code-carousel:hover {
    background: rgba(56, 161, 105, 0.3);
}

.promo-slide-bottom-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-text-carousel {
    font-size: 0.9rem;
    margin: 0;
    color: #38A169;
    font-weight: 700;
}

.countdown-text-carousel .countdown {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2F855A;
    padding: 0.25rem 0.5rem;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 5px;
    display: inline-block;
}

.promo-instruction-carousel {
    font-size: 0.7rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
    color: #4A5568;
}

.guarantee-icon {
    font-size: 2.3rem;
    color: #38A169;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    margin-left: 0.5rem;
}

.guarantee-text h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #38A169;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.guarantee-text p {
    font-size: 0.85rem;
    color: #4A5568;
    margin: 0;
    line-height: 1.4;
}

/* Review Section Styles */
.review-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-top: 2px;
    min-height: 120px;
    flex: 1;
    justify-content: center;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.review-stars i {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.75rem;
    color: #4A5568;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
    text-align: left;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-shrink: 0;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2D3748;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(56, 161, 105, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background: #38A169;
    transform: scale(1.2);
}

@media (max-width: 640px) {
    .guarantee-carousel {
        margin: 1.5rem 0.5rem 1rem 0.5rem;
        max-width: 100%;
        width: calc(100% - 1rem);
        padding-bottom: 0.5rem;
    }
    
    .guarantee-section {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
        min-height: 100px;
    }
    
    .promo-slide-section {
        padding: 0.6rem 1rem;
        min-height: 100px;
    }
    
    .promo-slide-line {
        font-size: 1rem;
    }
    
    .countdown-text-carousel {
        font-size: 0.8rem;
        font-weight: 700;
    }
    
    .countdown-text-carousel .countdown {
        font-size: 1.05rem;
        font-weight: 800;
        padding: 0.2rem 0.4rem;
        background: rgba(56, 161, 105, 0.1);
        border-radius: 5px;
        display: inline-block;
    }
    
    .promo-instruction-carousel {
        font-size: 0.65rem;
    }
    
    .guarantee-icon {
        font-size: 1.8rem;
        flex-shrink: 0;
        margin-top: 0;
        margin-right: 0.5rem;
        margin-left: 0.3rem;
    }
    
    .guarantee-text {
        flex: 1;
    }
    
    .guarantee-text h3 {
        font-size: 0.85rem;
        margin: 0 0 0.2rem 0;
        line-height: 1.3;
    }
    
    .guarantee-text p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .review-section {
        padding: 0.75rem 1rem;
        gap: 0.6rem;
        text-align: left;
        align-items: stretch;
        min-height: 100px;
    }
    
    .carousel-slide {
        min-height: 100px;
    }
    
    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .review-author {
        justify-content: flex-start;
    }
    
    .review-stars {
        justify-content: flex-end;
    }
    
    .review-stars i {
        font-size: 1rem;
    }
    
    .review-text {
        font-size: 0.65rem;
        text-align: left;
    }
    
    .review-avatar {
        width: 35px;
        height: 35px;
    }
    
    .review-name {
        font-size: 0.75rem;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .auth-form {
        margin: 0.5rem;
        border-radius: 10px;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group input {
        padding: 0.625rem;
    }

    .button {
        padding: 0.75rem;
    }
    
    /* Even more compact plan cards for very small screens */
    .pricing-plans {
        gap: 0.3rem;
        margin: 0.3rem auto;
    }
    
    .plan-card {
        padding: 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .plan-card h2 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .price {
        font-size: 1.1rem;
        margin: 0.2rem 0;
    }
    
    .features-list li {
        padding: 0.15rem 0;
        font-size: 0.7rem;
    }
    
    /* Hide more features on very small screens */
    .plan-card:not(.expanded) .features-list li:nth-child(n+3) {
        display: none;
    }
}

/* Success Page Styles */
.success-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #38A169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
}

.success-description {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-button {
    min-width: 180px;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.success-button.primary {
    background: #0EA5E9;
    color: white;
}

.success-button.secondary {
    background: rgba(124, 58, 237, 0.1);
    color: #0EA5E9;
}

.success-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.success-button i {
    font-size: 1.1rem;
}

/* Account Page Styles */
.account-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
}

.header-nav {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    padding-right: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #0EA5E9;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: #2D3748;
    margin: 2rem 0 1rem;
}

.section-title i {
    color: #0EA5E9;
}

.account-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.account-form {
    max-width: 400px;
    margin: 0 auto;
}

.subscription-container {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.05);
}

.loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #718096;
    font-size: 0.95rem;
}

.loading i {
    color: #0EA5E9;
}

/* Subscription Details */
.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-active {
    background: rgba(56, 161, 105, 0.1);
    color: #38A169;
}

.cancel-button {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background: rgba(229, 62, 62, 0.2);
}

/* Responsive Design */
@media (max-width: 640px) {
    .account-page {
        margin: 1rem;
        padding: 1rem;
    }

    .account-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem;
    }

    .header-nav {
        padding-right: 0.5rem;
    }

    .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
}

.button.subscribe-button {
    margin: 1.5rem auto;
    width: 90%;
    display: block;
}

#logo-container {
    margin-bottom: 1.5rem;
}

#logo-container img {
    max-width: 150px;
    height: auto;
}

.auth-page-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo-container-callback {
    position: relative;
    z-index: 10;
    margin-bottom: -75px; /* Lowered logo and adjusted for size */
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden; /* Apply overflow to the container */
}

#logo-container-callback img {
    width: 100%; /* Let image fill the container */
    height: 100%; /* Let image fill the container */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

#logo-container-callback::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 4s infinite 1s; /* Animation starts after 1s delay */
}

@keyframes shine {
    10% {
        left: 120%;
    }
    100% {
        left: 120%;
    }
}

#auth-card-callback {
    padding-top: 75px; /* Reduced top space inside the card */
    padding-bottom: 2.5rem; /* Added bottom space inside the card */
    text-align: center; /* Center the text inside the card */
}

/* =============================================== */
/* ============== Auth Callback Page ============= */
/* =============================================== */

/* Fade-in animation for the whole auth card on page load */
.auth-page-container {
    animation: fadeInContainer 0.6s ease-out forwards;
}

@keyframes fadeInContainer {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade transitions for states inside the card */
#loading-state,
#success-state,
#error-message {
    transition: opacity 0.6s ease-in-out; /* Increased from 0.4s */
}


/* Center the content on the auth callback page */
body:has(.auth-page-container) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0EA5E9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    color: #4A5568;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.error {
    color: #E53E3E;
    background: rgba(229, 62, 62, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Success Animation */
.success-animation {
    margin-bottom: 2rem;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #38A169;
    margin: 0 auto;
    position: relative;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(56, 161, 105, 0.3);
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 15px;
    border: 3px solid white;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -60%) rotate(-45deg);
    animation: checkmarkDraw 0.5s ease-out 0.3s both;
}

.welcome-message {
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.welcome-message h2 {
    color: #2D3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: #4A5568;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkDraw {
    0% {
        width: 0;
        height: 0;
    }
    50% {
        width: 25px;
        height: 0;
    }
    100% {
        width: 25px;
        height: 15px;
    }
}

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

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.375rem;
    border-radius: 100px;
    width: 320px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.pricing-tab {
    position: relative;
    padding: 0.75rem 0;
    width: 50%;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    transition: color 0.2s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-tab span {
    padding: 0 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: color 0.2s ease;
}

.pricing-tab:hover:not(.selected) span {
    color: #0EA5E9;
}

.pricing-tab.selected span {
    color: white;
}

.pricing-tab-slider {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem; /* Ensure it starts at the correct position */
    width: calc(50% - 0.375rem); /* Adjust width to account for padding */
    height: calc(100% - 0.75rem);
    border-radius: 100px;
    background: #0EA5E9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.pricing-tab.selected[data-tab="login"] ~ .pricing-tab-slider {
    transform: translateX(calc(100% + 0.375rem));
}

.pricing-tab-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(237, 137, 54, 0.1);
    color: #ED8936;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-tab.selected .pricing-tab-badge {
    background: rgba(237, 137, 54, 0.15);
}

/* Content visibility */
.auth-content {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.auth-content.active {
    display: block;
}

/* Ensure consistent sizing for both auth contents */
#login-content,
#register-content {
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Show all plans */
#subscribe-content .plan-card {
    display: flex;
}

/* Hide plans based on selected frequency - Only for auth.html */
#register-content .plan-card[data-frequency] {
    display: none;
}

#register-content.frequency-monthly .plan-card[data-frequency="monthly"],
#register-content.frequency-annually .plan-card[data-frequency="annually"],
#register-content .plan-card[data-frequency="lifetime"] {
    display: flex;
}

/* Show all plans when in subscribe tab */
#register-content.active .plan-card {
    display: flex;
}

/* Remove old tabs styles */
.tabs {
    display: none;
}

.theme-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.theme-icon img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
    box-shadow: none;
}

.theme-icon img:hover {
    transform: scale(1.05);
}

.theme-name {
    display: none !important;
    /* color: var(--main-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center; */
}

/* Users Count */
.users-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    margin-bottom: 10px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    background-size: cover;
    background-position: center;
    margin-right: -18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    padding-left: 8px;
}

/* Subscribe Header */
.subscribe-header {
    text-align: center;
    margin-bottom: 0.2rem;
}

.subscribe-header h1 {
    font-size: 1.7rem;
    color: #2D3748;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.subscribe-subtitle {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 auto;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 600px;
}

/* Header and Theme Icon */
header {
    background-color: var(--main-color);
    height: 40px;
    margin: 0;
    opacity: 0.9;
}

.theme-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;
    margin-bottom: 5px;
    position: relative;
    z-index: 10;
}

.theme-header img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.theme-header img:hover {
    transform: scale(1.05);
}

.theme-name {
    display: none !important;
    /* color: var(--main-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px; */
}

/* Rating Stars */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 15px;
}

.rating-stars i {
    color: #FFD700;
    font-size: 20px;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #38A169 0%, #38A169 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    animation: pulse 2s infinite;
    transition: opacity 0.5s ease;
    border-radius: 8px;
    box-shadow: 
        0 0 15px rgba(56, 161, 105, 0.3),
        0 0 30px rgba(56, 161, 105, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-banner.temp-hide {
    transform: none;
}

@media (max-width: 480px) {
    .promo-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 8px 8px 0 0 !important;
        z-index: 1000 !important;
        transition: transform 0.3s ease !important;
    }

    .promo-banner.temp-hide {
        transform: translateY(100%) !important;
    }
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 0 15px rgba(56, 161, 105, 0.3),
            0 0 30px rgba(56, 161, 105, 0.2),
            inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(56, 161, 105, 0.4),
            0 0 40px rgba(56, 161, 105, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.15);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(56, 161, 105, 0.3),
            0 0 30px rgba(56, 161, 105, 0.2),
            inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
}

.promo-banner.hide {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.promo-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.promo-banner i {
    font-size: 1.2rem;
    animation: shake 1.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.promo-bottom-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.promo-banner .countdown-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.promo-instruction {
    font-size: 0.7rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
}

.promo-banner .countdown {
    font-weight: 700;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.promo-banner .countdown.urgent {
    animation: urgentPulse 1s infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.promo-banner strong.promo-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.promo-banner strong.promo-code:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.promo-banner strong.promo-code:active {
    transform: scale(0.95);
}

.promo-banner strong.promo-code::after {
    content: "Copied!";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 999999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-banner strong.promo-code.copied::after {
    opacity: 1;
}

@media (max-width: 640px) {
    .promo-banner {
        padding: 0.5rem;
    }

    .promo-line {
        gap: 0.5rem;
    }
}

/* Referral Banner */
.referral-banner {
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    animation: pulse 2s infinite;
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-bottom: 2rem;
}

.referral-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.referral-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.referral-banner i {
    font-size: 1.2rem;
    animation: bounce 1.5s infinite;
}

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

.referral-banner .referral-benefits {
    font-size: 0.9rem;
    opacity: 0.9;
}

.referral-banner strong.referral-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.referral-banner strong.referral-code:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.referral-banner strong.referral-code:active {
    transform: scale(0.95);
}

.referral-banner strong.referral-code::after {
    content: "Copied!";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 999999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.referral-banner strong.referral-code.copied::after {
    opacity: 1;
}

@media (max-width: 640px) {
    .referral-banner {
        padding: 0.5rem;
    }

    .referral-line {
        gap: 0.5rem;
    }
}

/* Success Referral Banner Styles */
.success-referral {
    background: #38A169;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(56, 161, 105, 0.2);
}

.success-referral-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.success-referral-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: bounce 2s infinite;
}

.success-referral-text {
    flex: 1;
}

.success-referral-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.success-referral-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
}

.success-referral-code:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.success-referral-code:active {
    transform: scale(0.98);
}

.success-referral-code::after {
    content: "Copied!";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.success-referral-code.copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.success-referral-benefits {
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
}

@media (max-width: 640px) {
    .success-referral {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .success-referral-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .success-referral-icon {
        font-size: 1.75rem;
    }

    .success-referral-code {
        font-size: 1.1rem;
        padding: 0.625rem 0.875rem;
    }
}

.price-subtext {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
    margin-top: -1rem;
    margin-bottom: 0.5rem;
}

.cancel-policy {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .price-subtext, .cancel-policy {
        font-size: 0.85rem;
    }
    
    .price-subtext {
        margin-top: -0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .cancel-policy {
        margin-bottom: 0.75rem;
    }
    
    .button.subscribe-button {
        margin: 1.5rem auto;
        width: 90%;
        display: block;
    }
} 

/* =============================================== */
/* ============== Forgot Password Modal ========== */
/* =============================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: calc(100% - 2rem); /* Add horizontal margin */
    margin: 0 1rem; /* Add horizontal margin */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
} 