/* =========================================
   BROKER BRIDGE - loanDepot Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* loanDepot Color Palette */
    --ld-purple: #7B2FFF;
    --ld-purple-dark: #5B1FDF;
    --ld-purple-deeper: #4A19B3;
    --ld-lime: #C4F22B;
    --ld-lime-hover: #D4FF3B;
    --ld-white: #FFFFFF;
    --ld-light-gray: #F5F5F7;
    --ld-text-dark: #1A1A2E;
    --ld-text-gray: #6B7280;
    --ld-text-light: #9CA3AF;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #7B2FFF 0%, #5B1FDF 50%, #4A19B3 100%);
    --gradient-lime: linear-gradient(135deg, #C4F22B 0%, #B8E600 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(123, 47, 255, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(123, 47, 255, 0.25);
    --shadow-lime: 0 4px 20px rgba(196, 242, 43, 0.4);
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ld-purple);
    color: var(--ld-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.hidden { display: none !important; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--ld-purple);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--ld-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ld-white);
}

.logo-text span {
    color: var(--ld-lime);
}

.header-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ld-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   NDA PAGE STYLES
   ========================================= */
#nda-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    background: var(--gradient-purple);
    position: relative;
    overflow: hidden;
}

#nda-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(196, 242, 43, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(5deg); }
}

.nda-container {
    position: relative;
    z-index: 1;
    background: var(--ld-white);
    border-radius: 24px;
    max-width: 720px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.nda-header {
    background: var(--gradient-purple);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nda-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100px;
    background: var(--ld-white);
    border-radius: 50% 50% 0 0;
}

.nda-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nda-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--ld-white);
    margin-bottom: 8px;
}

.nda-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.nda-content {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.nda-terms {
    background: var(--ld-light-gray);
    border-radius: 16px;
    padding: 24px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
    border: 1px solid rgba(123, 47, 255, 0.1);
}

.nda-terms::-webkit-scrollbar {
    width: 8px;
}

.nda-terms::-webkit-scrollbar-track {
    background: transparent;
}

.nda-terms::-webkit-scrollbar-thumb {
    background: var(--ld-purple);
    border-radius: 4px;
    opacity: 0.5;
}

.nda-terms h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ld-purple);
    margin-bottom: 16px;
}

.nda-terms h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-text-dark);
    margin: 16px 0 8px;
}

.nda-terms p, .nda-terms li {
    font-size: 13px;
    color: var(--ld-text-gray);
    margin-bottom: 8px;
}

.nda-terms ul {
    padding-left: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-text-dark);
    margin-bottom: 8px;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--ld-light-gray);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--ld-purple);
    box-shadow: 0 0 0 4px rgba(123, 47, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    background: rgba(123, 47, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(123, 47, 255, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--ld-purple);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--ld-text-dark);
    cursor: pointer;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--ld-lime);
    color: var(--ld-text-dark);
    width: 100%;
    box-shadow: var(--shadow-lime);
}

.btn-primary:hover:not(:disabled) {
    background: var(--ld-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 242, 43, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--ld-purple);
    color: var(--ld-white);
}

.btn-secondary:hover {
    background: var(--ld-purple-dark);
}

/* =========================================
   VERIFICATION PAGE STYLES
   ========================================= */
#verify-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    background: var(--gradient-purple);
    position: relative;
}

.verify-container {
    position: relative;
    z-index: 1;
    background: var(--ld-white);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
}

.verify-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
}

.verify-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ld-text-dark);
    margin-bottom: 12px;
}

.verify-container p {
    color: var(--ld-text-gray);
    margin-bottom: 32px;
}

.verify-email {
    color: var(--ld-purple);
    font-weight: 600;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.code-inputs input {
    width: 56px;
    height: 64px;
    border: 2px solid var(--ld-light-gray);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.code-inputs input:focus {
    outline: none;
    border-color: var(--ld-purple);
    box-shadow: 0 0 0 4px rgba(123, 47, 255, 0.1);
}

.resend-link {
    margin-top: 24px;
    font-size: 14px;
    color: var(--ld-text-gray);
}

.resend-link a {
    color: var(--ld-purple);
    text-decoration: none;
    font-weight: 600;
}

.resend-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: #D1FAE5;
    color: #059669;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* =========================================
   DOCUMENT PAGE STYLES
   ========================================= */
#document-page {
    background: var(--ld-white);
    min-height: 100vh;
}

.doc-hero {
    background: var(--gradient-purple);
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.doc-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--ld-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.doc-badge::before {
    content: '🔒';
}

.doc-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: var(--ld-white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.doc-hero h1 span {
    color: var(--ld-lime);
}

.doc-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 32px;
}

.doc-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.doc-meta-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.doc-meta-item strong {
    color: var(--ld-white);
    display: block;
    font-size: 16px;
}

/* Document Content */
.doc-content {
    max-width: 900px;
    margin: -40px auto 0;
    padding: 0 24px 80px;
    position: relative;
    z-index: 2;
}

.doc-card {
    background: var(--ld-white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 32px;
}

.doc-card-header {
    background: var(--ld-light-gray);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ld-purple);
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-card-body {
    padding: 32px;
}

/* Section Styling */
.section {
    margin-bottom: 48px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ld-purple);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--ld-lime);
    display: inline-block;
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ld-text-dark);
    margin: 32px 0 16px;
}

