/* ======================================================================
   MASTER LANCHES — PAINEL ADMINISTRATIVO (protótipo alta fidelidade)
   Sistema de identidade própria: SaaS premium, atmosfera noturna,
   acento laranja-brasa. Independente do site público (css/style.css).
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0D0B0A;
  --sidebar:    #12100E;
  --card:       #181411;
  --surface2:   #211A16;
  --surface3:   #2A211C;
  --border:     #342A24;
  --border-soft: #241D18;

  --orange:     #F26B21;
  --orange-2:   #FF681F;
  --orange-soft: rgba(242, 107, 33, 0.14);
  --orange-glow: rgba(242, 107, 33, 0.35);

  --text:       #FFF8F1;
  --text-dim:   #A8998E;
  --text-faint: #6E6259;

  --green:      #3ECB83;
  --green-soft: rgba(62, 203, 131, 0.14);
  --amber:      #F0B429;
  --amber-soft: rgba(240, 180, 41, 0.14);
  --blue:       #4C8DFF;
  --blue-soft:  rgba(76, 141, 255, 0.14);
  --red:        #EF4444;
  --red-soft:   rgba(239, 68, 68, 0.14);

  --radius:     11px;
  --radius-sm:  8px;
  --radius-lg:  14px;
  --radius-pill: 999px;

  --shadow:     0 16px 40px rgba(0,0,0,0.45);
  --shadow-sm:  0 6px 18px rgba(0,0,0,0.3);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22,.9,.35,1);
  --dur: 220ms;

  --sidebar-w: 250px;
  --header-h: 90px;
}

html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
ul { list-style: none; }

::selection { background: var(--orange-soft); color: var(--text); }

/* focus visibility (keyboard nav) */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   TYPOGRAPHY HELPERS
   --------------------------------------------------------------------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.num { font-family: var(--font-display); font-weight: 700; }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13.5px; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #1A0A02; box-shadow: 0 8px 20px rgba(242,107,33,.28); }
.btn-primary:hover { background: var(--orange-2); box-shadow: 0 10px 24px rgba(242,107,33,.4); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--surface2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface3); border-color: var(--orange); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--orange); color: var(--text); }
.btn-danger { background: var(--red-soft); color: #FF9C93; border-color: rgba(239,68,68,.3); }
.btn-danger:hover { background: rgba(239,68,68,.22); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-icon-only {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim); flex-shrink: 0;
}
.btn-icon-only:hover { color: var(--text); border-color: var(--orange); background: var(--surface3); }

/* ---------------------------------------------------------------------
   BADGES / CHIPS / STATUS DOTS
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-green  { background: var(--green-soft); color: var(--green); }
.badge-amber  { background: var(--amber-soft); color: var(--amber); }
.badge-blue   { background: var(--blue-soft); color: var(--blue); }
.badge-red    { background: var(--red-soft); color: #FF9C93; }
.badge-neutral{ background: var(--surface3); color: var(--text-dim); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.dot-blue  { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.dot-red   { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.count-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--orange); color: #1A0A02; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------------
   FORM ELEMENTS
   --------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--text-dim);
  margin-bottom: 7px; letter-spacing: .01em;
}
.field .req { color: var(--orange); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #4A3B32; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: var(--surface3); }
.field textarea { resize: vertical; min-height: 72px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); background: var(--red-soft); }
.field-error { display: none; color: #FF9C93; font-size: 11.5px; margin-top: 6px; }
.field.invalid .field-error { display: block; }

/* toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle-track {
  width: 40px; height: 23px; border-radius: 999px; background: var(--surface3); border: 1px solid var(--border);
  position: relative; flex-shrink: 0; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toggle-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--text-dim); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.toggle.on .toggle-track { background: var(--orange-soft); border-color: var(--orange); }
.toggle.on .toggle-track::after { transform: translateX(17px); background: var(--orange); }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text); }
.toggle-label small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-faint); margin-top: 2px; }

/* search input with icon */
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 14px; pointer-events: none; }
.search-box input { padding-left: 36px; }

/* ---------------------------------------------------------------------
   APP SHELL
   --------------------------------------------------------------------- */
.app-shell { display: none; min-height: 100vh; }
.app-shell.show { display: flex; }

