/* =========================================================
   Viwo B2B Bayi Portalı — açık tema
   Kaynak: design_handoff_viwo_bayi_portal/README.md (§4 token, §6.10 animasyon)
   ========================================================= */

:root {
    --bg: #f5f4f1;
    --bg-auth: #f3f1ec;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --surface-3: #f5f4f1;
    --ink: #15130f;
    --text-2: #4a463f;
    --text-3: #5f5a52;
    --muted: #7a756c;
    --muted-2: #8a857c;
    --subtle: #a39e94;
    --line: rgba(21, 19, 15, .07);
    --line-2: rgba(21, 19, 15, .10);
    --brass: #8a6a3c;
    --brass-2: #b08d5b;
    --brass-light: #e2c393;
    --chip-bg: #f5f1e9;
    --chip-fg: #6b5230;
    --success: #2f6247;
    --success-bg: rgba(63, 122, 90, .10);
    --warning: #9a6b1f;
    --danger: #a4453a;
    --danger-dot: #b0473c;
    --danger-bg: rgba(176, 71, 60, .09);
    --ring: 0 0 0 4px rgba(176, 141, 91, .14);
    --ring-error: 0 0 0 4px rgba(176, 71, 60, .08);
    --champagne: linear-gradient(180deg, #f8f3ea, #f2eadc);
    --champagne-line: rgba(168, 132, 79, .20);
    --shadow-card: 0 1px 2px rgba(21, 19, 15, .03);
    --shadow-btn: 0 14px 30px -14px rgba(21, 19, 15, .6);
    --shadow-drop: 0 24px 60px -24px rgba(40, 32, 20, .35);
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --sans: 'Manrope', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --vw-cw: 1400px;
}

@media (max-width: 1440px) { :root { --vw-cw: 1240px; } }

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
    font-family: var(--sans);
    color: var(--ink);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--ink); }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #aaa59b; }
