/* ==========================================================================
   PROVE ID - SELF KYC ADIM SLAYTLARI (4–9)
   Adım çubuğu, ikonlu özellik kartları, telefon yanında canlı durum paneli
   ========================================================================== */

.kyc-step .body { width: 60%; }
.kyc-step h1 { max-width: 60%; margin-bottom: 18px; }
.kyc-step .note { max-width: 60%; margin-top: 14px; }

/* ---------- Adım çubuğu ---------- */
.krail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 16px;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    animation: k-rise 0.7s var(--px-ease) both;
}

.krail-step {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--px-muted);
    text-align: left;
    flex: none;
    transition: background 0.3s, color 0.3s;
}

.krail-step:hover { background: rgba(86, 119, 255, 0.12); transform: none; }

.krail-dot {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--px-border-2);
    background: rgba(255, 255, 255, 0.03);
    flex: none;
}

.krail-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.krail-txt { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 650; line-height: 1.15; white-space: nowrap; }
.krail-txt small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; opacity: 0.7; }

.krail-step.is-done { color: var(--px-text); }
.krail-step.is-done .krail-dot { color: var(--px-green); border-color: rgba(46, 230, 166, 0.45); background: rgba(46, 230, 166, 0.12); }

.krail-step.is-current { color: var(--px-text); background: rgba(86, 119, 255, 0.14); }
.krail-step.is-current .krail-dot {
    position: relative;
    color: #fff;
    border-color: transparent;
    background: var(--px-grad);
    box-shadow: 0 0 20px rgba(47, 85, 255, 0.6);
}

.krail-step.is-current .krail-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 13px;
    border: 1.5px solid var(--px-blue-2);
    animation: k-ping 2s ease-out infinite;
}

@keyframes k-ping { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

.krail-bar {
    flex: 1;
    min-width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--px-border-2);
    position: relative;
    overflow: hidden;
}

.krail-bar.is-done { background: rgba(46, 230, 166, 0.55); }
.krail-bar:not(.is-done)::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--px-cyan), transparent);
    animation: k-flow 2.4s linear infinite;
}

@keyframes k-flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

@keyframes k-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Özellik kartları ---------- */
.kf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.kf-list { display: grid; gap: 7px; }

.kf {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 550;
    line-height: 1.3;
    color: var(--px-text);
    background: linear-gradient(150deg, rgba(86, 119, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--px-border);
    transition: transform 0.4s var(--px-ease), border-color 0.3s, background 0.3s;
    animation: k-rise 0.6s var(--px-ease) both;
    animation-delay: calc(0.12s + var(--i) * 55ms);
}

.kf:hover { transform: translateX(4px); border-color: rgba(79, 216, 255, 0.45); background: linear-gradient(150deg, rgba(79, 216, 255, 0.14), rgba(255, 255, 255, 0.03)); }

.kf-ico {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--px-cyan);
    background: linear-gradient(145deg, rgba(79, 216, 255, 0.16), rgba(86, 119, 255, 0.1));
    border: 1px solid rgba(79, 216, 255, 0.28);
    transition: transform 0.4s var(--px-ease);
}

.kf:hover .kf-ico { transform: rotate(-8deg) scale(1.08); }

.kf-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.kf-grid .kf:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Panel (başlıklı grup) */
.kp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.kp {
    padding: 14px;
    border-radius: 18px;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    animation: k-rise 0.7s var(--px-ease) both;
}

.kp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kp-head h3 { margin: 0; font-size: 16px; color: var(--px-text); }

.kp-ico {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--px-grad);
    box-shadow: 0 8px 18px -8px rgba(47, 85, 255, 0.8);
}

.kp-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.kp-n {
    margin-left: auto;
    font-family: var(--px-font-display);
    font-size: 12px;
    font-weight: 800;
    color: var(--px-blue-3);
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var(--px-border-2);
}

.kp .kf { font-size: 14px; padding: 7px 12px 7px 7px; }
.kp .kf-ico { width: 32px; height: 32px; border-radius: 9px; }
.kp .kf-ico svg { width: 16px; height: 16px; }

.kalph { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.kalph i {
    font-style: normal;
    font-size: 12px;
    font-weight: 650;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--px-text);
    background: rgba(79, 216, 255, 0.1);
    border: 1px solid rgba(79, 216, 255, 0.3);
}

/* İstatistikler */
.kstats { display: flex; gap: 14px; margin-top: 14px; }

.kstats > div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(47, 85, 255, 0.22), rgba(79, 216, 255, 0.06));
    border: 1px solid rgba(138, 162, 255, 0.3);
    animation: k-rise 0.7s var(--px-ease) both;
    animation-delay: var(--d);
}

.kstats b {
    font-family: var(--px-font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--px-grad-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.kstats > div > span { font-size: 13.5px; line-height: 1.35; color: var(--px-muted); }

/* Rozetler */
.kbadges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.kbadges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--px-muted);
    background: rgba(46, 230, 166, 0.08);
    border: 1px solid rgba(46, 230, 166, 0.3);
}

