/* Partners page styles */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.partner-category {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.partner-category h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-item {
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 6px;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partnership-benefits {
    margin: 3rem 0;
}

.partnership-benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-item p {
    color: var(--gray);
    line-height: 1.5;
}

/* Content Section Utilities */
.content-section {
    padding: 2rem 1.5rem;
    background: #fafbfc;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-block {
    margin: 2rem 0;
    text-align: center;
}

.content-block h2 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-block p {
    color: var(--gray);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Affiliate Program Styles */
.affiliate-program {
    margin: 3rem 0;
}

.affiliate-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.affiliate-feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.affiliate-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.affiliate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.affiliate-feature-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.affiliate-feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Affiliate Benefits Section */
.affiliate-benefits-section {
    margin: 4rem 0;
    text-align: center;
}

.affiliate-benefits-section h2 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.affiliate-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.affiliate-benefit-item {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.affiliate-benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.affiliate-benefit-item h4 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.affiliate-benefit-item p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Affiliate CTA */
.affiliate-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.affiliate-cta h2 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.affiliate-cta p {
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.affiliate-cta .btn-primary {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    font-size: 1.125rem;
}

.affiliate-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Partner Inquiry - Network Operators */
.partner-inquiry {
    background: var(--white);
    color: var(--dark);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.partner-inquiry h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.partner-inquiry p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.6;
}

.partner-inquiry .btn-primary {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.partner-inquiry .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Responsive adjustments for affiliate section */
@media (max-width: 768px) {
    .affiliate-features {
        grid-template-columns: 1fr;
    }

    .affiliate-benefits-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-cta {
        padding: 2rem 1.5rem;
    }

    .affiliate-cta h2 {
        font-size: 1.5rem;
    }

    .affiliate-cta p {
        font-size: 1rem;
    }
}

/* Legal content styles for terms and privacy pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    line-height: 1.6;
}

.legal-content h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.legal-content h3 {
    color: var(--dark);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.legal-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-content ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.legal-content li {
    color: var(--gray);
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.legal-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.privacy-intro {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.privacy-intro p {
    margin: 0;
    font-size: 1.1rem;
}

.terms-footer, .privacy-footer {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary);
}

.terms-footer p, .privacy-footer p {
    margin: 0.5rem 0;
}

/* Enhanced Landing Page - eSIM Education Styles */
.esim-explanation {
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem 1rem 1.5rem;
}

.explanation-content {
    display: flex;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.explanation-text h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.explanation-text p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.comparison-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.08);
}

.cost-comparison {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    min-width: 200px;
    flex-shrink: 0;
}

.cost-item.expensive {
    background: var(--white);
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.cost-item.expensive:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cost-item.affordable {
    background: var(--white);
    border: 2px solid #c7d2fe;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.cost-item.affordable:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.cost-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

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

.cost-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cost-details strong {
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.cost {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.total {
    font-size: 0.875rem;
    color: var(--gray);
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.vs-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.savings-ribbon {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #047857; /* emerald-700: 5:1 on white text (a11y contrast) */
    color: white;
    padding: 4px 10px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    border-radius: 3px;
    z-index: 1;
}

.cost-highlight {
    color: #047857 !important; /* was #10b981 (2.5:1 on white) */
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

.explanation-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 180px;
    height: 320px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #6b7280;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.esim-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.signal-bars {
    display: flex;
    gap: 3px;
    align-items: end;
}

.signal-bars .bar {
    background: var(--white);
    border-radius: 1px;
    animation: pulse 2s infinite;
}

.signal-bars .bar:nth-child(1) {
    width: 4px;
    height: 8px;
    animation-delay: 0s;
}

.signal-bars .bar:nth-child(2) {
    width: 4px;
    height: 12px;
    animation-delay: 0.2s;
}

.signal-bars .bar:nth-child(3) {
    width: 4px;
    height: 16px;
    animation-delay: 0.4s;
}

.signal-bars .bar:nth-child(4) {
    width: 4px;
    height: 20px;
    animation-delay: 0.6s;
}

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

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1400px;
    padding: 0 1.5rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-card .benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h4 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* Steps Section Enhancement */
.steps-title {
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 4rem 0 2rem 0;
}

/* Roaming Horror Stories */
.roaming-reality {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 4rem auto;
    max-width: 1000px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.08);
}

.roaming-reality h3 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.horror-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.story {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.story::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #ef4444;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote {
    font-style: italic;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    line-height: 1.6;
}

.author {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.reality-check {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    line-height: 1.6;
}

/* Tablet Responsiveness */
@media (max-width: 1240px) {
    /* Mid-size desktop: Stack comparison vertically with centered VS */
    .cost-comparison {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .cost-item {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }

    /* Keep savings ribbon in corner for vertical layout */
    .savings-ribbon {
        top: -10px;
        right: 12px;
        padding: 4px 10px;
        font-size: 0.625rem;
    }

    .vs-text {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .explanation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .cost-comparison {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .cost-item {
        min-width: unset;
        width: 100%;
        justify-content: center;
    }

    /* Make VS smaller on mobile */
    .vs-text {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    /* Adjust savings ribbon for mobile */
    .savings-ribbon {
        top: -10px;
        right: 12px;
        padding: 4px 10px;
        font-size: 0.625rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .horror-stories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phone-mockup {
        width: 150px;
        height: 270px;
    }

    .roaming-reality {
        padding: 2rem 1.5rem;
        margin: 3rem 1rem;
    }

    .roaming-reality h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .esim-explanation {
        padding: 0 1rem;
    }

    .explanation-content {
        padding: 1.5rem 1rem;
    }

    .benefits-grid {
        padding: 0 0.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }
}

/* Hide phone mockup on mobile (under 600px) */
@media (max-width: 600px) {
    .explanation-visual {
        display: none;
    }
}

/* ===== PASSWORD SECURITY STYLES ===== */
.password-check-container {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.password-check-container .container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.password-check-container h1 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.password-check-container .form-group {
    margin-bottom: 25px;
}

.password-check-container label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.password-check-container input[type="password"],
.password-check-container input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.password-check-container input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: relative;
}

.toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}

.toggle-btn:hover {
    color: #4a5568;
}

.check-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.results.secure {
    background: #f0fff4;
    border: 2px solid #38a169;
    color: #22543d;
}

.results.compromised {
    background: #fff5f5;
    border: 2px solid #e53e3e;
    color: #742a2a;
}

.results.weak {
    background: #fffbeb;
    border: 2px solid #d69e2e;
    color: #744210;
}

.strength-meter {
    margin-top: 15px;
}

.strength-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-weak { background: #e53e3e; width: 25%; }
.strength-fair { background: #d69e2e; width: 50%; }
.strength-good { background: #3182ce; width: 75%; }
.strength-strong { background: #38a169; width: 100%; }

.criteria {
    margin-top: 15px;
    font-size: 14px;
}

.criteria ul {
    list-style: none;
    margin-top: 10px;
}

.criteria li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.criteria li::before {
    content: "✗";
    color: #e53e3e;
    margin-right: 10px;
    font-weight: bold;
}

.criteria li.met::before {
    content: "✓";
    color: #38a169;
}

.loading {
    text-align: center;
    color: #718096;
    padding: 20px;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.qr-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    color: #1d1d1f;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-header h2 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-header p {
    color: #64748b;
    font-size: 14px;
}

.modal-body {
    padding: 1.5rem;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #86868b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.qr-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
}

#qrcode {
    display: inline-block;
    margin: 0 auto;
}

#qrcode img,
#qrcode canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.modal-instructions {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.modal-instructions h3 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 12px;
}

.modal-instructions ol {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
}

.modal-instructions li {
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
}

.subscription-card {
    background: var(--card-bg, white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.subscription-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.subscription-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color, #1e293b);
    margin: 0;
}

.subscription-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.subscription-status.inactive {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #1e293b);
}

.subscription-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.subscription-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* ===== ORDER SUCCESS STYLES ===== */
.success-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    color: var(--dark, #1e293b);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-subtitle {
    color: var(--gray, #64748b);
    font-size: 18px;
}

.order-summary {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

.order-summary h2 {
    color: var(--dark, #1e293b);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border, #e2e8f0);
}

.order-details {
    display: grid;
    gap: 16px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.order-detail-row:last-child {
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border, #e2e8f0);
}

.order-detail-label {
    color: var(--gray, #64748b);
    font-weight: 500;
}

.order-detail-value {
    color: var(--dark, #1e293b);
    font-weight: 600;
}

.order-detail-row:last-child .order-detail-value {
    color: var(--primary, #6366f1);
    font-size: 20px;
}

.next-steps {
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #ec4899) 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    margin-bottom: 32px;
}

.next-steps h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.next-steps .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    color: var(--primary, #6366f1);
    border-radius: 50%;
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
}

.next-steps .step-content h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.next-steps .step-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
}

/* ========================================
   CHECKOUT PAGE CRITICAL STYLES
   ======================================== */

/* Plan Styling - Prevent FOUC */
.plan-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.plan-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.plan-info {
    flex: 1;
}

/* Payment Methods - Prevent FOUC */
.payment-methods {
    display: flex;
    gap: 0.5rem;
}

.payment-method {
    flex: 1;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

.payment-method.active {
    border-color: #007aff;
    background: #f0f9ff;
    box-shadow: 0 0 0 1px #007aff;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    cursor: pointer;
    gap: 0.5rem;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-icon {
    font-size: 1.1rem;
}

.payment-text {
    font-weight: 500;
    color: #1d1d1f;
    font-size: 0.9rem;
}

.payment-method.active .payment-text {
    color: #007aff;
}

/* Pricing Section - Prevent FOUC */
.pricing-section {
    margin-top: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.price-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.price-label {
    color: #6b7280;
}

.price-value {
    color: #111827;
    font-weight: 500;
}

.total-row {
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    font-weight: 600;
}

.total-row .price-label {
    color: #111827;
}

.total-row .price-value {
    color: #6366f1;
    font-size: 1.2rem;
    font-weight: 700;
}

.discount-row .price-value {
    color: #10b981;
}

.coupon-code {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Coupon Styling - Prevent FOUC */
.coupon-input-container {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.apply-coupon-btn {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.coupon-applied {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    height: 48px;
    box-sizing: border-box;
}

.applied-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-icon {
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.success-text {
    font-weight: 500;
    font-size: 0.9rem;
}

