:root {
    /* Premium Intelligence Palette */
    --primary-blue: #0A192F;
    --bg-white: #FFFFFF;
    --bg-soft-gray: #F8FAFC;
    --accent-blue: #3A7BFF;
    --tech-accent: #0FB9B1;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --success-green: #10B981;
    --error-red: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-soft-gray);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(15, 185, 177, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 185, 177, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.bg-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 35vw;
    font-weight: 900;
    color: var(--primary-blue);
    opacity: 0.015; /* Extremely subtle */
    z-index: -1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Enterprise Header ──────────────────────────────────────────────── */
.ent-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-text span {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-nav {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-nav:hover {
    color: var(--primary-blue);
    background-color: rgba(58, 123, 255, 0.08);
    border-color: rgba(58, 123, 255, 0.2);
}

/* ── Hero Section ───────────────────────────────────────────────────── */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 48px;
    font-weight: 850;
    color: var(--primary-blue);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 450;
}

/* ── Features Section ───────────────────────────────────────────────── */
.features-section {
    padding: 0 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 31, 59, 0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Workflow Section ───────────────────────────────────────────────── */
.workflow-section {
    background-color: var(--bg-white);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 48px;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--bg-white);
    padding: 0 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px rgba(58, 123, 255, 0.1);
}

.step-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.step-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.workflow-connector {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin-top: 24px;
    z-index: 1;
}

.section-divider {
    height: 60px;
}

/* ── Application Core Updates ───────────────────────────────────────── */
.app-main {
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.card, .app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(11, 31, 59, 0.1);
    border-color: rgba(58, 123, 255, 0.3);
}

.card-header {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--bg-soft-gray);
    padding-bottom: 16px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.step-badge {
    background: rgba(58, 123, 255, 0.1);
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    border: none;
    padding: 0;
}

/* ── Form Type Selector Updates ─────────────────────────────────────── */
.form-type-selector label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-type-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-muted);
}

.form-type-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(58, 123, 255, 0.04);
    color: var(--accent-blue);
}

.form-type-btn.active {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(58, 123, 255, 0.25);
}

/* ── Upload Area ────────────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--accent-blue);
    background: rgba(58, 123, 255, 0.02);
}

.upload-icon {
    margin-bottom: 16px;
}

#preview {
    display: block;
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ── Confidence Banners ─────────────────────────────────────────────── */
.confidence-banner {
    border: 1px solid var(--border-color);
    background: #f8fafc;
}

.confidence-banner-label {
    color: var(--text-muted);
}

.confidence-banner-value {
    color: var(--primary-blue);
}

.confidence-banner-bar-wrap {
    background: #e2e8f0;
}

.info-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(58, 123, 255, 0.05);
    border: 1px solid rgba(58, 123, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--primary-blue);
    font-size: 14px;
    margin-bottom: 24px;
}

.info-alert svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* ── Inputs & Form Group ────────────────────────────────────────────── */
.form-group label {
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    color: var(--text-main);
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--bg-white);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(58, 123, 255, 0.15);
}

/* ── Base Button Styles (Enterprise) ────────────────────────────────── */
button {
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #08162A;
    box-shadow: 0 4px 12px rgba(11, 31, 59, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-extract {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    background-color: var(--accent-blue);
}

.btn-extract:hover {
    background-color: #2F65D6;
    box-shadow: 0 6px 16px rgba(58, 123, 255, 0.25);
}

.btn-upload {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 6px;
    padding: 8px 24px;
}

.btn-upload:hover {
    background-color: rgba(58, 123, 255, 0.05);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: none;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-success {
    background-color: var(--success-green);
    border-radius: 8px;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #148E41;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.btn-success:active, .btn-secondary:active, .btn-danger:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 28px;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    color: var(--primary-blue);
}

/* ─── Status Messages ────────────────────────────────────────────────────────── */

#status-message {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
}

#status-message.success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

#status-message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* ─── Records Table ──────────────────────────────────────────────────────────── */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

table th {
    background-color: #1e40af;
    color: white;
    padding: 10px 14px;
    text-align: left;
}

table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}

table tr:nth-child(even) {
    background-color: #f8fafc;
}

table tr:hover {
    background-color: #eff6ff;
}

#records-table-container {
    overflow-x: auto;
}

/* ─── Header Flex Layout ─────────────────────────────────────────────────────── */

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.header-text {
    text-align: left;
}

/* ─── Login Page – Matched to Index Design System ────────────────────────────── */

/* Body: same #f0f4f8 background as the index page */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f4f8;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Animated blobs — accent colors from the index palette (#1e40af, #3b82f6, #1d4ed8) */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    animation: blobFloat 9s ease-in-out infinite alternate;
}

.blob-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #1e40af 0%, #3b82f6 70%, transparent 100%);
    top: -160px;
    left: -140px;
    animation-duration: 10s;
}

.blob-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #1d4ed8 0%, #3b82f6 70%, transparent 100%);
    bottom: -120px;
    right: -100px;
    animation-duration: 12s;
    animation-delay: -4s;
}

.blob-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #2563eb 0%, #bfdbfe 80%, transparent 100%);
    top: 40%;
    left: 58%;
    animation-duration: 14s;
    animation-delay: -7s;
    opacity: 0.1;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(28px, 36px) scale(1.07); }
}