.section p {
    color: var(--ld-text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.section ul, .section ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.section li {
    color: var(--ld-text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(123, 47, 255, 0.08) 0%, rgba(123, 47, 255, 0.03) 100%);
    border-left: 4px solid var(--ld-purple);
    padding: 24px 28px;
    border-radius: 0 16px 16px 0;
    margin: 24px 0;
}

.highlight-box p {
    color: var(--ld-text-dark);
    font-weight: 500;
    margin: 0;
}

.highlight-box.lime {
    background: linear-gradient(135deg, rgba(196, 242, 43, 0.2) 0%, rgba(196, 242, 43, 0.05) 100%);
    border-left-color: var(--ld-lime);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    background: var(--gradient-purple);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    color: var(--ld-white);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--ld-lime);
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 16px;
    border: 1px solid rgba(123, 47, 255, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--ld-purple);
    color: var(--ld-white);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--ld-text-dark);
}

tbody tr:hover {
    background: rgba(123, 47, 255, 0.03);
}

tbody tr:last-child td {
    border-bottom: none;
}

.growth-positive {
    color: #059669;
    font-weight: 600;
}

.growth-negative {
    color: #DC2626;
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ld-purple);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--ld-lime);
    border-radius: 50%;
    border: 3px solid var(--ld-purple);
}

.timeline-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ld-purple);
    margin-bottom: 8px;
}

.timeline-content {
    color: var(--ld-text-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* Financial Summary Cards */
.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.financial-card {
    background: var(--ld-white);
    border: 2px solid var(--ld-light-gray);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
}

.financial-card:hover {
    border-color: var(--ld-purple);
    box-shadow: var(--shadow-lg);
}

.financial-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ld-text-gray);
    margin-bottom: 8px;
}

.financial-card .value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--ld-purple);
}

.financial-card .value.lime {
    color: #059669;
}

.financial-card .subtitle {
    font-size: 13px;
    color: var(--ld-text-light);
    margin-top: 4px;
}

/* Footer */
.doc-footer {
    background: var(--ld-purple);
    padding: 48px 24px;
    text-align: center;
    color: var(--ld-white);
}