/* ---------------------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--sidebar);
  border-right: 1px solid var(--border-soft);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 300;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 24px 20px 20px; }
.sidebar-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; overflow: hidden; display: inline-flex; }
.sidebar-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sidebar-brand-text strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; display: block; }
.sidebar-brand-text span { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; color: var(--orange); letter-spacing: .16em; text-transform: uppercase; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px 11px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--text-dim);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-item .ico { font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item .label { flex: 1; }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--orange-soft); color: var(--text); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--orange); border-radius: 0 3px 3px 0;
}
.nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--orange); color: #1A0A02; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border-soft); }
.store-status-card { background: var(--surface2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 13px 14px; }
.store-status-card .row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.store-status-card .row1 strong { font-size: 13px; font-weight: 700; }
.store-status-card p { font-size: 11.5px; color: var(--text-faint); margin-bottom: 10px; }
.store-status-card .view-store { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--orange); }

.sidebar-scrim { display: none; }

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px;
}
.topbar-titles { flex-shrink: 0; }
.topbar-date { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.topbar-title { font-family: var(--font-display); font-size: 27px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.hamburger-btn { display: none; }

.topbar-search { flex: 1; max-width: 380px; margin-left: 12px; }
.topbar-search input { background: var(--surface2); border-color: var(--border); }

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim);
  transition: all var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--orange); }
.icon-btn.is-active { color: var(--orange); border-color: var(--orange); background: var(--orange-soft); }
.icon-btn .ping {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

.profile-btn { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.profile-btn:hover { background: var(--surface2); border-color: var(--border); }
.profile-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #1A0A02;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.profile-text { text-align: left; line-height: 1.25; }
.profile-text strong { display: block; font-size: 13px; font-weight: 700; }
.profile-text span { font-size: 11px; color: var(--text-faint); }
.profile-chev { color: var(--text-faint); font-size: 10px; transition: transform var(--dur) var(--ease); }
.profile-btn.open .profile-chev { transform: rotate(180deg); }

.profile-menu {
  position: absolute; top: calc(var(--header-h) - 8px); right: 32px; z-index: 250;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); width: 220px; padding: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.profile-menu.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.profile-menu a, .profile-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-dim); text-align: left;
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--surface2); color: var(--text); }
.profile-menu hr { border: none; border-top: 1px solid var(--border-soft); margin: 6px 4px; }

/* ---------------------------------------------------------------------
   MAIN CONTENT
   --------------------------------------------------------------------- */
.app-main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.view-content { padding: 28px 32px 70px; position: relative; }
.view { display: none; }
.view.active { display: block; animation: view-in .25s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head .eyebrow { display: block; margin-bottom: 4px; }
.panel-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; }
.panel-link { font-size: 12.5px; font-weight: 700; color: var(--orange); flex-shrink: 0; }
.panel-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   DASHBOARD — greeting
   --------------------------------------------------------------------- */
.greeting-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.greeting h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.greeting p { color: var(--text-dim); font-size: 14px; margin-top: 8px; max-width: 520px; }
.greeting .attention { color: var(--amber); font-weight: 700; }
.live-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--surface2); border: 1px solid var(--border-soft); font-size: 12px; font-weight: 700; color: var(--text-dim); flex-shrink: 0; }

