/* ============================================
   SaakshyaHash — Design System
   Section 63 BSA Digital Certification Platform
   by LLM Advocates
   Minimalist Black & White Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
    /* Pure Black & White Minimalist Base */
    --black: #000000;
    --white: #ffffff;

    /* Primary palette — mapped to high-contrast monochrome */
    --primary-900: #080808;
    --primary-800: #101010;
    --primary-700: #181818;
    --primary-600: #222222;
    --primary-500: #ffffff;
    --primary-400: #f0f0f0;
    --primary-300: #d4d4d4;
    --primary-200: #a3a3a3;
    --primary-100: #525252;

    /* Accent — Pure High-Contrast White */
    --gold-500: #ffffff;
    --gold-400: #f5f5f5;
    --gold-300: #e5e5e5;
    --gold-200: #d4d4d4;
    --gold-100: #1a1a1a;

    /* Semantic States (Monochrome Minimalist) */
    --success-500: #ffffff;
    --success-400: #f5f5f5;
    --success-100: #1c1c1c;
    --error-500: #ffffff;
    --error-400: #e5e5e5;
    --error-100: #1c1c1c;
    --warning-500: #ffffff;
    --warning-400: #d4d4d4;
    --warning-100: #1c1c1c;

    /* Neutrals */
    --neutral-950: #000000;
    --neutral-900: #0a0a0a;
    --neutral-850: #111111;
    --neutral-800: #181818;
    --neutral-700: #262626;
    --neutral-600: #383838;
    --neutral-500: #525252;
    --neutral-400: #737373;
    --neutral-300: #a3a3a3;
    --neutral-200: #d4d4d4;
    --neutral-100: #e5e5e5;
    --neutral-50:  #ffffff;

    /* Surfaces */
    --bg-body: #000000;
    --bg-card: #0c0c0c;
    --bg-card-hover: #121212;
    --bg-input: #060606;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Borders */
    --border-subtle: #1a1a1a;
    --border-default: #282828;
    --border-focus: #ffffff;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;
    --text-accent: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.9);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.95);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 1);
    --shadow-glow: 0 0 0 1px #3a3a3a;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Subtle Architectural Grid Pattern (Monochrome Minimalist) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 65%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: -1;
}

a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #444444;
    text-underline-offset: 4px;
    transition: all var(--transition-fast);
}
a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

.text-accent { color: var(--text-accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm { max-width: 720px; }
.container-md { max-width: 900px; }

/* ── Navigation ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xs) 0;
}

.navbar .container {
    max-width: 1380px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.navbar-brand span {
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    color: #a3a3a3;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.navbar-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.navbar-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px 10px;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #0a0a0a;
        border-bottom: 1px solid var(--border-default);
        padding: var(--space-md);
        gap: var(--space-xs);
    }
    .navbar-links.open { display: flex; }
    .navbar-links a { width: 100%; }
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.card:hover {
    border-color: #3e3e3e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.95);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    flex-shrink: 0;
    background: #141414;
    border: 1px solid #282828;
    color: #ffffff;
}

.card-icon-blue,
.card-icon-gold,
.card-icon-green {
    background: #141414;
    border: 1px solid #282828;
    color: #ffffff;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

/* High-Contrast Stark White Primary Button */
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
    background: #e5e5e5;
    color: #000000;
    border-color: #e5e5e5;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Minimalist Secondary / Dark Button */
.btn-gold {
    background: #181818;
    color: #ffffff;
    border: 1px solid #333333;
    box-shadow: none;
}
.btn-gold:hover {
    background: #242424;
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--border-default);
}
.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-success {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}
.btn-success:hover {
    background: #e5e5e5;
    color: #000000;
}

.btn-danger {
    background: #141414;
    color: #ffffff;
    border: 1px solid #3a3a3a;
}
.btn-danger:hover {
    background: #222222;
    border-color: #ffffff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn-block { width: 100%; }

.btn:disabled, .btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Form Elements ── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: #ffffff;
    margin-left: 2px;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: #555555;
}

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

.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.form-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #0a0a0a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.form-checkbox-label:hover {
    border-color: var(--border-default);
    color: var(--text-primary);
}

.form-checkbox-label input[type="checkbox"]:checked + span,
.form-checkbox-label input[type="radio"]:checked + span {
    color: #ffffff;
    font-weight: 600;
}

.form-checkbox-label:has(input:checked) {
    border-color: #ffffff;
    background: #181818;
    color: #ffffff;
}

.form-error {
    color: #d4d4d4;
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
}

/* ── File Upload Zone ── */
.upload-zone {
    border: 2px dashed #282828;
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    background: #080808;
    transition: all var(--transition-base);
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone.dragover {
    transform: scale(1.005);
}

.upload-zone-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.7;
    filter: grayscale(100%);
}

.upload-zone-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.upload-zone-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Progress Bar ── */
.progress-bar {
    height: 6px;
    background: #181818;
    border: 1px solid #282828;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.progress-bar-fill {
    height: 100%;
    background: #ffffff;
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Hash Display ── */
.hash-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    background: #080808;
    border: 1px solid #282828;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #ffffff;
    word-break: break-all;
}

