/* ==========================================
   FINMA Reporter - Styles
   Modern, responsive, professional
   ========================================== */

/* CSS Variables */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius: 8px;
    --radius-lg: 16px;
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.login-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 100px 24px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-video {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: block;
    background: black;
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    padding: 100px 0;
    background: var(--bg-alt);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 56px;
    height: 56px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Reviews Section
   ========================================== */
.reviews {
    padding: 100px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 1rem;
    color: var(--text);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Signup / Pricing Section
   ========================================== */
.signup {
    padding: 100px 0;
    background: var(--bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.pricing-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.price {
    margin-bottom: 30px;
}

.price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    vertical-align: top;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-note {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(30, 64, 175, 0.08);
    border-radius: var(--radius);
}

.features {
    text-align: left;
    margin-bottom: 30px;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-form {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
    }
    
    .services-grid,
    .reviews-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .login-btn {
        display: none;
    }
    
    .nav-links #navLoginBtn {
        color: var(--primary);
        font-weight: 600;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .reviews-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .review-card,
    .pricing-card {
        padding: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
}

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

.checkout-page {
    background: var(--bg-alt);
    min-height: 100vh;
}

.checkout-page .navbar {
    background: white;
    border-bottom: 1px solid var(--border);
}

.checkout-steps {
    display: flex;
    gap: 8px;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.checkout-steps .step.active {
    background: var(--primary);
    color: white;
}

.checkout-steps .step.completed {
    color: var(--success);
}

.checkout-steps .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.checkout-steps .step.active .step-number {
    background: white;
    color: var(--primary);
}

.checkout-steps .step.completed .step-number {
    background: var(--success);
    color: white;
}

.checkout-steps .step-label {
    display: none;
}

@media (min-width: 768px) {
    .checkout-steps .step-label {
        display: inline;
    }
}

.checkout-main {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.checkout-container {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.checkout-step {
    animation: fadeIn 0.3s ease;
}

.checkout-step.hidden {
    display: none;
}

.checkout-step h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.step-description {
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Login Prompt in Checkout */
.login-prompt {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-prompt a {
    color: var(--primary);
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.login-prompt.logged-in {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.login-prompt.logged-in a {
    color: #166534;
}

/* Auth Choice in Checkout */
.auth-choice {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .auth-choice {
        flex-direction: column;
    }
}

.auth-option {
    flex: 1;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s;
}

.auth-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.auth-option .auth-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-option h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.auth-option p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-option .btn {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.auth-divider span {
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .auth-divider {
        padding: 16px 0;
    }
}

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

/* Product Selection */
.product-selection {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .product-selection {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    position: relative;
    cursor: pointer;
}

.product-card input {
    position: absolute;
    opacity: 0;
}

.product-content {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
}

.product-card input:checked + .product-content {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.product-card.featured .product-content {
    border-color: var(--primary);
}

.product-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.product-note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-content ul {
    list-style: none;
}

.product-content li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
}

/* Checkout Form */
.checkout-form .form-section {
    margin-bottom: 32px;
}

.checkout-form .form-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-row {
    margin-bottom: 16px;
}

.form-row.two-cols {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

.form-error.hidden {
    display: none;
}

.form-group input.invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

/* Contract */
.contract-container {
    margin-bottom: 32px;
}

.contract-document {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.contract-text h4 {
    font-size: 14px;
    margin: 16px 0 8px;
}

.contract-text p, .contract-text li {
    font-size: 13px;
    color: var(--text-light);
}

.contract-text ul {
    margin-left: 20px;
}

.contract-agreement {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    padding: 20px;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

/* Payment */
.payment-container {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr 1fr;
    }
}

.order-summary {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
}

.order-summary h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row.subtotal {
    color: var(--text-light);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
}

.renewal-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.payment-form h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.stripe-element {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}

.stripe-mock {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stripe-mock input {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.stripe-mock small {
    color: var(--warning);
    font-size: 11px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 13px;
    margin-top: 16px;
}

.secure-badge svg {
    width: 16px;
    height: 16px;
}

/* Checkout Buttons */
.checkout-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

.btn-pay {
    min-width: 250px;
}

.btn-pay .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pay .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Success */
.success-container {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon svg {
    width: 80px;
    height: 80px;
}

.success-container h2 {
    color: var(--success);
    margin-bottom: 16px;
}

.success-details {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-details ol {
    margin-left: 20px;
}

.success-details li {
    padding: 8px 0;
}

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

/* Login Credentials on Success Page */
.login-credentials {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.login-credentials h3 {
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #fcd34d;
}

.credential-row:last-of-type {
    border-bottom: none;
}

.credential-row label {
    font-weight: 500;
    color: var(--text-light);
}

.credential-row code {
    background: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #fcd34d;
}

.credential-note {
    margin-top: 16px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
}

/* Sidebar */
.checkout-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 1024px) {
    .checkout-sidebar {
        display: block;
    }
}

.checkout-sidebar.hidden {
    display: none;
}

.sidebar-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.sidebar-content h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.sidebar-product {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-details {
    padding: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    color: var(--text-light);
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
    border-top: 2px solid var(--primary);
}

.sidebar-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* ==========================================
   PORTAL PAGE STYLES
   ========================================== */

.portal-page {
    background: var(--bg-alt);
    min-height: 100vh;
}

.portal-navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
}

.portal-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.portal-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-company {
    font-size: 14px;
    color: var(--text-light);
    display: none;
}

@media (min-width: 768px) {
    .user-company {
        display: inline;
    }
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
}

.user-btn:hover {
    background: var(--bg-alt);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 100;
}

.user-dropdown.hidden {
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-alt);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout svg {
    color: var(--danger);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

/* Portal Layout */
.portal-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.portal-sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

@media (min-width: 1024px) {
    .portal-sidebar {
        position: sticky;
        transform: none;
    }
}

.portal-sidebar.open {
    transform: translateX(0);
}

.sidebar-nav {
    padding: 16px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.storage-info {
    font-size: 12px;
}

.storage-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-light);
}

.storage-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

/* Portal Main */
.portal-main {
    flex: 1;
    padding: 24px;
    margin-left: 0;
}

@media (min-width: 1024px) {
    .portal-main {
        margin-left: 0;
    }
}

.portal-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.portal-section.active {
    display: block;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
}

/* Upload Area */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.02);
}

.upload-dropzone svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.dropzone-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dropzone-subtext {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.dropzone-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Upload Progress */
.upload-progress {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.upload-progress h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-info {
    flex: 1;
}

.progress-filename {
    font-weight: 500;
    display: block;
}

.progress-size {
    font-size: 12px;
    color: var(--text-muted);
}

.progress-bar {
    width: 100px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.progress-percent {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: var(--text-light);
}

.progress-item.complete .progress-fill {
    background: var(--success);
}

.progress-item.complete .progress-percent {
    color: var(--success);
}

.progress-item.error .progress-fill {
    background: var(--danger);
}

.progress-item.error .progress-percent {
    color: var(--danger);
}

/* Files Table */
.uploaded-files {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

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

.files-header h2 {
    font-size: 18px;
}

.files-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.files-table {
    overflow-x: auto;
}

.files-table table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th,
.files-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.files-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 32px;
    height: 32px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius);
}

.icon-btn:hover {
    background: var(--bg-alt);
    color: var(--danger);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .reports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.report-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.3s;
}

.report-card:hover {
    box-shadow: var(--shadow-lg);
}

.report-icon {
    position: relative;
}

.report-icon svg {
    width: 48px;
    height: 48px;
}

.report-card.generating .report-icon {
    opacity: 0.5;
}

.generating-spinner {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.report-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.report-info p {
    font-size: 14px;
    color: var(--text-light);
}

.report-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.report-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

/* Support */
.support-layout {
    display: grid;
    gap: 32px;
}

@media (min-width: 1024px) {
    .support-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.support-form-container,
.tickets-list-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.support-form-container h2,
.tickets-list-container h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.support-form .form-group {
    margin-bottom: 16px;
}

.support-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tickets List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.ticket-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ticket-id {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.ticket-priority,
.ticket-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.ticket-priority.low {
    background: #f1f5f9;
    color: var(--text-light);
}

.ticket-priority.medium {
    background: #dbeafe;
    color: #1e40af;
}

.ticket-priority.high {
    background: #fef3c7;
    color: #92400e;
}

.ticket-priority.critical {
    background: #fee2e2;
    color: #991b1b;
}

.ticket-status.open {
    background: #dcfce7;
    color: #166534;
}

.ticket-status.resolved {
    background: #dbeafe;
    color: #1e40af;
}

.ticket-status.closed {
    background: #f1f5f9;
    color: var(--text-light);
}

.ticket-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.ticket-preview {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.ticket-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    margin-bottom: 8px;
}

.modal-content > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.btn-full {
    width: 100%;
}

.login-hint {
    text-align: center;
    margin-top: 16px;
}

.modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
}

.modal-footer a {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Empty states */
.reports-empty,
.tickets-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.reports-empty svg,
.tickets-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.reports-empty h3 {
    margin-bottom: 8px;
    color: var(--text);
}

/* Stripe Card Element */
.card-input-container {
    margin-bottom: 24px;
}

.card-input-container label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e293b;
}

.stripe-card-element {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stripe-card-element:focus-within,
.stripe-card-element.StripeElement--focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.stripe-card-element.StripeElement--invalid {
    border-color: #dc2626;
}

.card-errors {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.payment-info {
    margin-bottom: 16px;
}

.payment-info .payment-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-info .payment-methods li {
    padding: 4px 0;
    color: #64748b;
    font-size: 14px;
}

/* Auth Navigation Button */
.auth-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
}

.auth-nav-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.auth-nav-btn.logged-in {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary);
}

.auth-nav-btn .user-initials {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Auth Dropdown */
.auth-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}

.auth-nav-btn.open .auth-dropdown {
    display: block;
}

.auth-dropdown-header {
    padding: 12px 16px;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s;
}

.auth-dropdown-item:hover {
    background: #f1f5f9;
}

.auth-dropdown-item.logout-btn {
    color: #dc2626;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================
   Login Modal - Style like Support Portal
   ========================================== */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

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

.login-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.login-modal-close:hover {
    background: #f3f4f6;
}

.login-modal-title {
    text-align: center;
    margin-bottom: 2rem;
}

.login-modal-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.login-modal-title p {
    color: #6b7280;
}

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

.login-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.login-modal .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.login-modal .form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-modal .btn-login {
    width: 100%;
    margin-top: 1rem;
}

.login-modal .forgot-password {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.login-modal .login-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
}

.login-modal .login-error.visible,
.login-modal .login-error[style*="block"] {
    display: block;
}

.login-modal .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
