/* EBAY KEKOLİ - plain, mobile first. Light and dark colours; 0.5px borders; no shadows or gradients. */
:root {
  --bg: #F6F6F3; --card: #FFFFFF; --text: #1B1B1A; --muted: #5A5A55; --line: #D6D6D0; --line-strong: #B9B9B2;
  --teal: #0F8A8A; --soft: #F0F0EB; --accent: #1B4F9C; --accent-bg: #E4EEFB; --accent-text: #FFFFFF;
  --ok-bg: #E3F2E9; --ok-fg: #17623D; --ok-line: #B5D9C3; --ok-bar: #2E8B5A;
  --bad-bg: #FAE6E1; --bad-fg: #A32D18; --bad-line: #E9BDB3; --bad-bar: #C9503A;
  --warn-bg: #FBF0D9; --warn-fg: #7A5300; --info-bg: #E4EEFB; --info-fg: #1B4F9C; --mute-bg: #EBEBE6; --mute-fg: #4A4A45;
  --dot: #DEDED8; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --card: #1E1E1C; --text: #ECECE8; --muted: #A3A39C; --line: #34342F; --line-strong: #4A4A44;
    --teal: #4FC3C3; --dot: #232321; --soft: #272724; --accent: #6FA2F0; --accent-bg: #1D2C45; --accent-text: #0E1522;
    --ok-bg: #16301F; --ok-fg: #7FD3A0; --ok-line: #24492F; --ok-bar: #3FA470;
    --bad-bg: #3A1D17; --bad-fg: #F2A08E; --bad-line: #5A2E25; --bad-bar: #D4604A;
    --warn-bg: #3A2F12; --warn-fg: #E9C46A; --info-bg: #1D2C45; --info-fg: #8DB8F5; --mute-bg: #2A2A27; --mute-fg: #B5B5AE;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px; color: var(--text); font: 15px/1.4 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none; }

/* layout */
.topbar { border-top: 3px solid var(--accent); display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px 0 16px; background: var(--card); border-bottom: 0.5px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font: 500 12px var(--mono); }
.nav { display: flex; align-items: center; }
.nav a, .nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: none; background: none; color: var(--muted); font: 14px var(--sans); text-decoration: none; cursor: pointer; }
.nav a.active { color: var(--accent); font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.auth { max-width: 420px; margin: 40px auto; }

/* pieces */
.card { background: var(--card); border: 0.5px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.tight { padding: 12px; gap: 8px; border-radius: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { font-size: 14px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border: 0.5px solid var(--line-strong); border-radius: 8px;
  background: var(--card); color: var(--text); font: 15px var(--sans);
}
textarea { padding: 10px 12px; font: 14px/1.5 var(--mono); resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0.5px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--text); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.danger { color: var(--bad-fg); border-color: var(--bad-line); }
.btn.wide { width: 100%; min-height: 48px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); } .badge.bad { background: var(--bad-bg); color: var(--bad-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); } .badge.info { background: var(--info-bg); color: var(--info-fg); }
.badge.mute { background: var(--mute-bg); color: var(--mute-fg); }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.alert.bad { background: var(--bad-bg); color: var(--bad-fg); } .alert.ok { background: var(--ok-bg); color: var(--ok-fg); } .alert.warn { background: var(--warn-bg); color: var(--warn-fg); }
.meter { height: 4px; border-radius: 2px; background: var(--line); } .meter > div { height: 4px; border-radius: 2px; background: var(--accent); }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); } .bar .g { background: var(--ok-bar); } .bar .r { background: var(--bad-bar); }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .progress > div { height: 8px; background: var(--accent); }

/* scan list */
.list { display: flex; flex-direction: column; gap: 0.5px; background: var(--line); border: 0.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.list a.item { background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* scan detail */
.cards3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; border: 0.5px solid var(--line); background: var(--card); }
.stat .v { font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat.total { grid-column: 1 / -1; } .stat.total .v { font-size: 40px; }
.stat.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.stat.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-fg); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.seg { display: inline-grid; grid-auto-flow: column; border: 0.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 500; cursor: pointer; border-left: 0.5px solid var(--line-strong); white-space: nowrap; }
.seg label:first-child span { border-left: none; }
.seg input:checked + span { background: var(--text); color: var(--bg); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.filters .f { display: flex; flex-direction: column; gap: 4px; } .filters .f label { font-size: 12px; font-weight: 400; color: var(--muted); }
.filters .grow { flex: 1 1 200px; }

.products { background: var(--card); border: 0.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.prod { border-bottom: 0.5px solid var(--line); } .prod:last-child { border-bottom: none; }
.prod summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; gap: 6px 12px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 44px; }
.prod summary::-webkit-details-marker { display: none; }
.prod .t { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; grid-column: 1 / -1; }
.prod .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.prod .facts b { color: var(--text); font-weight: 500; }
.prod[open] summary { background: var(--soft); }
.detail { padding: 12px 14px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; font-size: 13px; }
.detail .k { font-size: 12px; color: var(--muted); display: block; } .detail .wide { grid-column: 1 / -1; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

@media (min-width: 760px) {
  main { padding: 24px; }
  .prod summary { grid-template-columns: minmax(0, 3fr) 70px 90px 130px 110px; }
  .prod .t { grid-column: auto; } .prod .facts { display: contents; }
  .prod .facts .price, .prod .facts .sold, .prod .facts .asin { font-size: 13px; }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; padding: 0 8px 0 16px; }
  .brand { min-height: 48px; white-space: nowrap; }
  .nav { width: 100%; justify-content: space-between; margin: 0 -8px 0 -16px; padding: 0 8px 0 8px; width: calc(100% + 24px); border-top: 0.5px solid var(--line); }
}
@media (max-width: 420px) { .grid2 { gap: 8px; } .seg span { padding: 0 9px; font-size: 13px; } }

/* charts and overview */
.hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gauge { background: var(--card); border: 0.5px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.gauge.tiles { justify-content: space-between; gap: 12px; }
.gauge .big { font-size: 26px; font-weight: 600; line-height: 1.15; }
.ring, .donut { flex: none; display: block; }
.bar.thin { height: 5px; border-radius: 3px; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.chart { flex-direction: row; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.donut-wrap { position: relative; width: 132px; height: 132px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; line-height: 1.1; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; padding-left: 14px; font-weight: 600; }
@media (min-width: 760px) { .overview { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gauge.tiles { grid-column: 1 / -1; } }
@media (max-width: 420px) { .gauge { padding: 10px 12px; gap: 10px; } .gauge .big { font-size: 22px; } .ring { width: 60px; height: 60px; } }
