/* ==========================================================================
   SMSBayim — Üyelik ve müşteri paneli
   app.css tokenlarını kullanır. Kenar menüsü her temada koyu ("ink") kalır;
   içerik alanı açık / koyu temaya uyar.
   ========================================================================== */

/* 1) ORTAK FORM VE YARDIMCI ÖĞELER ---------------------------------------- */
/* hidden özniteliği, display tanımlı sınıflar (.field, .recip ...) tarafından ezilmesin */
[hidden] { display: none !important; }
.btn--block { width: 100%; }
.btn--xs { --btn-h: 32px; padding: 0 12px; font-size: 0.82rem; gap: 6px; }
.btn--xs .i { width: 15px; height: 15px; }
.btn--danger:hover { border-color: var(--danger); background: rgba(229, 72, 77, .08); color: var(--danger); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.input--sm, .select--sm { padding: 8px 12px; font-size: 0.88rem; }
.input--caps { text-transform: uppercase; letter-spacing: .04em; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.select--sm { padding-right: 32px; background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-link, .link { color: var(--brand); font-weight: 600; font-size: 0.85rem; }
.link { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.field-hint { font-size: 0.82rem; color: var(--text-3); }
.field-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.field-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); font-size: 0.88rem; color: var(--text-2); }
.field-empty .i { color: var(--brand); }
.field-empty a { color: var(--brand); font-weight: 600; }
.static { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 0; }
.small { font-size: 0.84rem; }
.small > .i { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -3px; margin-right: 4px; }
.mt-s { margin-top: 14px; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.neg { color: var(--danger); }
.pos { color: var(--ok); }
.alert--warn { background: rgba(245, 160, 40, .1); color: var(--warn); border: 1px solid rgba(245, 160, 40, .35); }
.alert--info { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(43, 99, 255, .25); }
.alert .link, .alert a { color: inherit; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); background: rgba(14, 159, 98, .1); }
.pill--warn { color: var(--warn); background: rgba(245, 160, 40, .12); }
.pill--error { color: var(--danger); background: rgba(229, 72, 77, .1); }
.pill--info { color: var(--brand); background: var(--brand-soft); }
.pill--muted { color: var(--text-3); background: var(--surface-2); border-color: var(--line); }
.tag { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.75rem; color: var(--text-2); }

/* Bölümlü seçim (radyo düğmeleri) */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.seg--wide { display: flex; }
.seg--wide .seg-opt { flex: 1; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); transition: background-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.seg-opt span .i { width: 16px; height: 16px; }
.seg-opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.seg-tag { font-family: var(--font-mono); font-size: 0.65rem; padding: 1px 6px; border-radius: 6px; background: rgba(245, 160, 40, .14); color: var(--warn); }

/* Anahtar (switch) */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); transition: background-color .25s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.switch input:checked + .switch-ui { background: var(--electric); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Parola alanı */
.pw { position: relative; }
.pw .input { padding-right: 82px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; font-size: 0.8rem; font-weight: 600; color: var(--brand); }
.pw-toggle:hover { background: var(--brand-soft); }
.pw-meter { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width .35s var(--ease), background-color .35s; }
.pw-meter span[data-level="2"] { background: var(--warn); }
.pw-meter span[data-level="3"] { background: var(--electric); }
.pw-meter span[data-level="4"] { background: var(--ok); }

/* Dosya bırakma alanı */
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop input:focus-visible ~ .drop-ico { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--brand); border: 1px solid var(--line); flex: none; }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-text strong { font-size: 0.92rem; overflow-wrap: anywhere; }
.drop-text small { font-size: 0.8rem; color: var(--text-3); }
.drop.has-file { border-style: solid; border-color: var(--ok); }

/* Onay kutusu hapları */
.group-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 500; transition: all .2s; }
.pick small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.pick input:checked + span::before { content: "✓"; font-weight: 700; }
.pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.note-box { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); margin-top: 20px; }
.note-box h3 { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--text); margin-bottom: 6px; }
.note-box .i { color: var(--brand); display: inline; vertical-align: -3px; }
.mini-list { display: grid; gap: 10px; margin-top: 22px; font-size: 0.86rem; color: var(--text-2); }
.mini-list li { display: flex; gap: 10px; }
.mini-list .i { color: var(--brand); margin-top: 2px; }

