/* =====================================================================
   PanelPro — "Nabız" teması
   Klasik SMM panel düzeni: koyu mor yan menü, beyaz çalışma alanı,
   pembe vurgu (--primary), artış yeşili (--brass), Unbounded rakamlar.
   ===================================================================== */
:root {
    --paper: #f2f1f7;
    --paper-2: #e9e7f1;
    --surface: #ffffff;
    --field: #f7f6fb;
    --ink: #17132b;
    --ink-2: #3a3552;
    --muted: #6b6880;
    --line: #e3e1ec;
    --line-strong: #cfcbdc;
    --night: #17132b;
    --night-2: #241e3f;
    --night-text: #b9b3d1;

    --primary: #e11d74;
    --primary-ink: #b3155b;
    --primary-soft: #fde7f1;
    --on-primary: #ffffff;
    --brass: #13b886;
    --brass-ink: #0d8a64;
    --on-brass: #ffffff;

    --ok: #13b886; --ok-ink: #0b7553; --ok-soft: #e1f6ee;
    --warn: #f0a400; --warn-ink: #7c5600; --warn-soft: #fff3d6;
    --sale: #e5484d; --sale-ink: #b4232a; --sale-soft: #fdebec;
    --danger-ink: #b4232a;
    --info: #4f5bd5; --info-soft: #ebedfd;
    --tint: #faf5ff; --tint-line: #eadcfb;
    --overlay: rgba(23, 19, 43, .45);
    --shadow: 0 1px 2px rgba(23, 19, 43, .05), 0 6px 20px -12px rgba(23, 19, 43, .18);
    --shadow-pop: 0 18px 40px -16px rgba(23, 19, 43, .45);

    --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Unbounded", "Onest", ui-sans-serif, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
    --side: 264px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.icon { flex: none; vertical-align: middle; }
.nowrap { white-space: nowrap; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2;
    cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-ink); color: var(--on-primary); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); color: #fff; }
