/* Inter, bundled (assets/fonts/LICENSE.txt): no font is loaded from another server. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); }

/* Marketly admin. Plain CSS, no build step, so it runs on any hosting.
   Light and dark themes: follows the device, and the top-bar switch overrides it (html[data-theme]). */

:root {
  --bg: #f6f8fc; --surface: #ffffff; --panel: #f6f8fb; --field: #ffffff;
  --line: #eef2f7; --line-2: #dee2e6;
  --ink: #313a46; --ink-2: #6b7385; --ink-3: #98a2b3;
  --brand: #465dff; --brand-2: #3549e6; --brand-ink: #ffffff; --brand-soft: #e3e7ff; --brand-ring: rgba(70, 93, 255, .18);
  --side: #232e51; --side-2: #2a365d; --side-ink: #97aac1; --side-title: #6d7c9c; --side-hover: rgba(255, 255, 255, .05); --side-active: rgba(255, 255, 255, .08);
  --ok: #4fb43f; --ok-soft: #e9f7e6;
  --warn: #e0a218; --warn-soft: #fef5e1;
  --danger: #ff6d43; --danger-soft: #ffe9e3;
  --info: #3b9be8; --info-soft: #e4f2fd;
  --violet: #8664e8; --violet-soft: #efeafd;
  --apricot: #ff8a3d; --apricot-soft: #fff0e5;
  --shadow: 0 0 35px 0 rgba(104, 134, 177, .15);
  --shadow-lg: 0 16px 40px -8px rgba(104, 134, 177, .35);
  --r: 6px; --r-sm: 5px;
  --side-w: 260px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1424; --surface: #171e33; --panel: #1c2440; --field: #141b2e;
    --line: #262f4b; --line-2: #313b5a;
    --ink: #dfe4f0; --ink-2: #9aa4bc; --ink-3: #6e7896;
    --brand: #7b8cff; --brand-2: #9aa7ff; --brand-ink: #0c1230; --brand-soft: #232c5c; --brand-ring: rgba(123, 140, 255, .25);
    --side: #141b31; --side-2: #1a2240; --side-ink: #8e9cbb; --side-title: #5b6889;
    --ok: #74d364; --ok-soft: #1b3320; --warn: #f2c24e; --warn-soft: #3a3016; --danger: #ff8e6c; --danger-soft: #3d1f17;
    --info: #6ab8f5; --info-soft: #16304a; --violet: #a993ff; --violet-soft: #251f45; --apricot: #ffa56b; --apricot-soft: #3b2616;
    --shadow: 0 0 30px 0 rgba(0, 0, 0, .35); --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1424; --surface: #171e33; --panel: #1c2440; --field: #141b2e;
  --line: #262f4b; --line-2: #313b5a;
  --ink: #dfe4f0; --ink-2: #9aa4bc; --ink-3: #6e7896;
  --brand: #7b8cff; --brand-2: #9aa7ff; --brand-ink: #0c1230; --brand-soft: #232c5c; --brand-ring: rgba(123, 140, 255, .25);
  --side: #141b31; --side-2: #1a2240; --side-ink: #8e9cbb; --side-title: #5b6889;
  --ok: #74d364; --ok-soft: #1b3320; --warn: #f2c24e; --warn-soft: #3a3016; --danger: #ff8e6c; --danger-soft: #3d1f17;
  --info: #6ab8f5; --info-soft: #16304a; --violet: #a993ff; --violet-soft: #251f45; --apricot: #ffa56b; --apricot-soft: #3b2616;
  --shadow: 0 0 30px 0 rgba(0, 0, 0, .35); --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1 { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.005em; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
b, strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.side-mini .shell { grid-template-columns: 76px minmax(0, 1fr); }

.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side); color: var(--side-ink); z-index: 30; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 70px; padding: 0 14px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark.brand-logo { object-fit: contain; background: #fff; padding: 2px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: linear-gradient(135deg, #6f82ff, #465dff); color: #fff; font-size: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .icon-btn { color: var(--side-ink); }
.side .icon-btn:hover { background: var(--side-hover); color: #fff; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
.nav-group { margin-top: 14px; }
.nav-title { margin: 0 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--side-title); white-space: nowrap; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 8px; color: var(--side-ink); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.nav-link:hover { background: var(--side-hover); color: #fff; }
.nav-link[aria-current="page"] { background: var(--side-active); color: #e2eeff; font-weight: 600; }
.nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #7f90ff; }
.nav-link[aria-current="page"] .ic { color: #e2eeff; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; white-space: nowrap; overflow: hidden; }
.dot-online { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }

.side-mini .brand-name, .side-mini .nav-link span, .side-mini .nav-title, .side-mini .side-foot span:last-child { display: none; }
.side-mini .side-head { flex-direction: column; justify-content: center; gap: 6px; height: auto; padding: 14px 0; }
.side-mini .nav-link { justify-content: center; padding: 11px 0; }
.side-mini .nav-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .05); }
.side-mini .side-foot { justify-content: center; padding: 14px 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 70px; padding: 0 28px; background: var(--surface); box-shadow: var(--shadow); }
.top-search { position: relative; display: flex; align-items: center; flex: 0 1 380px; height: 40px; padding: 0 12px; gap: 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-3); transition: border-color .15s, box-shadow .15s; }
.top-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); background: var(--surface); }
.top .top-search input { flex: 1; min-height: 0; border: 0; box-shadow: none; border-radius: 0; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; outline: none; padding: 0; margin: 0; }
.top-search kbd { font: 600 11px var(--font); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; background: var(--surface); }
.top-spacer { flex: 1; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.bubble { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.if-dark { display: none; }
:root[data-theme="dark"] .if-light { display: none; }
:root[data-theme="dark"] .if-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .if-light { display: none; } :root:not([data-theme="light"]) .if-dark { display: block; } }
.only-mobile { display: none; }
.scrim { display: none; }

.user-menu { position: relative; margin-inline-start: 6px; }
.user-menu summary { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 12px; cursor: pointer; list-style: none; color: var(--ink-2); }
.user-menu summary::-webkit-details-marker, .user-menu summary::marker { display: none; content: ""; }
.user-menu summary { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }.user-menu summary:hover, .user-menu[open] summary { background: var(--panel); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 22%, var(--surface))); color: var(--brand); font-weight: 700; font-size: 13px; }
.user-meta { display: grid; line-height: 1.2; }
.user-meta b { color: var(--ink); font-size: 13.5px; }
.user-meta small { font-size: 11.5px; color: var(--ink-3); }
.menu-pop { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu-head { display: grid; margin: 0 0 6px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.menu-head span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: start; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel); color: var(--ink); }
.menu-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.menu-pop form button { color: var(--danger); }

