/* =====================================================================
   VeriKYC - Tasarım Sistemi
   Tema: Güvenilir fintech — derin lacivert + elektrik mavisi vurgu
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg-deep:      #070B18;
    --bg-panel:     #0E1428;
    --bg-panel-2:   #131B36;
    --bg-elev:      #1A2342;
    --line:         #243056;
    --line-soft:    #1B2440;

    --brand:        #0F6FFF;
    --brand-2:      #38BDF8;
    --brand-glow:   rgba(15,111,255,0.35);
    --ok:           #2BD9A0;
    --ok-soft:      rgba(43,217,160,0.12);
    --warn:         #FFB020;
    --danger:       #FF5C6C;

    --text:         #EAF0FF;
    --text-dim:     #9AA8CC;
    --text-faint:   #5E6C92;

    --radius:       18px;
    --radius-sm:    12px;
    --shadow:       0 24px 60px -20px rgba(0,0,0,0.65);
    --shadow-glow:  0 0 0 1px var(--line), 0 20px 50px -24px var(--brand-glow);

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body:    'Manrope', system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(15,111,255,0.18), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(56,189,248,0.10), transparent 55%),
        var(--bg-deep);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    line-height: 1.55;
}

/* grain overlay */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; mix-blend-mode: overlay;
}

a { color: var(--brand-2); text-decoration: none; }

/* ---------------- Layout ---------------- */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}
.center-screen {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

/* ---------------- Brand / header ---------------- */
.brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: grid; place-items: center;
    box-shadow: 0 8px 24px -6px var(--brand-glow);
    position: relative;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand span.dim { color: var(--brand-2); }

/* ---------------- Cards / panels ---------------- */
.panel {
    background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel.glow { box-shadow: var(--shadow-glow); }

.card-pad { padding: 30px; }

.eyebrow {
    text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 11px; font-weight: 700; color: var(--brand-2);
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.lead { color: var(--text-dim); font-size: 16px; }
.muted { color: var(--text-faint); font-size: 13px; }

/* ---------------- Buttons ---------------- */
.btn {
    appearance: none; border: 0; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 14px 22px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #0A57D4);
    box-shadow: 0 12px 30px -10px var(--brand-glow);
    width: 100%;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px var(--brand-glow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost {
    background: transparent; border: 1px solid var(--line);
    box-shadow: none; color: var(--text);
}
.btn.ghost:hover { background: var(--bg-elev); }
.btn.ok { background: linear-gradient(135deg, var(--ok), #1FB386); box-shadow: none; color: #04231A; }

/* ---------------- Inputs ---------------- */
label.field { display: block; margin-bottom: 16px; }
label.field .lbl { display:block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
    width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--font-body);
    color: var(--text); background: var(--bg-deep);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
textarea { resize: vertical; min-height: 90px; }

/* ---------------- QR / device ---------------- */
.qr-box {
    background: #fff; padding: 16px; border-radius: 16px;
    width: 220px; height: 220px; display: grid; place-items: center; margin: 0 auto;
}
.qr-box canvas, .qr-box img { width: 100%; height: 100%; }

/* ---------------- Status stepper ---------------- */
.steps { display: flex; flex-direction: column; gap: 2px; }
.step {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    transition: background .2s ease;
}
.step .dot {
    width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
    display: grid; place-items: center; font-weight: 700; font-size: 13px;
    border: 2px solid var(--line); color: var(--text-faint);
    transition: all .25s ease;
}
.step .txt b { display: block; font-family: var(--font-display); font-size: 15px; }
.step .txt small { color: var(--text-faint); }
.step.active { background: var(--bg-elev); }
.step.active .dot { border-color: var(--brand); color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-glow); }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #04231A; }

/* ---------------- Progress bar ---------------- */
.progress { height: 8px; background: var(--bg-deep); border-radius: 99px; overflow: hidden; border: 1px solid var(--line-soft); }
.progress > i { display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 99px; transition: width .5s cubic-bezier(.4,0,.2,1); }

/* ---------------- Badges ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px;
    border: 1px solid var(--line);
}
.badge.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.warn { color: var(--warn); background: rgba(255,176,32,.12); border-color: transparent; }
.badge.danger { color: var(--danger); background: rgba(255,92,108,.12); border-color: transparent; }

/* ---------------- Doc type chooser ---------------- */
.doc-grid { display: grid; gap: 14px; }
.doc-option {
    display: flex; align-items: center; gap: 16px; text-align: left;
    padding: 18px; border-radius: 14px; cursor: pointer;
    background: var(--bg-panel); border: 1.5px solid var(--line);
    transition: all .18s ease; width: 100%; color: var(--text);
}
.doc-option:hover { border-color: var(--brand); background: var(--bg-elev); transform: translateY(-1px); }
.doc-option .ic {
    width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px;
    background: linear-gradient(135deg, var(--bg-elev), var(--bg-panel-2));
    display: grid; place-items: center; border: 1px solid var(--line);
}
.doc-option .ic svg { width: 26px; height: 26px; stroke: var(--brand-2); }
.doc-option b { font-family: var(--font-display); font-size: 16px; display:block; }
.doc-option small { color: var(--text-faint); }

/* ---------------- Camera ---------------- */
.cam-stage {
    position: relative; width: 100%; aspect-ratio: 3/4; max-width: 380px; margin: 0 auto;
    border-radius: 22px; overflow: hidden; background: #000;
    border: 1px solid var(--line);
}
.cam-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-stage.doc { aspect-ratio: 16/10; max-width: 460px; }
.cam-stage.doc video { transform: none; }
.face-ring {
    position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.face-ring .oval {
    width: 62%; height: 78%; border-radius: 50%;
    border: 3px dashed rgba(255,255,255,.5);
    transition: border-color .3s ease, box-shadow .3s ease;
}
.face-ring.active .oval { border-color: var(--brand-2); border-style: solid; box-shadow: 0 0 40px var(--brand-glow); }
.face-ring.success .oval { border-color: var(--ok); box-shadow: 0 0 50px rgba(43,217,160,.5); }
.cam-hint {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px; text-align: center; font-weight: 600;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.arrow-cue { font-size: 34px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:.4; transform: scale(.9);} 50%{ opacity:1; transform: scale(1.1);} }

.doc-frame { position:absolute; inset: 8%; border:2px solid rgba(255,255,255,.6); border-radius:14px; pointer-events:none; }
.doc-frame::before, .doc-frame::after { content:''; position:absolute; width:26px; height:26px; border:3px solid var(--brand-2); }
.doc-frame::before { top:-2px; left:-2px; border-right:0; border-bottom:0; border-radius:8px 0 0 0; }
.doc-frame::after { bottom:-2px; right:-2px; border-left:0; border-top:0; border-radius:0 0 8px 0; }

/* captured preview */
.shot { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line); display:block; }

/* ---------------- Helpers ---------------- */
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap { gap: 14px; }
.col { flex-direction: column; }
.mt { margin-top: 18px; } .mt-l { margin-top: 30px; }
.mb { margin-bottom: 18px; }
.tac { text-align: center; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px){ .grid-2 { grid-template-columns: 1fr; } }

/* spinner */
.spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.25); border-top-color:#fff; border-radius:50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* fade in */
.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform:none;} }

/* success checkmark */
.big-check { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%;
    background: var(--ok-soft); display: grid; place-items: center; }
.big-check svg { width: 52px; height: 52px; stroke: var(--ok); }
.big-check.draw svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* table */
table.data { width:100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align:left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
table.data th { color: var(--text-faint); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
table.data tr:hover td { background: var(--bg-panel-2); }
