/* Sayfaya özel stiller: giriş, panel, masalar, ayarlar, QR stüdyo, çağrılar */

/* Tema ikonları */
.theme-ico-sun { display: none; }
:root[data-theme="dark"] .theme-ico-moon { display: none; }
:root[data-theme="dark"] .theme-ico-sun { display: inline; }
:root[data-theme="dark"] .thumb, :root[data-theme="dark"] .product-tile__img { filter: brightness(.92); }

/* ---------- Giriş ---------- */
.auth-body { background: var(--bg); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth__panel { display: flex; flex-direction: column; justify-content: center; padding: var(--s-10) clamp(24px, 6vw, 88px); max-width: 560px; width: 100%; margin: 0 auto; }
.auth__logo img { height: 40px; width: auto; display: block; margin-bottom: var(--s-8); }
.auth__panel h1 { font-size: var(--fs-3xl); letter-spacing: -.02em; }
.auth__panel .lead { color: var(--text-2); margin-bottom: var(--s-6); }
.auth__aside { background: var(--brand-900); color: #e9edf7; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.auth__aside::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; border: 90px solid rgba(255,255,255,.05); right: -260px; top: -240px; }
.auth__aside::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(79,120,192,.55), transparent 70%); left: -80px; bottom: -120px; }
.auth__aside-inner { position: relative; z-index: 1; padding: clamp(32px, 6vw, 72px); max-width: 560px; }
.auth__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: #9fb4e3; margin-bottom: var(--s-3); }
.auth__quote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: #fff; margin-bottom: var(--s-6); }
.auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.auth__points li { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; color: #d5def2; }
.auth__points .ico { width: 22px; height: 22px; color: #9fb4e3; }
.auth .form-actions .btn { min-width: 160px; }
.pw-field { position: relative; }
.pw-field .input { padding-right: 46px; }
.pw-field .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth__aside { display: none; } .auth__panel { padding: var(--s-8) var(--s-5); } }

/* ---------- Yenilikler ---------- */
.wn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.wn-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.wn-list strong { color: var(--text); margin-right: var(--s-2); }
.wn-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }

/* ---------- Garson çağrıları (üst bar) ---------- */
.calls { position: relative; }
.calls__badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--bad-600); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.calls.is-ringing .calls__btn { color: var(--bad-600); animation: ring 1s var(--ease) 3; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
.calls__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 92vw); max-height: 70vh; overflow: auto; box-shadow: var(--sh-3); z-index: 70; }
.calls__panel .list > li { padding: var(--s-3) var(--s-4); }
.call-type { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--warn-50); color: var(--warn-700); }
.call-type--hesap { background: var(--ok-50); color: var(--ok-700); }

/* ---------- Gösterge paneli ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-4); }
.dash-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-4); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .dash-grid { gap: var(--s-3); } .stat { padding: var(--s-4); } .stat__value { font-size: var(--fs-2xl); } }
.stat--accent { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.stat--accent .stat__label { color: #b8c6e8; } .stat--accent .stat__meta { color: #9fb4e3; }
.stat--accent .stat__icon { background: rgba(255,255,255,.12); color: #fff; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--brand-400); }
.chart .bar.is-today { fill: var(--primary); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart text { fill: var(--text-3); font-size: 12px; font-family: var(--font); font-weight: 600; }
.chart .val { fill: var(--text-2); font-size: 11px; }
.rank { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-sunken); color: var(--text-2); font-weight: 800; font-size: 12px; align-items: center; justify-content: center; flex: none; }
.bar-inline { height: 6px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; margin-top: 6px; }
.bar-inline > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.quick a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--sh-1); }
.quick a:hover { text-decoration: none; border-color: var(--brand-200); background: var(--primary-soft); }
.quick .ico { width: 22px; height: 22px; color: var(--primary); }

/* ---------- Masalar ---------- */
.tables-summary { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.tables-summary .chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s-4); }
.ttile { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ttile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-strong); }
.ttile.is-open::before { background: var(--warn-600); }
.ttile.is-open { border-color: var(--warn-100); }
.ttile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); }
.ttile__name { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; word-break: break-word; }
.ttile__meta { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; display: flex; gap: var(--s-2); align-items: center; margin-top: 2px; }
.ttile__meta .ico { width: 14px; height: 14px; }
.ttile__amount { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--warn-50); color: var(--warn-700); font-weight: 700; font-size: var(--fs-sm); }
.ttile__amount b { font-size: var(--fs-lg); color: var(--text); font-variant-numeric: tabular-nums; }
.ttile__actions { display: grid; gap: var(--s-2); }
.ttile__actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.ttile details > summary { list-style: none; }
.ttile details > summary::-webkit-details-marker { display: none; }
.ttile details[open] > summary { background: var(--bg-sunken); }
.ttile .qr-drop { display: grid; gap: var(--s-2); padding-top: var(--s-2); }
.ttile[hidden] { display: none; }

/* ---------- Ayarlar ---------- */
.feature-row { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row__body { flex: 1; min-width: 0; }
.feature-row__body strong { display: block; margin-bottom: 2px; }
.feature-row__body p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.feature-row__where { font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; font-weight: 600; }

/* ---------- QR stüdyo ---------- */
.qr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-4); align-items: start; }
@media (max-width: 960px) { .qr-layout { grid-template-columns: minmax(0, 1fr); } }
.qr-preview { display: flex; justify-content: center; padding: var(--s-5); background: var(--bg-sunken); border-radius: var(--r-lg); }
.qr-box { background: #fff; padding: 14px; border-radius: 14px; box-shadow: var(--sh-2); line-height: 0; }
.qr-box svg, .qr-box canvas { width: 240px; height: 240px; display: block; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.theme-pick label { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s-2); text-align: center; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.theme-swatch { height: 34px; border-radius: 6px; margin-bottom: 6px; }
.url-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); }

/* Profil */
.license { display: flex; align-items: center; gap: var(--s-4); }
.license__days { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sticky-actions { position: sticky; bottom: 0; }