.doc-footer p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.doc-footer .classification {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* =========================================
   LOADING SPINNER
   ========================================= */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--ld-text-dark);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.btn-primary .spinner {
    border-color: var(--ld-text-dark);
    border-top-color: transparent;
}

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

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .header-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    /* NDA Page */
    .nda-header {
        padding: 36px 20px;
    }
    
    .nda-header h1 {
        font-size: 24px;
    }
    
    .nda-content {
        padding: 20px;
    }
    
    .nda-terms {
        max-height: 300px;
        font-size: 13px;
    }
    
    .nda-terms h2 {
        font-size: 18px;
    }
    
    .nda-terms h3 {
        font-size: 14px;
    }
    
    .nda-warning {
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .checkbox-group label {
        font-size: 12px;
        line-height: 1.5;
    }
    
    /* Verification Page */
    .verify-container {
        padding: 32px 20px;
        margin: 0 16px;
    }
    
    .verify-container h1 {
        font-size: 24px;
    }
    
    .code-inputs {
        gap: 8px;
    }
    
    .code-inputs input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }
    
    /* Document Page */
    .doc-hero {
        padding: 100px 20px 60px;
    }
    
    .doc-hero h1 {
        font-size: 28px;
    }
    
    .doc-subtitle {
        font-size: 16px;
    }
    
    .doc-content {
        padding: 0 12px 60px;
    }
    
    .doc-card-header, .doc-card-body {
        padding: 16px;
    }
    
    .doc-card-header h2 {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .financial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .financial-card .value {
        font-size: 28px;
    }
    
    /* Tables - horizontal scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    table {
        font-size: 11px;
        min-width: 500px;
    }
    
    th, td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 24px;
    }
    
    .timeline-title {
        font-size: 14px;
    }
    
    .timeline-content {
        font-size: 13px;
    }
    
    /* Highlight boxes */
    .highlight-box {
        padding: 16px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Header */
    header {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .header-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    /* NDA Page */
    #nda-page {
        padding: 80px 12px 24px;
    }
    
    .nda-container {
        border-radius: 16px;
    }
    
    .nda-header {
        padding: 28px 16px;
    }
    
    .nda-header h1 {
        font-size: 20px;
    }
    
    .nda-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .nda-content {
        padding: 16px;
    }
    
    .nda-terms {
        max-height: 250px;
        padding: 16px;
        font-size: 12px;
    }
    
    .nda-terms h2 {
        font-size: 16px;
    }
    
    .nda-terms h3 {
        font-size: 13px;
    }
    
    .nda-terms ul {
        padding-left: 16px;
    }
    
    .nda-warning {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .checkbox-group {
        gap: 10px;
    }
    
    .checkbox-group label {
        font-size: 11px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    /* Verification Page */
    #verify-page {
        padding: 80px 12px 24px;
    }
    
    .verify-container {
        padding: 28px 16px;
        margin: 0;
        border-radius: 16px;
    }
    
    .verify-icon {
        font-size: 48px;
    }
    
    .verify-container h1 {
        font-size: 22px;
    }
    
    .verify-container > p {
        font-size: 14px;
    }
    
    .code-inputs {
        gap: 6px;
    }
    
    .code-inputs input {
        width: 40px;
        height: 48px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    /* Document Page */
    .doc-hero {
        padding: 80px 16px 40px;
    }
    
    .doc-badge {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .doc-hero h1 {
        font-size: 24px;
    }
    
    .doc-subtitle {
        font-size: 14px;
    }
    
    .doc-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .doc-meta-item {
        font-size: 12px;
    }
    
    .doc-content {
        padding: 0 8px 40px;
    }
    
    .doc-card {
        border-radius: 12px;
    }
    
    .doc-card-header, .doc-card-body {
        padding: 14px;
    }
    
    .doc-card-header h2 {
        font-size: 16px;
    }
    
    .section p, .section li {
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .financial-card {
        padding: 16px;
    }
    
    .financial-card .value {
        font-size: 24px;
    }
    
    /* Tables */
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 8px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: 4px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-title {
        font-size: 13px;
    }
    
    .timeline-content {
        font-size: 12px;
    }
    
    /* Footer */
    .doc-footer {
        padding: 24px 16px;
        font-size: 12px;
    }
    
    /* Highlight boxes */
    .highlight-box {
        padding: 14px;
        font-size: 12px;
    }
}

/* =========================================
   NDA WARNING BOX
   ========================================= */
.nda-warning {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* =========================================
   VIEW TOGGLES
   ========================================= */
.view-toggles {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

.view-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.view-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.view-toggle.active {
    background: var(--ld-lime);
    border-color: var(--ld-lime);
    color: var(--ld-text-dark);
}

/* =========================================
   PDF VIEWER
   ========================================= */
#pdf-viewer-container {
    padding: 40px 20px;
    background: var(--ld-light-gray);
    min-height: 80vh;
}

.pdf-viewer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.pdf-toolbar {
    background: var(--gradient-purple);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.pdf-security {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pdf-frame-container {
    position: relative;
    overflow: hidden;
}

#pdf-viewer {
    width: 100%;
    height: 85vh;
    border: none;
    display: block;
}

/* Watermark overlay */
.pdf-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.watermark-text {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: rgba(123, 47, 255, 0.15);
    transform: rotate(-30deg);
    user-select: none;
    pointer-events: none;
}

/* Warning banner below PDF */
.pdf-warning-banner {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Confidential banner for web view */
.confidential-banner {
    background: linear-gradient(135deg, #7B2FFF 0%, #5B1FDF 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(123, 47, 255, 0.3);
}

.confidential-banner span {
    color: var(--ld-lime);
    font-weight: 700;
}

/* Disable text selection on document content */
#document-page .doc-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Copy warning popup */
.copy-warning-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 24px 40px;
    border-radius: 16px;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: popup-appear 0.3s ease;
}

.copy-warning-popup.fade-out {
    animation: popup-fade 0.5s ease forwards;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popup-fade {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.copy-warning-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.copy-warning-icon {
    font-size: 32px;
}

.copy-warning-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive PDF viewer & toggles */
@media (max-width: 768px) {
    .view-toggles {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
    }
    
    .view-toggle {
        padding: 10px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 130px;
        text-align: center;
    }
    
    #pdf-viewer-container {
        padding: 16px 8px;
    }
    
    .pdf-viewer-wrapper {
        border-radius: 12px;
    }
    
    .pdf-toolbar {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        gap: 8px;
    }
    
    .pdf-title {
        font-size: 13px;
    }
    
    .pdf-security {
        font-size: 10px;
    }
    
    #pdf-viewer {
        height: 65vh;
    }
    
    .pdf-warning-banner {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    /* Confidential banner */
    .confidential-banner {
        font-size: 11px;
        padding: 10px 12px;
        line-height: 1.4;
    }
    
    /* Copy warning popup */
    .copy-warning-popup {
        padding: 16px 24px;
        margin: 0 16px;
        width: calc(100% - 32px);
        max-width: 320px;
    }
    
    .copy-warning-icon {
        font-size: 24px;
    }
    
    .copy-warning-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .view-toggles {
        margin-top: 20px;
    }
    
    .view-toggle {
        padding: 10px 16px;
        font-size: 12px;
        min-width: 120px;
    }
    
    #pdf-viewer {
        height: 55vh;
    }
    
    .pdf-toolbar {
        padding: 10px 12px;
    }
    
    .pdf-title {
        font-size: 12px;
    }
    
    .confidential-banner {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .watermark-text {
        font-size: 10px;
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
    header, #nda-page, #verify-page, #pdf-viewer-container, .view-toggles {
        display: none !important;
    }
    
    .doc-hero {
        background: white !important;
        color: black !important;
        padding: 40px 0 !important;
    }
    
    .doc-hero h1, .doc-subtitle, .doc-meta-item {
        color: black !important;
    }
    
    .doc-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