button { cursor: pointer; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Animasyonlar ---------- */
@keyframes pIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pGlow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.06); } }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s2In { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes rowDrop { 0% { opacity: 0; transform: translateY(-14px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes valA { 0% { opacity: 0; transform: translateY(-7px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes valB { 0% { opacity: 0; transform: translateY(-7px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.92); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- Tipografi yardımcıları ---------- */
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--brass); text-transform: uppercase; }
.eyebrow--sm { font-size: 9.5px; letter-spacing: .18em; }
.eyebrow--muted { color: var(--muted-2); letter-spacing: .16em; }
.h1 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; margin: 0; }
.h-card { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.h-card--lg { font-size: 18px; letter-spacing: -.015em; }
.lead { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 560px; text-wrap: pretty; }
.sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.opt { font-weight: 400; color: var(--subtle); }

/* ---------- Form ---------- */
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }

.inp {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.inp:focus { border-color: var(--brass-2); box-shadow: var(--ring); }
.inp--lg { height: 50px; }
.inp--mono { font-family: var(--mono); }
.inp[readonly] { background: var(--surface-2); }
textarea.inp { height: auto; padding: 13px 15px; line-height: 1.55; resize: vertical; display: block; }

.pw { position: relative; }
.pw .inp { padding-right: 84px; }
.pw__toggle {
    position: absolute; right: 6px; top: 6px; z-index: 1;
    height: 38px; padding: 0 12px;
    display: flex; align-items: center;
    border: 0; border-radius: 8px; background: transparent;
    font-size: 12px; font-weight: 600; color: var(--text-3);
    user-select: none; transition: background .16s, color .16s;
}
.pw__toggle:hover { background: rgba(21, 19, 15, .06); color: var(--ink); }
.pw--lg .pw__toggle { top: 6px; }
.pw input[type=password] { letter-spacing: .12em; }

/* Gruplu kontrol: tek dış çerçeve, segmentler arası tek ayırıcı */
.grp-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grp-labels .lbl + .lbl { padding-left: 1px; }
.vw-grp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line-2);
    border-radius: 11px;
    background: var(--surface);
    transition: border-color .16s, box-shadow .16s;
}
.vw-seg { min-width: 0; }
.vw-seg:first-child { border-radius: 10px 0 0 10px; }
.vw-seg + .vw-seg { border-left: 1px solid rgba(21, 19, 15, .08); border-radius: 0 10px 10px 0; }
.vw-seg > input {
    width: 100%; height: 48px; padding: 0 15px;
    border: none; background: transparent; color: var(--ink);
    font-size: 14px; outline: none; border-radius: inherit;
}
.vw-seg--flex { display: flex; align-items: center; }
.vw-seg--flex > input { flex: 1; min-width: 0; }
.vw-grp:focus-within { border-color: var(--brass-2) !important; box-shadow: var(--ring) !important; }

.ok-dot {
    flex: 0 0 20px; width: 20px; height: 20px; margin-right: 12px;
    border-radius: 50%; background: rgba(63, 122, 90, .12); color: var(--success);
    display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.field-msg { font-size: 11.5px; margin-top: 7px; color: var(--muted); }
.field-msg--ok { color: var(--success); }
.field-msg--warn { color: var(--danger); }

/* Parsley hataları */
.pl-errors { list-style: none; margin: 0; padding: 0; }
.pl-errors.filled { margin-top: 8px; }
.pl-errors li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; line-height: 1.45; color: var(--danger); font-weight: 500; animation: fadeIn .16s ease-out both; }
.pl-errors li::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--danger-dot); }
.inp.is-invalid, input.is-invalid, textarea.is-invalid, .phone.is-invalid { border-color: rgba(176, 71, 60, .55) !important; box-shadow: var(--ring-error) !important; }
.vw-seg.is-invalid { background: rgba(176, 71, 60, .05) !important; box-shadow: none !important; }
.vw-grp:has(.vw-seg.is-invalid) { border-color: rgba(176, 71, 60, .55) !important; }
.vw-grp:has(.vw-seg.is-invalid):not(:focus-within) { box-shadow: var(--ring-error) !important; }
.vw-grp:has(.vw-seg.is-invalid) .vw-seg + .vw-seg { border-left-color: rgba(176, 71, 60, .35) !important; }
.vw-row.is-invalid { background: rgba(176, 71, 60, .035) !important; }
.vw-box.is-invalid { border-color: var(--danger-dot) !important; box-shadow: 0 0 0 3px rgba(176, 71, 60, .12) !important; }

.err-line { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11.5px; font-weight: 500; color: var(--danger); }
.err-line::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--danger-dot); }

/* Onay kutusu (özel) */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
    width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px;
    border-radius: 5px; border: 1px solid rgba(21, 19, 15, .22); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; transition: background .15s, border-color .15s;
}
.check__box::after { content: '✓'; opacity: 0; transition: opacity .12s; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: var(--ring); }
.check__text { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.check--center { align-items: center; }
.check--center .check__box { margin-top: 0; }

/* Segmented kontrol */
.seg { display: flex; padding: 4px; border-radius: 11px; background: rgba(21, 19, 15, .05); border: 1px solid rgba(21, 19, 15, .06); }
.seg__btn {
    padding: 8px 16px; border: 0; border-radius: 8px; background: transparent;
    font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap;
    transition: all .18s;
}
.seg__btn[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 19, 15, .08); }