/* 2) ÜYELİK SAYFALARI ----------------------------------------------------- */
.auth-body { background: var(--bg); }
.auth { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); } }
.auth-main { display: flex; flex-direction: column; padding: 20px var(--gutter); min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-content { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 480px; margin: 40px auto; }
.auth-content > .alert { margin-bottom: 20px; }
.auth-card .eyebrow { margin-bottom: 14px; }
.auth-card--wide { max-width: 520px; }
.auth-content:has(.auth-card--wide) { max-width: 540px; }
.auth-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -0.03em; line-height: 1.08; }
.auth-lead { margin: 14px 0 28px; color: var(--text-2); }
.auth-card .form { gap: 16px; }
.auth-card .form .btn--block { margin-top: 6px; }
.auth-switch { margin-top: 26px; font-size: 0.92rem; color: var(--text-2); }
.auth-switch a { color: var(--brand); font-weight: 600; }
.input--code { font-family: var(--font-mono, monospace); font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; }
.auth-resend { margin-top: 22px; }
.auth-resend-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.auth-sent { display: grid; gap: 14px; margin-top: 20px; }
.dev-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(245, 160, 40, .1); color: var(--warn); font-size: 0.84rem; }
.dev-note code { font-family: var(--font-mono); }
.auth-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.82rem; color: var(--text-3); }
.auth-foot a:hover { color: var(--brand); }

.auth-side { position: relative; display: none; overflow: hidden; border-radius: 0; }
@media (min-width: 1024px) { .auth-side { display: block; margin: 12px; border-radius: var(--r-xl); } }
.auth-aura { position: absolute; width: 640px; height: 640px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 99, 255, .45), transparent 65%); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
.auth-side-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: clamp(40px, 5vw, 72px); }
.auth-side-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.04; letter-spacing: -0.035em; }
.auth-trace { display: grid; gap: 2px; padding: 8px; border-radius: var(--r-lg); background: rgba(10, 22, 60, .55); border: 1px solid var(--ink-line); font-family: var(--font-mono); font-size: 0.82rem; max-width: 460px; backdrop-filter: blur(6px); }
.trace-row { display: grid; grid-template-columns: 12px 76px 1fr; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.trace-row + .trace-row { border-top: 1px dashed rgba(140, 170, 255, .12); }
.trace-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--electric-hi); }
.trace-dot--live { background: var(--signal); box-shadow: 0 0 0 0 rgba(185, 255, 74, .6); animation: pulse-dot 2s infinite; }
.trace-k { color: var(--ink-text-3); }
.trace-v { color: var(--ink-text); min-width: 0; }
.auth-points { display: grid; gap: 14px; max-width: 460px; font-size: 0.92rem; color: var(--ink-text-2); }
.auth-points li { display: flex; gap: 12px; }
.auth-points .i { color: var(--cyan); margin-top: 2px; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(185, 255, 74, .55); } 70% { box-shadow: 0 0 0 8px rgba(185, 255, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 255, 74, 0); } }

/* 3) PANEL İSKELETİ ------------------------------------------------------- */
.panel-body { background: var(--bg); }
.p-shell { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1100px) { .p-shell { grid-template-columns: 272px minmax(0, 1fr); } }

.p-side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(300px, 86vw); overflow: hidden; transform: translateX(-102%); transition: transform .4s var(--ease); }
.p-side.is-open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1100px) { .p-side { position: sticky; top: 0; height: 100vh; height: 100dvh; width: auto; transform: none; } }
.p-side .grid-bg { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%); mask-image: linear-gradient(to bottom, #000, transparent 55%); }
.p-side-inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px 14px; overflow-y: auto; scrollbar-width: thin; }
.p-brand { padding: 4px 8px; }
.p-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(4, 10, 28, .55); backdrop-filter: blur(2px); }
@media (min-width: 1100px) { .p-scrim { display: none; } }

.p-wallet { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(140deg, rgba(43, 99, 255, .28), rgba(18, 200, 255, .08)); border: 1px solid rgba(110, 155, 255, .25); transition: border-color .25s, transform .35s var(--ease); }
.p-wallet:hover { border-color: rgba(110, 155, 255, .55); transform: translateY(-2px); }
.p-wallet-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-text-3); }
.p-wallet-v { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.p-wallet-v small { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--ink-text-2); letter-spacing: 0; }
.p-wallet-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.82rem; font-weight: 600; color: var(--signal); }
.p-wallet-cta .i { width: 14px; height: 14px; }