.content { flex: 1; padding: 26px 28px 40px; }
.foot { padding: 16px 28px 22px; color: var(--ink-3); font-size: 12px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; }
.page-head .btn { white-space: nowrap; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 0; border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.card > h2:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { display: block; position: relative; background: var(--surface); border: 1px solid transparent; border-radius: var(--r); padding: 18px 20px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-lg); color: var(--ink); }
.stat .k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; line-height: 1.15; }
.stat .n { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.stat.hot { border-color: color-mix(in srgb, var(--apricot) 40%, var(--line)); }
.stat.hot .v { color: var(--apricot); }

/* ---------- badges, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand); white-space: nowrap; line-height: 1.5; }
.badge::before { content: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
.chip .muted { font-weight: 600; font-size: 11.5px; background: var(--panel); border-radius: 999px; padding: 0 7px; }
.chip:hover { background: var(--panel); color: var(--ink); }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip[aria-current="true"] .muted { background: rgba(255, 255, 255, .2); color: inherit; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: start; color: var(--ink); font-size: 13px; font-weight: 600; padding: 13px 16px 13px 24px; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
td { padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
td b, td a { color: var(--ink); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
tr:last-child td { border-bottom: 0; }
td a b, td a { font-weight: 600; }
.num { text-align: end; font-variant-numeric: tabular-nums; }
.card table th { background: transparent; }
.card table th, .card table td { padding-block: 12px; }
.card table th, .card table td { padding-inline: 10px; }
.card table th:first-child, .card table td:first-child { padding-inline-start: 0; }
.card table th:last-child, .card table td:last-child { padding-inline-end: 0; }

/* ---------- flash ---------- */
.flash { display: block; padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 500; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash.err { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.flash a { color: inherit; text-decoration: underline; font-weight: 700; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=month], input[type=datetime-local], input[type=url], input[type=tel], input[type=file], select, textarea {
  width: 100%; margin-top: 6px; padding: 9px 12px; min-height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 88px; resize: vertical; }
input[type=file] { padding: 7px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
/* Dropdowns: Safari draws its own macOS pill and arrow unless the native look is switched off, so every browser gets the same chevron. */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px 16px;
}
select[multiple], select[size]:not([size="1"]) { background-image: none; padding-right: 12px; cursor: auto; }
select option { background: var(--surface); color: var(--ink); }
select:disabled { opacity: .6; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; vertical-align: -3px; }
.field { margin-bottom: 16px; }
.error-text { color: var(--danger); font-size: 12.5px; margin: 5px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 18px; border-radius: var(--r-sm); border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; box-shadow: 0 2px 6px rgba(70, 93, 255, .25); }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--panel); color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(.95); }
.btn.small { min-height: 32px; padding: 5px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.btn-link:hover { color: var(--brand-2); }

/* ---------- dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.crumbs span:last-child { color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 0; border-radius: var(--r); padding: 18px 20px 16px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.kpi-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.kpi-ic.t-brand { background: var(--brand-soft); color: var(--brand); }
.kpi-ic.t-info { background: var(--info-soft); color: var(--info); }
.kpi-ic.t-violet { background: var(--violet-soft); color: var(--violet); }
.kpi-ic.t-apricot { background: var(--apricot-soft); color: var(--apricot); }
.kpi-ic.t-ok { background: var(--ok-soft); color: var(--ok); }
.kpi-ic.t-warn { background: var(--warn-soft); color: var(--warn); }
.kpi-ic.t-danger { background: var(--danger-soft); color: var(--danger); }
.kpi-v { font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--danger); background: var(--danger-soft); }
.delta.flat { color: var(--ink-2); background: var(--panel); }
.spark { width: 88px; height: 32px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
.card-head .muted { font-size: 12.5px; }
.summary-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px -24px 6px; border-block: 1px solid var(--line); background: var(--panel); }
.summary-row div { padding: 14px 22px; text-align: center; }
.summary-row div + div { border-inline-start: 1px solid var(--line); }
.summary-row span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.summary-row b { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; letter-spacing: -.01em; }
.chart { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--ink-3); font: 500 11px var(--font); }
.chart .area { fill: url(#salesFill); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .bar { fill: color-mix(in srgb, var(--info) 30%, transparent); }
.chart .pt { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

.promo { position: relative; overflow: hidden; border-radius: var(--r); padding: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #7d8eff 0%, #465dff 48%, #2f3fc4 100%); box-shadow: var(--shadow); }
.promo::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .07); }
.promo h3 { color: #fff; font-size: 17px; margin: 0 0 6px; }
.promo p { margin: 0 0 16px; color: rgba(255, 255, 255, .78); font-size: 13px; max-width: 250px; }
.promo .btn { background: #fff; color: #2f3fc4; border-color: #fff; box-shadow: none; }
.promo .btn:hover { background: #eef0ff; color: #2f3fc4; }

.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.row:last-child { border-bottom: 0; }
a.row:hover { color: var(--ink); }
a.row:hover .row-title { color: var(--brand); }
.row-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: block; font-size: 12px; color: var(--ink-3); }
.row-end { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.count { min-width: 28px; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; }
.count.hot { background: var(--apricot-soft); color: var(--apricot); }
.rank { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--panel); color: var(--ink-2); font-size: 12px; font-weight: 800; }
.meter { height: 6px; border-radius: 6px; background: var(--panel); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #8fa0ff); }
.view-all { display: block; margin-top: 12px; text-align: center; font-weight: 600; font-size: 13px; }
.totals-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: var(--ink-3); font-size: 12.5px; }
.totals-strip b { color: var(--ink); }

/* ---------- sign-in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #34417a 0%, #232e51 50%, #171f3a 100%); }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; }
.auth-art::before { width: 460px; height: 460px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(111, 130, 255, .45), transparent 65%); }
.auth-art::after { width: 380px; height: 380px; left: -120px; bottom: -140px; border: 56px solid rgba(255, 255, 255, .04); }
.auth-art .brand { position: relative; z-index: 1; }
.auth-quote { position: relative; z-index: 1; max-width: 440px; }
.auth-quote h2 { color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.auth-quote p { color: rgba(255, 255, 255, .7); margin: 0; font-size: 15px; }
.auth-points { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-points span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .85); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 26px; }
.auth-form .lead { margin: 6px 0 28px; color: var(--ink-2); }
.auth-form .btn { width: 100%; min-height: 46px; font-size: 14.5px; margin-top: 6px; }
.auth-foot { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .shell, .side-mini .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .side-open .side { transform: none; }
  .side-mini .brand-name, .side-mini .nav-link span, .side-mini .nav-title, .side-mini .side-foot span:last-child { display: revert; }
  .side-mini .side-head { flex-direction: row; justify-content: space-between; height: 64px; padding: 0 14px 0 20px; }
  .side-mini .nav-link { justify-content: flex-start; padding: 9px 12px; }
  .side-toggle { display: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(9, 14, 24, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .side-open .scrim { opacity: 1; pointer-events: auto; }
  .only-mobile { display: inline-grid; }
  .top { padding: 0 16px; gap: 8px; }
  .content { padding: 20px 16px 32px; }
  .foot { padding: 12px 16px 20px; }
}
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4, .kpis, .dash-side { grid-template-columns: minmax(0, 1fr); }
  .user-meta, .user-menu summary > .ic, .top-search kbd { display: none; }
  .top-search { flex: 1; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-row div:nth-child(3) { border-inline-start: 0; }
  .summary-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .card { padding: 18px; }
  .summary-row { margin-inline: -18px; }
  form[role="search"][style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Filter bars on list pages sit in a card, like the table under them. */
.content > form[role="search"] { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.content > form[role="search"] input, .content > form[role="search"] select { margin-top: 4px; }
.content > form[role="search"] label { font-size: 12px; color: var(--ink-2); }

/* ---------- list card: toolbar on top, table inside (products and other lists) ---------- */
.page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.page-title h1 { font-size: 18px; }
.page-title .crumbs a { color: var(--ink-2); }
.list-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.list-tools .left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search-sm { position: relative; display: flex; align-items: center; width: 260px; max-width: 100%; }
.search-sm .ic { position: absolute; left: 11px; color: var(--ink-3); pointer-events: none; }
.list-tools .search-sm input[type=search] { margin: 0; min-height: 36px; padding: 7px 12px 7px 34px; border-radius: var(--r-sm); border-color: var(--line-2); font-size: 13px; }
.list-tools select { width: auto; margin: 0; min-height: 36px; padding: 6px 30px 6px 10px; font-size: 13px; border-radius: var(--r-sm); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 5px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(104, 134, 177, .25); }
.seg a span { font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--line); color: var(--ink-2); }
.seg a[aria-current="true"] span { background: var(--brand-soft); color: var(--brand); }
.list-card .table-wrap { border-radius: 0; box-shadow: none; }
.list-card th { background: transparent; }
.list-card tr > :first-child { padding-inline-start: 24px; }
.list-card tr > :last-child { padding-inline-end: 24px; }
.check-col { width: 24px; padding-inline-end: 0 !important; }
.list-card input[type=checkbox] { width: 15px; height: 15px; margin: 0; border-radius: 4px; vertical-align: middle; }
.id-cell { font-weight: 500; color: var(--ink); white-space: nowrap; }
.prod { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.list-card th, .list-card td { padding-inline-start: 16px; }
.thumb { width: 38px; height: 38px; flex: none; border-radius: var(--r-sm); background: var(--panel); overflow: hidden; display: grid; place-items: center; color: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-name { display: block; font-weight: 500; color: var(--ink); max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.prod:hover .prod-name { color: var(--brand); }
.prod-sub { display: block; font-size: 12px; color: var(--ink-3); }
.desc { display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.acts form { margin: 0; }
.act { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; transition: filter .15s, transform .1s; }
.act:hover { filter: brightness(.95); transform: translateY(-1px); }
.act.view { background: var(--brand-soft); color: var(--brand); }
.act.ok { background: var(--ok-soft); color: var(--ok); }
.act.bad { background: var(--danger-soft); color: var(--danger); }
.list-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.list-foot .pager { margin-top: 0 !important; }
.empty { text-align: center; padding: 48px 20px !important; color: var(--ink-3); }
.empty .ic { margin: 0 auto 10px; color: var(--ink-3); }
@media (max-width: 1440px) { .col-desc { display: none; } }
@media (max-width: 760px) {
  .list-tools { padding: 14px 16px; }
  .search-sm { width: 100%; }
  .list-card tr > :first-child { padding-inline-start: 16px; }
  .list-card tr > :last-child { padding-inline-end: 16px; }
  .desc { display: none; }
}

/* Filters stacked at the top of a list card (status chips, then a search form). */
.list-tools.stacked { display: grid; gap: 14px; justify-content: stretch; }
.list-tools.stacked > div { margin: 0 !important; }
.list-tools .chip { border-radius: var(--r-sm); padding: 5px 12px; font-size: 12.5px; font-weight: 500; }
.list-tools .chip .muted { border-radius: 4px; }
.list-tools form label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.list-tools form input, .list-tools form select { margin-top: 4px; min-height: 36px; padding-block: 6px; font-size: 13px; }
.list-tools form .btn { min-height: 36px; }
.list-tools form[style*="display:flex"] > div { min-width: 180px; }
.list-foot:has(> .pager:only-child), .list-foot:empty { justify-content: center; }
.list-foot:not(:has(*)) { display: none; }

/* Breadcrumb line above each page title. */
.page-crumbs { margin: -6px 0 8px; font-size: 12px; }
.page-crumbs a { color: var(--ink-3); }
.page-crumbs a:hover { color: var(--brand); }

/* ---------- categories page ---------- */
.cat-step { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-weight: 600; font-size: 14px; }
.cat-step span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.cat-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.cat-type { position: relative; display: block; cursor: pointer; margin: 0; }
.cat-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-type > span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.cat-type b { font-size: 14px; }
.cat-type small { font-size: 12.5px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.cat-type:hover > span { border-color: var(--brand); }
.cat-type input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.cat-type input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cat-type input:disabled + span { opacity: .55; cursor: not-allowed; }
.cat-more { margin-top: 6px; }
.cat-more summary { cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 600; list-style: none; display: inline-block; }
.cat-more summary::-webkit-details-marker { display: none; }
.cat-more summary::before { content: "+ "; }
.cat-more[open] summary::before { content: "− "; }
.cat-head { margin: 0 0 12px; }
.cat-group { margin-bottom: 16px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cat-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cat-pic { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 10px; }
.cat-pic-empty { display: grid; place-items: center; background: var(--panel); color: var(--ink-3); border: 1px dashed var(--line-2); }
.cat-name-top { font-size: 15px; }
.badge.ghost { background: var(--panel); color: var(--ink-2); }
.cat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-kids { margin-top: 14px; border-top: 1px solid var(--line); }
.cat-kid { margin-inline-start: 22px; padding: 12px 0 12px 16px; border-inline-start: 2px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-kid:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-nokids { margin: 12px 0 0; }
.cat-panel { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--panel); }
.cat-panel[hidden] { display: none; }
.cat-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 560px; }
.cat-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; font-weight: 500; }
.cat-check input[type=checkbox] { margin-top: 2px; flex: none; }
.cat-check small { font-weight: 400; }
.cat-sect { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .cat-types { grid-template-columns: 1fr; } }

/* Confirmation box (resources/views/partials/confirm.blade.php) */
dialog.confirm { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; box-shadow: var(--shadow-lg); }
dialog.confirm::backdrop { background: rgba(15, 23, 42, .45); }
dialog.confirm form { margin: 0; padding: 22px; }
.confirm-text { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Which panel you are in (both top bars) */
.who-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.who-badge.staff { background: var(--brand-soft, rgba(99, 102, 241, .12)); color: var(--brand); }
.who-badge.seller { background: var(--ok-soft); color: var(--ok); }
.who-also { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 760px) { .who-badge, .who-also { display: none; } }

/* Seller dashboard: setup checklist */
.setup h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.setup-list li { display: flex; gap: 12px; align-items: flex-start; }
.setup-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--line); border-radius: 50%; color: #fff; }
.setup-list li.done .setup-mark { background: var(--ok); border-color: var(--ok); }
.setup-list li.done b { color: var(--ink-2); text-decoration: line-through; font-weight: 500; }

/* File pickers follow the light and dark look */
input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--brand); }

/* Right-to-left languages (Arabic, Urdu…): the few rules that name a side are mirrored; the rest already use start/end. */
[dir="rtl"] .nav-link[aria-current="page"]::before { left: auto; right: -12px; border-radius: 3px 0 0 3px; }
[dir="rtl"] .bubble { right: auto; left: 3px; }
[dir="rtl"] .menu-pop { right: auto; left: 0; }
[dir="rtl"] select { padding-right: 12px; padding-left: 34px; background-position: left 11px center; }
[dir="rtl"] select[multiple], [dir="rtl"] select[size]:not([size="1"]) { padding-left: 12px; }
[dir="rtl"] .promo::after { right: auto; left: -40px; }
[dir="rtl"] .auth-art::before { right: auto; left: -160px; }
[dir="rtl"] .auth-art::after { left: auto; right: -120px; }
[dir="rtl"] .search-sm .ic { left: auto; right: 11px; }
[dir="rtl"] .list-tools .search-sm input[type=search] { padding: 7px 34px 7px 12px; }
[dir="rtl"] input[type="file"]::file-selector-button { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .side-toggle svg, [dir="rtl"] .nav-link .chev { transform: scaleX(-1); }
@media (max-width: 1024px) {
  [dir="rtl"] .side { inset: 0 0 0 auto; transform: translateX(100%); }
  [dir="rtl"] .side-open .side { transform: none; }
}
.lang-switch select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; width: auto; max-width: 150px; }

/* Printing a page (or saving it as a PDF): just the content, on white, without the menu, the top bar or any buttons and forms. */
@media print {
  .side, .top, .page-crumbs, .btn, form, button, .flash, .list-foot, .pagination { display: none !important; }
  .shell { display: block; }
  body, .content { background: #fff !important; color: #000; padding: 0; }
  .card, .list-card, .table-wrap { box-shadow: none !important; border: 0 !important; }
  table { font-size: 11px; }
  a { color: inherit; text-decoration: none; }
  tr { page-break-inside: avoid; }
}