/* ---------- Düğmeler ---------- */
.btn {
    height: 48px; padding: 0 20px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 12px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: transform .16s, box-shadow .16s, background .18s, border-color .18s, color .18s;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(21, 19, 15, .65); color: #fff; }
.btn--primary:disabled, .btn--primary[aria-disabled=true] { background: rgba(21, 19, 15, .12); color: var(--muted-2); box-shadow: none; transform: none; cursor: not-allowed; }
.btn--ghost { background: rgba(255, 255, 255, .7); border-color: rgba(21, 19, 15, .14); color: var(--ink); }
.btn--ghost:hover { background: #fff; border-color: rgba(21, 19, 15, .28); color: var(--ink); }
.btn--block { width: 100%; height: 52px; }
.btn--lg { height: 54px; font-size: 14.5px; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 13px; border-radius: 11px; }

.link-u { color: var(--ink); font-weight: 600; cursor: pointer; border: 0; background: none; padding: 0; border-bottom: 1px solid rgba(21, 19, 15, .25); font-size: inherit; }
.link-u:hover { color: var(--ink); border-bottom-color: var(--ink); }
.link-back { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); border: 0; background: none; padding: 0; margin-bottom: 30px; }
.link-back:hover { color: var(--ink); }

/* ---------- Kart / chip ---------- */
.card { padding: 28px 30px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.card--champagne { background: var(--champagne); border-color: var(--champagne-line); }
.chip { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; padding: 5px 9px; border-radius: 6px; background: var(--chip-bg); color: var(--chip-fg); border: 1px solid rgba(168, 132, 79, .2); }
.chip--plain { border: 0; }

/* ---------- Auth cam arka plan ---------- */
.auth {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px; background: var(--bg-auth);
}
.auth--top { display: block; padding: 48px 24px 72px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--a { top: -20%; left: -6%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(214, 186, 140, .55), rgba(214, 186, 140, 0) 66%); filter: blur(40px); animation: pGlow 16s ease-in-out infinite; }
.blob--b { bottom: -26%; right: -4%; width: 720px; height: 720px; background: radial-gradient(circle, rgba(164, 186, 172, .55), rgba(164, 186, 172, 0) 66%); filter: blur(50px); animation: pGlow 20s ease-in-out infinite reverse; }
.blob--c { top: 30%; right: 28%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); filter: blur(20px); }
.blob--ra { top: -10%; left: -8%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(214, 186, 140, .42), rgba(214, 186, 140, 0) 66%); filter: blur(40px); }
.blob--rb { top: 40%; right: -10%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(164, 186, 172, .40), rgba(164, 186, 172, 0) 66%); filter: blur(50px); }