/* Wrapper */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 24px 16px;
}

/* Brand strip */
.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.login-brand-icon {
    width: 42px;
    height: 42px;
    background-color: #1e40af;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
}

/* ─── Card — identical to .card on index page ─────────────────────────────────── */
/* index .card: white, border-radius 10px, padding 30px, box-shadow 0 2px 8px rgba(0,0,0,0.08) */

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Card header — matches .card h2 style: color #1e40af, border-bottom 2px solid #dbeafe */
.login-card-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #dbeafe;
}

.login-card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
}

.login-card-header p {
    font-size: 15px;
    color: #64748b;
}

/* ─── Alert — reuses #status-message.error style from index ──────────────────── */
/* index: bg #fee2e2, color #dc2626, border 1px solid #fca5a5, border-radius 8px */

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.login-alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Fields — matches .form-group on index page ─────────────────────────────── */

.login-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/* Label: index uses 13px bold #475569 uppercase letter-spacing 0.5px */
.login-field label {
    font-size: 13px;
    font-weight: bold;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input wrap for icon positioning */
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

/* Input — index: padding 10px 14px, border 1px solid #cbd5e1, border-radius 6px,
   font-size 15px, color #1e293b, transition border-color+box-shadow */
.login-input-wrap input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', Arial, sans-serif;
    color: #1e293b;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* Focus — index: border-color #3b82f6, box-shadow 0 0 0 3px rgba(59,130,246,0.1) */
.login-input-wrap input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Password toggle */
.login-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s;
}

.login-toggle-pw:hover {
    color: #475569;
}

/* ─── Sign In button — identical to .btn-primary on index page ───────────────── */
/* index .btn-primary: bg #1e40af, hover #1d3a9e, border-radius 6px,
   padding 12px 28px, font-size 15px, width 100%, margin-top 10px */

.login-btn {
    background-color: #1e40af;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', Arial, sans-serif;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #1d3a9e;
}

.login-btn:active {
    background-color: #1e3a8a;
}

.login-btn-spinner {
    display: inline-flex;
    align-items: center;
}

.spin {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.login-footer {
    margin-top: 28px;
    font-size: 12px;
    color: #475569;
    text-align: center;
}

/* Legacy selectors kept for fallback */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    margin: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    color: #1e40af;
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.login-header p {
    color: #64748b;
    font-size: 15px;
}

/* ─── Error Pages (404, 500) ─────────────────────────────────────────────────── */

.error-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f4f8;
}

.error-page-card {
    max-width: 480px;
    width: 100%;
    margin: 20px;
    text-align: center;
    padding: 48px 40px;
}

.error-page-code {
    font-size: 72px;
    font-weight: 700;
    color: #1e40af;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.error-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.error-page-msg {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ─── Footer Logout Link ─────────────────────────────────────────────────────── */

.page-footer {
    text-align: center;
    padding: 24px 20px 32px;
}

.footer-logout {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-logout:hover {
    color: #475569;
}

/* ── Trust Section ──────────────────────────────────────────────────── */
.trust-section {
    background-color: var(--primary-blue);
    padding: 40px 0;
    color: var(--bg-white);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--tech-accent);
}

/* ── Enterprise Footer ──────────────────────────────────────────────── */
.ent-footer {
    background-color: #051020; /* Darker than primary for deep contrast */
    padding: 40px 0;
    color: var(--bg-white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--bg-soft-gray);
}

.logo-icon.small {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.security-notice {
    color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer-link {
    color: var(--bg-soft-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.footer-socials a:hover {
    color: var(--primary-blue);
}

/* ── NEW VERIFY CARD DESIGN ────────────────────────────────────────── */
.verify-card {
    background: #ffffff;
    border: 0.5px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.verify-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.verify-header-left .verify-form-type {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 4px;
}

.verify-header-left h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.ocr-complete-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EAF3DE;
    color: #3B6D11;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.ocr-complete-badge .dot {
    width: 6px;
    height: 6px;
    background-color: #3B6D11;
    border-radius: 50%;
}

.verify-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid #E0E0E0;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.verify-footer-left .muted-text {
    font-size: 12px;
    color: #888888;
}

.verify-footer .action-buttons {
    display: flex;
    gap: 12px;
}

.btn-discard {
    background: transparent;
    border: 0.5px solid #cccccc;
    color: #888888;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-discard:hover {
    background: #f5f5f5;
    color: #333333;
}

.btn-commit {
    background: #1a1a1a;
    border: 0.5px solid #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-commit:hover {
    background: #333333;
}

/* Form Grid */
.verify-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
    column-gap: 12px;
}

.verify-form-group {
    display: flex;
    flex-direction: column;
}

.verify-form-group.full-width {
    grid-column: 1 / -1;
}

.verify-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.verify-form-label-row label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888888;
    margin: 0;
}

.verify-conf-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 20px;
}

.verify-input {
    background-color: #F5F5F3;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #333333;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}


/* ── Dashboard Insights (Phase 2) ─────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.forms { background: #e0f2fe; color: #0369a1; }
.stat-icon.total { background: #f0fdf4; color: #15803d; }
.stat-icon.users { background: #fefce8; color: #a16207; }

.stat-content h3 {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.stat-content p {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.mb-5 { margin-bottom: 3rem !important; }