.p-nav { display: grid; gap: 4px; }
.p-nav-h { margin: 12px 10px 4px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-text-3); }
.p-nav ul { display: grid; gap: 2px; }
.p-nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 0.92rem; font-weight: 500; color: var(--ink-text-2); transition: background-color .2s, color .2s; }
.p-nav-link .i { width: 18px; height: 18px; color: var(--ink-text-3); transition: color .2s; }
.p-nav-link:hover { background: rgba(110, 155, 255, .08); color: #fff; }
.p-nav-link.is-active { background: rgba(110, 155, 255, .14); color: #fff; }
.p-nav-link.is-active .i { color: var(--cyan); }
.p-nav-link.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }

.p-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); background: rgba(10, 22, 60, .5); border: 1px solid var(--ink-line); }
.p-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem; flex: none; }
.p-me-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.p-me-text strong { font-size: 0.88rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-me-text span { font-size: 0.76rem; color: var(--ink-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-logout { width: 36px; height: 36px; border-color: var(--ink-line); color: var(--ink-text-2); }

.p-main { min-width: 0; display: flex; flex-direction: column; }
.p-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 36px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.p-menu { flex: none; }
@media (min-width: 1100px) { .p-menu { display: none; } }
.p-title { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.p-top-link { font-size: 0.86rem; font-weight: 500; color: var(--text-3); }
.p-top-link:hover { color: var(--brand); }
@media (max-width: 640px) { .p-top-link, .hide-sm { display: none; } }

.p-content { width: 100%; max-width: 1240px; padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 36px) 96px; display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.p-content > .alert { margin-bottom: 0; }

.p-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: var(--r); background: var(--brand-soft); border: 1px solid rgba(43, 99, 255, .22); font-size: 0.9rem; }
.p-banner > .i { color: var(--brand); flex: none; }
.p-banner p { flex: 1; min-width: 220px; color: var(--text-2); }
.p-banner strong { color: var(--text); }
.p-banner--warn { background: rgba(245, 160, 40, .09); border-color: rgba(245, 160, 40, .32); }
.p-banner--warn > .i { color: var(--warn); }

/* 4) PANEL BİLEŞENLERİ ---------------------------------------------------- */
.p-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.p-hello .eyebrow { margin-bottom: 8px; }
.p-h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.p-section { display: grid; gap: 18px; }
.p-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.p-crumbs a { font-size: 0.88rem; font-weight: 600; color: var(--text-3); }
.p-crumbs a:hover { color: var(--brand); }

.p-card { padding: clamp(18px, 2.2vw, 26px); border-radius: var(--r-lg); min-width: 0; }
.p-card--flush { padding: 0; overflow: hidden; }
.p-card--flush > .p-card-head { padding: 18px clamp(18px, 2.2vw, 24px); margin: 0; border-bottom: 1px solid var(--line); }
.p-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.p-card-head .h3 { display: flex; align-items: center; gap: 10px; }

.p-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 980px) { .p-grid--dash { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.p-split { display: grid; gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (min-width: 980px) {
  .p-split { grid-template-columns: 260px minmax(0, 1fr); }
  .p-split--wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .p-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.p-stack { display: grid; gap: 16px; min-width: 0; }

/* KPI kartları */
.kpis { display: grid; gap: clamp(12px, 1.6vw, 18px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.kpi { position: relative; display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.kpi-k { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.kpi-k .i { width: 16px; height: 16px; color: var(--brand); }
.kpi-v { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.kpi-v--muted { color: var(--text-3); }
.kpi-s { font-size: 0.8rem; color: var(--text-3); }
.kpi--ink { border: 1px solid var(--ink-line); background: radial-gradient(120% 140% at 100% 0%, rgba(43, 99, 255, .45), transparent 55%), var(--ink-bg); transition: transform .35s var(--ease); }
.kpi--ink:hover { transform: translateY(-3px); }
.kpi--ink .kpi-k .i { color: var(--signal); }
.kpi--ink .kpi-v { color: #fff; }

/* Çubuk grafik */
.bars { width: 100%; height: auto; }
.bar-bg { fill: var(--surface-2); }
.bar { fill: var(--electric); }
.bars g:hover .bar { fill: var(--cyan); }
.bar-label { fill: var(--text-3); font-family: var(--font-mono); font-size: 12px; }

/* İlerleme halkası ve adımlar */
.ring { width: 58px; height: 58px; flex: none; }
.ring-bg { fill: none; stroke: var(--line-strong); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--electric); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.ring text { fill: var(--text); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.steps-check { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps-check li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; font-size: 0.92rem; }
.steps-check li + li { border-top: 1px dashed var(--line); }
.steps-check a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.steps-check a .i { width: 14px; height: 14px; color: var(--brand); transition: transform .3s var(--ease); }
.steps-check a:hover .i { transform: translateX(3px); }
.sc-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-strong); flex: none; }
.sc-dot .i { width: 14px; height: 14px; stroke-width: 2.4; }
.steps-check .is-done { color: var(--text-3); }
.steps-check .is-done .sc-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-check .is-done span:last-child { text-decoration: line-through; text-decoration-color: var(--line-strong); }

.status-list { display: grid; gap: 2px; margin-bottom: 16px; }
.status-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.9rem; }
.status-list li + li { border-top: 1px solid var(--line); }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(14, 159, 98, .15); }
.st-dot--off { background: var(--text-3); opacity: .6; }
.st-val { font-size: 0.8rem; color: var(--text-3); text-align: right; }

/* Tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { position: sticky; top: 0; padding: 11px 16px; text-align: left; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.table tr.is-muted td { color: var(--text-3); }
.t-main { display: block; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.t-main:hover { color: var(--brand); }
.t-main .mono { color: var(--brand); font-weight: 600; margin-right: 6px; }
.t-check { width: 44px; }
.t-check input { width: 17px; height: 17px; accent-color: var(--electric); }
.t-actions { text-align: right; white-space: nowrap; }
.t-actions form { display: inline; }

/* Boş durum */
.p-empty { display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 5vw, 56px) 24px; text-align: center; }
.p-empty p { max-width: 440px; color: var(--text-2); }
.p-empty--inline { padding: 36px 24px; }
.p-empty .icon-tile { width: 52px; height: 52px; }

/* Filtre ve araç çubuğu */
.filters { display: grid; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 42px; background: var(--surface); }
.inline-filter { display: flex; gap: 8px; }

/* details tabanlı açılır panel */
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); padding: 20px; }
@media (max-width: 640px) { .pop { position: static; } .pop-panel { left: 16px; right: 16px; width: auto; } }

.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.bulkbar .select { width: auto; }

/* Gruplar */
.groups-card { display: grid; gap: 14px; }
.groups-card .p-card-head { margin-bottom: 0; }
.group-list { display: grid; gap: 2px; }
.group-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 0.9rem; color: var(--text-2); }
.group-list a .i { width: 16px; height: 16px; color: var(--text-3); }
.group-list a small { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.group-list a:hover { background: var(--surface-2); color: var(--text); }
.group-list a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.group-list a.is-active .i { color: var(--brand); }
.group-new { display: flex; gap: 8px; }
.group-new .icon-btn { width: 38px; height: 38px; flex: none; }

/* 5) GÖNDERİM KONSOLU ----------------------------------------------------- */
.composer-p { display: grid; gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (min-width: 1100px) { .composer-p { grid-template-columns: minmax(0, 1fr) 360px; } }
.composer-p-main { display: grid; gap: 16px; min-width: 0; }
.composer-p-side { position: sticky; top: 92px; min-width: 0; }
.step { display: grid; gap: 18px; padding: clamp(18px, 2.2vw, 26px); }
/* app.css'teki ana sayfa "nasıl çalışır" mobil adım ızgarası panel kartlarına uygulanmasın */
.card.step { grid-template-columns: minmax(0, 1fr); }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.step-n { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.tpl-pick { margin-left: auto; }
.recip { display: grid; gap: 18px; }
.textarea--msg { min-height: 150px; font-size: 1rem; }
.msg-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.82rem; color: var(--text-3); }
.msg-meter b { font-family: var(--font-mono); color: var(--text); }
.var-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.var-bar-label { font-size: 0.82rem; color: var(--text-3); margin-right: 2px; }
.var-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 11px; border-radius: 99px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-2); font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.var-chip:hover, .var-chip:focus-visible { border-style: solid; border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.var-bar + .field-hint { margin-top: 8px; }
.msg-cell { min-width: 220px; max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; font-size: 0.86rem; }
.field-hint code { font-family: var(--font-mono); font-size: 0.78rem; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

.preview-card { display: grid; gap: 18px; padding: 20px; }
.phone-mini { border-radius: 26px; padding: 14px; background: linear-gradient(160deg, #0B1840, #040A1C); border: 1px solid var(--ink-line); color: var(--ink-text); }
.phone-mini-top { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid var(--ink-line); }
.pm-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.pm-from { font-weight: 600; font-size: 0.92rem; font-family: var(--font-mono); }
.pm-body { display: grid; gap: 8px; padding: 14px 4px 4px; min-height: 150px; align-content: start; }
.pm-when { justify-self: center; font-size: 0.7rem; color: var(--ink-text-3); }
.pm-bubble { justify-self: start; max-width: 92%; padding: 10px 13px; border-radius: 16px 16px 16px 6px; background: #1A2B63; color: #EEF3FF; font-size: 0.9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-bubble:empty::before { content: "Mesaj önizlemesi"; color: var(--ink-text-3); }
.cost { display: grid; gap: 0; margin: 0; }
.cost div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.9rem; border-bottom: 1px dashed var(--line); }
.cost dt { color: var(--text-2); }
.cost dd { margin: 0; font-family: var(--font-mono); font-weight: 600; }
.cost-total { font-size: 1rem !important; }
.cost-total dd { color: var(--brand); font-size: 1.1rem; }
.cost-note { font-size: 0.78rem; color: var(--text-3); }
.cost-warn { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; font-weight: 600; color: var(--danger); }
.cost-note--exact { display: flex; gap: 6px; align-items: flex-start; color: var(--ok); }
.cost-note--exact .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.cost-errors, .miss { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.84rem; }
.cost-errors li, .miss li { padding: 8px 10px; border-radius: 10px; background: rgba(229, 72, 77, .08); color: var(--danger); overflow-wrap: anywhere; }
.miss li.is-info { background: rgba(245, 160, 40, .12); color: var(--text-2); }
.miss { margin-top: 10px; }
.miss code { font-family: var(--font-mono); font-size: 0.8rem; }

/* Gönderim: dosya kontrolü, sütun eşleştirme, örnek alıcı, test ve onay */
.file-formats { display: inline-flex; gap: 4px; }
.fmt { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.recip-check { display: grid; gap: 14px; justify-items: start; }
.recip-check.is-busy { opacity: .6; }
.rstats { display: grid; gap: 8px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.rstat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.rstat b { font-family: var(--font-mono); font-size: 1.25rem; }
.rstat span { font-size: 0.76rem; color: var(--text-3); line-height: 1.3; }
.rstat--ok b { color: var(--ok); }
.rstat--warn b { color: var(--warn); }
.colmap { display: grid; gap: 8px; width: 100%; }
.colmap .label { margin: 0; }
.colmap-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.colmap-list li { display: grid; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .colmap-list li { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 11em; } }
.colmap-name { font-weight: 600; font-size: 0.88rem; overflow-wrap: anywhere; }
.colmap-name small { display: block; font-weight: 400; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }
.colmap-samples { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.colmap-samples span { max-width: 100%; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-pick { margin: 0; }
.sample-pick .select { width: 100%; }
.pm-meta { margin: -8px 0 0; font-size: 0.8rem; color: var(--text-3); text-align: center; }
.test-send { display: grid; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
.test-send:empty { display: none; }
.test-send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.test-cost { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-2); }
.test-send .is-ok { color: var(--ok); }
.test-send .is-error { color: var(--danger); }
.confirm-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--brand); background: var(--brand-soft); font-size: 0.9rem; }
.confirm-title { margin: 0; font-weight: 700; }
.confirm-box:focus { outline: none; }

/* 6) RAPOR ---------------------------------------------------------------- */
.report-head { display: grid; gap: 20px; padding: clamp(18px, 2.2vw, 26px); }
@media (min-width: 980px) { .report-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .report-actions { grid-column: 1 / -1; } }
.report-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.report-id { font-size: 1.3rem; font-weight: 600; }
.report-msg { padding: 16px; border-radius: var(--r); background: linear-gradient(160deg, #0B1840, #040A1C); }
.report-msg .pm-bubble { max-width: 100%; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.kv { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.kv dt { font-size: 0.76rem; color: var(--text-3); margin-bottom: 2px; }
.kv dd { margin: 0; font-weight: 600; font-size: 0.94rem; overflow-wrap: anywhere; }
.kv--rows { grid-template-columns: 1fr; gap: 0; }
.kv--rows div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv--rows dt { margin: 0; font-size: 0.88rem; }
.kv--rows dd { text-align: right; }
.kv-total dd { font-family: var(--font-display); font-size: 1.2rem; color: var(--brand); }
.iban { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.stackbar svg { display: block; width: 100%; height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sb-delivered { fill: var(--ok); background: var(--ok); }
.sb-sent { fill: var(--electric); background: var(--electric); }
.sb-pending { fill: var(--text-3); background: var(--text-3); }
.sb-unknown { fill: var(--text-2); background: var(--text-2); }
.sb-undelivered { fill: var(--warn); background: var(--warn); }
.sb-failed { fill: var(--danger); background: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; font-size: 0.86rem; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { font-family: var(--font-mono); color: var(--text); }
.lg-dot { width: 10px; height: 10px; border-radius: 3px; }

/* 7) ŞABLONLAR, PAKETLER, ANAHTARLAR, DESTEK ------------------------------ */
.tpl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tpl { display: grid; gap: 12px; padding: 18px; align-content: start; }
.tpl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tpl-head h3 { font-size: 0.98rem; }
.tpl-body { font-size: 0.88rem; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.tpl-foot form { margin-left: auto; }

.balance-hero { position: relative; display: grid; gap: 24px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--ink-line); background: radial-gradient(90% 140% at 100% 0%, rgba(43, 99, 255, .45), transparent 60%), var(--ink-bg); }
@media (min-width: 900px) { .balance-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.bh-main { position: relative; display: grid; gap: 8px; }
.balance-hero .kpi-k .i { color: var(--signal); }
.bh-v { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.bh-v small { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--ink-text-2); letter-spacing: 0; }
.bh-s { max-width: 560px; font-size: 0.88rem; color: var(--ink-text-2); }
.bh-methods { position: relative; display: grid; gap: 10px; padding: 14px 18px; border-radius: var(--r); background: rgba(10, 22, 60, .55); border: 1px solid var(--ink-line); font-size: 0.88rem; }
.bh-methods li { display: flex; align-items: center; gap: 10px; }
.bh-methods small { margin-left: auto; padding-left: 16px; color: var(--ink-text-3); }

.pkg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pkg { display: grid; gap: 14px; align-content: start; padding: 22px; }
.pkg--hl { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.pkg .badge { justify-self: start; }
.pkg-name { font-size: 1.05rem; font-weight: 650; }
.pkg-qty { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.pkg-qty small { font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-3); letter-spacing: 0; }
.pkg-price { margin: 0; display: grid; }
.pkg-price div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--line); }
.pkg-price dt { color: var(--text-3); }
.pkg-price dd { margin: 0; font-family: var(--font-mono); font-weight: 600; }
.pkg-total dd { color: var(--brand); }
.pkg-form { display: grid; gap: 10px; }

.newkey { position: relative; overflow: hidden; display: grid; gap: 14px; border: 1px solid var(--ink-line); }
.newkey > * { position: relative; }
.newkey .p-card-head { margin-bottom: 0; }
.newkey .p-card-head .i { color: var(--signal); }
.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(4, 10, 28, .7); border: 1px solid rgba(185, 255, 74, .3); }
.secret code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.9rem; color: var(--signal); overflow-wrap: anywhere; }

.ticket-list li + li { border-top: 1px solid var(--line); }
.ticket-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 2.2vw, 24px); transition: background-color .15s; }
.ticket-list a:hover { background: var(--surface-2); }
.tk-main { display: grid; gap: 2px; min-width: 0; }
.tk-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-main .muted { font-size: 0.8rem; }
.ticket-head { align-items: flex-start; }
.ticket-actions { display: flex; align-items: center; gap: 10px; }
.thread { display: grid; gap: 14px; margin: 6px 0 22px; padding: 0; list-style: none; }
.msg { max-width: 760px; padding: 14px 16px; border-radius: 16px 16px 16px 6px; background: var(--surface-2); border: 1px solid var(--line); }
.msg--staff { margin-left: auto; border-radius: 16px 16px 6px 16px; background: var(--brand-soft); border-color: rgba(43, 99, 255, .25); }
.msg-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.82rem; margin-bottom: 6px; }
.msg-body { font-size: 0.93rem; overflow-wrap: anywhere; }
.reply { padding-top: 18px; border-top: 1px solid var(--line); }

.activity { display: grid; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.activity time { font-size: 0.8rem; white-space: nowrap; }
.company-fields { display: grid; gap: 18px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.pager-info { font-size: 0.85rem; color: var(--text-3); }

/* Mobil: tablo hücrelerini sıkıştır */
@media (max-width: 640px) {
  .table th, .table td { padding: 11px 12px; }
  .t-main { max-width: 220px; }
  .composer-p-side { position: static; }
}

/* 8) YÖNETİM PANELİ ------------------------------------------------------- */
/* Müşteri panelinden ayırt etmek için menüde sinyal yeşili vurgu */
.admin-body .p-nav-link.is-active::before { background: linear-gradient(180deg, var(--signal), var(--cyan)); }
.admin-body .p-nav-link.is-active .i { color: var(--signal); }
.a-role { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(140deg, rgba(185, 255, 74, .14), rgba(18, 200, 255, .06)); border: 1px solid rgba(185, 255, 74, .25); }
.a-role-k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-text-3); }
.a-role-v { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.a-role-v .i { width: 16px; height: 16px; color: var(--signal); }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--signal); color: var(--navy-950); font-size: 0.72rem; font-weight: 700; text-align: center; font-family: var(--font-mono); }
.p-me-text a { font-size: 0.76rem; color: var(--cyan); }
.p-avatar--lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.2rem; }

.seg-link { padding: 8px 14px; border-radius: 10px; font-size: 0.86rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg-link:hover { color: var(--text); }
.seg-link.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.queue { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.queue-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.queue-n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text-3); min-width: 1.4em; }
.queue-l { font-size: 0.84rem; color: var(--text-2); line-height: 1.3; }
.queue-item.has-work { border-color: rgba(245, 160, 40, .45); background: linear-gradient(140deg, rgba(245, 160, 40, .08), transparent 60%), var(--surface); }
.queue-item.has-work .queue-n { color: var(--warn); }

.kpis--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 980px) { .p-grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.achart { display: block; width: 100%; height: auto; }
.ac-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.ac-hit { fill: transparent; }
.ac-bar { fill: var(--electric); transition: fill .2s; }
.achart--lime .ac-bar { fill: #7DC93A; }
.achart--violet .ac-bar { fill: var(--violet); }
.achart g:hover .ac-bar { fill: var(--cyan); }
.ac-label { fill: var(--text-3); font-family: var(--font-mono); font-size: 18px; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 0.84rem; color: var(--text-3); }
.chart-foot b { color: var(--text); font-family: var(--font-mono); }
.chart-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; border-radius: var(--r); border: 1px dashed var(--line-strong); color: var(--text-3); font-size: 0.9rem; }

.filters-grow { grid-column: span 2; }
@media (max-width: 640px) { .filters-grow { grid-column: auto; } }
.filters-check { align-self: center; }
.tabs-line { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs-line a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 0.9rem; font-weight: 600; color: var(--text-3); }
.tabs-line a:hover { color: var(--text); }
.tabs-line a.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs-line small { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); }

.t-main + .small, td > .muted.small, .tk-main .small { display: block; }
.t-actions .pop { display: inline-block; text-align: left; }
.t-actions form + form, .t-actions form + details { margin-left: 6px; }
.t-actions .pop-panel { white-space: normal; }

.cust-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.cust-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cust-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.offer-list { display: grid; gap: 0; margin-bottom: 8px; }
.offer-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer-list li > div { flex: 1; min-width: 0; }
.offer-list .small { display: block; }

.faq-admin li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 2.2vw, 24px); border-bottom: 1px solid var(--line); }
.faq-admin li:last-child { border-bottom: 0; }
.faq-admin li > div:first-child { min-width: 0; }
.faq-admin li.is-muted { opacity: .65; }
.row-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.row-actions form { display: contents; }

/* Menü yönetimi: üst düzey öğe ve girintili alt öğeler */
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(18px, 2.2vw, 24px); border-bottom: 1px solid var(--line); }
.menu-row.is-muted .menu-row-main { opacity: .6; }
.menu-row-main { display: grid; gap: 2px; min-width: 0; }
.menu-row-main .mono { overflow-wrap: anywhere; }
.menu-row--child { padding-left: calc(clamp(18px, 2.2vw, 24px) + 22px); border-left: 3px solid var(--brand-soft); }
.menu-sub > ul { display: grid; }
.menu-tree > li:last-child .menu-row, .menu-sub:last-child .menu-row:last-child { border-bottom: 0; }
.menu-feature { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.cover-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.post-thumb { width: 64px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; margin-right: 8px; }
.menu-feature summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 640px) { .menu-row { flex-wrap: wrap; } }
.perm-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.perm-tags { display: flex; flex-wrap: wrap; margin-top: 6px; }
.form-stack { display: grid; gap: clamp(16px, 2vw, 24px); }
.checks { display: grid; gap: 10px; }
.field--end { align-content: end; padding-bottom: 10px; }

.serp { display: grid; gap: 4px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid #DADCE0; font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: #202124; overflow-wrap: anywhere; }
.serp-title { font-size: 19px; line-height: 1.3; color: #1A0DAB; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.serp-desc { font-size: 14px; line-height: 1.55; color: #4D5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); text-align: right; }
.char-count.is-over { color: var(--warn); font-weight: 600; }

.creq-list { display: grid; gap: 14px; }
.creq { display: grid; gap: 12px; padding: 20px 22px; }
.creq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.creq-tags { display: flex; flex-wrap: wrap; }
.creq-body { font-size: 0.93rem; color: var(--text-2); overflow-wrap: anywhere; }
.creq-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Müşteri tarafı: özel teklif kartları */
.offer-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.offer-card { border-color: rgba(185, 255, 74, .45); background: linear-gradient(150deg, rgba(185, 255, 74, .08), transparent 55%), var(--surface); }
@media (min-width: 1280px) { .kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpis--5 .kpi { padding: 18px; } .kpis--5 .kpi-v { font-size: clamp(1.4rem, 2vw, 1.9rem); } }
/* Tablo içindeki açılır paneller kaydırma alanında kırpılmasın: ortada pencere olarak açılır */
.t-actions .pop[open] > .pop-panel { position: fixed; z-index: 70; left: 50%; top: 50%; right: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(4, 10, 28, .45), var(--shadow-lg); }
.secret--light { background: var(--surface-2); border-color: var(--line-strong); } .secret--light code { color: var(--text); }
.integ-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.integ { display: grid; gap: 10px; align-content: start; padding: 18px 20px; }
.integ--on { border-color: rgba(14, 159, 98, .35); }
.integ-head { display: flex; align-items: center; gap: 10px; }
.integ-head .h3 { flex: 1; font-size: 1rem; }
.integ-ev { margin: 0; display: grid; gap: 6px; font-size: 0.8rem; }
.integ-ev dt { font-weight: 600; color: var(--text-2); }
.integ-ev dd { margin: 0; color: var(--text-3); overflow-wrap: anywhere; }
.integ-ev .neg dt, .integ-ev .neg dd { color: var(--danger); }
.integ-env code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); overflow-wrap: anywhere; }
.code-mini { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.78rem; overflow-x: auto; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; } fieldset.field > legend { padding: 0; margin-bottom: 8px; }
/* Dokunma hedefleri en az 24 px (WCAG 2.5.8) */
.p-crumbs a, .field-empty a, .p-me-text a, .field-link { display: inline-flex; align-items: center; min-height: 24px; }

/* Bayi: tablo içi satış fiyatı formu */
.inline-form { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.input--xs { width: 6.5em; padding: 4px 8px; font-size: 0.86rem; min-height: 0; }
.p-bar { display: flex; justify-content: flex-end; gap: 10px; }
.mb-xs { margin-bottom: 6px; }
.mb-xs:last-child { margin-bottom: 0; }

/* --- Hatırlatmalar --------------------------------------------------------- */
.appt-top { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .appt-top { grid-template-columns: minmax(0, 1fr) 15em; } }
.appt-today .p-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appt-today h2 small { font-weight: 400; font-size: 0.85rem; }
.appt-mini { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.appt-mini li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.appt-mini li:first-child { border-top: 0; }
.appt-mini li span:not(.pill) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-requests { display: flex; flex-direction: column; justify-content: center; gap: 2px; color: inherit; text-decoration: none; }
.appt-requests.is-hot { border-color: rgba(245, 160, 40, .5); background: rgba(245, 160, 40, .08); }
.appt-requests.is-hot .h3 { color: var(--warn); }
.appt-table tr.is-past td { color: var(--text-3); }
.appt-table tr.is-cancelled b { text-decoration: line-through; }
.appt-resolve { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.appt-forms { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .appt-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.appt-preview { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.appt-preview .alert { margin: 0; }
.appt-sum, .appt-one { margin: 0; font-size: 0.9rem; }
.appt-sample .label { margin: 0 0 4px; }
.appt-sample-text { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.appt-rows { max-height: 420px; overflow: auto; background: var(--surface); border-radius: 10px; }
.appt-rows tr.is-error td { background: rgba(229, 72, 77, .06); }
.appt-leads { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.appt-custom { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; }
.appt-custom .input { width: 6em; }
/* Mobilde randevu tablosu kart görünümüne geçer */
@media (max-width: 640px) {
  .appt-table thead { display: none; }
  .appt-table, .appt-table tbody, .appt-table tr, .appt-table td { display: block; }
  .appt-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .appt-table td { padding: 3px 0; border: 0; }
  .appt-table td[data-label]:not([data-label="Randevu"]):not([data-label="Kişi"])::before { content: attr(data-label) ": "; color: var(--text-3); font-size: 0.8rem; }
  .appt-table .t-actions { text-align: left; padding-top: 8px; }
}
/* Herkese açık teyit sayfası */
.appt-facts { display: grid; gap: 6px; margin: 0 0 18px; }
.appt-facts div { display: flex; gap: 10px; }
.appt-facts dt { color: var(--text-3); min-width: 5em; }
.appt-facts dd { margin: 0; font-weight: 600; }
.appt-state { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.appt-actions { display: grid; gap: 10px; margin: 16px 0; }
.appt-note { color: var(--text-3); font-size: 0.85rem; }

/* --- Rehber: akıllı listeler ------------------------------------------------ */
.seg-head { margin-top: 18px; }
.seg-new > summary { list-style: none; }
.seg-new > summary::-webkit-details-marker { display: none; }
.seg-new[open] > summary { margin-bottom: 12px; }
.seg-new .form { gap: 12px; }
.seg-row { display: flex; gap: 6px; align-items: center; }
.seg-row .select { flex: 1; min-width: 0; }
.seg-row .input { width: 5em; }
.cap-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cap-row .input { width: 5em; }

/* Ekip ve onaylar */
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inline-actions .input--sm { width: auto; min-width: 140px; }
.p-card-foot { padding: 18px clamp(18px, 2.2vw, 24px); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.p-card-foot h3 { font-weight: 600; margin: 0; }
.p-card-foot .cap-row .input { flex: 1 1 200px; width: auto; max-width: none; }
.p-card-foot .cap-row .select { flex: 1 1 180px; width: auto; }
.inline-actions .select--sm { min-width: 170px; width: auto; }
.p-card-note { padding: 12px clamp(18px, 2.2vw, 24px) 0; margin: 0; }
/* Yönetim: müşteri özeti ve müşteriye özel paket fiyatları */
.cust-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cust-diag { list-style: none; display: grid; gap: 6px; }
.cust-diag li { display: flex; gap: 8px; align-items: baseline; }
.plain-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: 0.9rem; }
