/* Pibure Platform Yönetimi: tek tasarım dili (açık renk, siyah tema yok).
   Pibure kabuğu amber vurgulu, Inter. Marka bölgeleri kendi temasını taşır. */
:root {
  --bg: #f3f6fa; --surface: #ffffff; --ink: #16191f; --muted: #5b6573; --line: #dde3ec; --soft: #f1f4f8;
  --accent: #b9700c; --accent-ink: #ffffff; --primary: #2c62b8;
  --ok: #1d7a4f; --ok-bg: #e0f2e8; --warn: #9a6200; --warn-bg: #fcefd2; --bad: #b3261e; --bad-bg: #fbe4e2;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; margin: 0; padding-inline: 16px; padding-block: 16px 40px; }
.hidden { display: none !important; }
.wrap { max-width: 1060px; margin: 0 auto; display: grid; gap: 14px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.logo small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 500; padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab.soon { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel { display: grid; gap: 14px; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-width: 0; }
.sec { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 9px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.tile .chip { justify-self: start; }
.tile b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tr.satir { cursor: default; } tr.satir.tikla { cursor: pointer; } tr.satir.tikla:hover td { background: var(--soft); }
.sub { font-size: 12px; color: var(--muted); }
.btn { appearance: none; font: inherit; font-weight: 500; font-size: 13px; border-radius: 7px; padding: 6px 11px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); } .btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select, textarea, input[type=text], input[type=email], input[type=password], input[type=number] { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; min-width: 0; }
.tablewrap select { padding: 5px 8px; font-size: 13px; }
.brands { display: flex; gap: 8px; flex-wrap: wrap; }
.brandbtn { appearance: none; font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.brandbtn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.brandbtn.soon { opacity: .45; cursor: default; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; background: var(--surface); align-content: start; }
.plan.kapali { opacity: .6; }
.plan b { font-size: 15px; } .price { font-size: 20px; font-weight: 600; }
.pform { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pform label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.pform .wide { grid-column: 1 / -1; }
.contact { font-size: 12px; color: var(--muted); line-height: 1.45; }
.lock { font-size: 12px; color: var(--muted); }
.msg { font-size: 13px; font-weight: 500; }
/* Giriş */
.giris { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.giris form { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.giris input { width: 100%; height: 44px; }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(22, 25, 31, .45); }
.overlay .box { width: 100%; max-width: 440px; max-height: 80vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.uye { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--soft); margin-top: 8px; }
@media (max-width: 560px) { .tile b { font-size: 22px; } }
@media (prefers-reduced-motion: no-preference) { .btn, .brandbtn { transition: border-color .15s; } }

/* Marka bölgeleri: marka seçilince altındaki alan o markanın kendi görünümünü alır. */
.bolge { border-radius: 12px; padding: 14px; display: grid; gap: 14px; background: var(--b-bg); border: 1px solid var(--b-line); font-family: var(--b-font); color: var(--b-ink); }
.bolge .card { background: var(--b-surf); border-color: var(--b-line); color: var(--b-ink); }
.bolge .tile { background: var(--b-soft); }
.bolge .muted, .bolge .sub, .bolge .contact, .bolge th, .bolge .lock { color: var(--b-mut); }
.bolge th, .bolge td { border-color: var(--b-line); }
.bolge tr.satir.tikla:hover td { background: var(--b-soft); }
.bolge .btn, .bolge select { background: var(--b-surf); color: var(--b-ink); border-color: var(--b-line); }
.bolge .btn:hover { border-color: var(--b-pri); }
.bolge .btn.primary { background: var(--b-pri); border-color: var(--b-pri); color: var(--b-pri-ink); }
.bolge .btn.danger { color: var(--bad); }
.bolge[data-brand="zirkonik"] { --b-bg: #f1f6fd; --b-surf: #ffffff; --b-ink: #16222f; --b-mut: #5b6b7d; --b-line: #d6e2f2; --b-soft: #e6effb; --b-pri: #2f6fd1; --b-pri-ink: #ffffff; --b-font: "Inter", system-ui, sans-serif; }
.bolge[data-brand="medicamine"] { --b-bg: #fbf5f7; --b-surf: #ffffff; --b-ink: #3a1427; --b-mut: #84596e; --b-line: #ecd5df; --b-soft: #f6e9ef; --b-pri: #9b1b52; --b-pri-ink: #ffffff; --b-font: "DM Sans", system-ui, sans-serif; }
.bolge[data-brand="oversee"] { --b-bg: #f3f1eb; --b-surf: #ffffff; --b-ink: #14202e; --b-mut: #5b6b7a; --b-line: #deddd0; --b-soft: #eae7dd; --b-pri: #1e4c6e; --b-pri-ink: #ffffff; --b-font: "Inter", system-ui, sans-serif; }
.bolge[data-brand="mikrobat"] { --b-bg: #e6f4fe; --b-surf: #ffffff; --b-ink: #1a2b3c; --b-mut: #567089; --b-line: #cfe3f3; --b-soft: #d8ebfa; --b-pri: #2878c8; --b-pri-ink: #ffffff; --b-font: "Inter", system-ui, sans-serif; }

/* Destek modu: yalnız okuma. Gerçek yetki sunucuda (destek elemanı işlem isterse 403); bu yalnız görünümü sadeleştirir. */
.destek-modu .sahip-only { display: none !important; }
.destek-modu #p-abone td select, .destek-modu #p-deneme td select, .destek-modu #p-tahsilat td select,
.destek-modu #p-abone td .btn:not([data-cp]), .destek-modu #p-deneme td .btn:not([data-cp]), .destek-modu #p-tahsilat td .btn:not([data-cp]),
.destek-modu #plan-liste .btn, .destek-modu #sifirlama-gecmisi-bolum { display: none !important; }
.uye[class] { cursor: default; }
.uye:has(.yetki) { cursor: pointer; }
.yetki-ipucu { margin-top: 6px; font-size: 12px; color: var(--muted, #6b7280); }
.yetki { margin: 8px 0 0; padding: 8px 10px 8px 26px; font-size: 13px; background: rgba(127,127,127,.08); border-radius: 8px; }
.yetki li { margin: 2px 0; }
