/* VIN Check-in — light, glassy, futuristic design system */

:root {
  --bg: #eef2f8;
  --ink: #0d1626;
  --ink-2: #4a5568;
  --ink-3: #8a94a6;
  --glass: rgba(255, 255, 255, .74);
  --glass-line: rgba(255, 255, 255, .92);
  --hair: rgba(13, 22, 38, .08);
  --cyan: #00c2ff;
  --blue: #3d5afe;
  --grad: linear-gradient(120deg, #00c2ff 0%, #3d5afe 100%);
  --ok: #00b37e;
  --ok-ink: #057a58;
  --warn: #f59e0b;
  --warn-ink: #9a5b00;
  --bad: #ef4466;
  --bad-ink: #b4234a;
  --shadow: 0 1px 1px rgba(13, 22, 38, .04), 0 12px 32px -8px rgba(30, 60, 120, .18);
  --glow: 0 0 0 1px rgba(0, 194, 255, .35), 0 8px 28px -6px rgba(0, 194, 255, .45);
  --radius: 22px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink);
  font: 15px/1.45 var(--font);
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% -10%, #d7ecff 0%, transparent 60%),
    radial-gradient(800px 600px at 95% 10%, #e6e0ff 0%, transparent 60%),
    radial-gradient(700px 500px at 50% 110%, #d9fbff 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(61, 90, 254, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 90, 254, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; margin: 0; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); }

/* ---------- surfaces ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.label {
  font: 600 11px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
html[lang="ar"] .label { letter-spacing: 0; font-size: 12px; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font: 700 16px var(--font-display); }
.logo {
  width: 30px; height: 30px; border-radius: 10px; background: var(--grad); box-shadow: var(--glow);
  display: grid; place-items: center; color: #fff; font: 700 13px "Space Grotesk", sans-serif; flex: none;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #fff, #dde5f3); border: 1px solid var(--glass-line);
  display: grid; place-items: center; font: 600 12px Inter, sans-serif; color: var(--ink-2); box-shadow: var(--shadow);
  text-transform: uppercase;
}
.lang { display: flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid var(--glass-line); box-shadow: var(--shadow); gap: 2px; }
.lang button { border: 0; background: none; padding: 5px 10px; border-radius: 9px; font: 600 12px "IBM Plex Sans Arabic", Inter, sans-serif; color: var(--ink-3); min-width: 34px; }
.lang button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }

/* ---------- buttons ---------- */
.btn-primary {
  width: 100%; min-height: 60px; border-radius: 18px; border: 0; color: #fff;
  font: 600 17px var(--font-display); background: var(--grad); box-shadow: var(--glow);
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .12s, filter .2s;
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { filter: grayscale(.8) opacity(.45); box-shadow: none; cursor: default; }
.btn-ghost {
  width: 100%; min-height: 50px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass);
  font: 600 15px var(--font); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost:active { transform: scale(.98); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- inputs ---------- */
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .85); color: var(--ink); font: 500 16px var(--font); box-shadow: var(--shadow); outline: none;
}
.input:focus { border-color: rgba(61, 90, 254, .45); box-shadow: 0 0 0 4px rgba(61, 90, 254, .12); }
.input.vin { font: 600 20px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; direction: ltr; }

/* ---------- banners ---------- */
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; font: 600 14px var(--font); }
.banner.ok { background: linear-gradient(120deg, rgba(0, 179, 126, .14), rgba(0, 194, 255, .10)); color: var(--ok-ink); border: 1px solid rgba(0, 179, 126, .25); }
.banner.warn { background: linear-gradient(120deg, rgba(245, 158, 11, .16), rgba(255, 220, 120, .10)); color: var(--warn-ink); border: 1px solid rgba(245, 158, 11, .3); }
.banner.bad { background: linear-gradient(120deg, rgba(239, 68, 102, .14), rgba(245, 158, 11, .08)); color: var(--bad-ink); border: 1px solid rgba(239, 68, 102, .25); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok, .banner.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(0, 179, 126, .18); }
.banner.warn .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.banner.bad .dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(239, 68, 102, .18); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(0, 179, 126, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(0, 179, 126, 0); } }

/* =====================================================================
   Phone app
   ===================================================================== */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.topbar .end { display: flex; align-items: center; gap: 10px; }
.pad { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.hello { font: 600 22px/1.25 var(--font-display); margin: 4px 2px 0; }
.hello small { display: block; font: 500 13px var(--font); color: var(--ink-3); margin-top: 4px; }

.viewfinder {
  position: relative; height: 210px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow);
  background: radial-gradient(120% 90% at 50% 40%, #1d2940 0%, #0d1626 70%);
}
.vf-plate {
  width: 78%; height: 46px; border-radius: 8px; background: linear-gradient(180deg, #2a3242, #1d2433);
  display: grid; place-items: center; color: #d8dee9; font: 600 15px var(--font-mono); letter-spacing: .12em;
  border: 1px solid rgba(255, 255, 255, .08); direction: ltr;
}
.corner { position: absolute; width: 30px; height: 30px; border: 3px solid var(--cyan); filter: drop-shadow(0 0 6px rgba(0, 194, 255, .8)); }
.c1 { top: 20px; left: 20px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.c2 { top: 20px; right: 20px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.c3 { bottom: 20px; left: 20px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.c4 { bottom: 20px; right: 20px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scanline {
  position: absolute; left: 24px; right: 24px; top: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 14px 2px rgba(0, 194, 255, .7);
  animation: sweep 2.6s ease-in-out infinite;
}
@keyframes sweep { 0%, 100% { top: 26%; } 50% { top: 72%; } }
.vf-hint { position: absolute; bottom: 46px; width: 100%; text-align: center; color: rgba(255, 255, 255, .75); font: 500 12px var(--font); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { padding: 10px 6px; text-align: center; border-radius: 18px; }
.mini-stats b { display: block; font: 700 20px "Space Grotesk", sans-serif; }
.mini-stats span { font-size: 11px; color: var(--ink-3); }

.tip { display: flex; gap: 12px; padding: 14px; align-items: center; }
.tip .ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(0, 194, 255, .12); display: grid; place-items: center; color: var(--blue); flex: none; }
.tip b { font-size: 14px; }
.tip span { display: block; font-size: 13px; color: var(--ink-2); }

.toast { padding: 14px 16px; display: flex; gap: 12px; align-items: center; animation: rise .35s ease-out; }
.toast .check { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); flex: none; font-weight: 700; }
.toast b { display: block; font: 600 14px var(--font); }
.toast span { font-size: 13px; color: var(--ink-2); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

.tabbar { position: sticky; bottom: 0; margin: 0 14px 14px; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; z-index: 5; }
.tab { border: 0; background: none; min-height: 50px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 11px var(--font); color: var(--ink-3); gap: 3px; }
.tab.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }

/* result */
.thumb { height: 150px; border-radius: 20px; background: #0d1626; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tag {
  position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(13, 22, 38, .55);
  color: #fff; font: 600 10px var(--font); letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.thumb .scanning { position: absolute; inset: 0; background: rgba(13, 22, 38, .35); }
.thumb .scanning .scanline { animation-duration: 1.3s; }
.reading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font: 600 14px var(--font); color: var(--ink-2); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(61, 90, 254, .15); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.vin-card { padding: 16px; }
.vin-card .head { display: flex; justify-content: space-between; align-items: center; }
.count { font: 600 12px var(--font-mono); color: var(--ink-3); }
.count.ok { color: var(--ok); }
.count.warn { color: var(--warn-ink); }
.cells { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 2px; margin: 12px 0 10px; direction: ltr; cursor: text; }
.cell {
  height: 40px; border-radius: 5px; display: grid; place-items: center; font: 600 13px var(--font-mono);
  background: #fff; border: 1px solid rgba(61, 90, 254, .18); box-shadow: inset 0 -2px 0 rgba(61, 90, 254, .08);
}
.cell.wmi { background: linear-gradient(180deg, rgba(0, 194, 255, .14), rgba(61, 90, 254, .10)); border-color: rgba(61, 90, 254, .35); color: var(--blue); }
.cell.ser { background: #f7f9fd; }
.cell.empty { background: rgba(255, 255, 255, .5); border-style: dashed; color: transparent; }
.cells.bad .cell.wmi { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .45); color: var(--warn-ink); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); align-items: center; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 5px; }
.legend .edit { margin-inline-start: auto; color: var(--blue); font-weight: 600; border: 0; background: none; padding: 4px 0; font-size: 12px; }
.confirm-other { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .1); color: var(--warn-ink); font: 600 13px var(--font); }
.confirm-other input { width: 22px; height: 22px; accent-color: var(--warn); flex: none; }

.model-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.car-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); flex: none; }
.model-card .m { font: 700 19px "Space Grotesk", sans-serif; }
.model-card .s { font-size: 12px; color: var(--ink-3); }
.visits { margin-inline-start: auto; text-align: end; }
.visits b { display: block; font: 700 22px "Space Grotesk", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visits span { font-size: 11px; color: var(--ink-3); }

.seen { padding: 14px 16px; }
.chip { display: inline-flex; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--hair); font: 600 13px var(--font-mono); margin: 8px 0 0 6px; color: var(--ink-2); direction: ltr; }
.why { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.why li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.why .x { color: var(--bad); font-weight: 700; }
.alts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alts button { border: 1px solid var(--hair); background: #fff; border-radius: 10px; padding: 7px 10px; font: 600 12px var(--font-mono); direction: ltr; }

/* login */
.login { max-width: 420px; margin: 0 auto; padding: 14vh 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.login .card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 26px; }
.login p { margin: 0; color: var(--ink-3); }
.login label { display: block; font: 600 13px var(--font); color: var(--ink-2); margin-bottom: 6px; }

/* =====================================================================
   Dashboard
   ===================================================================== */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { padding: 22px 16px; border-inline-end: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; background: rgba(255, 255, 255, .45); position: sticky; top: 0; height: 100vh; }
.side .brand { margin: 0 6px 22px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
.nav.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.nav svg { flex: none; }
.side .live { margin-top: auto; padding: 14px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; border-radius: 16px; }
.side form { margin: 6px 0 0; }
.side .logout { width: 100%; border: 0; background: none; color: var(--ink-3); text-align: start; padding: 10px 12px; border-radius: 12px; font-weight: 500; }

.main { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dhead h2 { font-size: 26px; }
.dhead p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.field { height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .85); border: 1px solid var(--glass-line); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink-3); }
.field input { border: 0; background: none; outline: none; font: 500 13px var(--font); color: var(--ink); height: 100%; min-width: 0; }
.field.search input { width: 200px; }
.btn-sm { height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; font: 600 13px var(--font); box-shadow: var(--glow); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; min-height: 116px; }
.kpi .v { font: 700 34px/1.1 "Space Grotesk", sans-serif; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v.sm { font-size: 26px; padding-top: 4px; }
.kpi .d { font-size: 12px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.kpi .d.n { color: var(--ink-3); font-weight: 500; }
.kpi .d.down { color: var(--bad-ink); }
.kpi .spark, .kpi .ring { position: absolute; inset-inline-end: 14px; top: 16px; }
.kpi.accent { background: linear-gradient(140deg, rgba(0, 194, 255, .92), rgba(61, 90, 254, .92)); color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: var(--glow); }
.kpi.accent .label, .kpi.accent .d { color: rgba(255, 255, 255, .88); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.tablecard { padding: 6px 6px 8px; min-width: 0; }
.tablecard .th { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.tablecard .th h3 { font-size: 16px; }
.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
th { text-align: start; font: 600 10.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 2px 12px; white-space: nowrap; }
td { background: rgba(255, 255, 255, .75); padding: 10px 12px; vertical-align: middle; white-space: nowrap; }
tr td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
tr td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.side-lang { align-self: flex-start; margin: 10px 6px 0; }
.vin-t { font: 600 13px var(--font-mono); letter-spacing: .04em; direction: ltr; }
.vin-t em { font-style: normal; color: var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px var(--font); }
.pill.model { background: rgba(61, 90, 254, .08); color: var(--blue); }
.pill.none { background: rgba(13, 22, 38, .05); color: var(--ink-3); }
.pill.new { background: rgba(0, 194, 255, .12); color: #0083b0; }
.pill.rep { background: rgba(0, 179, 126, .12); color: var(--ok-ink); }
.src { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.src i { width: 7px; height: 7px; border-radius: 50%; }
.adv { display: flex; align-items: center; gap: 8px; }
.adv .avatar { width: 26px; height: 26px; font-size: 10px; box-shadow: none; }
.ph { width: 58px; height: 36px; border-radius: 8px; object-fit: cover; display: block; background: #1b2333; }
.note-t { max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-size: 13px; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }

.side-card { padding: 18px; }
.side-card h3 { font-size: 16px; margin-bottom: 14px; }
.bar { margin-bottom: 12px; }
.bar .l { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar .l span { color: var(--ink-3); }
.track { height: 8px; border-radius: 8px; background: rgba(61, 90, 254, .08); overflow: hidden; }
.fill { height: 100%; border-radius: 8px; background: var(--grad); transition: width .4s; }
.hours { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.cols { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: 10px; }
.cols div { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #00c2ff, #3d5afe); opacity: .85; min-height: 3px; }
.cols div.zero { background: rgba(61, 90, 254, .1); }
.ax { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 6px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hair); }
  .side .brand { margin: 0; margin-inline-end: auto; }
  .side-lang { margin: 0; align-self: center; }
  .side .nav, .side .live, .side .brand span { display: none; }
  .side form { margin: 0 0 0 4px; }
  .side .logout { white-space: nowrap; padding: 8px; }
  .kpi .spark, .kpi .ring { display: none; }
  .main { padding: 16px; }
  .field.search input { width: 130px; }
  .hide-sm { display: none; }
}

/* =====================================================================
   Egyptian plate (SPEC 3.5) — shared by every stage via /base/style.css
   ===================================================================== */
.plate { direction: ltr; width: 230px; margin: 0 auto; border-radius: 10px; overflow: hidden; border: 2px solid #1b2333; background: #fff; box-shadow: var(--shadow); }
.plate .band { background: #2f8fd8; color: #fff; display: flex; justify-content: space-between; padding: 2px 10px; font: 700 12px "IBM Plex Sans Arabic", Inter, sans-serif; letter-spacing: .04em; }
.plate .body { display: grid; grid-template-columns: 1fr 2px 1fr; align-items: center; height: 54px; }
.plate .body i { background: #1b2333; height: 70%; }
.plate .num, .plate .let { text-align: center; font: 700 30px "IBM Plex Sans Arabic", sans-serif; color: #0d1626; white-space: nowrap; overflow: hidden; }
.plate .let { direction: rtl; word-spacing: 6px; }
.plate .empty-part { color: #c4cbd8; }
button.plate, .plate.tap { cursor: pointer; padding: 0; font: inherit; display: block; }
.plate.ok { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(0, 179, 126, .15); }
.plate.check { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.plate .cursor { display: inline-block; width: 2px; height: 26px; background: var(--blue); vertical-align: -4px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.plate.sm { width: 112px; margin: 0; border-width: 1.5px; border-radius: 6px; box-shadow: none; }
.plate.sm .band { font-size: 7px; padding: 0 5px; }
.plate.sm .body { height: 24px; }
.plate.sm .num, .plate.sm .let { font-size: 14px; }
.plate.sm .let { word-spacing: 2px; }
.plate-none { font-size: 12px; color: var(--ink-3); }
.keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 10px; direction: rtl; }
.keypad button { height: 42px; border-radius: 10px; border: 1px solid var(--hair); background: #fff; font: 600 18px "IBM Plex Sans Arabic", sans-serif; box-shadow: 0 1px 0 rgba(13, 22, 38, .06); }
.keypad button:active { transform: scale(.95); background: rgba(61, 90, 254, .08); }
.keypad button.d { background: #f3f6fc; }
.keypad button.wide { grid-column: span 2; font-size: 14px; }
.keypad button.del { color: var(--bad-ink); }
.keypad .sep { grid-column: 1 / -1; height: 1px; background: var(--hair); margin: 2px 0; }
.mini-thumbs { display: flex; gap: 4px; }
.mini-thumbs img { width: 46px; height: 32px; border-radius: 6px; object-fit: cover; display: block; background: #1b2333; }
.hint { font-size: 12px; color: var(--ink-3); }