/* metric cards */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.metric-card { padding: 20px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.metric-ico { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.metric-ico.orange { background: var(--orange-soft); color: var(--orange); }
.metric-ico.amber { background: var(--amber-soft); color: var(--amber); }
.metric-ico.blue { background: var(--blue-soft); color: var(--blue); }
.metric-ico.green { background: var(--green-soft); color: var(--green); }
.metric-delta { font-size: 11.5px; font-weight: 700; }
.metric-delta.up { color: var(--green); }
.metric-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.metric-label { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

/* asymmetric grid */
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.dash-grid-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

/* recent orders list */
.recent-list { display: flex; flex-direction: column; }
.recent-row {
  display: grid; grid-template-columns: 56px 1.4fr .8fr .9fr .7fr; align-items: center; gap: 10px;
  padding: 13px 4px; border-bottom: 1px solid var(--border-soft); cursor: pointer; border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.recent-row:hover { background: var(--surface2); }
.recent-row:last-child { border-bottom: none; }
.recent-id { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-dim); }
.recent-cust strong { display: block; font-size: 13.5px; font-weight: 700; }
.recent-cust span { font-size: 11.5px; color: var(--text-faint); }
.recent-mode { font-size: 12px; color: var(--text-dim); }
.recent-total { font-family: var(--font-display); font-size: 15px; font-weight: 700; text-align: right; }

/* weekly chart */
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.chart-total { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.chart-growth { color: var(--green); font-size: 12px; font-weight: 700; margin-top: 4px; }
.chart-select { padding: 8px 12px; font-size: 12px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim); width: auto; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 160px; margin-top: 22px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bar-shape { width: 100%; max-width: 30px; background: var(--surface3); border-radius: 5px 5px 0 0; transition: transform var(--dur) var(--ease); position: relative; }
.bar-shape.highlight { background: var(--orange); box-shadow: 0 0 16px var(--orange-glow); }
.bar-col:hover .bar-shape { transform: scaleY(1.03); transform-origin: bottom; }
.bar-label { font-size: 11px; font-weight: 700; color: var(--text-faint); font-family: var(--font-display); letter-spacing: .04em; }
.bar-col:has(.bar-shape.highlight) .bar-label { color: var(--orange); }

/* top products */
.top-list { display: flex; flex-direction: column; gap: 4px; }
.top-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: var(--radius-sm); }
.top-row:hover { background: var(--surface2); }
.top-rank { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-faint); width: 22px; flex-shrink: 0; }
.top-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-info { flex: 1; min-width: 0; }
.top-info strong { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-info span { font-size: 11.5px; color: var(--text-faint); }
.top-price { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--orange); flex-shrink: 0; }

/* store status */
.store-op-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.store-op-head strong { font-size: 15px; font-weight: 700; }
.store-op-sub { font-size: 12px; color: var(--text-faint); margin-bottom: 18px; }
.store-op-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.store-op-stat span { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.store-op-stat strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.store-op-paused { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid rgba(239,68,68,.3); font-size: 12.5px; color: #FF9C93; margin-bottom: 14px; display: none; }
.store-op-paused.show { display: block; }

/* ---------------------------------------------------------------------
   FILTER CHIPS
   --------------------------------------------------------------------- */
.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--border-soft); font-size: 13px; font-weight: 700; color: var(--text-dim);
  transition: all var(--dur) var(--ease);
}
.filter-chip .cnt { background: var(--surface3); color: var(--text-dim); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.filter-chip:hover { border-color: var(--border); color: var(--text); }
.filter-chip.active { background: var(--orange-soft); border-color: var(--orange); color: var(--text); }
.filter-chip.active .cnt { background: var(--orange); color: #1A0A02; }

/* ---------------------------------------------------------------------
   KANBAN
   --------------------------------------------------------------------- */
.kanban-wrap { overflow-x: auto; padding-bottom: 12px; margin: 0 -4px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(272px, 1fr)); gap: 16px; padding: 0 4px; }
.kanban-col { display: flex; flex-direction: column; min-width: 0; }
.kanban-col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.kanban-col-head .dot { flex-shrink: 0; }
.kanban-col-head strong { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; flex: 1; }
.kanban-col-head .cnt { font-size: 11.5px; font-weight: 800; color: var(--text-faint); background: var(--surface2); padding: 2px 8px; border-radius: 999px; }
.kanban-cards { display: flex; flex-direction: column; gap: 12px; min-height: 80px; }
.kanban-col.drop-hover .kanban-cards { background: var(--surface2); border-radius: var(--radius); outline: 1.5px dashed var(--orange); }

.order-card {
  padding: 14px; cursor: pointer; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.order-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.order-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-card-id { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.order-card-age { font-size: 11px; font-weight: 800; color: var(--amber); background: var(--amber-soft); padding: 2px 8px; border-radius: 999px; }
.order-card-cust { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.order-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-faint); margin-bottom: 10px; }
.order-card-meta .sep { opacity: .5; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; }
.order-card-total { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--orange); }
.order-card-menu-btn { width: 26px; height: 26px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.order-card-menu-btn:hover { background: var(--surface2); color: var(--text); }
.order-card.dragging { opacity: .35; }

.empty-col { padding: 26px 14px; text-align: center; color: var(--text-faint); font-size: 12.5px; border: 1.5px dashed var(--border-soft); border-radius: var(--radius); }

/* ---------------------------------------------------------------------
   DRAWER (right slide-in)
   --------------------------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(4,3,2,.7); backdrop-filter: blur(3px); z-index: 800;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.drawer-scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 94vw; z-index: 850;
  background: var(--card); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform var(--dur) var(--ease);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.4);
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.drawer-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.drawer-head .sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-faint); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-section { margin-bottom: 22px; }
.drawer-section h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 12px; font-weight: 700; }
.drawer-foot { padding: 18px 24px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.drawer-foot .btn { flex: 1; min-width: 130px; }

.info-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; }
.info-line span:first-child { color: var(--text-faint); }
.info-line span:last-child { font-weight: 600; text-align: right; }

.order-item-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.order-item-row:last-child { border-bottom: none; }
.order-item-row .qty { color: var(--orange); font-weight: 700; margin-right: 6px; }
.order-item-row .obs { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.order-item-row .addon { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.order-item-price { font-weight: 700; flex-shrink: 0; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1.5px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); flex-shrink: 0; margin-top: 3px; box-shadow: 0 0 0 3px var(--orange-soft); }
.timeline-text strong { display: block; font-size: 13px; font-weight: 700; }
.timeline-text span { font-size: 11.5px; color: var(--text-faint); }

/* ---------------------------------------------------------------------
   TOOLBAR (search + filters shared across list screens)
   --------------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .search-box { flex: 1; min-width: 220px; max-width: 320px; }
.toolbar-spacer { flex: 1; }

/* ---------------------------------------------------------------------
   PRODUCT GRID
   --------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.admin-product-card { display: flex; flex-direction: column; overflow: hidden; }
.apc-media { position: relative; aspect-ratio: 4/3; background: var(--surface2); }
.apc-media img { width: 100%; height: 100%; object-fit: cover; }
.apc-media .badge { position: absolute; top: 10px; left: 10px; }
.apc-media .toggle { position: absolute; top: 10px; right: 10px; background: rgba(13,11,10,.7); backdrop-filter: blur(6px); padding: 4px 6px; border-radius: var(--radius-pill); }
.apc-media.esgotado::after { content: "ESGOTADO"; position: absolute; inset: 0; background: rgba(13,11,10,.72); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.apc-media.inativo img { filter: grayscale(.7) brightness(.6); }
.apc-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.apc-body h4 { font-size: 14.5px; font-weight: 700; }
.apc-body p { font-size: 12px; color: var(--text-faint); line-height: 1.5; min-height: 32px; }
.apc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.apc-price { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--orange); }
.apc-price .old { font-family: var(--font-body); font-size: 11.5px; color: var(--text-faint); text-decoration: line-through; font-weight: 400; margin-right: 5px; }
.apc-actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.apc-actions .btn-icon-only { flex: 1; width: auto; }

/* ---------------------------------------------------------------------
   TABLES
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 11px 12px; color: var(--text-faint); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.drag-handle { cursor: grab; color: var(--text-faint); font-size: 15px; }
.order-btns { display: inline-flex; flex-direction: column; gap: 2px; }
.order-btns button { width: 20px; height: 16px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--text-faint); }
.order-btns button:hover { color: var(--orange); }
.row-actions { display: flex; gap: 6px; }
.cat-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--surface2); font-size: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   ADDON GROUPS
   --------------------------------------------------------------------- */
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.addon-card { padding: 20px; }
.addon-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.addon-card-head h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.addon-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.addon-card-meta { display: flex; gap: 18px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.addon-card-meta div span { display: block; font-size: 10.5px; color: var(--text-faint); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.addon-card-meta div strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.addon-card-products { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.addon-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.addon-option-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 10px; background: var(--surface2); border-radius: var(--radius-sm); }
.addon-option-row .p { color: var(--orange); font-weight: 700; }
.addon-card-foot { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------------------------------------------------------------------
   COUPONS
   --------------------------------------------------------------------- */
.coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coupon-card { padding: 18px; position: relative; overflow: hidden; }
.coupon-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange); }
.coupon-card.status-agendado::before { background: var(--blue); }
.coupon-card.status-expirado::before { background: var(--text-faint); }
.coupon-code { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .02em; margin-bottom: 4px; }
.coupon-desc { font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; }
.coupon-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.coupon-meta div span { display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.coupon-meta div strong { font-size: 13px; font-weight: 700; }
.coupon-usage-bar { height: 5px; border-radius: 999px; background: var(--surface3); overflow: hidden; margin-bottom: 6px; }
.coupon-usage-fill { height: 100%; background: var(--orange); border-radius: 999px; }
.coupon-usage-text { font-size: 11px; color: var(--text-faint); margin-bottom: 14px; }
.coupon-foot { display: flex; justify-content: space-between; align-items: center; }

/* ---------------------------------------------------------------------
   ÁREAS + COBERTURA
   --------------------------------------------------------------------- */
.areas-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.coverage-panel { padding: 22px; }
.coverage-visual {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius); background: radial-gradient(circle at center, #1B140F 0%, #0F0C0A 72%);
  border: 1px solid var(--border-soft); overflow: hidden; margin-top: 8px;
}
.coverage-ring { position: absolute; top: 50%; left: 50%; border: 1.5px dashed var(--border); border-radius: 50%; transform: translate(-50%,-50%); }
.coverage-ring.r1 { width: 34%; height: 34%; border-color: rgba(242,107,33,.5); }
.coverage-ring.r2 { width: 58%; height: 58%; }
.coverage-ring.r3 { width: 82%; height: 82%; }
.coverage-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 15px; height: 15px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 6px var(--orange-soft), 0 0 20px var(--orange-glow); z-index: 2;
}
.coverage-zone-label {
  position: absolute; font-size: 10.5px; font-weight: 700; color: var(--text-faint);
  background: rgba(13,11,10,.6); padding: 2px 7px; border-radius: 999px; letter-spacing: .02em;
}
.coverage-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.coverage-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.coverage-legend-row .sw { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   BANNERS
   --------------------------------------------------------------------- */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.banner-card { overflow: hidden; display: flex; flex-direction: column; }
.banner-preview { position: relative; aspect-ratio: 16/8; background: var(--surface2); }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview .badge { position: absolute; top: 10px; left: 10px; }
.banner-preview .order-pin { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(13,11,10,.75); color: var(--text); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.banner-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.banner-body h4 { font-size: 15px; font-weight: 700; }
.banner-body p { font-size: 12px; color: var(--text-faint); line-height: 1.5; }
.banner-meta-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); padding-top: 8px; border-top: 1px solid var(--border-soft); margin-top: 4px; }
.banner-devices { display: flex; gap: 6px; }
.device-chip { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface2); color: var(--text-faint); }
.device-chip.on { background: var(--orange-soft); color: var(--orange); }
.banner-actions { display: flex; gap: 6px; padding: 0 16px 16px; }
.banner-actions .btn-icon-only { flex: 1; width: auto; }

/* image upload */
.upload-box {
  border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center;
  cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); position: relative; overflow: hidden;
}
.upload-box:hover { border-color: var(--orange); background: var(--surface2); }
.upload-box .ico { font-size: 26px; margin-bottom: 8px; color: var(--text-faint); }
.upload-box p { font-size: 12.5px; color: var(--text-dim); }
.upload-box span { font-size: 11px; color: var(--text-faint); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .remove-upload { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(13,11,10,.75); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------------
   SETTINGS TABS
   --------------------------------------------------------------------- */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.settings-tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 22px); }
.settings-tab { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-dim); }
.settings-tab .ico { font-size: 15px; width: 18px; text-align: center; }
.settings-tab:hover { background: var(--surface2); color: var(--text); }
.settings-tab.active { background: var(--orange-soft); color: var(--text); }
.settings-pane { display: none; }
.settings-pane.active { display: block; }
.settings-section-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.settings-section-sub { font-size: 12.5px; color: var(--text-faint); margin-bottom: 20px; }

.hours-table { display: flex; flex-direction: column; }
.hours-row { display: grid; grid-template-columns: 110px 1fr 100px 100px; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--border-soft); }
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-size: 13px; font-weight: 700; }
.hours-row input:disabled { opacity: .35; }

