/* Melitea Bulut Panel */
:root {
  --bg: #F4F5F8; --surface: #FFFFFF; --surface-2: #F8FAFC; --border: #E4E7EE; --border-2: #D5DAE4;
  --text: #0F172A; --muted: #64748B; --muted-2: #94A3B8;
  --side: #0B0F14; --side-2: #141A22; --side-text: #CBD5E1;
  --amber: #F59E0B; --amber-2: #D97706; --orange: #EA580C; --amber-soft: #FEF3C7;
  --green: #16A34A; --green-soft: #DCFCE7; --red: #DC2626; --red-soft: #FEE2E2; --blue: #2563EB; --blue-soft: #DBEAFE; --gray-soft: #F1F5F9;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--amber-2); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* yükleniyor */
.boot { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; background: var(--side); }
.boot__logo img { width: 72px; height: 72px; border-radius: 50%; }
.boot__spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: 600 14px/1.2 var(--font); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--muted-2); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { border: 0; color: #1A0F02; background: linear-gradient(135deg, #FCD34D, var(--amber) 50%, var(--orange)); box-shadow: 0 8px 18px -10px rgba(234, 88, 12, .9); }
.btn--primary:hover { background: linear-gradient(135deg, #FDE68A, #FBBF24 50%, #F97316); box-shadow: 0 10px 22px -10px rgba(234, 88, 12, 1); }
.btn--danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn--danger:hover { background: #B91C1C; border-color: #B91C1C; }
.btn--ghost-danger { color: var(--red); border-color: #FCA5A5; }
.btn--ghost-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn--wa { color: #fff; background: #16A34A; border-color: #16A34A; }
.btn--wa:hover { background: #15803D; border-color: #15803D; }
.btn--sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* giriş */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(1000px 600px at 15% 10%, rgba(245, 158, 11, .18), transparent 60%), radial-gradient(800px 500px at 90% 90%, rgba(234, 88, 12, .14), transparent 60%), var(--side); overflow: auto; }
.login__glow { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 40px 40px; }
.login__card { position: relative; width: min(420px, 100%); padding: 32px; border-radius: 22px; background: rgba(20, 26, 34, .85); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); color: #F1F5F9; backdrop-filter: blur(12px); display: grid; gap: 14px; }
.login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login__brand img { width: 48px; height: 48px; border-radius: 50%; }
.login__brand b { display: block; font-family: Georgia, serif; font-size: 22px; color: #FCD34D; }
.login__brand span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #94A3B8; }
.login__card h1 { font-size: 22px; }
.login__card .muted { color: #94A3B8; margin: -6px 0 4px; }
.login__card label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.login__card input { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font: 500 15px var(--font); outline: none; }
.login__card input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.login__foot { margin: 4px 0 0; font-size: 12px; color: #64748B; text-align: center; }

/* iskelet */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 248px; flex: none; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: var(--side); color: var(--side-text); }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.side__brand img { width: 40px; height: 40px; border-radius: 50%; }
.side__brand b { display: block; font-family: Georgia, serif; font-size: 19px; color: #FCD34D; line-height: 1.1; }
.side__brand span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #64748B; }
.side__nav { display: grid; gap: 3px; }
.side__nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); text-decoration: none; font-weight: 500; }
.side__nav a:hover { background: var(--side-2); color: #fff; }
.side__nav a.on { background: linear-gradient(90deg, rgba(245, 158, 11, .18), rgba(245, 158, 11, .04)); color: #FCD34D; box-shadow: inset 3px 0 0 var(--amber); }
.side__new { margin-top: 4px; }
.side__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; padding: 12px 6px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; }
.side__foot a { color: #94A3B8; text-decoration: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(244, 245, 248, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top h1 { font-size: 20px; }
.top__right { margin-left: auto; }
.top__menu { display: none; }
.view { padding: 24px 28px 48px; display: grid; gap: 20px; align-content: start; }

/* kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card__head h2 { font-size: 15px; }
.card__head .muted { font-size: 13px; }
.card__head > :last-child:not(:first-child) { margin-left: auto; }
.card__body { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: grid; gap: 4px; position: relative; overflow: hidden; }
.kpi span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi small { color: var(--muted); }
.kpi::after { content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: var(--k, var(--amber-soft)); opacity: .7; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.grid2--even { grid-template-columns: 1fr 1fr; }

/* rozetler */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-ACTIVE { background: var(--green-soft); color: #15803D; }
.b-TRIAL { background: var(--blue-soft); color: #1D4ED8; }
.b-EXPIRED { background: var(--amber-soft); color: #B45309; }
.b-SUSPENDED { background: var(--red-soft); color: #B91C1C; }
.b-DELETED { background: var(--gray-soft); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.pill--live i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.8s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.code { font: 600 12.5px ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 7px; border-radius: 6px; background: var(--gray-soft); color: #334155; }

/* tablo */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #FFFBEB; }
td.r, th.r { text-align: right; }
.firm b { display: block; }
.firm small { color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* araç çubuğu */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--side); color: #FCD34D; }
.tabs button span { margin-left: 6px; font-size: 11.5px; opacity: .75; }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.search input { flex: 1; border: 0; outline: none; padding: 10px 0; font: 14px var(--font); background: none; }
.search svg { color: var(--muted-2); }

/* formlar */
.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: #334155; }
.field small { color: var(--muted); font-size: 12px; }
input.inp, select.inp, textarea.inp { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; font: 14px var(--font); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { min-height: 70px; resize: vertical; }
.inp:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; font-weight: 600; cursor: pointer; }
.chip span small { font-weight: 500; color: var(--muted); }
.chip input:checked + span { border-color: var(--amber); background: #FFFBEB; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.chip input:focus-visible + span { outline: 2px solid var(--amber); }
.opt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt label { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border-2); cursor: pointer; }
.opt label:has(input:checked) { border-color: var(--amber); background: #FFFBEB; }
.opt b { display: block; }
.opt small { color: var(--muted); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { width: 42px; height: 24px; appearance: none; border-radius: 999px; background: var(--border-2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(18px); }
.sum { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* uyarılar */
.alert { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { margin-top: 1px; }
.alert--err { background: var(--red-soft); color: #991B1B; }
.alert--warn { background: var(--amber-soft); color: #92400E; }
.alert--info { background: var(--blue-soft); color: #1E3A8A; }
.alert--ok { background: var(--green-soft); color: #166534; }
.login .alert--err { background: rgba(220, 38, 38, .15); color: #FCA5A5; }

/* müşteri ayrıntısı */
.dhead { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px; }
.dhead__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--side); color: #FCD34D; font-weight: 800; font-size: 20px; }
.dhead h2 { font-size: 21px; }
.dhead__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; color: var(--muted); }
.dhead__act { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--border); }
.facts > div { padding: 14px 20px; border-right: 1px solid var(--border); }
.facts > div:last-child { border-right: 0; }
.facts span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts b { font-size: 18px; }
.facts small { display: block; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--orange)); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.list { display: grid; }
.list > div { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.list > div:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list small { color: var(--muted); }
.ev { font-size: 13px; }
.ev time { color: var(--muted-2); font-size: 12px; white-space: nowrap; }

/* grafik */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars i { width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #FBBF24, var(--orange)); min-height: 3px; }
.bars small { font-size: 11px; color: var(--muted); }
.bars em { font-style: normal; font-size: 11px; font-weight: 700; color: #334155; white-space: nowrap; }

/* kimlik bilgisi kartı */
.cred { display: grid; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.cred > div { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cred > div:last-child { border-bottom: 0; }
.cred span { width: 120px; flex: none; color: var(--muted); font-size: 13px; }
.cred b { flex: 1; font: 700 15px ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.copy { border: 1px solid var(--border-2); background: #fff; border-radius: 8px; padding: 4px 9px; font: 600 12px var(--font); cursor: pointer; }
.copy:hover { border-color: var(--amber); }

/* pencere */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(11, 15, 20, .55); backdrop-filter: blur(4px); overflow-y: auto; }
.modal__box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation: pop .18s ease-out; }
.modal__box h2 { font-size: 19px; margin-bottom: 4px; }
.modal__box > div > .muted:first-of-type { margin-top: 0; }
.modal__x { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 6px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 12px; background: var(--side); color: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); font-weight: 500; animation: pop .2s ease-out; }
.toast.err { background: #991B1B; }

/* kılavuz */
.guide { display: grid; gap: 16px; max-width: 900px; }
.guide h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.guide h2 i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--amber-soft); color: var(--amber-2); font-style: normal; font-weight: 800; font-size: 14px; flex: none; }
.guide ol, .guide ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.guide p { margin: 8px 0 0; }
.guide .tip { margin-top: 12px; }

@media (max-width: 1100px) { .grid2, .grid2--even { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .side { position: fixed; z-index: 40; left: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  .shell.menu-open .side { transform: none; }
  .top__menu { display: inline-grid; }
  .top { padding: 12px 16px; }
  .view { padding: 16px 16px 40px; }
  .row, .opt { grid-template-columns: 1fr; }
  .dhead__act { margin-left: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .cred span { width: 96px; }
  .hide-sm { display: none; }
}

/* düzeltmeler */
.row { align-items: start; }
.list > .empty { display: block; }
.empty b { display: inline; margin: 0; font-size: inherit; }
.empty > b:first-child { display: block; font-size: 15px; margin-bottom: 4px; }
@media (max-width: 860px) {
  .side { box-shadow: none; }
  .shell.menu-open .side { box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
}

.delcode { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 2px dashed #FCA5A5; background: #FFF7F7; }
.delcode span { color: var(--muted); font-size: 13px; }
.delcode b { flex: 1; font: 800 20px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; color: var(--red); }

.uact { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Canlı veritabanı doluluğu */
.dbu__body { display: grid; grid-template-columns: auto 1fr 1.3fr; gap: 22px; align-items: center; }
.dbu__live { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: dbulive 1.8s ease-out infinite; vertical-align: middle; }
@keyframes dbulive { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.dbu__ring { position: relative; width: 132px; height: 132px; }
.dbu__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dbu__ring circle { fill: none; stroke: var(--gray-soft, #EEF2F7); stroke-width: 12; }
.dbu__ring circle.v { stroke: #22C55E; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); animation: dbufill 1.4s cubic-bezier(.2,.8,.2,1); }
@keyframes dbufill { from { stroke-dashoffset: 326.7; } }
.dbu--warn circle.v { stroke: #F59E0B; } .dbu--crit circle.v { stroke: #EF4444; }
.dbu__ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dbu__ring b { font-size: 24px; } .dbu__ring small { color: var(--muted, #64748B); font-size: 12px; }
.dbu__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dbu__stats > div { padding: 10px 12px; border-radius: 12px; background: var(--gray-soft, #F1F5F9); }
.dbu__stats small { display: block; color: var(--muted, #64748B); font-size: 12px; } .dbu__stats b { font-size: 18px; }
.dbu__left { color: #15803D; }
.dbu__list { max-height: 220px; overflow: auto; }
.dbu__cap { margin: 4px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #64748B); }
.dbu__row { position: relative; display: flex; gap: 8px; align-items: center; padding: 6px 8px; margin-bottom: 4px; border-radius: 8px; font-size: 13px; overflow: hidden; }
.dbu__row i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: rgba(245,158,11,.14); border-radius: 8px; z-index: 0; animation: dbubar 1.1s cubic-bezier(.2,.8,.2,1); }
@keyframes dbubar { from { width: 0; } }
.dbu__row > span, .dbu__row > b { position: relative; z-index: 1; }
@media (max-width: 900px) { .dbu__body { grid-template-columns: 1fr; justify-items: center; } .dbu__list { width: 100%; } .dbu__stats { width: 100%; } }
/* Menü modülleri */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mods__i { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.mods__i:hover { background: var(--gray-soft, #F1F5F9); }
.mods__i input:not(:checked) + span { color: var(--muted, #94A3B8); text-decoration: line-through; }
@media (max-width: 760px) { .mods { grid-template-columns: 1fr; } }

/* Paketler sayfası */
.plans3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plancard { padding: 18px; }
.plancard__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.plancard__h b { font-size: 18px; }
.plancard__kv { margin-top: 12px; font-size: 13px; }
@media (max-width: 860px) { .plans3 { grid-template-columns: 1fr; } }

/* Üst çubuk: başlık + sağ taraf bilgileri */
.top__title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.top__title small { font-size: 12.5px; color: var(--muted, #6b7280); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topstat { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.topstat:hover { border-color: #c7cbd3; box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .15); }
.topstat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.topstat span { display: flex; flex-direction: column; line-height: 1.2; }
.topstat small { font-size: 11px; color: var(--muted, #6b7280); text-transform: capitalize; }
.topstat b { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.topstat--hot { border-color: #86efac; background: #f0fdf4; }
.topstat--hot svg { stroke: #16a34a; opacity: 1; }
.top__site svg, .top__new svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1180px) { .topstat--clock { display: none; } }
@media (max-width: 980px) { .top__site { display: none; } }
@media (max-width: 760px) { #topSales, .top__new, .top__title small { display: none; } }

/* Kampanya sayacı önizleme */
.cdprev { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.cdprev div { min-width: 74px; padding: 10px 8px; border-radius: 12px; text-align: center; background: linear-gradient(180deg, #1f2937, #0f172a); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .6); }
.cdprev b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; color: #fbbf24; line-height: 1.1; }
.cdprev span { font-size: 11px; color: #cbd5e1; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 3D veri tankı ---------- */
.dbu__body--3d { display: grid; grid-template-columns: 200px 250px minmax(0, 1fr); gap: 26px; align-items: center; }
.dbu__tankwrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dbu__tankcap { margin: 0; font-size: 11.5px; color: var(--muted, #6b7280); }
.tank3d { --c1: #38bdf8; --c2: #0ea5e9; --c3: #0369a1; position: relative; width: 170px; aspect-ratio: 160 / 200; filter: drop-shadow(0 18px 22px rgba(2, 132, 199, .22)); animation: tkFloat 5s ease-in-out infinite; }
.tank3d--warn { --c1: #fbbf24; --c2: #f59e0b; --c3: #b45309; filter: drop-shadow(0 18px 22px rgba(245, 158, 11, .25)); }
.tank3d--crit { --c1: #f87171; --c2: #ef4444; --c3: #991b1b; filter: drop-shadow(0 18px 22px rgba(239, 68, 68, .3)); }
.tank3d--sm { width: 110px; }
.tank3d svg { width: 100%; height: 100%; overflow: visible; }
.tk-shadow { fill: rgba(15, 23, 42, .12); }
.tk-back { fill: rgba(148, 163, 184, .10); stroke: rgba(100, 116, 139, .35); stroke-width: 1.2; }
.tk-bottom { fill: rgba(148, 163, 184, .15); stroke: rgba(100, 116, 139, .35); stroke-width: 1.2; }
.tk-rim { fill: rgba(255, 255, 255, .35); stroke: rgba(100, 116, 139, .55); stroke-width: 1.4; }
.tk-glass { pointer-events: none; }
.tk-tick { stroke: rgba(100, 116, 139, .5); stroke-width: 1.2; }
.tk-l1 { stop-color: var(--c3); } .tk-l2 { stop-color: var(--c1); }
.tk-liquid { transition: transform 1.6s cubic-bezier(.3, .8, .3, 1); }
.tk-wave { transform-box: fill-box; }
.tk-wave--f { animation: tkWave 3.2s linear infinite; }
.tk-wave--b { opacity: .45; animation: tkWave 5s linear infinite reverse; transform: translateY(-3px); }
.tk-bub { fill: rgba(255, 255, 255, .75); animation: tkBub 3.4s ease-in infinite; }
.tk-bub.b2 { animation-delay: 1s; animation-duration: 4s; } .tk-bub.b3 { animation-delay: 2s; } .tk-bub.b4 { animation-delay: .5s; animation-duration: 2.8s; }
.tank3d__pct { position: absolute; left: 0; right: 0; top: 42%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.tank3d__pct b { font-size: 26px; font-weight: 800; color: #0f172a; text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255, 255, 255, .9); letter-spacing: -.02em; }
.tank3d__pct small { font-size: 11px; color: #334155; font-weight: 600; text-shadow: 0 0 8px #fff; }
.tank3d--sm .tank3d__pct b { font-size: 18px; }
.dbu__stats--3d { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dbu__stat { padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--border, #e5e7eb); box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .3); transform: perspective(500px) rotateX(6deg); transition: transform .3s; }
.dbu__stat:hover { transform: perspective(500px) rotateX(0) translateY(-2px); }
.dbu__stat small { display: block; font-size: 11px; color: var(--muted, #6b7280); }
.dbu__stat b { font-size: 17px; }
.dbu__delta { grid-column: 1 / -1; font-size: 12px; color: var(--muted, #6b7280); padding: 6px 10px; border-radius: 8px; background: #f1f5f9; }
.dbu__delta.up { color: #b45309; background: #fffbeb; } .dbu__delta.down { color: #15803d; background: #f0fdf4; }
.dbu__row { animation: dbuRowIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.dbu__row .dbu__bar { transition: width 1.2s cubic-bezier(.3, .8, .3, 1); animation: dbuBarGrow 1.2s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); overflow: hidden; }
.dbu__row .dbu__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: dbuShine 2.6s linear infinite; animation-delay: calc(var(--i, 0) * 200ms); }
.dbu__dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); vertical-align: 1px; }
.dbu--tick .dbu__live { animation: dbuTick .8s ease; }
@keyframes tkWave { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes tkBub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes tkFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes dbuRowIn { from { opacity: 0; transform: translateX(-8px); } }
@keyframes dbuBarGrow { from { width: 0; } }
@keyframes dbuShine { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes dbuTick { 50% { transform: scale(1.8); } }

/* müşteri sayfası kullanım kartı */
.usage3d__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: center; }
.usage3d__tank { display: flex; align-items: center; gap: 12px; }
.usage3d__size { display: flex; flex-direction: column; line-height: 1.25; }
.usage3d__size b { font-size: 22px; }
.usage3d__size small { font-size: 11.5px; color: var(--muted, #6b7280); }
.usage3d__share { margin-top: 6px; font-size: 11.5px; color: #0369a1; }
.usage3d__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.utile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #ffffff, #f1f5f9); border: 1px solid var(--border, #e5e7eb); box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .35); transform: perspective(600px) rotateX(8deg); animation: utileIn .6s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: calc(var(--i) * 90ms); transition: transform .3s; }
.utile:hover { transform: perspective(600px) rotateX(0) translateY(-3px); }
.utile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .8) 50%, transparent 60%); background-size: 250% 100%; animation: dbuShine 4s linear infinite; animation-delay: calc(var(--i) * 400ms); pointer-events: none; }
.utile__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e0f2fe; color: #0369a1; margin-bottom: 4px; }
.utile__ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.utile b { font-size: 22px; letter-spacing: -.02em; }
.utile small { font-size: 11.5px; color: var(--muted, #6b7280); }
@keyframes utileIn { from { opacity: 0; transform: perspective(600px) rotateX(40deg) translateY(10px); } }
@media (max-width: 1100px) { .dbu__body--3d { grid-template-columns: 180px minmax(0, 1fr); } .dbu__body--3d .dbu__list { grid-column: 1 / -1; } }
@media (max-width: 700px) { .dbu__body--3d, .usage3d__body { grid-template-columns: 1fr; justify-items: center; } .dbu__stats--3d, .dbu__body--3d .dbu__list, .usage3d__tiles { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .tank3d, .tk-wave, .tk-bub, .dbu__row, .dbu__bar, .dbu__bar::after, .utile, .utile::after { animation: none !important; } }

/* Özet: kampanya sayacı (sitedekinin aynısı) */
.camp { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(180px, 260px); gap: 18px; align-items: center; padding: 14px 18px; margin-bottom: 16px; background: linear-gradient(135deg, #111827, #1f2937 55%, #3b2a10); color: #fff; border: 0; box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .7); }
.camp__l { display: flex; gap: 12px; align-items: center; min-width: 0; }
.camp__l b { display: block; font-size: 14.5px; }
.camp__l small { display: block; font-size: 12px; color: #cbd5e1; }
.camp__l small b { display: inline; font-size: 12px; color: #fca5a5; }
.camp__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: campPing 1.6s ease-out infinite; }
.camp__dot.off { background: #64748b; animation: none; }
.camp__cd { display: flex; align-items: flex-start; gap: 6px; perspective: 500px; }
.camp__u { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.camp__u b { display: block; min-width: 50px; padding: 7px 0; border-radius: 10px; text-align: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #2b2c33 50%, #18191d 50%); color: #fbbf24; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); transform: rotateX(10deg); }
.camp__u b.flip { animation: campFlip .45s cubic-bezier(.2, .8, .2, 1); }
.camp__u small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.camp__sep { margin-top: 8px; font-weight: 800; color: #fbbf24; animation: campBlink 1s steps(1) infinite; }
.camp__r { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.camp__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.camp__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #fbbf24, #ef4444); transition: width 1s linear; }
.camp--off { opacity: .7; }
@keyframes campFlip { from { transform: rotateX(-80deg); opacity: .3; } to { transform: rotateX(10deg); opacity: 1; } }
@keyframes campPing { 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
@keyframes campBlink { 50% { opacity: .25; } }
@media (max-width: 1000px) { .camp { grid-template-columns: 1fr; } .camp__cd { justify-content: center; } }

/* ================= Veritabanı · canlı izleme (koyu, profesyonel) ================= */
.dbu.dbu--x { position: relative; overflow: hidden; padding: 0; border: 0; color: #e2e8f0;
  background: radial-gradient(900px 300px at 15% -20%, rgba(56, 189, 248, .18), transparent 60%), radial-gradient(700px 300px at 110% 120%, rgba(167, 139, 250, .16), transparent 60%), linear-gradient(160deg, #0b1220, #0f172a 55%, #111827);
  box-shadow: 0 24px 50px -28px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dbu.dbu--x::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask: radial-gradient(ellipse at 30% 0%, #000, transparent 70%); mask: radial-gradient(ellipse at 30% 0%, #000, transparent 70%); animation: dbxGrid 20s linear infinite; }
.dbu.dbu--x::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, #38bdf8, transparent); animation: dbxScan 4.5s ease-in-out infinite; }
.dbx__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; }
.dbx__title { display: flex; align-items: center; gap: 12px; }
.dbx__title b { display: block; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.dbx__title small { display: block; font-size: 12px; color: #94a3b8; }
.dbx__pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7), 0 0 12px #22c55e; animation: dbxPing 1.8s ease-out infinite; }
.dbx__upd { font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.dbx__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr 1.3fr; gap: 14px; padding: 10px 20px 14px; }
.dbx__cell { position: relative; border-radius: 16px; padding: 14px; background: rgba(15, 23, 42, .55); border: 1px solid rgba(148, 163, 184, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(6px); animation: dbxIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.dbx__cell:nth-child(2) { animation-delay: .08s; } .dbx__cell:nth-child(3) { animation-delay: .16s; }
.dbx__cell--tank { display: flex; align-items: center; gap: 14px; }
.dbx__cell--tank .tank3d { width: 140px; flex: none; }
.dbx__kv { display: grid; gap: 10px; min-width: 0; }
.dbx__kv small, .dbx__sphead small, .dbx__cap { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.dbx__kv b { font-size: 20px; color: #fff; letter-spacing: -.02em; }
.dbx__ok { color: #4ade80 !important; }
.dbx__cell--donut { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dbx__donut { position: relative; width: 140px; aspect-ratio: 1; }
.dbx__donut--sm { width: 104px; }
.dbx__donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dbx__donut-c b { font-size: 26px; color: #fff; line-height: 1; }
.dbx__donut--sm .dbx__donut-c b { font-size: 18px; }
.dbx__donut-c small { font-size: 11px; color: #94a3b8; }
.dn { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; animation: dbxSpin 60s linear infinite; }
.dn__bg { fill: none; stroke: rgba(148, 163, 184, .14); stroke-width: 14; }
.dn__seg { fill: none; stroke-width: 14; stroke-linecap: butt; transition: stroke-dasharray 1.4s cubic-bezier(.3, .8, .3, 1); transition-delay: calc(var(--i) * 90ms); filter: drop-shadow(0 0 4px currentColor); cursor: help; }
.dn__seg:hover { stroke-width: 18; }
.dn__glow { fill: rgba(56, 189, 248, .06); stroke: rgba(56, 189, 248, .25); stroke-width: 1; animation: dbxBreath 3s ease-in-out infinite; }
.dbx__cell--spark { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dbx__sphead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dbx__delta { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(148, 163, 184, .15); color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dbx__delta.up { background: rgba(251, 191, 36, .15); color: #fbbf24; } .dbx__delta.down { background: rgba(74, 222, 128, .15); color: #4ade80; }
.sp { width: 100%; height: auto; overflow: visible; }
.sp__grid { stroke: rgba(148, 163, 184, .12); stroke-dasharray: 3 4; }
.sp__line { fill: none; stroke: #38bdf8; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(56, 189, 248, .7)); stroke-dasharray: 100; stroke-dashoffset: 100; animation: dbxDraw 1.6s cubic-bezier(.3, .8, .3, 1) forwards; }
.sp__area { opacity: 0; animation: dbxFade 1.2s .4s ease forwards; }
.sp__dot { fill: #fff; stroke: #38bdf8; stroke-width: 2; }
.sp__ping { fill: none; stroke: #38bdf8; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: dbxRing 1.8s ease-out infinite; }
.dbx__spfoot { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: #94a3b8; }
.dbx__spfoot b { font-size: 16px; color: #fff; }
.dbx__list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; padding: 6px 20px 18px; max-height: 260px; overflow: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.dbx__list .dbx__cap { grid-column: 1 / -1; margin: 8px 0 2px; }
.dbx__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 6px 0; animation: dbxIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms + .2s); }
.dbx__nm { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbx__nm i { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.dbx__nm small { color: #f87171; }
.dbx__row > b { font-size: 12.5px; color: #cbd5e1; }
.dbx__track { grid-column: 1 / -1; position: relative; height: 5px; border-radius: 5px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.dbx__track i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); box-shadow: 0 0 10px var(--c); transition: width 1.4s cubic-bezier(.3, .8, .3, 1); animation: dbuBarGrow 1.3s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i) * 70ms + .3s); }
.dbx__track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); background-size: 35% 100%; background-repeat: no-repeat; animation: dbuShine 2.4s linear infinite; }
.dbx__empty { grid-column: 1 / -1; font-size: 13px; color: #94a3b8; }
.dbx--tick .dbx__pulse { animation: dbxTick .7s ease, dbxPing 1.8s ease-out infinite; }
/* koyu zeminde tank */
.dbu--x .tk-back { fill: rgba(148, 163, 184, .08); stroke: rgba(148, 163, 184, .35); }
.dbu--x .tk-bottom { fill: rgba(148, 163, 184, .12); stroke: rgba(148, 163, 184, .35); }
.dbu--x .tk-rim { fill: rgba(255, 255, 255, .12); stroke: rgba(148, 163, 184, .55); }
.dbu--x .tk-shadow { fill: rgba(56, 189, 248, .18); }
.dbu--x .tank3d { filter: drop-shadow(0 0 22px rgba(56, 189, 248, .35)); }
.dbu--x .tank3d__pct b { color: #fff; text-shadow: 0 0 12px rgba(56, 189, 248, .9), 0 1px 0 rgba(0, 0, 0, .4); }
.dbu--x .tank3d__pct small { color: #cbd5e1; text-shadow: none; }

/* müşteri sayfası kullanım kartı (koyu) */
.usage3d.usage3d--x { overflow: hidden; color: #e2e8f0; border: 0; background: radial-gradient(600px 220px at 0% 0%, rgba(56, 189, 248, .16), transparent 60%), linear-gradient(160deg, #0b1220, #0f172a 60%, #111827); box-shadow: 0 20px 44px -26px rgba(2, 6, 23, .9); }
.usage3d--x .card__head { border-color: rgba(148, 163, 184, .14); }
.usage3d--x .card__head h2 { color: #fff; }
.usage3d--x .card__head .muted, .usage3d--x .usage3d__size small { color: #94a3b8; }
.usage3d--x .usage3d__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.usage3d--x .usage3d__tank { flex-wrap: wrap; gap: 14px; }
.usage3d--x .usage3d__size b { color: #fff; }
.usage3d--x .usage3d__share { color: #7dd3fc; }
.usage3d--x .utile { background: rgba(15, 23, 42, .6); border-color: rgba(148, 163, 184, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.usage3d--x .utile::after { background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); background-size: 250% 100%; }
.usage3d--x .utile b { color: #fff; }
.usage3d--x .utile small { color: #94a3b8; }
.usage3d--x .utile__ic { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.usage3d--x .tk-back { fill: rgba(148, 163, 184, .08); stroke: rgba(148, 163, 184, .35); }
.usage3d--x .tk-rim { fill: rgba(255, 255, 255, .12); }
.usage3d--x .tank3d { filter: drop-shadow(0 0 18px rgba(56, 189, 248, .35)); }
.usage3d--x .tank3d__pct b { color: #fff; text-shadow: 0 0 10px rgba(56, 189, 248, .9); }
.usage3d--x .tank3d__pct small { color: #cbd5e1; text-shadow: none; }

@keyframes dbxPing { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7), 0 0 12px #22c55e; } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0), 0 0 12px #22c55e; } }
@keyframes dbxTick { 50% { transform: scale(1.8); } }
@keyframes dbxScan { 0% { left: -40%; } 60%, 100% { left: 110%; } }
@keyframes dbxGrid { to { background-position: 28px 28px, 28px 28px; } }
@keyframes dbxIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes dbxSpin { to { transform: rotate(270deg); } }
@keyframes dbxBreath { 50% { stroke-opacity: .6; fill-opacity: .12; } }
@keyframes dbxDraw { to { stroke-dashoffset: 0; } }
@keyframes dbxFade { to { opacity: 1; } }
@keyframes dbxRing { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@media (max-width: 1200px) { .dbx__grid { grid-template-columns: 1fr 1fr; } .dbx__cell--spark { grid-column: 1 / -1; } }
@media (max-width: 760px) { .dbx__grid, .dbx__list, .usage3d--x .usage3d__body { grid-template-columns: 1fr; } .dbx__cell--tank { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .dbu--x::before, .dbu--x::after, .dn, .dn__glow, .sp__line, .sp__area, .sp__ping, .dbx__cell, .dbx__row, .dbx__track i, .dbx__track i::after, .dbx__pulse { animation: none !important; } .sp__line { stroke-dashoffset: 0; } .sp__area { opacity: 1; } }

/* ================= Veritabanı göstergesi — açık, zarif, kompakt ================= */
.dbu.dbl { padding: 14px 18px 12px; }
.dbl__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dbl__head b { font-size: 14px; }
.dbl__head small { font-size: 12px; color: var(--muted, #6b7280); }
.dbl__upd { margin-left: auto; font-size: 11.5px; color: var(--muted, #6b7280); font-variant-numeric: tabular-nums; }
.dbl__live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); animation: dblPing 2s ease-out infinite; }
.dbl__live.tick { animation: dblTick .6s ease, dblPing 2s ease-out infinite; }
.dbl__top { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(120px, 190px); gap: 18px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border, #e5e7eb); }
.dbl__ring { position: relative; width: 72px; height: 72px; --rc: #0ea5e9; }
.dbl__ring--sm { width: 64px; height: 64px; flex: none; }
.dbl__ring.dbl--warn { --rc: #f59e0b; } .dbl__ring.dbl--crit { --rc: #ef4444; }
.dbl__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dbl__rbg { fill: none; stroke: #eef2f7; stroke-width: 6; }
.dbl__rv { fill: none; stroke: var(--rc); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray 1.4s cubic-bezier(.3, .8, .3, 1); }
.dbl__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.dbl__ring--sm b { font-size: 13px; }
.dbl__kv { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 26px; margin: 0; }
.dbl__kv dt { font-size: 11px; color: var(--muted, #6b7280); }
.dbl__kv dd { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.dbl__ok { color: #16a34a; }
.dbl__sp { position: relative; }
.dbl__sp .sp { width: 100%; height: auto; display: block; }
.dbl__delta { position: absolute; top: -4px; right: 0; font-size: 11px; font-weight: 600; color: var(--muted, #6b7280); font-variant-numeric: tabular-nums; }
.dbl__delta.up { color: #b45309; } .dbl__delta.down { color: #15803d; }
.dbl .sp__grid { stroke: #eef2f7; stroke-dasharray: none; }
.dbl .sp__line { stroke: #0ea5e9; stroke-width: 2; filter: none; }
.dbl .sp__dot { fill: #fff; stroke: #0ea5e9; }
.dbl .sp__ping { stroke: #0ea5e9; }
.dbl__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; padding-top: 8px; max-height: 190px; overflow: auto; scrollbar-width: thin; }
.dbl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 5px 0; animation: dblIn .45s ease both; animation-delay: calc(var(--i) * 50ms); }
.dbl__nm { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbl__nm i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.dbl__nm small { color: #dc2626; }
.dbl__row > b { font-size: 12px; font-weight: 600; color: var(--muted, #6b7280); }
.dbl__tr { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: #f1f5f9; overflow: hidden; }
.dbl__tr i { display: block; height: 100%; border-radius: 3px; background: var(--c); transition: width 1.3s cubic-bezier(.3, .8, .3, 1); animation: dbuBarGrow 1.2s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i) * 60ms + .15s); }
@keyframes dblPing { 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@keyframes dblTick { 50% { transform: scale(1.7); } }
@keyframes dblIn { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 900px) { .dbl__top { grid-template-columns: 72px minmax(0, 1fr); } .dbl__sp { grid-column: 1 / -1; } }
@media (max-width: 640px) { .dbl__list { grid-template-columns: 1fr; } .dbl__kv { gap: 4px 16px; } }

/* müşteri sayfası: kompakt kullanım kartı */
.usage3d.usl .usage3d__body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.usl .tank3d { display: none; }
.usl .usage3d__tank { display: flex; align-items: center; gap: 14px; }
.usl .usage3d__size b { font-size: 17px; }
.usl .usage3d__share { margin-top: 2px; font-size: 11.5px; color: var(--muted, #6b7280); }
.usl .usage3d__tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.usl .utile { padding: 8px 10px; border-radius: 10px; transform: none; box-shadow: none; background: #f8fafc; animation: dblIn .45s ease both; animation-delay: calc(var(--i) * 60ms); }
.usl .utile::after { display: none; }
.usl .utile:hover { transform: none; }
.usl .utile__ic { width: 22px; height: 22px; border-radius: 6px; margin-bottom: 2px; }
.usl .utile__ic svg { width: 13px; height: 13px; }
.usl .utile b { font-size: 16px; }
.usl .utile small { font-size: 11px; }
@media (max-width: 640px) { .usl .usage3d__tiles { grid-template-columns: repeat(2, 1fr); } }

/* ===== Veritabanı göstergesi: eski koyu paletle, kompakt boyutta ===== */
.dbu.dbl.dbl--dark { position: relative; overflow: hidden; border: 0; color: #e2e8f0;
  background: radial-gradient(520px 180px at 10% -30%, rgba(56, 189, 248, .20), transparent 60%), radial-gradient(420px 200px at 105% 130%, rgba(167, 139, 250, .18), transparent 60%), linear-gradient(160deg, #0b1220, #0f172a 55%, #111827);
  box-shadow: 0 18px 40px -26px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dbl--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask: radial-gradient(ellipse at 20% 0%, #000, transparent 70%); mask: radial-gradient(ellipse at 20% 0%, #000, transparent 70%); animation: dbxGrid 20s linear infinite; }
.dbl--dark::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, #38bdf8, transparent); animation: dbxScan 5s ease-in-out infinite; }
.dbl--dark > * { position: relative; }
.dbl--dark .dbl__head b { color: #fff; }
.dbl--dark .dbl__head small, .dbl--dark .dbl__upd, .dbl--dark .dbl__kv dt, .dbl--dark .dbl__row > b, .dbl--dark .dbl__delta { color: #94a3b8; }
.dbl--dark .dbl__live { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.dbl--dark .dbl__top { border-color: rgba(148, 163, 184, .14); }
.dbl--dark .dbl__kv dd { color: #fff; }
.dbl--dark .dbl__ok { color: #4ade80; }
.dbl--dark .dbl__delta.up { color: #fbbf24; } .dbl--dark .dbl__delta.down { color: #4ade80; }
.dbl--dark .dbl__ring { --rc: #38bdf8; }
.dbl--dark .dbl__ring.dbl--warn { --rc: #fbbf24; } .dbl--dark .dbl__ring.dbl--crit { --rc: #f87171; }
.dbl--dark .dbl__rbg { stroke: rgba(148, 163, 184, .16); }
.dbl--dark .dbl__rv { filter: drop-shadow(0 0 5px var(--rc)); }
.dbl--dark .dbl__ring b { color: #fff; text-shadow: 0 0 10px rgba(56, 189, 248, .8); }
.dbl--dark .sp__grid { stroke: rgba(148, 163, 184, .12); stroke-dasharray: 3 4; }
.dbl--dark .sp__line { stroke: #38bdf8; filter: drop-shadow(0 0 5px rgba(56, 189, 248, .7)); }
.dbl--dark .sp__dot { fill: #fff; stroke: #38bdf8; }
.dbl--dark .dbl__nm { color: #e2e8f0; }
.dbl--dark .dbl__nm i { box-shadow: 0 0 7px var(--c); }
.dbl--dark .dbl__tr { background: rgba(148, 163, 184, .14); }
.dbl--dark .dbl__tr i { position: relative; box-shadow: 0 0 8px var(--c); }
.dbl--dark .dbl__tr i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); background-size: 35% 100%; background-repeat: no-repeat; animation: dbuShine 2.6s linear infinite; }
.dbl--dark .dbl__list { scrollbar-color: #334155 transparent; }

/* müşteri sayfası: aynı koyu palet, kompakt */
.usage3d.usl.usl--dark { overflow: hidden; border: 0; color: #e2e8f0; background: radial-gradient(420px 160px at 0% 0%, rgba(56, 189, 248, .18), transparent 60%), linear-gradient(160deg, #0b1220, #0f172a 60%, #111827); box-shadow: 0 16px 36px -24px rgba(2, 6, 23, .9); }
.usl--dark .card__head { border-color: rgba(148, 163, 184, .14); }
.usl--dark .card__head h2, .usl--dark .usage3d__size b, .usl--dark .utile b { color: #fff; }
.usl--dark .card__head .muted, .usl--dark .usage3d__size small, .usl--dark .usage3d__share, .usl--dark .utile small { color: #94a3b8; }
.usl--dark .dbl__ring { --rc: #38bdf8; }
.usl--dark .dbl__rbg { stroke: rgba(148, 163, 184, .16); }
.usl--dark .dbl__rv { filter: drop-shadow(0 0 5px var(--rc)); }
.usl--dark .dbl__ring b { color: #fff; text-shadow: 0 0 10px rgba(56, 189, 248, .8); }
.usl--dark .utile { background: rgba(15, 23, 42, .6); border-color: rgba(148, 163, 184, .16); }
.usl--dark .utile__ic { background: rgba(56, 189, 248, .14); color: #7dd3fc; }

/* kampanya otomatik tekrar */
.repeat-info { font-size: 12.5px; color: var(--muted, #6b7280); padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px dashed var(--border, #e5e7eb); }
.repeat-info.on { color: #075985; background: #f0f9ff; border-color: #bae6fd; }
.repeat-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #0ea5e9; color: #fff; font-size: 11px; font-weight: 700; }
.camp__rep { color: #7dd3fc; font-weight: 600; }

/* ===== Özet: yedek + Supabase uyku koruması şeridi (koyu, kompakt, canlı) ===== */
.sbar { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-bottom: 14px; border-radius: 14px; color: #e2e8f0;
  background: linear-gradient(160deg, #0b1220, #0f172a 55%, #111827); box-shadow: 0 14px 30px -22px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.sbar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .06), transparent); animation: sbarSweep 6s ease-in-out infinite; }
.sbar > div { position: relative; padding: 10px 16px; min-width: 0; }
.sbar__bk { display: flex; align-items: center; gap: 12px; border-right: 1px solid rgba(148, 163, 184, .14); }
.sbar__bk--none { display: none; }
.sbar:has(.sbar__bk--none) { grid-template-columns: 1fr; }
.sbar__bk b { color: #fff; }
.sbar__bk > div > b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.sbar__bk small, .ka__txt small { display: block; font-size: 11.5px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar__bk small b, .ka__txt small b { color: #e2e8f0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: dblPing 2s ease-out infinite; }
.sbar__shield { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(34, 197, 94, .12); box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .3); animation: sbarGlow 3s ease-in-out infinite; }
.sbar__shield svg { width: 22px; height: 22px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sbar__shield .sh { stroke: #4ade80; stroke-width: 1.8; }
.sbar__shield .ck { stroke: #4ade80; stroke-width: 2.4; stroke-dasharray: 14; stroke-dashoffset: 14; animation: sbarCheck 4s ease-in-out infinite; }
.ka { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; --kc: #38bdf8; }
.ka--warn { --kc: #fbbf24; } .ka--bad { --kc: #f87171; }
.ka__ecg { width: 74px; height: 26px; overflow: visible; }
.ka__ecg path { fill: none; stroke: var(--kc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--kc)); stroke-dasharray: 150; stroke-dashoffset: 150; animation: kaBeat 2.2s linear infinite; }
.ka__txt { min-width: 0; }
.ka__txt > b { display: block; font-size: 13.5px; color: #fff; }
.ka__bar { display: block; height: 3px; margin-top: 5px; border-radius: 3px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.ka__bar i { display: block; height: 100%; border-radius: 3px; background: var(--kc); box-shadow: 0 0 6px var(--kc); transition: width 1s ease; }
.ka__dots { display: flex; gap: 3px; }
.ka__dots i { width: 6px; height: 14px; border-radius: 2px; background: rgba(148, 163, 184, .18); }
.ka__dots i.ok { background: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, .6); }
.ka__dots i.err { background: #ef4444; }
.ka__dots i:last-child.ok { animation: kaDot 1.6s ease-in-out infinite; }
.ka__btn { background: rgba(56, 189, 248, .12); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .35); white-space: nowrap; }
.ka__btn:hover { background: rgba(56, 189, 248, .22); color: #fff; }
.ka--ping .ka__ecg path { animation-duration: .8s; }
@keyframes sbarSweep { 0% { left: -30%; } 55%, 100% { left: 110%; } }
@keyframes sbarGlow { 50% { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .55), 0 0 14px rgba(34, 197, 94, .25); } }
@keyframes sbarCheck { 0% { stroke-dashoffset: 14; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .4; } }
@keyframes kaBeat { 0% { stroke-dashoffset: 150; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .2; } }
@keyframes kaDot { 50% { opacity: .45; } }
@media (max-width: 1100px) { .sbar { grid-template-columns: 1fr; } .sbar__bk { border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, .14); } }
@media (max-width: 640px) { .ka { grid-template-columns: 56px minmax(0, 1fr); } .ka__dots { display: none; } .ka__btn { grid-column: 1 / -1; } .ka__ecg { width: 56px; } }
@media (prefers-reduced-motion: reduce) { .sbar::after, .sbar__shield, .sbar__shield .ck, .ka__ecg path, .ka__dots i, .sbar__dot { animation: none !important; } .sbar__shield .ck, .ka__ecg path { stroke-dashoffset: 0; } }

/* Özet alt düzen: iki eşit boy sütun, son işlemler kalan alanı doldurur ve içeride kayar */
.ov { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 4px; }
.ov__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ov__col > .card { margin: 0; }
.ov__events { flex: 1 1 0; min-height: 240px; display: flex; flex-direction: column; overflow: hidden; }
.ov__events .list { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; -webkit-mask: linear-gradient(#000 85%, transparent); mask: linear-gradient(#000 85%, transparent); }
.ov__events .list::-webkit-scrollbar { width: 6px; } .ov__events .list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
@media (max-width: 1000px) { .ov { grid-template-columns: 1fr; } .ov__events { flex: none; max-height: 420px; } }

/* ===== Özet bilgi kartları: zarif hareket ===== */
.kpis { perspective: 900px; }
.kpi.kpi--x { --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; animation: kpiIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.kpi.kpi--x:hover { box-shadow: 0 18px 34px -20px rgba(15, 23, 42, .35); transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px); }
.kpi.kpi--x::after { animation: kpiBlob 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -2s); }
.kpi.kpi--x::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; animation: kpiShine 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.1s + 1.2s); z-index: 1; }
.kpi--x > * { position: relative; z-index: 2; }
.kpi__ic { position: absolute !important; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--kb); color: var(--kc); box-shadow: 0 6px 14px -8px var(--kc); animation: kpiIcon 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .4s); }
.kpi__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi--x b.num { font-variant-numeric: tabular-nums; }
@keyframes kpiIn { from { opacity: 0; transform: translateY(14px) rotateX(18deg); } }
@keyframes kpiBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-22px, 14px) scale(1.15); } 66% { transform: translate(-8px, 26px) scale(.9); } }
@keyframes kpiShine { 0%, 82% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
@keyframes kpiIcon { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .kpi.kpi--x, .kpi.kpi--x::after, .kpi.kpi--x::before, .kpi__ic { animation: none !important; } }

/* ===== Üst çubuk ortası: yedek + Supabase göstergeleri ===== */
.top__mid { flex: 1 1 auto; display: flex; justify-content: center; gap: 10px; min-width: 0; }
.tmid { --tc: #16a34a; --tb: #f0fdf4; --tl: #bbf7d0; display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 9px; border-radius: 12px; border: 1px solid var(--tl); background: var(--tb); color: inherit; text-decoration: none; font: inherit; cursor: pointer; position: relative; overflow: hidden; animation: tmidIn .5s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s, box-shadow .2s; }
.tmid + .tmid { animation-delay: .1s; }
.tmid:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px var(--tc); }
.tmid--warn { --tc: #d97706; --tb: #fffbeb; --tl: #fde68a; } .tmid--bad { --tc: #dc2626; --tb: #fef2f2; --tl: #fecaca; }
.tmid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .8) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; animation: kpiShine 8s ease-in-out infinite; pointer-events: none; }
.tmid + .tmid::after { animation-delay: 4s; }
.tmid__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--tl); }
.tmid__ic svg { width: 17px; height: 17px; fill: none; stroke: var(--tc); stroke-linecap: round; stroke-linejoin: round; }
.tmid__ic .sh { stroke-width: 1.9; } .tmid__ic .ck { stroke-width: 2.4; stroke-dasharray: 14; stroke-dashoffset: 14; animation: sbarCheck 4s ease-in-out infinite; }
.tmid__ecg { width: 44px; height: 18px; overflow: visible; }
.tmid__ecg path { fill: none; stroke: var(--tc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: tmidBeat 2.2s linear infinite; }
.tmid.is-busy .tmid__ecg path { animation-duration: .7s; }
.tmid__t { display: flex; flex-direction: column; line-height: 1.2; text-align: left; white-space: nowrap; }
.tmid__t b { font-size: 12.5px; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.tmid__t b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 0 var(--tc); animation: tmidDot 2s ease-out infinite; }
.tmid__t small { font-size: 11px; color: var(--muted, #6b7280); }
@keyframes tmidIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes tmidBeat { 0% { stroke-dashoffset: 80; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .25; } }
@keyframes tmidDot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc) 60%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 1350px) { .tmid__t small { display: none; } }
@media (max-width: 1180px) { .top__mid { display: none; } }
@media (prefers-reduced-motion: reduce) { .tmid, .tmid::after, .tmid__ic .ck, .tmid__ecg path, .tmid__t b::before { animation: none !important; } .tmid__ic .ck, .tmid__ecg path { stroke-dashoffset: 0; } }

/* Veritabanı kartı: üst satırdaki boşluğu dolduran bilgi kutucukları */
.dbl__top { grid-template-columns: 72px auto minmax(0, 1fr) minmax(150px, 220px); }
.dbl__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; min-width: 0; }
.dbl__fact { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 9px; border-radius: 10px; background: rgba(148, 163, 184, .08); border: 1px solid rgba(148, 163, 184, .12); animation: dblIn .5s ease both; animation-delay: calc(var(--i) * 80ms + .2s); }
.dbl__fact i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.dbl__fact i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dbl__fact span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dbl__fact small { font-size: 10.5px; color: #94a3b8; }
.dbl__fact b { font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dbl__fact b.pop { animation: dblPop .5s ease; }
.dbl:not(.dbl--dark) .dbl__fact { background: #f8fafc; border-color: var(--border, #e5e7eb); }
.dbl:not(.dbl--dark) .dbl__fact b { color: #0f172a; }
@keyframes dblPop { 0% { opacity: .2; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 1250px) { .dbl__top { grid-template-columns: 72px auto minmax(0, 1fr); } .dbl__sp { grid-column: 1 / -1; } }
@media (max-width: 900px) { .dbl__top { grid-template-columns: 72px minmax(0, 1fr); } .dbl__facts { grid-column: 1 / -1; } }

/* ===== Bilgi kartları v2: belirgin ve profesyonel hareket ===== */
.kpi.kpi--x { padding-bottom: 14px; }
.kpi.kpi--x::before { background: linear-gradient(90deg, transparent, var(--kline, #94a3b8), transparent) top / 50% 3px no-repeat, linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat;
  animation: kpiLine 3.2s linear infinite; animation-delay: calc(var(--i, 0) * .4s); }
.kpis .kpi--x:nth-child(1) { --kline: #22c55e; } .kpis .kpi--x:nth-child(2) { --kline: #f59e0b; } .kpis .kpi--x:nth-child(3) { --kline: #f97316; } .kpis .kpi--x:nth-child(4) { --kline: #8b5cf6; }
.kpi__ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--kc); opacity: 0; animation: kpiHalo 2.6s ease-out infinite; animation-delay: calc(var(--i, 0) * .5s); }
.kpi--alert .kpi__ic { animation: kpiAlert 1.6s ease-in-out infinite; }
.kmini { position: relative; z-index: 2; margin-top: 8px; }
.kmini--bar span { display: block; height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .18); overflow: hidden; }
.kmini--bar i { position: relative; display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--kc) 70%, #fff), var(--kc)); animation: kminiGrow 1.4s cubic-bezier(.3, .8, .3, 1) both; animation-delay: .5s; overflow: hidden; }
.kmini--bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: dbuShine 2.2s linear infinite; }
.kmini--bar small { display: block; margin-top: 4px; font-size: 11px; color: var(--kc); font-weight: 600; }
.kmini--sp { display: block; width: 100%; height: 34px; overflow: visible; }
.kmini__line { fill: none; stroke: var(--kc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: kminiDraw 1.6s .4s cubic-bezier(.3, .8, .3, 1) forwards; }
.kmini__area { fill: var(--kc); opacity: 0; animation: kminiArea 1s 1.2s ease forwards; }
.kmini__dot { fill: #fff; stroke: var(--kc); stroke-width: 2; opacity: 0; animation: kminiArea .4s 1.8s ease forwards, kminiPulse 2s 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kpiLine { from { background-position: -50% 0, 130% 0; } to { background-position: 150% 0, 130% 0; } }
@keyframes kpiShine2 { 0%, 82% { background-position: -50% 0, 130% 0; } 100% { background-position: 150% 0, -40% 0; } }
@keyframes kpiHalo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes kpiAlert { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-6deg); } 40% { transform: rotate(0); } }
@keyframes kminiGrow { from { width: 0; } }
@keyframes kminiDraw { to { stroke-dashoffset: 0; } }
@keyframes kminiArea { to { opacity: .12; } }
@keyframes kminiPulse { 50% { transform: scale(1.5); } }
.kmini__dot { animation-fill-mode: forwards; }
@media (prefers-reduced-motion: reduce) { .kpi--x::before, .kpi__ic::after, .kmini--bar i, .kmini--bar i::after, .kmini__line, .kmini__area, .kmini__dot, .kpi--alert .kpi__ic { animation: none !important; } .kmini__line { stroke-dashoffset: 0; } .kmini__area { opacity: .12; } .kmini__dot { opacity: 1; } }

.wa-send { margin-top: 6px; background: #25d366; color: #fff; border-color: #1fb457; }
.wa-send:hover { background: #1fb457; color: #fff; }
.wa-send svg { width: 14px; height: 14px; }

/* ================= Bilgi kartları: KOYU NEON CAM ================= */
.kpi.kpi--neon { --nc: #38bdf8; min-height: 132px; padding: 16px 16px 14px 104px; border: 0; color: #e2e8f0; overflow: hidden;
  background: radial-gradient(260px 140px at 0% 0%, color-mix(in srgb, var(--nc) 24%, transparent), transparent 70%), linear-gradient(160deg, #0b1220, #0f172a 60%, #111827);
  box-shadow: 0 18px 36px -22px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px color-mix(in srgb, var(--nc) 22%, transparent); }
.kpi--neon::after { right: -40px; top: -40px; width: 140px; height: 140px; background: radial-gradient(circle, color-mix(in srgb, var(--nc) 45%, transparent), transparent 65%); opacity: .55; filter: blur(6px); }
.kpi--neon::before { background: linear-gradient(90deg, transparent, var(--nc), transparent) top / 50% 2px no-repeat, linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%) 130% 0 / 250% 100% no-repeat; }
.kpi--neon span:not([class]) { color: #94a3b8; font-size: 11px; }
.kpi--neon b.num { font-size: 30px; color: #fff; text-shadow: 0 0 14px color-mix(in srgb, var(--nc) 70%, transparent), 0 0 2px #fff; }
.kpi--neon small { color: #94a3b8; }
.kpi--neon .kmini--bar { display: none; }
.kpi--neon .kmini--sp { height: 26px; margin-top: 4px; }
.kpi--neon .kmini__line { stroke: var(--nc); filter: drop-shadow(0 0 4px var(--nc)); }
.kpi--neon .kmini__area { fill: var(--nc); }
.kpi--neon .kmini__dot { fill: #0f172a; stroke: var(--nc); }
/* halka gösterge */
.kneon { position: absolute !important; left: 14px; top: 50%; width: 76px; height: 76px; margin-top: -38px; z-index: 2; }
.kneon svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.kneon__orbit { fill: none; stroke: var(--nc); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: .55; transform-origin: 35px 35px; animation: kneonSpin 14s linear infinite; }
.kneon__bg { fill: rgba(15, 23, 42, .6); stroke: rgba(148, 163, 184, .16); stroke-width: 6; }
.kneon__v { fill: none; stroke: var(--nc); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--nc)); transition: stroke-dasharray 1.6s cubic-bezier(.3, .8, .3, 1) .3s; }
.kneon .kpi__ic { position: absolute !important; left: 50%; top: 50%; right: auto; width: 30px; height: 30px; margin: -21px 0 0 -15px; background: color-mix(in srgb, var(--nc) 18%, transparent); color: var(--nc); box-shadow: 0 0 14px color-mix(in srgb, var(--nc) 45%, transparent); animation: kpiIcon 4s ease-in-out infinite; }
.kneon .kpi__ic::after { border-color: var(--nc); }
.kneon__pct { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10px; font-weight: 800; color: var(--nc); letter-spacing: .02em; text-shadow: 0 0 6px var(--nc); }
/* yükselen ışık parçacıkları */
.kneon__parts { position: absolute !important; inset: 0; z-index: 1 !important; pointer-events: none; overflow: hidden; }
.kneon__parts i { position: absolute; left: var(--x); bottom: -6px; width: 3px; height: 3px; border-radius: 50%; background: var(--nc); box-shadow: 0 0 6px var(--nc); opacity: 0; animation: kneonRise var(--s) linear var(--d) infinite; }
.kpi--neon.kpi--alert .kneon__v { animation: kneonBlink 1.6s ease-in-out infinite; }
.kpi--neon:hover { box-shadow: 0 24px 44px -22px color-mix(in srgb, var(--nc) 60%, rgba(2, 6, 23, .9)), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px color-mix(in srgb, var(--nc) 45%, transparent); }
@keyframes kneonSpin { to { transform: rotate(360deg); } }
@keyframes kneonRise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-140px); opacity: 0; } }
@keyframes kneonBlink { 50% { opacity: .45; } }
@media (max-width: 640px) { .kpi.kpi--neon { padding-left: 96px; } .kneon { width: 68px; height: 68px; margin-top: -34px; } .kpi--neon b.num { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .kneon__orbit, .kneon__parts i, .kneon .kpi__ic, .kpi--neon.kpi--alert .kneon__v { animation: none !important; } }
/* neon kart düzeltme: yüzde halkadan çıkar, etiket olarak gösterilir */
.kneon__pct { display: none; }
.kneon .kpi__ic { margin: -15px 0 0 -15px; }
.kpi--neon .kmini--bar { display: block; margin-top: 2px; }
.kpi--neon .kmini--bar span { display: none; }
.kpi--neon .kmini--bar small { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 2px 9px; border-radius: 999px; font-size: 11px; color: var(--nc); background: color-mix(in srgb, var(--nc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nc) 35%, transparent); }
.kpi--neon .kmini--bar small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--nc); box-shadow: 0 0 6px var(--nc); animation: tmidDot 2s ease-out infinite; }