.glass {
    position: relative; width: 100%;
    border-radius: 24px; border: 1px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
    box-shadow: 0 50px 120px -50px rgba(70, 56, 34, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
    animation: pIn .6s var(--ease) both;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
    width: 40px; height: 40px; border-radius: 11px; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    color: var(--brass-light); font-weight: 700; font-size: 17px; overflow: hidden; flex: 0 0 auto;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand__sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
.brand--sm .brand__mark { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.brand--sm .brand__name { font-size: 15px; }
.brand--sm .brand__sub { font-size: 9px; }

/* Giriş kartı */
.login { max-width: 1040px; display: flex; flex-wrap: wrap; overflow: hidden; }
.login__side {
    flex: 1 1 420px; padding: 52px 50px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12));
}
.login__hero { font-size: 33px; line-height: 1.18; font-weight: 300; letter-spacing: -.025em; text-wrap: pretty; margin-top: 16px; }
.login__desc { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--text-3); max-width: 370px; text-wrap: pretty; }
.login__side .btn--ghost { margin-top: 28px; height: auto; padding: 13px 20px; border-radius: 11px; font-size: 13.5px; }
.login__note { font-size: 12px; line-height: 1.65; color: var(--muted); max-width: 380px; }
.login__main { flex: 1 1 380px; padding: 52px 50px; background: rgba(255, 255, 255, .72); border-left: 1px solid rgba(21, 19, 15, .06); }
.login__view { animation: pIn .35s var(--ease) both; }
.login__view[hidden] { display: none; }
.login__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 0; }
.login__lead { font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 32px; line-height: 1.65; }
.login__form { display: flex; flex-direction: column; gap: 18px; }
.login__row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.login__alt { margin-top: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.login__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(21, 19, 15, .07); font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.sent-icon {
    width: 52px; height: 52px; border-radius: 15px; margin-bottom: 22px;
    background: linear-gradient(150deg, #f6eddc, #e9d7b6); border: 1px solid rgba(168, 132, 79, .25);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 20px; font-weight: 600; color: #7d6035;
}
.alert-box { padding: 12px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; margin-bottom: 18px; }
.alert-box--error { background: var(--danger-bg); color: var(--danger); }
.alert-box--ok { background: rgba(63, 122, 90, .09); color: var(--success); }

/* Yeni şifre kartı */
.reset { max-width: 480px; padding: 40px 42px 38px; background: rgba(255, 255, 255, .7); }
.reset__head { display: flex; align-items: center; gap: 12px; padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid rgba(21, 19, 15, .07); }
.strength { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.strength__bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength__bars span { height: 4px; border-radius: 4px; background: rgba(21, 19, 15, .08); transition: background .2s; }
.strength__label { font-family: var(--mono); font-size: 10.5px; min-width: 48px; text-align: right; color: var(--muted-2); }
.rules { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(21, 19, 15, .06); }
.rule { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted-2); transition: color .18s; }
.rule__dot { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; border: 1px solid rgba(21, 19, 15, .18); background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; transition: all .18s; }
.rule.is-ok { color: var(--success); }
.rule.is-ok .rule__dot { background: var(--success); border-color: var(--success); }
.rule.is-ok .rule__dot::after { content: '✓'; }
.done { text-align: center; padding: 10px 0 4px; animation: pIn .4s var(--ease) both; }
.done__icon { width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%; background: rgba(63, 122, 90, .12); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* ---------- Bayi kaydı ---------- */
.register { max-width: 1180px; margin: 0 auto; padding: 40px 44px 44px; background: rgba(255, 255, 255, .62); animation: pIn .5s var(--ease) both; }
.register__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(21, 19, 15, .07); font-size: 13px; color: var(--muted); }
.register__intro { padding: 30px 0 26px; }
.register__title { font-size: 28px; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.register__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.register__firm { flex: 1.45 1 520px; min-width: 0; }
.register__owner { order: -1; flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.register__owner .sub { color: #6b665d; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.card-head .h-card { margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.pw-block { margin-top: 10px; padding-top: 24px; border-top: 1px solid rgba(168, 132, 79, .24); display: flex; flex-direction: column; gap: 18px; }

/* Telefon bileşeni */
.phone {
    display: flex; align-items: center; height: 48px;
    border-radius: 11px; border: 1px solid var(--line-2); background: #fff;
    transition: border-color .16s, box-shadow .16s;
}
.phone:focus-within { border-color: var(--brass-2); box-shadow: var(--ring); }
.phone:has(input[readonly]) { background: var(--surface-2); }
.phone:has(input[readonly]):focus-within { border-color: var(--line-2); box-shadow: none; }
.inp[readonly]:focus { border-color: var(--line-2); box-shadow: none; }
.phone__cc { flex: 0 0 auto; padding-left: 6px; }
.phone__sep { width: 1px; height: 22px; background: var(--line-2); }
.phone input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; padding: 0 12px; font-family: var(--mono); font-size: 14px; color: var(--ink); outline: none; }

/* Evraklar */
.docs { margin-top: 40px; }
.docs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.docs__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.docs__meta strong { color: var(--ink); font-weight: 400; }
.docs__list { margin-top: 16px; border-top: 1px solid var(--line-2); }
.doc { padding: 15px 12px; margin: 0 -12px; border-radius: 10px; border-bottom: 1px solid var(--line); outline: 1px dashed transparent; outline-offset: -1px; transition: background .16s; }
.doc.is-over { background: #faf6ef; outline-color: var(--brass-2); }
.doc__row { display: flex; align-items: center; gap: 16px; }
.doc__dot { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 1px solid rgba(21, 19, 15, .2); background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.doc.has-files .doc__dot { background: var(--success); border-color: var(--success); }
.doc.has-files .doc__dot::after { content: '✓'; }
.doc__title { flex: 0 0 160px; font-size: 13.5px; font-weight: 600; }
.doc__files { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.doc__hint { font-size: 12.5px; color: var(--muted-2); }
.doc__err { font-size: 12px; color: var(--danger-dot); }
.doc__pick { padding: 8px 12px; border: 0; background: transparent; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc__pick:hover { background: rgba(21, 19, 15, .06); }
.doc .pl-errors { padding-left: 36px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 4px 4px 9px; border-radius: 7px; background: #fff; border: 1px solid rgba(21, 19, 15, .08); }
.fchip__ext { font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: #2f6247; }
.fchip__ext--pdf { color: #9a3c32; }
.fchip__name { font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip__size { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.fchip__x { width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted-2); }
.fchip__x:hover { background: rgba(176, 71, 60, .10); color: var(--danger-dot); }

.register__submit { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(21, 19, 15, .07); display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.consents { display: flex; flex-direction: column; gap: 14px; }
.register__send { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.register__send .btn { height: 52px; padding: 0 34px; }
.register__hint { font-size: 12px; color: var(--muted); }
.register__hint.is-error { color: var(--danger); }

/* ---------- Modal / toast ---------- */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(28, 24, 18, .32);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 32px 20px; animation: fadeIn .18s ease-out both;
}
.modal[hidden] { display: none; }
.modal__dialog {
    width: 100%; max-width: 760px; max-height: min(84vh, 880px);
    display: flex; flex-direction: column;
    border-radius: 20px; background: #fff; border: 1px solid rgba(21, 19, 15, .08);
    box-shadow: 0 50px 120px -40px rgba(40, 30, 15, .5); overflow: hidden;
    animation: pIn .24s var(--ease) both;
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 30px 22px; border-bottom: 1px solid var(--line); }
.modal__title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 9px 0 0; }
.modal__x { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 10px; background: transparent; font-size: 18px; color: var(--text-3); }
.modal__x:hover { background: rgba(21, 19, 15, .06); color: var(--ink); }
.modal__body { flex: 1; overflow-y: auto; padding: 26px 30px 10px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.modal__body h1, .modal__body h2, .modal__body h3 { font-size: 14px; color: var(--ink); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 30px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.modal__actions { display: flex; gap: 10px; }

.toasts { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: 380px; max-width: calc(100vw - 40px); }
.toast {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px;
    border-radius: 14px; background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(21, 19, 15, .08); box-shadow: var(--shadow-drop);
    animation: toastIn .22s var(--ease) both;
}
.toast__icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: rgba(63, 122, 90, .12); color: var(--success); }
.toast--error .toast__icon { background: rgba(176, 71, 60, .12); color: var(--danger-dot); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-size: 13.5px; font-weight: 600; }
.toast__text { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.toast__x { border: 0; background: transparent; font-size: 16px; color: var(--muted-2); width: 24px; height: 24px; border-radius: 6px; }
.toast__x:hover { background: rgba(21, 19, 15, .06); color: var(--ink); }

/* ---------- Select2 teması (README §6.4) ---------- */
.select2-container--viwo { width: 100% !important; font-family: var(--sans); }
.select2-container--viwo .select2-selection--single {
    height: 48px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff;
    display: flex; align-items: center; outline: none; transition: border-color .16s, box-shadow .16s;
}
.select2-container--viwo.select2-container--open .select2-selection--single,
.select2-container--viwo.select2-container--focus .select2-selection--single { border-color: var(--brass-2); box-shadow: var(--ring); }
.select2-container--viwo .select2-selection__rendered { flex: 1; min-width: 0; padding: 0 8px 0 15px; font-size: 14px; color: var(--ink); line-height: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select2-container--viwo .select2-selection__placeholder { color: #aaa59b; }
.select2-container--viwo .select2-selection__clear { order: 2; width: 20px; height: 20px; margin-right: 6px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted-2); cursor: pointer; }
.select2-container--viwo .select2-selection__clear:hover { background: rgba(21, 19, 15, .06); color: var(--ink); }
.select2-container--viwo .select2-selection__arrow { order: 3; width: 7px; height: 7px; margin: 0 16px 3px 2px; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(45deg); transition: transform .18s; flex: 0 0 auto; }
.select2-container--viwo .select2-selection__arrow b { display: none; }
.select2-container--viwo.select2-container--open .select2-selection__arrow { transform: rotate(225deg); margin-bottom: -3px; }
.select2-container--viwo.select2-container--disabled .select2-selection--single { background: var(--surface-2); cursor: not-allowed; }
.select2-container--viwo.select2-container--disabled .select2-selection__rendered { color: var(--subtle); }

/* Gruplu (bare) varyant: çerçeve ve zemin grup kabından gelir */
.select2-container--viwo.s2-bare .select2-selection--single { border: 0; background: transparent; box-shadow: none !important; border-radius: inherit; }
.vw-seg .select2-container--viwo.select2-container--disabled .select2-selection--single { background: transparent; }

/* Kompakt ülke seçici */
.select2-container--viwo.s2-compact { width: auto !important; }
.select2-container--viwo.s2-compact .select2-selection--single { height: 36px; border: 0; border-radius: 8px; background: transparent; box-shadow: none !important; padding: 0 9px; gap: 7px; }
.select2-container--viwo.s2-compact .select2-selection--single:hover { background: rgba(21, 19, 15, .05); }
.select2-container--viwo.s2-compact .select2-selection__rendered { padding: 0; line-height: 36px; display: flex; align-items: center; gap: 7px; overflow: visible; }
.select2-container--viwo.s2-compact .select2-selection__arrow { width: 6px; height: 6px; margin: 0 1px 3px 0; }
.cc-iso { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 5px; border-radius: 4px; background: var(--chip-bg); color: var(--chip-fg); }
.cc-dial { font-family: var(--mono); font-size: 13px; color: var(--text-2); }

.select2-container--viwo .select2-dropdown {
    margin-top: 6px; border: 1px solid rgba(21, 19, 15, .09); border-radius: 13px !important; background: #fff;
    box-shadow: var(--shadow-drop), 0 2px 6px rgba(21, 19, 15, .05); overflow: hidden; animation: s2In .14s ease-out both;
}
.select2-container--viwo .select2-dropdown--above { margin-top: -6px; }
.select2-container--viwo .select2-search--dropdown { padding: 8px; border-bottom: 1px solid rgba(21, 19, 15, .06); }
.select2-container--viwo .select2-search__field { width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(21, 19, 15, .09); background: var(--surface-2); color: var(--ink); font-size: 13px; outline: none; }
.select2-container--viwo .select2-search__field:focus { border-color: var(--brass-2); background: #fff; }
.select2-container--viwo .select2-results > .select2-results__options { max-height: 248px; overflow-y: auto; padding: 6px; }
.select2-container--viwo .select2-results__option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); }
.select2-container--viwo .select2-results__option--highlighted { background: #f7f2e9; }
.select2-container--viwo .select2-results__option--selected { font-weight: 600; }
.select2-container--viwo .select2-results__option--selected::after { content: '✓'; margin-left: auto; font-size: 11px; color: var(--brass); }
.select2-container--viwo .select2-results__message { justify-content: center; padding: 18px 10px; color: var(--muted-2); font-size: 12.5px; }
.select2-container--viwo.s2-compact-drop .select2-dropdown { width: 320px !important; }
.s2-opt-sub { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }

/* ---------- Duyarlı ---------- */
@media (max-width: 720px) {
    .login__side, .login__main { padding: 40px 28px; }
    .register { padding: 28px 22px 32px; }
    .card { padding: 22px 20px; }
    .doc__row { flex-wrap: wrap; }
    .doc__title { flex-basis: auto; }
    .two { grid-template-columns: minmax(0, 1fr); }
}
