/* UK Statement Converter - Main Stylesheet */

/* =====================
   CSS VARIABLES
   ===================== */
:root {
    --navy: #0a1628;
    --navy-light: #142238;
    --royal: #1e3a5f;
    --accent: #00d4aa;
    --accent-hover: #00eabc;
    --accent-muted: rgba(0, 212, 170, 0.15);
    --gold: #d4a000;
    --text: #e8edf5;
    --text-muted: #8a9bb8;
    --bg-card: rgba(30, 58, 95, 0.4);
    --bg-elevated: rgba(30, 58, 95, 0.6);
    --border: rgba(138, 155, 184, 0.2);
    --error: #ff6b6b;
    --warning: #ffa94d;
    --success: #51cf66;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light Theme - DaisyUI Fantasy inspired */
[data-theme="light"] {
    --navy: #ffffff;
    --navy-light: #faf7f5;
    --royal: #f0e6e6;
    --accent: #6e0b75;
    --accent-hover: #570960;
    --accent-muted: rgba(110, 11, 117, 0.12);
    --gold: #f8860d;
    --text: #1f2937;
    --text-muted: #4b5563;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --border: rgba(31, 41, 55, 0.15);
}

[data-theme="light"] .bg-pattern {
    opacity: 0.15;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(110, 11, 117, 0.2), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 126, 189, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(248, 134, 13, 0.12), transparent);
}

[data-theme="light"] .theme-switcher {
    background: #faf7f5;
    border: 1px solid rgba(31, 41, 55, 0.2);
}

[data-theme="light"] .theme-btn.active {
    background: #6e0b75;
    color: #ffffff;
}

/* Light theme navigation - subtle, no colored borders */
[data-theme="light"] nav.nav-public {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}

[data-theme="light"] nav.nav-app {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}

[data-theme="light"] nav.nav-minimal {
    background: transparent;
}

[data-theme="light"] nav.nav-legal {
    background: transparent;
}

/* Light theme cards and inputs */
[data-theme="light"] .auth-card,
[data-theme="light"] .settings-card,
[data-theme="light"] .document-card {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .upload-zone {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.25);
}

[data-theme="light"] .form-group input:focus {
    border-color: #6e0b75;
    box-shadow: 0 0 0 3px rgba(110, 11, 117, 0.15);
}

/* Light theme buttons */
[data-theme="light"] .btn-secondary {
    background: #faf7f5;
    color: #1f2937;
    border: 1px solid rgba(31, 41, 55, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: #f0e6e6;
    border-color: #6e0b75;
}

[data-theme="light"] .btn-google {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.2);
    color: #1f2937;
}

[data-theme="light"] .btn-primary {
    background: #6e0b75;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    background: #570960;
    box-shadow: 0 8px 30px rgba(110, 11, 117, 0.35);
}