.exception-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.exception-row:last-child { border-bottom: none; }
.exception-row .date { font-family: var(--font-display); font-weight: 700; font-size: 14px; min-width: 90px; }
.exception-row .motivo { flex: 1; color: var(--text-dim); }

.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface2); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.pay-row .left { display: flex; align-items: center; gap: 12px; }
.pay-row .ico { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 16px; }

.perm-tags { display: flex; gap: 5px; flex-wrap: wrap; max-width: 220px; }
.perm-tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface2); color: var(--text-dim); }

/* ---------------------------------------------------------------------
   MODALS
   --------------------------------------------------------------------- */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(4,3,2,.7); backdrop-filter: blur(3px); z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.modal-scrim.show { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98); transition: transform var(--dur) var(--ease);
}
.modal-scrim.show .modal-box { transform: translateY(0) scale(1); }
.modal-box.wide { max-width: 800px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.modal-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; }
.modal-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.modal-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 20px 0 12px; }
.modal-section-title:first-child { margin-top: 0; }
.toggle-list { display: flex; flex-direction: column; gap: 14px; }
.toggle-list .toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface2); border-radius: var(--radius-sm); border: 1px solid var(--border-soft); }

/* confirm dialog (small) */
.confirm-box { max-width: 400px; padding: 26px; text-align: center; }
.confirm-box .ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.confirm-box .ico.danger { background: var(--red-soft); color: #FF9C93; }
.confirm-box .ico.warn { background: var(--amber-soft); color: var(--amber); }
.confirm-box h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.confirm-box p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 22px; }
.confirm-box .row { display: flex; gap: 10px; }
.confirm-box .row .btn { flex: 1; }