.btn-up { background: var(--brass); color: var(--on-brass); }
.btn-up:hover { background: var(--brass-ink); color: var(--on-brass); }
.btn-danger { background: var(--surface); border-color: #f3c0c3; color: var(--sale-ink); }
.btn-danger:hover { background: var(--sale-soft); color: var(--sale-ink); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linklike { border: 0; background: none; padding: 0; color: var(--primary-ink); font-weight: 600; cursor: pointer; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field input[type="number"], .field input[type="url"], .field input[type="date"], .field input[type="search"], .field select, .field textarea, .select {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    background: var(--field); font-size: 15px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field select, .select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6880' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--primary); background-color: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--sale); }
.field-error { margin-top: 6px; font-size: 13.5px; color: var(--sale-ink); font-weight: 500; }
.field-error a { color: inherit; font-weight: 700; }
.hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); }
.file-input { font-size: 14px; color: var(--muted); max-width: 100%; }
.file-input::file-selector-button { margin-right: 12px; height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; }

/* ---------- Bildirimler ---------- */
.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-size: 15px; font-weight: 500; border: 1px solid transparent; }
.flash .icon { margin-top: 2px; }
.flash a { color: inherit; font-weight: 700; }
.flash-success { background: var(--ok-soft); color: var(--ok-ink); border-color: #bfe9d9; }
.flash-error { background: var(--sale-soft); color: var(--sale-ink); border-color: #f6c9cb; }
.flash-warning { background: var(--warn-soft); color: var(--warn-ink); border-color: #f5dfa3; }
.flash-info { background: var(--info-soft); color: #2f3aa6; border-color: #d4d8fb; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: var(--r); background: var(--night); color: #fff; font-size: 14.5px; box-shadow: var(--shadow-pop); }

/* ---------- Kartlar, rozetler ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-flush .card-head { padding: 18px 22px 0; }
.card-head h2 { font-size: 17px; font-weight: 700; }
.card-head p { color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge-warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge-danger { background: var(--sale-soft); color: var(--sale-ink); }
.badge-info { background: var(--info-soft); color: #2f3aa6; }
.badge-primary { background: var(--primary-soft); color: var(--primary-ink); }
.empty { padding: 40px 22px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--tint-line); font-size: 14.5px; }
.notice .icon { margin-top: 2px; color: var(--primary); }
.notice-warn { background: var(--warn-soft); border-color: #f5dfa3; color: var(--warn-ink); }
.notice-warn .icon { color: var(--warn-ink); }

/* Durum rozetleri (siparişler) */
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending { background: var(--warn-soft); color: var(--warn-ink); }
.st-processing, .st-in_progress { background: var(--info-soft); color: #2f3aa6; }
.st-completed { background: var(--ok-soft); color: var(--ok-ink); }
.st-partial { background: #fdf0e3; color: #9a4a0b; }
.st-canceled, .st-rejected { background: var(--paper-2); color: var(--muted); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; padding: 11px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--field); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; white-space: nowrap; }
.table .link-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.table .link-cell a { color: var(--ink-2); }
.table small { display: block; color: var(--muted); font-size: 12.5px; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table .group-row td { background: var(--paper); font-weight: 700; font-size: 14px; color: var(--ink); padding-top: 10px; padding-bottom: 10px; }
.table .group-row td .pf-icon { margin-right: 6px; color: var(--primary); }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px; }
.page-btn { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-gap { align-self: center; color: var(--muted); }

/* =====================================================================
   Panel düzeni (giriş yapmış üye)
   ===================================================================== */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--night) var(--side), var(--paper) var(--side)); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--night); color: var(--night-text); display: flex; flex-direction: column; padding: 18px 14px; }
.side-brand { flex: none; display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.side-brand:hover { color: #fff; }
.side-brand img { max-height: 34px; width: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }

/* Bakiye kutusu: yan menünün imza öğesi */
.wallet { flex: none; position: relative; margin: 0 2px 16px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, #2b2450, #1d1838); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.wallet::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 55%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
.wallet small { display: block; font-size: 12.5px; color: var(--night-text); }
.wallet-amount { display: block; margin: 2px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; word-break: break-all; }
.wallet .btn { width: 100%; min-height: 38px; font-size: 14px; }
.level { margin-top: 12px; font-size: 12.5px; }
.level-row { display: flex; justify-content: space-between; gap: 8px; color: #fff; font-weight: 600; }
.level-row span:last-child { color: var(--night-text); font-weight: 500; }
.level-bar { height: 5px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.level-bar span { display: block; height: 100%; background: var(--brass); border-radius: 99px; }
.level-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.side-nav { display: grid; gap: 2px; flex: 1; }
.side-group { margin: 14px 10px 6px; font-size: 12px; font-weight: 600; color: #7d77a0; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--night-text); text-decoration: none; font-weight: 500; font-size: 15px; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.is-active { background: var(--primary); color: var(--on-primary); }
.side-link .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.side-foot { padding: 14px 8px 0; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; }
.side-foot a { color: var(--night-text); text-decoration: none; }
.side-foot a:hover { color: #fff; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 28px; background: rgba(242, 241, 247, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border: 0; background: none; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); }
.menu-btn { display: none; }
.top-balance { display: none; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 6px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 14.5px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--paper-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 6px; color: var(--ink); font-size: 14.5px; text-decoration: none; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--paper); color: var(--ink); }
.menu-list .is-current { font-weight: 700; color: var(--primary-ink); }
.app-content { flex: 1; padding: 24px 28px 56px; width: 100%; max-width: 1280px; }
.page-intro { color: var(--muted); margin: -4px 0 18px; max-width: 75ch; }
.side-backdrop { display: none; }

/* ---------- Yeni sipariş ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.order-form .card-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.svc-search { position: relative; margin-bottom: 16px; }
.svc-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.svc-search input { padding-left: 42px !important; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.platform-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.platform-chip:hover { border-color: var(--ink-2); }
.platform-chip.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.qty-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qty-quick button { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.qty-quick button:hover { border-color: var(--primary); color: var(--primary-ink); }
.drip { margin: 4px 0 16px; padding: 14px; border-radius: var(--r); background: var(--field); border: 1px dashed var(--line-strong); }
.drip .form-row { margin-top: 12px; }
.drip .field { margin-bottom: 0; }

/* Tutar göstergesi: sayfanın akılda kalan öğesi */
.meter { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--night); color: #fff; }
.meter small { display: block; font-size: 12.5px; color: var(--night-text); margin-bottom: 4px; }
.meter-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.meter-value.is-bump { animation: bump .28s ease; }
.meter-side { text-align: right; font-size: 13px; color: var(--night-text); }
.meter-side strong { display: block; color: #fff; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.meter.is-low .meter-side strong { color: #ff8db8; }
@keyframes bump { 40% { transform: translateY(-3px); color: color-mix(in srgb, var(--primary) 40%, #fff); } }

.svc-info h3 { font-size: 16px; line-height: 1.35; margin-bottom: 4px; }
.svc-id { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.svc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 14px 0; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.svc-facts div { background: var(--surface); padding: 10px 12px; }
.svc-facts dt { font-size: 12px; color: var(--muted); }
.svc-facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.svc-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.svc-desc { white-space: pre-line; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; padding: 12px 14px; border-radius: var(--r); background: var(--field); }
.receipt { border-color: #bfe9d9; background: linear-gradient(180deg, var(--ok-soft), var(--surface) 60%); }
.receipt h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ok-ink); margin-bottom: 10px; }
.kv { margin: 0; display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ann { padding: 12px 0; border-top: 1px solid var(--line); }
.ann:first-of-type { border-top: 0; padding-top: 0; }
.ann h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 4px; }
.ann p { font-size: 14.5px; color: var(--ink-2); white-space: pre-line; }
.ann-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex: none; }
.ann-success .ann-dot { background: var(--ok); }
.ann-warning .ann-dot { background: var(--warn); }
.ann time { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- Sipariş listesi ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.tab:hover { border-color: var(--ink-2); color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab .n { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.search-form .input { min-height: 42px; }
.progress { height: 5px; margin-top: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; min-width: 80px; }
.progress span { display: block; height: 100%; background: var(--brass); }

/* ---------- Servis listesi ---------- */
.svc-cats { display: grid; gap: 16px; }
.rate { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Bakiye yükleme ---------- */
.deposit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.amount-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.amount-quick button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.amount-quick button:hover { border-color: var(--primary); color: var(--primary-ink); }
.methods { display: grid; gap: 8px; margin-bottom: 16px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.method:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.method input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.method strong { display: block; font-size: 15px; }
.method small { display: block; color: var(--muted); font-size: 13px; }
.bonus-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bonus-list li { padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 13.5px; font-weight: 600; }
.bank { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.bank:first-of-type { border-top: 0; padding-top: 0; }
.bank img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.bank-main { flex: 1; min-width: 0; }
.bank-main strong { display: block; }
.bank-main code { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.bank-main small { color: var(--muted); }

/* ---------- API dokümanı ---------- */
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: start; }
.api-key { padding: 14px; border-radius: var(--r); background: var(--night); color: #fff; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.api-section { padding: 20px 0; border-top: 1px solid var(--line); }
.api-section:first-of-type { border-top: 0; padding-top: 0; }
.api-section h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.api-section h3 code { font-family: var(--mono); font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-ink); }
.params { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.params td { padding: 7px 10px; border: 1px solid var(--line); vertical-align: top; }
.params td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; width: 1%; background: var(--field); }
pre.code { margin: 0; padding: 14px 16px; border-radius: var(--r); background: #1d1838; color: #e9e6f7; font-family: var(--mono); font-size: 13px; line-height: 1.55; overflow-x: auto; white-space: pre; }

/* ---------- Ortaklık ---------- */
.aff-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.aff-numbers div { background: var(--surface); padding: 16px 18px; }
.aff-numbers small { display: block; color: var(--muted); font-size: 13px; }
.aff-numbers strong { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Hesap, destek talepleri ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.status-t-open { background: var(--warn-soft); color: var(--warn-ink); }
.status-t-answered { background: var(--ok-soft); color: var(--ok-ink); }
.status-t-customer_reply { background: var(--primary-soft); color: var(--primary-ink); }
.status-t-closed { background: var(--paper-2); color: var(--muted); }
.ticket-link { font-weight: 600; color: var(--ink); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ticket-title { font-size: clamp(20px, 2.4vw, 26px); overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; margin-top: 6px; }
ol.thread { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.thread-msg { padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.thread-msg.is-staff { background: var(--tint); border-color: var(--tint-line); box-shadow: inset 3px 0 0 var(--primary); }
.thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14.5px; }
.thread-head .avatar { width: 30px; height: 30px; font-size: 13px; }
.thread-msg.is-staff .avatar { background: var(--night); color: #fff; }
.thread-head time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.thread-body { line-height: 1.65; overflow-wrap: anywhere; }
.thread-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.reply-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.reply-actions .field { margin-bottom: 0; }
.result-box { max-width: 520px; margin: 40px auto; text-align: center; }
.result-box .icon-wrap { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn-ink); }
.result-box h1 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.result-box p { color: var(--muted); margin-bottom: 18px; }

/* =====================================================================
   Herkese açık sayfalar (giriş, kayıt, servisler, sayfa)
   ===================================================================== */
.site-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-top-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.site-brand:hover { color: var(--ink); }
.site-brand img { max-height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-nav .btn { margin-left: 6px; color: var(--on-primary); padding: 0 16px; }
.site-nav .btn:hover { background: var(--primary-ink); color: var(--on-primary); }
.lang-menu > summary { height: 38px; padding: 0 10px; font-size: 13.5px; text-transform: uppercase; }
.site-main { padding: 32px 0 64px; min-height: 60vh; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 70ch; }
.announce-strip { background: var(--night); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }

/* Giriş sayfası */
.hero { padding: 48px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 440px); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.045em; margin-bottom: 16px; max-width: 14ch; }
.hero-text { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin-bottom: 26px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.board-cell { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.board-cell:hover { border-color: var(--primary); color: var(--ink); }
.board-cell .pf-icon { color: var(--primary); }
.board-cell strong { display: block; font-size: 14.5px; line-height: 1.2; }
.board-cell small { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero-proof strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow); }
.auth-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; margin-bottom: 4px; }
.auth-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14.5px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-google:hover { border-color: var(--ink); color: var(--ink); }
.auth-page { display: grid; place-items: start center; padding: 24px 0; }
.auth-page .auth-card { width: 100%; max-width: 480px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.how { padding: 48px 0; border-top: 1px solid var(--line); }
.how h2, .feats h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; margin-bottom: 24px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.how li { counter-increment: step; position: relative; padding-top: 52px; }
.how li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.how li::after { content: ""; position: absolute; left: 50px; right: 0; top: 19px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.how li:last-child::after { display: none; }
.how h3 { font-size: 17px; margin-bottom: 6px; }
.how p { color: var(--muted); font-size: 15px; }
.feats { padding: 48px 0 16px; border-top: 1px solid var(--line); }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; margin: 0; }
.feat-list div { display: flex; gap: 14px; }
.feat-list .icon { color: var(--primary); margin-top: 3px; }
.feat-list dt { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.feat-list dd { margin: 0; color: var(--muted); font-size: 15px; }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--primary-ink); }
.prose { max-width: 75ch; line-height: 1.7; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.error-page { text-align: center; padding: 40px 0; }
.error-code { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.error-code span { width: 64px; height: 80px; display: grid; place-items: center; border-radius: var(--r); background: var(--night); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 40px; }
.error-page h1 { font-size: 26px; margin-bottom: 8px; }
.error-page .lead { color: var(--muted); margin-bottom: 20px; }

/* ---------- Yönetici şeritleri ---------- */
.theme-preview-bar { position: sticky; top: 0; z-index: 120; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: #ffd43b; color: #17132b; font-size: 13.5px; }
.theme-preview-bar div { display: flex; align-items: center; gap: 8px; }
.theme-preview-bar a, .theme-preview-bar button { height: 30px; padding: 0 12px; border-radius: 6px; border: 0; background: #17132b; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.theme-preview-bar .is-ghost { background: transparent; color: #17132b; border: 1px solid rgba(23, 19, 43, .35); }
.license-bar { position: relative; z-index: 121; padding: 8px 16px; background: #d6324a; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; }
.license-bar a { color: #fff; text-decoration: underline; margin-left: 6px; }
.demo-bar { position: relative; z-index: 121; background: #0f0c1f; color: #dcd7ef; font-size: 13px; line-height: 1.45; }
.demo-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 8px; }
.demo-bar-text { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; }
.demo-bar-text svg { flex: none; color: #ff8db8; }
.demo-cred { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.demo-cred a { color: #ff8db8; font-weight: 700; text-decoration: none; }
.demo-cred code { padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12.5px; user-select: all; }
.demo-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--tint); color: var(--ink); font-size: 14px; }
.demo-hint svg { flex: none; color: var(--primary); }

/* ---------- Canlı destek penceresi ---------- */
body:has(.chat) .toast-stack { bottom: 88px; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.chat-launcher { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; background: var(--night); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-pop); }
.chat-launcher:hover { background: var(--night-2); }
.chat-launcher-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.chat-launcher .chat-presence { position: absolute; left: 36px; top: 8px; border: 2px solid var(--night); }
.chat-presence { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9a96b0; flex: none; }
.chat-presence.is-online { background: #2bd38d; }
.chat-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.chat.is-open .chat-launcher { display: none; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; width: 380px; height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 24px 60px -18px var(--overlay), 0 0 0 1px rgba(23, 19, 43, .06); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--night); color: #fff; }
.chat-head-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 16.5px; }
.chat-head p { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.4; color: var(--night-text); }
.chat-head p .chat-presence { width: 8px; height: 8px; margin-top: 5px; }
.chat-end { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chat-end:hover { color: var(--sale-ink); }
.chat-x { width: 36px; height: 36px; border: 0; background: none; color: #fff; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-x:hover { background: rgba(255, 255, 255, .1); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--paper); overscroll-behavior: contain; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.chat-msg.is-visitor { align-self: flex-end; align-items: flex-end; }
.chat-msg.is-system { align-self: center; max-width: 100%; }
.chat-bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.is-visitor .chat-bubble { background: var(--primary); border-color: var(--primary); color: var(--on-primary); border-radius: 16px 16px 4px 16px; }
.chat-msg.is-visitor .chat-bubble a { color: var(--on-primary); }
.chat-meta { margin-top: 3px; font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.chat-system { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 12.5px; text-align: center; }
.chat-system.is-error { align-self: center; background: var(--sale-soft); color: var(--sale-ink); }
.chat-start { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.chat-field { margin-bottom: 12px; }
.chat-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.chat-field input, .chat-field textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--field); font-size: 14.5px; resize: none; }
.chat-field input:focus, .chat-field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.chat-field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.chat-field.has-error input, .chat-field.has-error textarea { border-color: var(--sale); }
.chat-error { margin: -2px 0 10px; font-size: 13px; color: var(--danger-ink); font-weight: 500; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-ended { display: flex; justify-content: center; margin-top: 14px; }
.chat-ended[hidden], .chat-start[hidden], .chat-compose[hidden], .chat-end[hidden] { display: none; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-compose textarea { flex: 1; min-height: 40px; max-height: 120px; padding: 9px 0; border: 0; resize: none; font-size: 15px; line-height: 1.45; background: none; }
.chat-compose textarea:focus { outline: none; }
.chat-send { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-send:hover { background: var(--primary-ink); }
.chat-foot { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-foot:has(.chat-end:not([hidden])) { justify-content: space-between; }
.chat-foot a { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; text-align: right; }
.chat-foot a:hover { color: var(--primary-ink); }
.chat-foot:not(:has(a, .chat-end:not([hidden]))) { display: none; }

/* =====================================================================
   Duyarlı
   ===================================================================== */
@media (max-width: 1100px) {
    .order-grid, .api-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero h1 { max-width: 18ch; }
}
@media (max-width: 960px) {
    .app { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
    .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 80; transform: translateX(-102%); transition: transform .22s ease; height: 100%; }
    .side.is-open { transform: none; box-shadow: var(--shadow-pop); }
    .side-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--overlay); }
    .side-backdrop.is-open { display: block; }
    .menu-btn { display: grid; }
    .top-balance { display: inline-flex; }
    .topbar { padding: 0 14px; }
    .app-content { padding: 18px 16px 48px; }
    .deposit-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
    .how ol { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .how li { padding: 0 0 0 54px; }
    .how li::after { display: none; }
    .feat-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 18px 16px; }
    .card-flush { padding: 0; }
    .card-flush .card-head { padding: 16px 16px 0; }
    .topbar h1 { font-size: 16px; }
    .menu > summary .menu-name { display: none; }
    .topbar .lang-menu { display: none; }
    .site-nav a:not(.btn) { display: none; }
    .site-nav .lang-menu, .site-nav a.keep { display: inline-flex; }
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aff-numbers { grid-template-columns: minmax(0, 1fr); }
    .meter { flex-direction: column; align-items: flex-start; }
    .meter-side { text-align: left; }
    /* Tablolar kartlara dönüşür */
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
    .table-cards td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; flex: none; }
    .table-cards td[data-label=""]::before { display: none; }
    .table-cards .link-cell { max-width: 62vw; }
    .table-cards .actions { justify-content: flex-end; padding-top: 8px; }
    .table-cards .group-row td { justify-content: flex-start; }
    .toast-stack { left: 16px; right: 16px; }
    .chat { right: 14px; bottom: 14px; }
    .chat-launcher { width: 56px; height: 56px; padding: 0; justify-content: center; }
    .chat-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .chat-launcher-icon { width: 44px; height: 44px; }
    .chat-launcher .chat-presence { left: auto; right: 6px; top: 6px; }
    .chat-panel { inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; }
    .demo-bar { font-size: 12.5px; }
    .demo-bar-text { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Favoriler, kupon, servis güncellemeleri, üye görünümü şeridi ---------- */
.d-block { display: block; }
.svc-info-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fav-btn:hover { border-color: var(--warn); color: var(--ink); }
.fav-btn.is-on { background: var(--warn-soft); border-color: #f5dfa3; color: var(--warn-ink); }
.fav-btn.is-on .icon, .fav-icon.is-on .icon { fill: var(--warn); stroke: var(--warn); }
.fav-form { display: inline; }
.fav-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--line-strong); cursor: pointer; vertical-align: middle; }
.fav-icon:hover { color: var(--warn); border-color: var(--line); }
.coupon-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--mono); letter-spacing: .06em; }
.upd { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.upd-new { background: var(--info-soft); color: var(--info); }
.upd-price_down, .upd-enabled { background: var(--ok-soft); color: var(--ok-ink); }
.upd-price_up { background: var(--warn-soft); color: var(--warn-ink); }
.upd-disabled { background: var(--sale-soft); color: var(--sale-ink); }
.upd-table s { font-size: 12.5px; }
.impersonate-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; background: var(--warn); color: #2a1d00; font-size: 14px; font-weight: 600; }
.impersonate-bar span { display: inline-flex; align-items: center; gap: 6px; }
.impersonate-bar form { margin: 0; }
.impersonate-bar button { border: 0; border-radius: 6px; padding: 5px 12px; background: #2a1d00; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
