/* ── ID Protect – Premium Design System ──────────── */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(108, 99, 255, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 0 40px rgba(108, 99, 255, 0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────── */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ───────────────────────────────────────── */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

nav .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

nav .logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav .logo span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav .nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav .nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Language picker ───────────────────────────── */

.lang-picker {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-flag {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 6px;
    opacity: 0.4;
    transition: var(--transition);
    filter: grayscale(0.3);
}

.lang-flag:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

.lang-flag.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Hamburger (mobile) ────────────────────────── */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    nav .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
    }
    nav .nav-links.open {
        display: flex;
    }
}

/* ── Hero ──────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero .badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.12);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-accent);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

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

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ── Buttons ───────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-lg {
    font-size: 18px;
    padding: 18px 44px;
    border-radius: 14px;
}

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

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.06);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

/* ── Cards ─────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-accent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 48px 0;
}

.card .icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ── ID Mock / Example ─────────────────────────── */

.id-mock {
    background: linear-gradient(135deg, #1e1e4a, #2a2a5e);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 40px;
    margin: 40px auto;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.id-mock::after {
    content: 'This ID card is only valid for ODIDO, permission is granted to use until 26-02-2026';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 14px;
    font-weight: 700;
    color: rgba(108, 99, 255, 0.25);
    white-space: nowrap;
    pointer-events: none;
    width: 200%;
    text-align: center;
    line-height: 3;
    /* Repeat */
    background: repeating-linear-gradient(
        transparent,
        transparent 40px,
        transparent 40px,
        transparent 80px
    );
}

.id-mock .watermark-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.id-mock .watermark-lines span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(108, 99, 255, 0.2);
    white-space: nowrap;
    transform: rotate(-30deg);
    line-height: 2.8;
    letter-spacing: 2px;
}

.id-mock-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.id-mock-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a4a8a, #6a6aaa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.id-mock-info {
    position: relative;
    z-index: 1;
}

.id-mock-info h4 {
    font-size: 16px;
    font-weight: 700;
}

.id-mock-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.id-mock-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.id-mock-fields .field {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 14px;
}

.id-mock-fields .field label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.id-mock-fields .field span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

/* ── Leak alert ────────────────────────────────── */

.alert-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin: 40px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.alert-banner .alert-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.alert-banner h3 {
    font-size: 16px;
    color: #fca5a5;
    margin-bottom: 6px;
}

.alert-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Form styles ───────────────────────────────── */

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

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

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-group input::file-selector-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-right: 12px;
    transition: var(--transition);
}

.form-group input::file-selector-button:hover {
    background: var(--accent-light);
}

/* ── Checkbox ──────────────────────────────────── */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0;
}

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

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

.checkbox-group a {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ── Section titles ────────────────────────────── */

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ── Steps ─────────────────────────────────────── */

.steps {
    display: flex;
    gap: 20px;
    margin: 48px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 24px;
}

.step .step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.step h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

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

/* ── Payment status page ───────────────────────── */

.status-container {
    text-align: center;
    padding: 80px 24px;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.status-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

/* ── Footer ────────────────────────────────────── */

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ── Info pages (why-watermark, FAQ, etc.) ─────── */

.prose {
    padding: 60px 0;
}

.prose h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.prose h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.prose h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
}

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

.prose ul, .prose ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.prose a {
    color: var(--accent-light);
    text-decoration: underline;
}

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

/* ── FAQ accordion ─────────────────────────────── */

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--accent);
}

.faq-item .faq-answer {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Photo preview ─────────────────────────────── */

.photo-preview {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.photo-preview .preview-item {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.photo-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Date confirmation modal ───────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.modal p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ── Error page ────────────────────────────────── */

.error-container {
    text-align: center;
    padding: 80px 24px;
}

.error-container .error-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

/* ── Utilities ─────────────────────────────────── */

.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* ── Fullscreen loading spinner overlay ───────── */

.spinner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.spinner-overlay.active {
    display: flex;
}

.spinner-overlay .spinner-ring {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(108, 99, 255, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.spinner-overlay .spinner-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
}

