/* EVBATTCHECK — tanıtım sitesi + panel ortak stil. Build adımı yok (paylaşımlı hosting). */
:root {
  --bg: #060a09;
  --bg-2: #0a100e;
  --panel: #0e1513;
  --panel-2: #121b18;
  --line: #1d2a26;
  --line-2: #26372f;
  --text: #e9f1ec;
  --muted: #8a9b93;
  --dim: #5f6f68;
  --volt: #5cf03a;
  --volt-2: #17c964;
  --volt-glow: rgba(92, 240, 58, .28);
  --amber: #ffb547;
  --red: #ff5b5b;
  --blue: #4fb3ff;
  --lime: #b8f23a;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Arial Narrow', var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
a { color: var(--volt); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: .3px; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; } h4 { font-size: 16px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.dim { color: var(--dim); }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 600 14px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--volt); }
.btn-primary { background: linear-gradient(90deg, var(--volt-2), var(--volt)); color: #04100a; border-color: transparent; box-shadow: 0 0 22px var(--volt-glow); text-transform: uppercase; letter-spacing: .6px; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-danger { color: var(--red); border-color: rgba(255, 91, 91, .35); }
.btn-danger:hover { border-color: var(--red); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
label.req::after { content: ' *'; color: var(--volt); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a110f; color: var(--text); font: 14px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(92, 240, 58, .12); }
input[type=file] { width: 100%; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: #0a110f; color: var(--muted); }
input[type=checkbox] { accent-color: var(--volt); width: 16px; height: 16px; vertical-align: -3px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 5px; }
.error, .field .error { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.inline { display: inline; }

/* ---------- Cards, tables, badges ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card { margin-top: 18px; }
.card.glow { border-color: rgba(92, 240, 58, .35); box-shadow: 0 0 0 1px rgba(92, 240, 58, .08), 0 10px 40px rgba(23, 201, 100, .08); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .5px; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12px var(--font); border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-green { color: var(--volt); } .tone-lime { color: var(--lime); } .tone-amber { color: var(--amber); }
.tone-red { color: var(--red); } .tone-blue { color: var(--blue); } .tone-muted { color: var(--dim); }
.grade { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font: 700 18px var(--display); border: 2px solid currentColor; }

.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid; margin-bottom: 18px; font-size: 14px; }
.alert-success { color: var(--volt); border-color: rgba(92, 240, 58, .35); background: rgba(92, 240, 58, .06); }
.alert-error { color: var(--red); border-color: rgba(255, 91, 91, .35); background: rgba(255, 91, 91, .06); }
.alert-warning { color: var(--amber); border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .06); }
.alert-info { color: var(--blue); border-color: rgba(79, 179, 255, .35); background: rgba(79, 179, 255, .06); }
.alert strong { color: var(--text); }

.stat { padding: 18px 20px; }
.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); font-weight: 600; }
.stat .value { font: 700 30px var(--display); margin-top: 4px; }

dl.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination .active { border-color: var(--volt); color: var(--volt); }

/* ---------- Panel layout ---------- */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { display: block; padding: 4px 8px 18px; }
.sidebar .brand img { height: 38px; width: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: rgba(92, 240, 58, .08); color: var(--volt); box-shadow: inset 2px 0 0 var(--volt); }
.nav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); padding: 16px 12px 6px; }
.nav .count { margin-left: auto; background: var(--volt); color: #04100a; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sidebar .foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.credit-pill { display: block; margin: 0 4px 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); }
.credit-pill .v { font: 700 22px var(--display); color: var(--volt); }
.main { padding: 26px 30px 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { margin: 0; }
.mobile-bar { display: none; }

/* ---------- Check detail ---------- */
.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li:last-child { border-bottom: 0; }
.files .name { word-break: break-all; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; margin-bottom: 14px; }
.msg { padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); max-width: 92%; }
.msg.team { align-self: flex-start; }
.msg.dealer { align-self: flex-end; border-color: rgba(92, 240, 58, .25); }
.msg.internal { border-style: dashed; border-color: var(--amber); }
.msg .meta { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.timeline { display: flex; gap: 0; margin: 4px 0 4px; }
.timeline .step { flex: 1; text-align: center; font-size: 12px; color: var(--dim); position: relative; padding-top: 18px; }
.timeline .step::before { content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 3px; background: var(--line-2); }
.timeline .step::after { content: ''; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--line-2); }
.timeline .step.done { color: var(--volt); }
.timeline .step.done::before, .timeline .step.done::after { background: var(--volt); }

.soh-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--volt)) calc(var(--p) * 1%), var(--line) 0); position: relative; flex: none; }
.soh-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.soh-ring span { position: relative; font: 700 32px var(--display); }
.soh-ring small { display: block; font: 600 11px var(--font); color: var(--muted); text-align: center; letter-spacing: 1px; }

.cellmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.cellmap div { padding: 6px 2px; text-align: center; border-radius: 6px; font: 600 11px var(--font); background: var(--panel-2); border: 1px solid var(--line); }
.cellmap div b { display: block; font-size: 9.5px; color: var(--dim); font-weight: 600; }
.cellmap .lo { border-color: var(--red); color: var(--red); }
.cellmap .hi { border-color: var(--blue); color: var(--blue); }

.checklist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.checklist .item > span:first-child { min-width: 0; }
.checklist .item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0a110f; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg input { display: none; }
.seg label { margin: 0; padding: 5px 10px; font-size: 12px; cursor: pointer; color: var(--muted); border-left: 1px solid var(--line-2); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label.s-ok { background: rgba(92, 240, 58, .15); color: var(--volt); }
.seg input:checked + label.s-warn { background: rgba(255, 181, 71, .15); color: var(--amber); }
.seg input:checked + label.s-fail { background: rgba(255, 91, 91, .15); color: var(--red); }
.seg input:checked + label.s-na { background: rgba(255, 255, 255, .06); color: var(--text); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 50% -10%, rgba(92, 240, 58, .12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--volt); border-radius: 18px; padding: 30px 28px; box-shadow: 0 0 60px rgba(23, 201, 100, .08); }
.auth-card .logo { display: block; margin: 0 auto 16px; height: 52px; width: auto; }
.auth-card h1 { text-align: center; color: var(--volt); font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }

/* ---------- Public site ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(6, 10, 9, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.site-header .logo img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 14px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.lang a { color: var(--dim); font-size: 13px; font-weight: 600; }
.lang a.on { color: var(--volt); }
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; background: radial-gradient(800px 420px at 80% 10%, rgba(92, 240, 58, .14), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(23, 201, 100, .08), transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .25; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font); letter-spacing: 2px; text-transform: uppercase; color: var(--volt); border: 1px solid rgba(92, 240, 58, .3); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 56px; line-height: 1.02; margin-bottom: 18px; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--volt); text-shadow: 0 0 30px var(--volt-glow); }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid rgba(92, 240, 58, .3); border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(23, 201, 100, .1); }
.hero-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.hero-card .metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.hero-card .metric { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.hero-card .metric b { display: block; font: 700 20px var(--display); }
.hero-card .metric span { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-top: 12px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--volt), var(--volt-2)); border-radius: 2px 2px 0 0; opacity: .85; }
.bars i.lo { background: var(--amber); }

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: 38px; text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: .2s; }
.feature:hover { border-color: rgba(92, 240, 58, .4); transform: translateY(-2px); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(92, 240, 58, .1); color: var(--volt); margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step-card { position: relative; padding: 24px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.step-card::before { counter-increment: s; content: '0' counter(s); font: 700 44px var(--display); color: transparent; -webkit-text-stroke: 1px var(--volt); opacity: .7; display: block; margin-bottom: 6px; }
.step-card h3 { font-size: 18px; } .step-card p { color: var(--muted); font-size: 14px; margin: 0; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price-card { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 21px; } .price-card p { color: var(--muted); font-size: 14px; flex: 1; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--volt); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--volt); border-bottom: 2px solid var(--volt); transform: rotate(-45deg); }
.ticks li strong { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; z-index: 30; }
  .mobile-bar img { height: 32px; width: auto; }
  .main { padding: 20px 16px 50px; }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .features, .steps { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { padding: 56px 0 46px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 30px; }
  .wrap { padding: 0 16px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .site-header .logo img { height: 32px; }
  .site-nav { gap: 12px; }
}

.cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #04100a; }
.main .grid-3 > .field > label, .main .grid-4 > .field > label { min-height: 2.7em; display: flex; align-items: flex-end; }
@media (max-width: 640px) { .main .grid-3 > .field > label, .main .grid-4 > .field > label { min-height: 0; } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-filled { border-color: var(--volt) !important; box-shadow: 0 0 0 3px rgba(92, 240, 58, .15) !important; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