/* Light theme logo */
[data-theme="light"] .logo-icon {
    background: linear-gradient(135deg, #6e0b75, #f8860d);
    color: #ffffff;
}

/* Light theme upload button */
[data-theme="light"] .upload-btn {
    background: #6e0b75;
    color: #ffffff;
}

[data-theme="light"] .upload-btn:hover {
    background: #570960;
    box-shadow: 0 8px 30px rgba(110, 11, 117, 0.35);
}

/* Light theme highlight text - gradient preserved */
[data-theme="light"] .highlight,
[data-theme="light"] .hero h1 .highlight,
[data-theme="light"] .hero-upload h1 .highlight,
[data-theme="light"] .auth-benefits h1 .highlight {
    background: linear-gradient(135deg, #6e0b75, #f8860d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light theme step numbers */
[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #6e0b75, #f8860d);
    color: #ffffff;
}

/* Light theme bank cards */
[data-theme="light"] .bank-card {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.12);
}

[data-theme="light"] .bank-card:hover {
    border-color: #6e0b75;
    box-shadow: 0 12px 40px rgba(110, 11, 117, 0.15);
}

[data-theme="light"] .bank-logo {
    background: linear-gradient(135deg, #6e0b75, #007ebd);
    color: #ffffff;
}

/* Light theme pricing cards */
[data-theme="light"] .price-card {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.12);
}

[data-theme="light"] .price-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .price-card.popular {
    border: 2px solid #6e0b75;
    background: linear-gradient(180deg, rgba(110, 11, 117, 0.05) 0%, #ffffff 100%);
}

[data-theme="light"] .popular-badge {
    background: #6e0b75;
    color: #ffffff;
}

[data-theme="light"] .features .check {
    color: #6e0b75;
}

/* Light theme FAQ */
[data-theme="light"] .faq-item {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.1);
}

[data-theme="light"] .faq-item h4 {
    color: #1f2937;
}

/* Light theme nav links */
[data-theme="light"] .nav-link {
    color: #1f2937;
}

[data-theme="light"] .nav-link:hover {
    color: #6e0b75;
}

/* =====================
   BASE STYLES
   ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(30, 58, 95, 0.5), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(212, 160, 0, 0.08), transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* =====================
   NAVIGATION
   ===================== */

/* Public Navigation (fixed) */
nav.nav-public {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav.nav-public .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* App Navigation (sticky) */
nav.nav-app {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

/* Minimal Navigation (auth pages) */
nav.nav-minimal {
    padding: 24px;
    background: transparent;
    display: flex;
    justify-content: center;
}

/* Legal Navigation */
nav.nav-legal {
    padding: 20px 24px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

nav.nav-legal .nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 24px;
    transition: color 0.2s;
}

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

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

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

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Nav Buttons */
.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

/* Usage Badge */
.usage-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.usage-badge .count {
    color: var(--accent);
    font-weight: 600;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    color: var(--text);
}

.user-menu:hover {
    border-color: var(--accent);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--navy);
}

.user-name {
    font-size: 0.9rem;
}

/* =====================
   HAMBURGER MENU
   ===================== */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 110;
}

.hamburger-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation - Active State */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 80px;
    left: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-link {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    background: var(--bg-elevated);
    color: var(--accent);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.mobile-menu-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

.mobile-menu-user .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.mobile-menu-user span {
    font-weight: 600;
    font-size: 1rem;
}

/* Light Theme - Hamburger Menu */
[data-theme="light"] .hamburger-btn {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.2);
}

[data-theme="light"] .hamburger-btn:hover {
    background: #faf7f5;
    border-color: #6e0b75;
}

[data-theme="light"] .hamburger-line {
    background: #1f2937;
}

[data-theme="light"] .hamburger-btn.active .hamburger-line {
    background: #6e0b75;
}

[data-theme="light"] .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .mobile-menu {
    background: #ffffff;
    border-left: 1px solid rgba(31, 41, 55, 0.1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mobile-menu-link {
    color: #1f2937;
}

[data-theme="light"] .mobile-menu-link:hover {
    background: #faf7f5;
    color: #6e0b75;
}

[data-theme="light"] .mobile-menu-divider {
    background: rgba(31, 41, 55, 0.1);
}

[data-theme="light"] .mobile-menu-user span {
    color: #1f2937;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

.btn-icon-settings {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.1rem;
}

.btn-danger {
    background: transparent;
    color: var(--error);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.1);
}

.btn-google {
    background: white;
    color: #333;
}

.btn-google:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* =====================
   FOOTER
   ===================== */

/* Main Footer (Grid Layout) */
footer.footer-main {
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
}

.footer-brand .logo {
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

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

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-column a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 24px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copyright a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-copyright a:hover {
    color: var(--text);
}

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

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--text);
}

/* Legacy footer classes */
.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* Theme Switcher */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(20, 34, 56, 0.8);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    color: var(--text);
    background: rgba(138, 155, 184, 0.1);
}

.theme-btn.active {
    background: var(--royal);
    color: var(--accent);
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =====================
   FORMS
   ===================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

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

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.forgot-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--accent-hover);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terms-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    margin-top: 2px;
}

.terms-checkbox a {
    color: var(--accent);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 16px;
}

/* =====================
   CARDS
   ===================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

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

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

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

@keyframes progress {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

/* =====================
   UTILITIES
   ===================== */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* =====================
   TOAST NOTIFICATIONS
   ===================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    background: var(--royal);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(81, 207, 102, 0.3);
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error {
    border-color: rgba(255, 107, 107, 0.3);
}

/* =====================
   MODAL
   ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal {
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.modal .subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.modal-close {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text);
}

/* =====================
   HOME PAGE - HERO
   ===================== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* =====================
   HOME PAGE - HERO UPLOAD
   ===================== */
.hero-upload {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-upload h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease;
}

.hero-upload h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

/* Upload Box */
.upload-box {
    max-width: 600px;
    margin: 0 auto 48px;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.upload-box:hover,
.upload-box.dragover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-btn {
    background: var(--accent);
    color: var(--navy);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.upload-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.upload-success {
    width: 56px;
    height: 56px;
    background: rgba(81, 207, 102, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 2rem;
    margin-bottom: 8px;
}

.upload-error {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    font-size: 2rem;
    margin-bottom: 8px;
}

.upload-warning {
    width: 56px;
    height: 56px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.upload-success-content {
    gap: 8px;
}

.upload-filename {
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.upload-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.upload-download-buttons {
    display: flex;
    gap: 12px;
    margin: 8px 0 16px;
}

.upload-download-buttons .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.upload-quota {
    padding: 12px 20px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    margin: 8px 0;
}

.upload-quota p {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-hint-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.upload-hint-link:hover {
    text-decoration: underline;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    font-family: var(--font-body);
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--text);
}

.upload-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0 0 4px;
}

.upload-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.trust-item {
    text-align: center;
    padding: 24px;
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.trust-icon.trust-secure {
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent);
}

.trust-icon.trust-institutional {
    background: rgba(212, 160, 0, 0.12);
    color: var(--gold);
}

.trust-icon.trust-accurate {
    background: rgba(81, 207, 102, 0.12);
    color: var(--success);
}

.trust-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.trust-item p a {
    color: var(--accent);
    text-decoration: none;
}

.trust-item p a:hover {
    text-decoration: underline;
}

/* Light theme adjustments */
[data-theme="light"] .upload-box {
    background: #ffffff;
    border: 2px dashed rgba(31, 41, 55, 0.3);
}

[data-theme="light"] .upload-box:hover,
[data-theme="light"] .upload-box.dragover {
    background: #faf7f5;
    border-color: #6e0b75;
}

[data-theme="light"] .trust-icon.trust-secure {
    background: rgba(110, 11, 117, 0.1);
    color: #6e0b75;
}

[data-theme="light"] .trust-icon.trust-institutional {
    background: rgba(248, 134, 13, 0.1);
    color: #f8860d;
}

[data-theme="light"] .trust-icon.trust-accurate {
    background: rgba(0, 126, 189, 0.1);
    color: #007ebd;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-upload {
        padding: 120px 0 60px;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust-item {
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .upload-box {
        padding: 32px 24px;
    }

    .upload-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* =====================
   HOME PAGE - UPLOAD ZONE
   ===================== */
.upload-section {
    padding: 60px 0 100px;
}

.upload-zone {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
}

.upload-zone.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--royal), var(--navy-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.upload-zone h2,
.upload-zone h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.upload-zone p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.upload-formats,
.upload-zone .formats {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.format-tag {
    padding: 6px 12px;
    background: var(--navy);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.free-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* =====================
   HOME PAGE - BANKS
   ===================== */
.banks {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.bank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.bank-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bank-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.bank-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.banks-more {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
}

/* =====================
   HOME PAGE - HOW IT WORKS
   ===================== */
.how-it-works {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =====================
   HOME PAGE - PRICING
   ===================== */
.pricing {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin-bottom: 60px;
}

.billing-toggle span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.billing-toggle span.active {
    color: var(--text);
}

.toggle {
    width: 56px;
    height: 30px;
    background: var(--royal);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle.annual {
    background: var(--accent);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle.annual::after {
    transform: translateX(26px);
}

.save-badge {
    background: var(--gold);
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.price-card.popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.1) 0%, var(--bg-card) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.price-card .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.price {
    margin-bottom: 24px;
}

.price .amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

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

.price .annual-note {
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 4px;
}

.features {
    list-style: none;
    margin-bottom: 32px;
}

.features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

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

.features .check {
    color: var(--accent);
    font-size: 1.1rem;
}

.price-card .btn {
    width: 100%;
    justify-content: center;
}

.overage-info {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.overage-info h4 {
    margin-bottom: 8px;
}

.overage-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.overage-info .rate {
    color: var(--accent);
    font-weight: 600;
}

/* =====================
   HOME PAGE - FREE TIER
   ===================== */
.free-tier {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.free-tier-card {
    background: linear-gradient(135deg, var(--royal), var(--navy-light));
    border-radius: 20px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.free-tier-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 16px;
}

.free-tier-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.free-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.free-tier-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.free-tier-item .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.free-tier-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.free-tier-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =====================
   HOME PAGE - SECURITY
   ===================== */
.security {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

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

.security-item {
    text-align: center;
    padding: 32px;
}

.security-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.security-item h4 {
    margin-bottom: 8px;
}

.security-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================
   HOME PAGE - FAQ
   ===================== */
.faq {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.faq-item h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* =====================
   AUTH PAGES
   ===================== */
body.page-auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-auth main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease;
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 24px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-card p a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-card p a:hover {
    text-decoration: underline;
}

/* Auth Page Trust Indicators */
.auth-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 900px;
    width: 100%;
}

@media (max-width: 900px) {
    .auth-trust-indicators {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .auth-trust-indicators .trust-item-compact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    width: 100%;
    align-items: center;
}

.auth-benefits {
    animation: fadeInUp 0.5s ease;
}

.auth-benefits h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: left;
}

.auth-benefits h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-benefits > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================
   DOCUMENTS PAGE
   ===================== */
.app {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

/* Documents Hero */
.documents-hero {
    text-align: center;
    padding: 40px 0 60px;
}

.documents-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.documents-hero .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
}

.documents-hero .upload-box {
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 40px 32px;
    animation: none;
}

.usage-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.usage-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.usage-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
}

.usage-link:hover {
    text-decoration: underline;
}

/* Partial Processing Banner */
.partial-processing-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 160, 0, 0.1);
    border: 1px solid rgba(212, 160, 0, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gold);
}

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

.banner-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.banner-link:hover {
    text-decoration: underline;
}

.banner-close {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.banner-close:hover {
    color: var(--text);
}

/* Documents Trust Indicators */
.documents-trust {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.trust-indicators-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.trust-item-compact {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-icon-compact {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.trust-item-compact h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.trust-item-compact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.trust-item-compact a {
    color: var(--accent);
    text-decoration: none;
}

.trust-item-compact a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .trust-indicators-compact {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.documents-section {
    margin-bottom: 40px;
}

.documents-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}

.documents-section .section-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

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

.document-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.document-card:hover {
    border-color: rgba(138, 155, 184, 0.4);
    background: rgba(30, 58, 95, 0.5);
}

.doc-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.doc-info {
    min-width: 0;
}

.doc-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-status {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-status.ready {
    background: rgba(81, 207, 102, 0.15);
    color: var(--success);
}

.doc-status.processing {
    background: rgba(255, 169, 77, 0.15);
    color: var(--warning);
    animation: pulse 1.5s infinite;
}

.doc-status.error {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
}

.doc-expires {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    min-width: 80px;
}

.doc-expires .time {
    color: var(--warning);
    font-weight: 500;
}

.doc-actions {
    display: flex;
    gap: 8px;
}

.processing-bar {
    height: 4px;
    background: var(--navy);
    border-radius: 100px;
    margin-top: 8px;
    overflow: hidden;
}

.processing-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 100px;
    animation: progress 2s ease-in-out infinite;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.download-option:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
}

.download-option .icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.download-option .info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.download-option .info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* =====================
   SETTINGS PAGE
   ===================== */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.usage-stat {
    background: var(--navy);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.usage-stat .value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.usage-stat .value.accent {
    color: var(--accent);
}

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

.usage-bar-container {
    margin-bottom: 16px;
}

.usage-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.usage-bar-header .used {
    color: var(--text);
}

.usage-bar-header .limit {
    color: var(--text-muted);
}

.usage-bar {
    height: 10px;
    background: var(--navy);
    border-radius: 100px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 100px;
    transition: width 0.5s ease;
}

.usage-reset {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.15);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.plan-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.plan-detail .label {
    color: var(--text-muted);
}

.plan-detail .value {
    font-weight: 500;
}

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

.team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--navy);
    border-radius: 10px;
}

.team-member-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--royal), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-member-details h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.team-member-details span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.role-badge {
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.role-badge.admin {
    background: rgba(212, 160, 0, 0.15);
    color: var(--gold);
}

.add-member {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.add-member input {
    flex: 1;
    padding: 12px 16px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.add-member input:focus {
    outline: none;
    border-color: var(--accent);
}

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

.api-key-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.api-key-display {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.api-key-display.hidden {
    color: var(--text-muted);
}

.api-key-actions {
    display: flex;
    gap: 8px;
}

.api-note {
    margin-top: 16px;
    padding: 14px;
    background: rgba(212, 160, 0, 0.1);
    border: 1px solid rgba(212, 160, 0, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--gold);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.api-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.api-docs-link:hover {
    text-decoration: underline;
}

.danger-zone {
    border-color: rgba(255, 107, 107, 0.3);
}

.danger-zone .card-header {
    border-bottom-color: rgba(255, 107, 107, 0.2);
}

.danger-zone .card-header h2 {
    color: var(--error);
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.danger-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.danger-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.danger-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =====================
   LEGAL PAGES
   ===================== */
body.page-legal main {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
}

body.page-legal .page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

body.page-legal .page-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 12px;
}

body.page-legal .page-header .updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 40px 0 16px;
    color: var(--accent);
}

.content h3 {
    font-size: 1.1rem;
    margin: 28px 0 12px;
}

.content p {
    margin-bottom: 16px;
    color: var(--text);
}

.content ul,
.content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content li {
    margin-bottom: 10px;
}

.content a {
    color: var(--accent);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.highlight-box.important {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.05);
}

.highlight-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent);
}

.legal-notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    font-size: 0.9rem;
}

.legal-notice p {
    text-transform: uppercase;
    font-weight: 500;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
}

.contact-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.contact-box p {
    margin-bottom: 8px;
}

/* DPA Table */
.dpa-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

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

.dpa-table th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text);
}

.dpa-table tr:last-child td {
    border-bottom: none;
}

/* =====================
   CHANGELOG PAGE
   ===================== */
.changelog-content {
    max-width: 700px;
}

.changelog-entry {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.changelog-entry:last-of-type {
    border-bottom: none;
}

.changelog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.changelog-version {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.changelog-details h3 {
    font-size: 1.2rem;
    margin: 0 0 16px;
}

.changelog-details h4 {
    font-size: 1rem;
    margin: 24px 0 12px;
    color: var(--text);
}

.changelog-details ul {
    margin: 12px 0;
    padding-left: 20px;
}

.changelog-details li {
    margin-bottom: 8px;
}

.changelog-subscribe {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.changelog-subscribe h3 {
    margin: 0 0 8px;
}

.changelog-subscribe p {
    margin: 0;
    color: var(--text-muted);
}

.changelog-subscribe a {
    color: var(--accent);
}

/* =====================
   AFFILIATE PAGE
   ===================== */
body.page-affiliate {
    min-height: 100vh;
}

body.page-affiliate main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
}

.affiliate-hero {
    text-align: center;
    padding: 60px 0 80px;
}

.affiliate-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 20px;
}

.affiliate-hero .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.affiliate-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

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

.affiliate-section {
    padding: 60px 0;
}

.affiliate-section.alternate {
    background: var(--bg-card);
    margin: 0 -24px;
    padding: 60px 48px;
    border-radius: 24px;
}

.affiliate-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.benefit-item {
    text-align: center;
}

.benefit-item .benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.commission-example {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.example-calc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.highlight {
    background: rgba(0, 212, 170, 0.1);
    margin: 12px -24px -24px;
    padding: 16px 24px;
    border-radius: 0 0 16px 16px;
}

.calc-row.highlight .calc-value {
    color: var(--accent);
    font-weight: 700;
}

.calc-label {
    color: var(--text-muted);
}

.calc-value {
    font-weight: 600;
}

.calc-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.terms-list ul {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.terms-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.join-box {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.join-box p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.join-note {
    margin-top: 20px;
    font-size: 0.9rem;
}

.join-note a {
    color: var(--accent);
}

/* =====================
   SECURITY PAGE
   ===================== */
body.page-security {
    min-height: 100vh;
}

body.page-security main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
}

.security-hero {
    text-align: center;
    padding: 60px 0 80px;
}

.security-badge {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 170, 0.1);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
}

.security-hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.security-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.security-content {
    max-width: 900px;
    margin: 0 auto;
}

.security-section {
    padding: 48px 0;
}

.security-section.alternate {
    background: var(--bg-card);
    margin: 0 -48px;
    padding: 48px;
    border-radius: 24px;
}

.security-section h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 32px;
    color: var(--accent);
}

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

.security-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.security-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.data-handling-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.handling-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.handling-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.handling-icon.good {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.handling-text {
    font-size: 0.95rem;
}

.handling-text strong {
    color: var(--text);
}

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

.compliance-item {
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

.compliance-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.compliance-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.incident-list {
    margin: 24px 0;
    padding-left: 24px;
}

.incident-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.security-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin: 48px 0;
}

.security-cta h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.security-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.related-links {
    margin-top: 48px;
}

.related-links h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.related-link {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.link-title {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.link-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =====================
   RESPONSIVE - GLOBAL
   ===================== */
@media (max-width: 900px) {
    .banks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .free-tier-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .auth-container {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .auth-benefits {
        text-align: center;
    }

    .auth-benefits h1 {
        font-size: 2rem;
        text-align: center;
    }

    .benefit-list li {
        justify-content: center;
        text-align: left;
    }

    .affiliate-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .affiliate-hero h1 {
        font-size: 2.2rem;
    }

    .security-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .security-section.alternate {
        margin: 0 -24px;
        padding: 40px 24px;
        border-radius: 0;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .security-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 800px) {
    .document-card {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .doc-expires {
        display: none;
    }

    .doc-status {
        grid-row: 2;
        grid-column: 2;
        justify-self: start;
    }

    .doc-actions {
        grid-row: 1 / 3;
        grid-column: 3;
        flex-direction: column;
    }

    .usage-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }

    .plan-details {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .api-key-container {
        flex-direction: column;
    }

    .api-key-display {
        width: 100%;
    }

    .api-key-actions {
        width: 100%;
    }

    .api-key-actions .btn {
        flex: 1;
    }

    .team-member {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .nav-links-legal {
        display: none;
    }

    /* Show hamburger menu on mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Hide nav-right elements on mobile (for nav-app) */
    .nav-right .nav-link,
    .nav-right .user-menu {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .banks-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
    }

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

    .affiliate-hero h1 {
        font-size: 1.8rem;
    }

    .affiliate-section.alternate {
        margin: 0 -24px;
        padding: 40px 24px;
        border-radius: 0;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .security-highlights {
        grid-template-columns: 1fr;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .security-hero h1 {
        font-size: 1.8rem;
    }

    .security-cta {
        padding: 40px 24px;
    }
}

@media (max-width: 500px) {
    .nav-link {
        display: none;
    }

    .upload-zone {
        padding: 32px 20px;
    }

    .document-card {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
