/* =========================================================
   VRD Wash · Müşteri Paneli — açık tema
   ========================================================= */

:root {
    --bg:        #f6fbff;
    --bg-soft:   #eaf4fc;
    --surface:   #ffffff;
    --ink:       #0f172a;
    --ink-soft:  #1e293b;
    --muted:     #64748b;
    --line:      #e2e8f0;
    --brand:     #0284c7;
    --brand-2:   #0ea5e9;
    --brand-ink: #075985;
    --accent:    #10b981;
    --danger:    #ef4444;
    --radius:    16px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow:    0 14px 40px rgba(2, 132, 199, 0.10);
    --shadow-lg: 0 26px 55px rgba(2, 132, 199, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.app,
body.login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(16, 185, 129, 0.10), transparent 60%),
        var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.app { display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

/* ===================== Top Bar ===================== */
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 14px 32px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar__brand img { height: 44px; display: block; }
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a {
    color: var(--ink-soft); font-size: 14px; font-weight: 600;
    padding: 6px 2px; border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { color: var(--brand); text-decoration: none; }
.topbar__nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.topbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.topbar__action {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 16px; border-radius: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
    background: var(--brand); color: #fff; border: 1px solid var(--brand);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.topbar__action:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; text-decoration: none; }
.topbar__action--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.topbar__action--ghost:hover { background: #f8fafc; color: var(--brand); border-color: var(--brand); }

/* Cron tetikleyici (header) */
.topbar__cron {
    position: relative; cursor: pointer; gap: 8px;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.topbar__cron:hover { background: #f8fafc; border-color: var(--brand); color: var(--brand); }
.topbar__cron-label { font-weight: 700; }
.topbar__cron-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: #eef2f7; color: var(--muted);
    font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
}
.topbar__cron.is-running .topbar__cron-count { background: #fff7e6; color: #b97d00; }
.topbar__cron-tick {
    position: absolute; top: -10px; right: -8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #16a34a; color: #fff; font-size: 13px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(22,163,74,.35);
    transform: scale(0); opacity: 0; transition: transform .18s ease, opacity .18s ease;
    pointer-events: none;
}
.topbar__cron-tick.show { transform: scale(1); opacity: 1; }
.topbar__cron-tick.err  { background: #dc2626; box-shadow: 0 4px 10px rgba(220,38,38,.35); }

@media (max-width: 760px) {
    .topbar { flex-wrap: wrap; padding: 12px 18px; }
    .topbar__nav { order: 3; width: 100%; justify-content: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
    .topbar__brand img { height: 40px; }
}

/* ===================== Main ===================== */
.main {
    flex: 1; width: 100%;
    max-width: 1100px; margin: 0 auto;
    padding: 36px 24px 40px;
}
.main--wide { max-width: 1260px; }

/* ===================== Welcome banner ===================== */
.welcome {
    background: linear-gradient(135deg, #ffffff 0%, #eaf4fc 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px; flex-wrap: wrap;
}
.welcome__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.welcome__head p  { margin: 0; color: var(--muted); font-size: 14px; }
.welcome h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.welcome p  { margin: 0; color: var(--muted); font-size: 14px; }

.mini-stats {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.mini-stat {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 8px 14px; min-width: 150px;
    display: flex; flex-direction: column; gap: 2px;
}
.mini-stat__label {
    color: var(--muted); font-size: 10px; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase;
}
.mini-stat__value { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.mini-stat__sub { color: var(--muted); font-size: 11px; font-weight: 600; }
.mini-stat--accent { background: linear-gradient(135deg, #ffffff 0%, #eaf4fc 100%); border-color: #bfdcef; }
.mini-stat--accent .mini-stat__value { color: var(--brand); }
.mini-stat--green  { background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%); border-color: #a7f3d0; }
.mini-stat--green .mini-stat__value { color: #047857; }

/* ===================== Market style tiles ===================== */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 740px)  { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .tiles { grid-template-columns: 1fr; } }

.tile {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 22px 24px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s, border-color .15s, background .15s;
    min-height: 170px;
    position: relative;
    overflow: hidden;
}
.tile:hover {
    transform: translateY(-3px);
    border-color: #bae6fd;
    box-shadow: var(--shadow);
    text-decoration: none;
}
.tile:active { transform: translateY(0); }
.tile__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800;
    box-shadow: 0 10px 26px rgba(2,132,199,0.30);
    margin-bottom: 10px;
}
.tile__icon--green { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 10px 26px rgba(16,185,129,0.30); }
.tile__icon--amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 10px 26px rgba(245,158,11,0.30); }
.tile__icon--rose  { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 10px 26px rgba(225,29,72,0.30); }
.tile__icon--slate { background: linear-gradient(135deg, #94a3b8, #475569); box-shadow: 0 10px 26px rgba(71,85,105,0.30); }

.tile__title { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.tile__desc  { font-size: 13px; color: var(--muted); }
.tile__badge {
    position: absolute; top: 14px; right: 14px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    background: #fef3c7; color: #92400e;
    padding: 4px 8px; border-radius: 999px;
}

/* ===================== Login ===================== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.login__card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}
.login__brand { display: flex; justify-content: center; margin-bottom: 18px; }
.login__brand img { height: 56px; }
.login__title { text-align: center; margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.login__sub   { text-align: center; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.login__hint  { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.login__back  { color: var(--muted); font-size: 13px; }
.login__back:hover { color: var(--brand); }

/* ===================== Forms / Alerts ===================== */
.alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 14px; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert--ok  { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.2px; }
.field input, .field select, .field textarea {
    appearance: none;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.10);
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px;
    border: 1px solid transparent;
    background: var(--surface); color: var(--ink);
    font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: transform .05s, box-shadow .15s, background .15s, color .15s;
    box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    box-shadow: 0 10px 26px rgba(2,132,199,0.30);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(2,132,199,0.40); }
.btn--ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--open   { background: linear-gradient(135deg, #34d399, var(--accent)); color: #fff; box-shadow: 0 10px 26px rgba(16,185,129,0.30); padding: 14px 24px; font-size: 15px; }
.btn--close  { background: linear-gradient(135deg, #fb7185, var(--danger)); color: #fff; box-shadow: 0 10px 26px rgba(225,29,72,0.30); padding: 14px 24px; font-size: 15px; }
.btn--block  { width: 100%; justify-content: center; padding: 13px; font-size: 15px; border-radius: 14px; }
.btn--sm     { padding: 7px 12px; font-size: 13px; font-weight: 600; }

.spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    display: none; animation: spin .8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.toggle input { accent-color: var(--brand); width: 16px; height: 16px; }

/* ===================== Page Header ===================== */
.page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.page-head p  { margin: 0; color: var(--muted); font-size: 14px; }
.page-head__actions {
    display: inline-flex; align-items: center;
    gap: 8px; flex-wrap: wrap;
}
.page-head__actions .btn {
    height: 40px; padding: 0 16px;
    font-size: 13px; font-weight: 700;
    border-radius: 10px;
}

.page-foot-link {
    margin-top: 18px;
    text-align: right;
}
.page-foot-link a { color: var(--muted); font-size: 12px; }
.page-foot-link a:hover { color: var(--brand); }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.placeholder {
    text-align: center;
    padding: 60px 30px;
    background: var(--surface);
    border: 2px dashed #bae6fd;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}
.placeholder__icon {
    width: 72px; height: 72px; margin: 0 auto 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff; font-size: 32px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 28px rgba(2,132,199,0.25);
}
.placeholder h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.placeholder p  { margin: 0 auto 20px; max-width: 480px; color: var(--muted); }

/* ===================== Devices page ===================== */
.device-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.device-card__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap;
}
.device-card__head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.device-card__meta { color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs__item {
    padding: 8px 14px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink-soft); font-size: 13px; font-weight: 600;
    text-decoration: none;
}
.tabs__item:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.tabs__item.is-active {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(2,132,199,0.12));
    color: var(--brand-ink); border-color: #bae6fd;
}

.status {
    margin: 14px 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid transparent;
    background: var(--surface);
}
.status--idle { background: var(--surface); border-color: var(--line); color: var(--muted); }
.status--ok   { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.status--err  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.status--busy { background: #e0f2fe; border-color: #bae6fd; color: var(--brand-ink); }

.result {
    margin-top: 14px;
    display: grid; gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) { .result { grid-template-columns: 1fr; } }

.info-tile {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 16px;
}
.info-tile__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 4px; }
.info-tile__value { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.info-tile__value--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.info-tile__value--sm   { font-size: 13px; font-weight: 500; color: var(--muted); }
.info-tile--wide { grid-column: 1 / -1; }

/* Controls (kontak kontrolü) */
.controls {
    margin-top: 16px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; padding: 22px;
    box-shadow: var(--shadow-sm);
}
.controls__head h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.controls__head p  { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.controls__row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.controls__row .field { flex: 0 0 140px; }
.controls__btns { display: flex; gap: 10px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }

.controls__diag { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line); }
.controls__diag-label { font-size: 12px; color: var(--muted); font-weight: 600; }

.action-status { margin-top: 12px; min-height: 20px; font-size: 13px; color: var(--muted); }
.action-status.is-ok  { color: #065f46; }
.action-status.is-err { color: #991b1b; }

.action-trace {
    margin: 10px 0 0; padding: 12px;
    background: #f1f5f9; border: 1px solid var(--line);
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; color: var(--ink-soft);
    white-space: pre-wrap; word-break: break-word;
    max-height: 180px; overflow: auto;
}

/* ===================== Utilities ===================== */
.muted       { color: var(--muted); }
.small       { font-size: 12px; }
.mono        { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: 0.2px; }
.text-ok     { color: #065f46; }
.text-danger { color: #991b1b; }
.row         { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================== Form grid ===================== */
.form-grid { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.form-grid__title { margin: 6px 0 -4px; font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.form-grid__lead  { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.form-grid__row   { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.form-grid__row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
    .form-grid__row,
    .form-grid__row--3 { grid-template-columns: 1fr; }
}
.form-grid__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form-grid .field    { margin: 0; }

.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack__actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding: 4px 2px;
}

.panel__header {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
}
.panel__header .panel__title { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.panel__caption { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.panel__hint  {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px; line-height: 1.5;
}

/* ===================== Search bar ===================== */
.search-bar {
    display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
    margin-bottom: 16px;
}
.search-bar .field { margin: 0; }

/* ===================== Tables ===================== */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: auto;
}
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th {
    background: #f8fafc; color: var(--ink-soft); font-weight: 700;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
    position: sticky; top: 0;
}
.tbl th a { color: inherit; text-decoration: none; }
.tbl th a:hover { color: var(--brand); }
.tbl tr:last-child td { border-bottom: none; }
.tbl__num   { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl__empty { color: var(--muted); text-align: center; padding: 24px; }
.tbl__act   { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }

/* ===================== Pills / badges ===================== */
.pill {
    display: inline-block; padding: 3px 10px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.3px; text-transform: uppercase;
    border: 1px solid transparent;
}
.pill--ok   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.pill--err  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.pill--warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pill--info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.pill--mute { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.balance-chip {
    display: inline-block;
    padding: 4px 10px; border-radius: 10px;
    font-weight: 800; font-variant-numeric: tabular-nums;
    border: 1px solid var(--line);
}
.balance-chip--ok   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.balance-chip--zero { background: #f8fafc; color: var(--muted); }

/* ===================== Key-Value list ===================== */
.kv { display: flex; flex-direction: column; }
.kv__row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.kv__row:last-child { border-bottom: none; }
.kv__row span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }

/* ===================== Panels ===================== */
.panel__title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.panel__sub   { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.panel__sub h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.panel__sub--accent {
    margin-top: 14px; padding: 14px 14px 12px;
    border: 1px dashed #bfdbfe; border-radius: 12px;
    background: #f8fbff;
}
.panel__sub--accent h3 { color: #1e3a8a; }

.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===================== Wash start / card reader ===================== */
.reader { text-align: center; padding: 32px 26px; }
.reader__icon {
    width: 92px; height: 92px; margin: 0 auto 14px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff; font-size: 46px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 18px 36px rgba(2,132,199,0.30);
}
.reader h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.reader p  { margin: 0 auto 18px; max-width: 480px; }
.reader__form { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 420px; margin: 0 auto; }
.reader__input {
    width: 100%; padding: 16px 18px; font-size: 20px; font-weight: 700;
    letter-spacing: 1px; text-align: center;
    border-radius: 16px; border: 2px dashed #bae6fd;
    background: #f0f9ff; color: var(--ink);
    outline: none;
}
.reader__input:focus { border-color: var(--brand); border-style: solid; background: #fff; box-shadow: 0 0 0 6px rgba(2,132,199,0.10); }
.reader__price { margin-top: 16px; color: var(--muted); font-size: 13px; }
.reader__price b { color: var(--ink); font-size: 15px; }

.result-card { min-height: 300px; text-align: center; padding: 32px 22px; }
.result-card__ph { color: var(--muted); padding-top: 60px; }
.result-card__icon {
    width: 78px; height: 78px; margin: 0 auto 12px;
    border-radius: 24px;
    background: #e2e8f0; color: #475569;
    font-size: 42px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.result-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.result-card__msg { margin: 0 auto 16px; max-width: 440px; color: var(--muted); }
.result-card .kv { max-width: 420px; margin: 0 auto; text-align: left; }
.result-card--ok  .result-card__icon { background: linear-gradient(135deg, #34d399, var(--accent)); color: #fff; box-shadow: 0 14px 28px rgba(16,185,129,0.30); }
.result-card--ok  { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%); }
.result-card--err .result-card__icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 14px 28px rgba(245,158,11,0.30); }
.result-card--err { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%); }

/* ===================== Footer ===================== */
.foot-app {
    border-top: 1px solid var(--line);
    background: #f8fbfe;
    padding: 22px 24px 18px;
    text-align: center;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.foot-app__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-app__links a { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.foot-app__links a:hover { color: var(--brand); }
.foot-app__copy { color: var(--muted); font-size: 12px; }

/* ===================== Kullanıcı yönetimi ===================== */
.topbar__user {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0 10px; height: 36px;
    border-radius: 10px; background: #f1f5f9;
    color: var(--ink-soft); font-size: 12px; font-weight: 700;
    border: 1px solid var(--line);
}
.topbar__user-role { color: var(--muted); font-weight: 600; }

.users-list { display: flex; flex-direction: column; gap: 12px; }
.user-card  {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
    background: #fff;
}
.user-card__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.user-card__name { font-size: 14px; font-weight: 700; }
.user-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.user-card__actions { display: flex; gap: 6px; align-items: center; }
.user-card__log { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.btn--xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }

.inline-form { position: relative; }
.inline-form > summary { list-style: none; cursor: pointer; }
.inline-form > summary::-webkit-details-marker { display: none; }
.inline-form__body {
    position: absolute; right: 0; top: calc(100% + 4px);
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 8px; display: flex; gap: 6px; align-items: center;
    box-shadow: var(--shadow-sm); z-index: 5;
}
.inline-form__body input[type="password"] {
    height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px;
}

.ev-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-list li { font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filter-bar .field { min-width: 180px; }