/* ---------------------------------------------------------------------
   TOASTS
   --------------------------------------------------------------------- */
.toast-stack { position: fixed; top: 24px; right: 24px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; min-width: 240px; max-width: 340px;
  animation: toast-in .25s var(--ease);
}
.toast.success { border-color: rgba(62,203,131,.4); }
.toast.success .toast-ico { color: var(--green); }
.toast.error { border-color: rgba(239,68,68,.4); }
.toast.error .toast-ico { color: var(--red); }
.toast-ico { font-size: 16px; flex-shrink: 0; }
.toast.leaving { animation: toast-out .2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

/* ---------------------------------------------------------------------
   EMPTY STATE / SKELETON
   --------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-faint); }
.empty-state .ico { font-size: 40px; margin-bottom: 14px; opacity: .6; }
.empty-state h4 { font-size: 15px; color: var(--text-dim); margin-bottom: 6px; font-weight: 700; }
.empty-state p { font-size: 12.5px; max-width: 320px; margin: 0 auto; }

.skeleton { background: linear-gradient(100deg, var(--surface2) 30%, var(--surface3) 50%, var(--surface2) 70%); background-size: 200% 100%; animation: skeleton-sweep 1.3s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-sweep { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.skeleton-metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 22px; }
.skeleton-metric { height: 112px; border-radius: var(--radius); }
.skeleton-block { height: 340px; border-radius: var(--radius); }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }

/* ================= LOGIN ================= */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(120% 120% at 20% 0%, #241812 0%, var(--bg) 60%); }
.admin-login-card { width: 100%; max-width: 400px; padding: 38px 34px; text-align: center; }
.admin-login-card .sidebar-logo { width: 60px; height: 60px; margin: 0 auto 18px; }
.admin-login-card h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.admin-login-card p.hint { color: var(--text-faint); font-size: 13px; margin-bottom: 24px; }
.admin-login-card .field { text-align: left; }
.admin-login-error { color: #FF9C93; font-size: 12.5px; margin-top: 10px; display: none; }
.admin-demo-note { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--orange-soft); border: 1px dashed var(--orange); font-size: 11.5px; color: var(--text-dim); text-align: left; line-height: 1.6; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid-bottom { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .hamburger-btn { display: inline-flex; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(4,3,2,.6); z-index: 290; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
  .sidebar-scrim.show { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 18px; gap: 12px; }
  .topbar-search { display: none; }
  .topbar-title { font-size: 22px; }
  .profile-text { display: none; }
  .profile-chev { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .settings-tab { flex-shrink: 0; }
  .kanban { grid-template-columns: repeat(4, 84vw); }
}
@media (max-width: 720px) {
  .view-content { padding: 20px 16px 70px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: 26px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .coupon-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .recent-row { grid-template-columns: 40px 1fr 70px; }
  .recent-row .recent-mode { display: none; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .greeting h1 { font-size: 24px; }
  .drawer { width: 100%; }
}
@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .topbar-date { display: none; }
  .topbar-title { font-size: 19px; }
}
