/* /hazir-kart — hazır doldurulmuş kayıt/kart sayfası (bağımsız; panel/ana sayfa CSS'i yüklenmez) */
:root {
    --hk-bg: #f4f6fb;
    --hk-card: #ffffff;
    --hk-text: #0f172a;
    --hk-muted: #5b6475;
    --hk-line: #dfe3ee;
    --hk-accent: #46519e;
    --hk-accent-ink: #ffffff;
    --hk-field: #f8f9fd;
    --hk-warn-bg: #fff6e0;
    --hk-warn-ink: #6b4a00;
    --hk-err-bg: #fdecec;
    --hk-err-ink: #8a1c1c;
    --hk-shadow: 0 10px 30px rgba(31, 41, 90, .08);
}
:root[data-theme="dark"] {
    --hk-bg: #0e1220;
    --hk-card: #161b2e;
    --hk-text: #eef1fb;
    --hk-muted: #a3acc4;
    --hk-line: #2a3150;
    --hk-accent: #8c97f0;
    --hk-accent-ink: #0e1220;
    --hk-field: #1b2138;
    --hk-warn-bg: #3a2f10;
    --hk-warn-ink: #ffe3a1;
    --hk-err-bg: #3b1818;
    --hk-err-ink: #ffc9c9;
    --hk-shadow: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hk {
    margin: 0;
    background: var(--hk-bg);
    color: var(--hk-text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
}
.hk-wrap { max-width: 980px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.hk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 16px; }
.hk-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.hk-brand img { border-radius: 8px; }
.hk-badge { font-size: .78rem; font-weight: 700; color: var(--hk-accent); border: 1px solid var(--hk-line); border-radius: 999px; padding: 4px 10px; background: var(--hk-card); }
.hk-card { background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: 18px; padding: 20px; box-shadow: var(--hk-shadow); margin-bottom: 16px; }
.hk-h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; }
.hk-h2 { font-size: 1.05rem; margin: 0 0 12px; }
.hk-lead { margin: 0 0 12px; color: var(--hk-muted); }
.hk-muted { color: var(--hk-muted); font-size: .88rem; margin: 8px 0 0; }
.hk-fine { font-size: .8rem; }
.hk-privacy { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--hk-field); border: 1px solid var(--hk-line); font-size: .9rem; }
.hk code { background: var(--hk-field); border: 1px solid var(--hk-line); border-radius: 6px; padding: 0 5px; font-size: .9em; }
.hk-notices { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hk-notices:empty { display: none; }
.hk-notices li { background: var(--hk-warn-bg); color: var(--hk-warn-ink); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.hk-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 860px) {
    .hk-grid { grid-template-columns: 300px 1fr; }
    .hk-preview-wrap { position: sticky; top: 16px; }
}
.hk-preview {
    --pv-bg: #fff; --pv-fg: #1e293b;
    background: var(--pv-bg); color: var(--pv-fg);
    border: 1px solid color-mix(in srgb, var(--pv-fg) 16%, transparent);
    border-radius: 20px; padding: 22px 16px; text-align: center;
}
.hk-pv-avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
    font-size: 1.8rem; font-weight: 800; text-transform: uppercase;
    background: color-mix(in srgb, var(--pv-fg) 12%, transparent); color: var(--pv-fg);
}
.hk-pv-name { font-weight: 800; font-size: 1.15rem; overflow-wrap: anywhere; }
.hk-pv-title { opacity: .8; font-size: .92rem; min-height: 1.3em; overflow-wrap: anywhere; }
.hk-pv-bio { margin: 8px 0 0; font-size: .88rem; opacity: .85; white-space: pre-line; overflow-wrap: anywhere; }
.hk-pv-chips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hk-chip {
    padding: 9px 12px; border-radius: 12px; font-size: .9rem; font-weight: 600;
    background: color-mix(in srgb, var(--pv-fg) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--pv-fg) 14%, transparent);
}
.hk-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .hk-row { grid-template-columns: 1fr 1fr; } }
.hk-field { display: block; margin-bottom: 12px; }
.hk-field > span { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 4px; }
.hk-field b { color: #d1352b; }
.hk-form input[type="text"], .hk-form input[type="tel"], .hk-form input[type="email"], .hk-form input[type="url"], .hk-form textarea, .hk-form select {
    width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hk-line);
    background: var(--hk-field); color: var(--hk-text); font: inherit; font-size: 16px;
}
.hk-form textarea { resize: vertical; min-height: 84px; }
.hk-form input:focus-visible, .hk-form textarea:focus-visible, .hk-form select:focus-visible, .hk-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--hk-accent) 55%, transparent); outline-offset: 1px; }
.hk-fieldset { border: 1px solid var(--hk-line); border-radius: 14px; padding: 12px 14px 14px; margin: 4px 0 14px; }
.hk-fieldset legend { padding: 0 6px; font-weight: 800; font-size: .9rem; }
.hk-social { display: grid; grid-template-columns: 140px 1fr 44px; gap: 8px; margin-bottom: 8px; }
@media (max-width: 479px) { .hk-social { grid-template-columns: 1fr 44px; } .hk-social select { grid-column: 1 / -1; } }
.hk-x { min-height: 44px; border-radius: 12px; border: 1px solid var(--hk-line); background: var(--hk-field); color: var(--hk-text); font-size: 1.3rem; cursor: pointer; }
.hk-groups { display: grid; gap: 6px; margin: 4px 0 12px; font-size: .92rem; }
.hk-groups label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.hk-groups input { width: 18px; height: 18px; }
.hk-errors { background: var(--hk-err-bg); color: var(--hk-err-ink); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.hk-errors p { margin: 2px 0; }
.hk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.hk-actions--sticky { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(to top, var(--hk-card) 70%, transparent); }
.hk-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 14px;
    border: 1px solid var(--hk-line); background: var(--hk-card); color: var(--hk-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.hk-btn[hidden] { display: none; }
.hk-btn--primary { background: var(--hk-accent); color: var(--hk-accent-ink); border-color: var(--hk-accent); }
.hk-btn--ghost { background: transparent; }
.hk-btn:disabled { opacity: .6; cursor: progress; }
.hk-foot { text-align: center; color: var(--hk-muted); font-size: .85rem; padding: 8px 0; }
.hk-foot a { color: inherit; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .hk-btn { transition: transform .12s ease, opacity .12s ease; } .hk-btn:active { transform: scale(.98); } }