.kbadges b { color: var(--px-text); font-family: var(--px-font-display); font-size: 15px; }
.kbadges svg { width: 17px; height: 17px; fill: none; stroke: var(--px-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Canlılık süreleri */
.ktimers { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ktimers p { margin: 0; max-width: 170px; font-size: 13px; line-height: 1.4; color: var(--px-muted); }

.ktimer { position: relative; width: 86px; height: 86px; display: grid; place-items: center; }
.ktimer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ktimer circle { fill: none; stroke-width: 6; }
.ktimer .trk { stroke: var(--px-border-2); }
.ktimer .val {
    stroke: var(--px-cyan);
    stroke-linecap: round;
    stroke-dasharray: 100;
    filter: drop-shadow(0 0 5px var(--px-cyan));
    animation: k-timer var(--t) linear infinite;
}

.ktimer:nth-child(2) .val { stroke: var(--px-blue-3); filter: drop-shadow(0 0 5px var(--px-blue-3)); }
.ktimer:nth-child(3) .val { stroke: var(--px-green); filter: drop-shadow(0 0 5px var(--px-green)); }

@keyframes k-timer { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.ktimer b { font-family: var(--px-font-display); font-size: 30px; font-weight: 800; color: var(--px-text); letter-spacing: -0.04em; }
.ktimer b small { font-size: 12px; font-weight: 600; color: var(--px-muted); margin-left: 2px; letter-spacing: 0; }

/* ---------- Telefon sahnesi ---------- */
.kyc-step .kscene { right: 4vw; width: 30%; top: 10px; bottom: 10px; }
.kyc-step .kscene > img { max-height: 560px; }

/* Canlı durum paneli */
.klive {
    position: absolute;
    left: -16%;
    bottom: 9%;
    z-index: 5;
    width: 250px;
    padding: 14px 15px;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(27, 36, 82, 0.94), rgba(11, 17, 51, 0.94));
    border: 1px solid rgba(138, 162, 255, 0.3);
    box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: k-bob 6s ease-in-out infinite;
}

@keyframes k-bob { 50% { translate: 0 -10px; } }

.klive-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.klive-head b { font-size: 13.5px; color: var(--px-text); }

.klive-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--px-cyan);
    background: rgba(79, 216, 255, 0.14);
}

.klive-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.klive-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--px-green); box-shadow: 0 0 10px var(--px-green); animation: k-blink 1.4s ease-in-out infinite; }
@keyframes k-blink { 50% { opacity: 0.3; } }

.klive ul { margin: 0; padding: 0; display: grid; gap: 6px; }

.klive li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--px-text);
    background: rgba(255, 255, 255, 0.05);
}

.klive li::before { display: none; }

.kl-st { position: relative; width: 18px; height: 18px; flex: none; }

.kl-spin {
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    border: 2px solid rgba(79, 216, 255, 0.25);
    border-top-color: var(--px-cyan);
    animation: k-turn 0.8s linear infinite, k-spin-hide 8s linear infinite both;
    animation-delay: 0s, calc(var(--k) * 0.9s);
}

.kl-ok {
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 50%;
    fill: none;
    stroke: #04261a;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: var(--px-green);
    box-shadow: 0 0 10px rgba(46, 230, 166, 0.6);
    animation: k-ok-show 8s var(--px-ease) infinite both;
    animation-delay: calc(var(--k) * 0.9s);
}

@keyframes k-turn { to { transform: rotate(360deg); } }
@keyframes k-ok-show { 0%, 12% { opacity: 0; transform: scale(0.4); } 16%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(0.4); } }
@keyframes k-spin-hide { 0%, 12% { opacity: 1; } 16%, 88% { opacity: 0; } 94%, 100% { opacity: 1; } }

/* OCR alanları */
.kocr-row { margin-top: 8px; }
.kocr-row small { display: block; font-size: 11px; color: var(--px-muted); margin-bottom: 4px; }
.kocr-row i {
    display: block;
    height: 9px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--px-cyan), var(--px-blue-2));
    transform-origin: left;
    animation: k-ocr 6s var(--px-ease) infinite both;
    animation-delay: calc(var(--k) * 0.5s);
}

.kocr-row:nth-child(3) i { width: 72%; }
.kocr-row:nth-child(4) i { width: 58%; }
.kocr-row:nth-child(5) i { width: 46%; }

@keyframes k-ocr { 0%, 6% { transform: scaleX(0); opacity: 0.4; } 22%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(0); opacity: 0.4; } }

/* NFC okuma */
.knfc-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 10px; }
.knfc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--px-blue-2), var(--px-cyan)); box-shadow: 0 0 12px var(--px-cyan); transform-origin: left; animation: k-nfc 5s ease-in-out infinite; }
@keyframes k-nfc { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }

.knfc-meta { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 12.5px; color: var(--px-text); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.knfc-meta svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; fill: none; stroke: #04261a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; background: var(--px-green); animation: k-nfc-ok 5s ease-in-out infinite; }
.knfc-meta + .knfc-meta svg { animation-delay: 0.3s; }
@keyframes k-nfc-ok { 0%, 58% { opacity: 0; transform: scale(0.4); } 66%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Canlılık komutları */
.kprompt-lines { position: relative; display: grid; min-height: 30px; }
.kprompt-lines span {
    grid-area: 1 / 1;
    font-family: var(--px-font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--px-text);
    opacity: 0;
    animation: k-say 10s var(--px-ease) infinite;
}

.kprompt-lines span:nth-child(2) { animation-delay: 2.5s; }
.kprompt-lines span:nth-child(3) { animation-delay: 5s; }
.kprompt-lines span:nth-child(4) { animation-delay: 7.5s; }

@keyframes k-say {
    0% { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    4%, 21% { opacity: 1; transform: none; filter: none; }
    25%, 100% { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
}

.kprompt-bar { height: 5px; margin-top: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.kprompt-bar i { display: block; height: 100%; background: var(--px-green); box-shadow: 0 0 10px var(--px-green); transform-origin: left; animation: k-nfc 2.5s linear infinite; }

/* Azaltılmış hareket: kontroller tamamlanmış görünür */
@media (prefers-reduced-motion: reduce) {
    .kl-ok, .knfc-meta svg { opacity: 1; }
    .kl-spin { opacity: 0; }
    .kprompt-lines span:first-child { opacity: 1; }
}

/* ==========================================================================
   AÇIK TEMA
   ========================================================================== */
html[data-theme="light"] .kf { background: #fff; border-color: rgba(18, 32, 78, 0.1); box-shadow: 0 8px 20px -18px rgba(18, 32, 78, 0.5); }
html[data-theme="light"] .kf:hover { background: #f3f7ff; border-color: rgba(43, 86, 245, 0.4); }
html[data-theme="light"] .kf-ico { color: #1d45dc; background: #edf2ff; border-color: rgba(29, 69, 220, 0.2); }
html[data-theme="light"] .kp { background: #f7f9ff; }
html[data-theme="light"] .krail { background: #fff; }
html[data-theme="light"] .krail-dot { background: #f3f6fd; }
html[data-theme="light"] .krail-step.is-done .krail-dot { color: #0b8a5f; }
html[data-theme="light"] .kalph i { color: #0b132e; background: #e9f6fc; border-color: rgba(10, 143, 194, 0.3); }
html[data-theme="light"] .kstats > div { background: linear-gradient(140deg, #e8eeff, #f4fbff); border-color: rgba(43, 86, 245, 0.2); }
html[data-theme="light"] .kbadges span { background: #ecf9f3; border-color: rgba(14, 159, 110, 0.3); }
html[data-theme="light"] .kbadges svg { stroke: #0b8a5f; }
html[data-theme="light"] .klive { background: rgba(255, 255, 255, 0.95); border-color: rgba(18, 32, 78, 0.1); box-shadow: 0 26px 60px -26px rgba(18, 32, 78, 0.45); }
html[data-theme="light"] .klive li { background: #f3f6fd; }
html[data-theme="light"] .klive-ico { color: #1d45dc; background: #edf2ff; }
html[data-theme="light"] .knfc-bar, html[data-theme="light"] .kprompt-bar { background: #e6ebf7; }
html[data-theme="light"] .knfc-meta { border-color: rgba(18, 32, 78, 0.08); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 761px) and (max-height: 790px) {
    .kyc-step h1 { margin-bottom: 12px; }
    .krail { margin-bottom: 10px; padding: 5px 8px; }
    .krail-dot { width: 26px; height: 26px; }
    .krail-txt { font-size: 11px; }
    .kf { padding: 6px 12px 6px 7px; font-size: 13.5px; }
    .kf-ico { width: 30px; height: 30px; }
    .kp { padding: 10px; }
    .kp .kf { font-size: 12.5px; padding: 4px 10px 4px 5px; }
    .kp .kf-ico { width: 26px; height: 26px; }
    .kstats { margin-top: 10px; }
    .kstats b { font-size: 30px; }
    .kstats > div { padding: 8px 14px; }
    .ktimer { width: 66px; height: 66px; }
    .ktimer b { font-size: 22px; }
    .ktimers { margin-bottom: 10px; }
    .klive { width: 220px; padding: 11px 12px; }
}

@media (max-width: 1250px) and (min-width: 761px) {
    .krail-txt { display: none; }
    .krail-step.is-current .krail-txt { display: flex; }
}

@media (max-width: 760px) {
    .kyc-step .body, .kyc-step h1, .kyc-step .note { width: 100%; max-width: 100%; }
    .kf-grid, .kp-grid { grid-template-columns: 1fr; }
    .krail-txt { display: none; }
    .klive { left: 2%; bottom: 4%; }
}