.hash-display .copy-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #181818;
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.hash-display .copy-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ── Status Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #141414;
    border: 1px solid #2e2e2e;
    color: #ffffff;
}

.badge-success {
    background: #141414;
    border-color: #404040;
    color: #ffffff;
}

.badge-error {
    background: #141414;
    border-color: #555555;
    color: #ffffff;
}

.badge-warning {
    background: #141414;
    border-color: #404040;
    color: #d4d4d4;
}

.badge-info {
    background: #141414;
    border-color: #404040;
    color: #ffffff;
}

/* ── Alerts / Banners ── */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid #ffffff;
    background: #0d0d0d;
    border-right: 1px solid #242424;
    border-top: 1px solid #242424;
    border-bottom: 1px solid #242424;
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
    color: #ffffff;
}

.alert-info,
.alert-success,
.alert-warning,
.alert-error {
    background: #0d0d0d;
    color: #ffffff;
}
.alert-info { border-left-color: #ffffff; }
.alert-success { border-left-color: #e5e5e5; }
.alert-warning { border-left-color: #a3a3a3; }
.alert-error { border-left-color: #ffffff; }

/* ── Consent Banner ── */
.consent-banner {
    background: #0c0c0c;
    border: 1px solid #282828;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.consent-banner h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: #ffffff;
}

.consent-banner p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.consent-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ── Match/Mismatch Result ── */
.result-match {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: #0c0c0c;
}

.result-match.match {
    background: #0c0c0c;
    border: 1px solid #3a3a3a;
}

.result-match.mismatch {
    background: #0c0c0c;
    border: 1px solid #555555;
}

.result-match .result-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    filter: grayscale(100%);
}

.result-match .result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.result-match.match .result-title { color: #ffffff; }
.result-match.mismatch .result-title { color: #d4d4d4; }

/* ── Tables ── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

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

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.875rem;
}

th {
    background: #0e0e0e;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    border-bottom: 1px solid #222222;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Hero Section ── */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
    letter-spacing: -0.03em;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero .legal-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #121212;
    border: 1px solid #282828;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
}

/* ── Footer ── */
.footer {
    margin-top: auto;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    background: #000000;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-brand img {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

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

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Page Header ── */
.page-header {
    padding: var(--space-2xl) 0 var(--space-xl);
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* ── Utility Classes ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
    .card { padding: var(--space-lg); }
}

/* ── Loading Spinner ── */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #262626;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Custom Scrollbars ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #242424;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #383838;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* ── Certificate Watermark (for PDF) ── */
.cert-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 6rem;
    color: rgba(0, 0, 0, 0.03);
    font-weight: 800;
    pointer-events: none;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   Folder-Based Certification — Styles
   ══════════════════════════════════════════════════════ */

/* ── Tab Switcher ── */
.folder-tab-switcher {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--bg-card);
}

.folder-tab-btn {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.folder-tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.folder-tab-btn.active {
    background: var(--primary-500);
    color: var(--black);
}

/* ── Filter Bar ── */
.folder-filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.folder-filter-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.folder-filter-toggle input[type="checkbox"] {
    width: 36px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--neutral-700);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.folder-filter-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.folder-filter-toggle input[type="checkbox"]:checked {
    background: var(--primary-500);
}

.folder-filter-toggle input[type="checkbox"]:checked::after {
    left: 18px;
    background: var(--black);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Stats Grid ── */
.folder-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (max-width: 992px) {
    .folder-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-card-master {
    grid-column: 1 / -1;
    background: var(--neutral-900);
    border-color: var(--border-default);
}

.stat-card-highlight {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 1px var(--primary-500), 0 0 20px rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-hash {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    word-break: break-all;
    line-height: 1.6;
}

/* ── Folder Actions ── */
.folder-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ── File Table ── */
.folder-file-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.folder-file-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.folder-file-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.folder-file-table th {
    background: var(--neutral-800);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}

.folder-file-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.folder-file-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.01);
}

.folder-file-table tr:hover td {
    background: var(--bg-card-hover);
}

.file-sno {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.file-path {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.file-size {
    text-align: right;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.file-hash {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    word-break: break-all;
}

.hash-pending {
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-sans);
}

.hash-value {
    color: var(--text-primary);
}

.hash-error {
    color: var(--error-500);
    font-family: var(--font-sans);
}

/* ── Excluded Files Panel ── */
.excluded-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.excluded-panel h5 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.excluded-list {
    max-height: 150px;
    overflow-y: auto;
}

.excluded-file {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 2px 0;
}

/* ── Verification Panel ── */
.verify-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.verify-panel h4 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.verify-result {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
}

.verify-match {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #4ade80;
}

.verify-mismatch {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #f87171;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .folder-stats-grid {
        grid-template-columns: 1fr;
    }

    .folder-tab-switcher {
        flex-direction: column;
    }

    .folder-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-path {
        max-width: 150px;
    }
}

/* ── What We Offer Section ── */
.offer-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.offer-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.offer-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.offer-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto;
}

.offer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-md) 0 var(--space-xl);
}

.offer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

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

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
}

.offer-card-icon {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.offer-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.offer-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.offer-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.offer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.offer-table th, .offer-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.offer-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    color: var(--text-primary);
}

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

.offer-auth-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 58, 138, 0.18));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

