:root {
  --bg: #07110e;
  --panel: #101a1f;
  --panel-2: #0c1519;
  --line: #223039;
  --soft: #8c9aa3;
  --text: #f5fbf8;
  --green: #22c55e;
  --green-2: #0f7a3c;
  --gold: #d8a10a;
  --orange: #e45e12;
  --blue: #2f73e8;
  --purple: #6847dc;
  --pink: #cb5fa8;
  --teal: #1c9ca0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #10231a, #05090c 42%, #f8faf9 42.2%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #07100f, #091419);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
}
.brand { margin-bottom: 26px; }
.brand strong { display: block; font-size: 24px; line-height: 1; }
.brand span { color: var(--green); }
.brand small { display: block; color: #c9d2d0; font-size: 12px; margin-top: 7px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar p {
  color: #78868d;
  font-size: 11px;
  text-transform: uppercase;
  margin: 22px 0 8px;
}
.sidebar a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #dce6e3;
  padding: 0 12px;
  font-size: 14px;
}
.sidebar a.active, .sidebar a:hover { background: linear-gradient(90deg, #155f2a, #1a6f35); }
.sidebar em {
  margin-left: auto;
  font-style: normal;
  color: #b8ff6a;
  border: 1px solid #78d64f;
  border-radius: 999px;
  padding: 1px 5px;
  font-size: 9px;
}

main { min-width: 0; background: #06100f; }
.topbar {
  min-height: 74px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: rgba(5, 11, 14, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 24px; }
.topbar p { margin: 3px 0 0; color: #9ca8ad; font-size: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status {
  border: 1px solid #3caf62;
  border-radius: 8px;
  color: #d7e0dc;
  padding: 10px 15px;
  font-size: 12px;
}
.status b { color: #55e072; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
}
.icon-btn:hover { background: #132027; }
.alert { position: relative; }
.alert:after {
  content: "2";
  position: absolute;
  right: 4px;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f43f3f;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.admin-user { display: grid; grid-template-columns: 42px auto; column-gap: 10px; align-items: center; }
.admin-user span { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #fff, #59616a); }
.admin-user strong { font-size: 13px; }
.admin-user small { color: #b6c1c5; font-size: 11px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 0;
  align-items: stretch;
}
.control-panel { padding: 20px; min-width: 0; }
.brief-panel {
  background: #fff;
  color: #101923;
  padding: 30px 36px;
  border-left: 1px solid #d9e0e2;
}
.brief-panel h2 { text-align: center; font-size: 27px; margin: 0 0 10px; }
.brief-panel > p { text-align: center; font-size: 16px; margin: 0 0 32px; }
.brief-panel article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  border-top: 1px solid #cdd6da;
  padding: 24px 0;
}
.brief-panel i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-style: normal;
  font-size: 25px;
}
.brief-panel h3 { margin: 0 0 8px; color: #087236; font-size: 17px; }
.brief-panel p { grid-column: 2; margin: 0; color: #18242c; line-height: 1.65; }
.black-banner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #07100f, #141a1e);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: #fff;
}
.black-banner span { color: #20de6d; font-size: 42px; }
.black-banner b { color: #25df73; }
.black-banner strong { grid-column: 2; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stats-grid article, .card, .modules-card {
  background: linear-gradient(145deg, rgba(18, 30, 37, .98), rgba(10, 17, 22, .98));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}
.stats-grid article {
  min-height: 112px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: center;
}
.stats-grid i {
  grid-row: span 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-style: normal;
  font-size: 24px;
}
.green { background: #14783d; }
.gold { background: #a97605; }
.orange { background: #b8470d; }
.blue { background: #164fae; }
.purple { background: #5d36c2; }
.pink { background: #b54b93; }
.teal { background: #168286; }
.stats-grid span { color: #b5c1c6; font-size: 12px; }
.stats-grid strong { font-size: 22px; }
.stats-grid small { color: #50d96b; font-size: 11px; }

.modules-card { padding: 19px 20px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title h2, .card h2, .spotify-grid h3 { margin: 0; font-size: 16px; font-weight: 700; }
.section-title a { color: #c3ccd0; font-size: 12px; white-space: nowrap; }
.module-strip { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.module-strip button {
  min-width: 92px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
}
.module-strip span {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.module-strip em { font-style: normal; color: #b8ff6a; font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 18px; min-width: 0; }
.revenue-card, .orders-card, .impact-card { min-height: 235px; }
.chart-line {
  height: 125px;
  display: flex;
  align-items: end;
  gap: 9px;
  border-bottom: 1px solid #243842;
  background: linear-gradient(180deg, transparent, rgba(34, 197, 94, .12));
  padding: 0 10px;
}
.chart-line span { flex: 1; min-width: 8px; height: var(--h); background: linear-gradient(#32e873, #0f7a3c); border-radius: 999px 999px 0 0; }
.months { display: flex; justify-content: space-between; color: #9ca8ad; font-size: 11px; margin-top: 12px; }
.orders-card { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.orders-card h2 { grid-column: 1 / -1; }
.donut, .progress-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: conic-gradient(var(--green) 0 52%, var(--blue) 52% 70%, var(--purple) 70% 82%, var(--gold) 82% 90%, #9aa4aa 90%);
  position: relative;
}
.donut:before, .progress-ring:before { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #111b21; }
.donut strong, .donut span, .progress-ring strong, .progress-ring span { position: relative; z-index: 1; grid-column: 1; grid-row: 1; align-self: center; }
.donut span, .progress-ring span { margin-top: 44px; color: #c0c9ce; font-size: 12px; }
.orders-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; font-size: 12px; }
.orders-card li { display: flex; align-items: center; gap: 9px; }
.orders-card li span { margin-left: auto; }
.orders-card b:not(.green-dot):not(.blue-dot):not(.orange-dot):not(.gold-dot):not(.muted-dot) { font-weight: 700; }
.green-dot, .blue-dot, .orange-dot, .gold-dot, .muted-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.green-dot { background: var(--green); } .blue-dot { background: var(--blue); } .orange-dot { background: var(--orange); } .gold-dot { background: var(--gold); } .muted-dot { background: #9aa4aa; }
.progress-ring { margin: 14px auto; width: 145px; background: conic-gradient(var(--green) 0 96.7%, #26333a 96.7%); }
.impact-card dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 13px; }
.impact-card dt { color: #b8c3c8; }
.impact-card dd { margin: 0; }
.activity-card p, .alerts-card p, .health-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #dbe4e1;
  font-size: 13px;
}
.activity-card span, .alerts-card span { margin-left: auto; color: #9aa5aa; font-size: 11px; }
.health-card b { margin-left: auto; color: #49d768; font-weight: 600; }

.spotify-console {
  margin: 0 20px 20px;
  border: 1px solid #1d5134;
  border-radius: 14px;
  background: radial-gradient(circle at top right, rgba(35, 197, 94, .2), transparent 34%), #07120f;
  padding: 20px;
}
.spotify-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
}
.eyebrow { color: #74f78f; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.spotify-hero h2 { font-size: clamp(24px, 4vw, 44px); line-height: 1.05; margin: 12px 0; max-width: 880px; }
.spotify-hero p { color: #b9c7c1; font-size: 16px; line-height: 1.7; max-width: 760px; }
.now-playing {
  border: 1px solid #245a38;
  border-radius: 14px;
  background: #101a1f;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.cover-art {
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #07120f;
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, #23c55e, #f4c430);
}
.now-playing span, .now-playing small { color: #9da9ae; }
.player-line { height: 8px; border-radius: 999px; background: #26343b; overflow: hidden; }
.player-line b { display: block; width: 78%; height: 100%; background: var(--green); }
.spotify-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.spotify-kpis article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101a1f;
  padding: 15px;
}
.spotify-kpis span { color: #aab5ba; font-size: 12px; }
.spotify-kpis strong { display: block; font-size: 22px; margin: 6px 0; }
.spotify-kpis small { color: #61e87d; }
.spotify-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.control-list { display: grid; gap: 12px; }
.control-list p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  margin: 0;
  border-bottom: 1px solid #24333a;
  padding-bottom: 12px;
}
.control-list span { color: #9eaab0; font-size: 12px; }
.control-list button {
  grid-row: span 2;
  border: 1px solid #245a38;
  border-radius: 8px;
  background: #10301d;
  color: #8ff7a8;
  min-width: 76px;
}
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: #99a7ac; text-align: left; font-weight: 600; }
td, th { border-bottom: 1px solid #25343b; padding: 10px 6px; }
td b { color: #6bf087; }
.queue {
  border-left: 4px solid #6b7280;
  background: #0b1418;
  border-radius: 8px;
  padding: 12px;
}
.queue span { float: right; color: #9faab0; }
.queue.high { border-color: #ef4444; }
.queue.medium { border-color: #f59e0b; }
.queue.low { border-color: #22c55e; }
.checklist { padding-left: 20px; line-height: 1.9; color: #dce5e1; }

.architecture {
  background: #fff;
  color: #101923;
  padding: 20px 24px 34px;
}
.architecture h2 { text-align: center; margin: 0 0 20px; color: #101a2d; }
.arch-grid { display: grid; grid-template-columns: 160px minmax(220px, 1.2fr) minmax(260px, 1.4fr) minmax(220px, 1fr) minmax(220px, 1fr); gap: 18px; align-items: stretch; }
.arch-grid article {
  border: 1px solid #8aaeb2;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfd;
}
.arch-grid h3 { margin: 0 0 12px; color: #087236; text-transform: uppercase; font-size: 13px; }
.arch-grid p {
  border-bottom: 1px solid #dce5e7;
  padding: 8px 0;
  margin: 0;
  font-size: 12px;
}
.mini-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12px; }
.mini-modules span { display: grid; place-items: center; min-height: 50px; border: 1px solid #e0e7e9; border-radius: 8px; text-align: center; }
.arch-grid b { display: block; margin-top: 12px; background: var(--purple); color: #fff; border-radius: 8px; padding: 12px; text-align: center; }
.ai-node { position: relative; text-align: center; }
.ai-node strong { display: block; font-size: 54px; margin-top: 10px; }
.integrations { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px auto 0; justify-content: center; }
.integrations span { border: 1px solid #cbd7db; border-radius: 8px; padding: 12px 18px; background: #fff; font-weight: 700; font-size: 12px; }

@media (max-width: 1240px) {
  .admin-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .brief-panel { border-left: 0; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotify-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotify-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { background: #06100f; }
  .admin-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    transform: translateX(-104%);
    transition: transform .2s ease;
    z-index: 50;
  }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open:after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 40;
  }
  .topbar {
    padding: 10px 12px;
    gap: 10px;
    min-height: 64px;
  }
  .topbar h1 { font-size: 18px; }
  .topbar p, .status, .admin-user, .top-actions .icon-btn:nth-of-type(n+2) { display: none; }
  .top-actions { gap: 6px; }
  .control-panel { padding: 12px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats-grid article { min-height: 98px; grid-template-columns: 38px 1fr; padding: 12px; }
  .stats-grid i { width: 38px; height: 38px; font-size: 19px; }
  .stats-grid strong { font-size: 18px; }
  .modules-card { padding: 14px; }
  .module-strip { grid-template-columns: repeat(7, 96px); gap: 8px; }
  .module-strip span { width: 48px; height: 48px; font-size: 22px; }
  .dashboard-grid, .spotify-grid, .spotify-hero, .arch-grid { grid-template-columns: 1fr; }
  .orders-card { grid-template-columns: 1fr; }
  .donut { width: 160px; margin: 0 auto; }
  .brief-panel { padding: 24px 16px; }
  .brief-panel h2 { font-size: 22px; }
  .brief-panel article { grid-template-columns: 48px 1fr; }
  .brief-panel p { line-height: 1.5; }
  .spotify-console { margin: 0 12px 12px; padding: 14px; }
  .spotify-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotify-hero h2 { font-size: 28px; }
  .architecture { padding: 18px 12px 28px; }
  .mini-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid, .spotify-kpis { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .brief-panel article { grid-template-columns: 1fr; }
  .brief-panel p { grid-column: auto; }
  .black-banner { grid-template-columns: 1fr; }
  .black-banner strong { grid-column: auto; }
  .spotify-hero p { font-size: 14px; }
  .arch-grid article { padding: 13px; }
}

/* Homepage replica */
.home-template {
  background: #f6f8f7;
  color: #0e1b16;
  color-scheme: light;
}
.homepage-board {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 250px;
  gap: 14px;
  padding: 18px 8px 28px;
}
.rail { display: grid; align-content: start; gap: 18px; }
.home-left header {
  padding: 10px 14px 0;
}
.home-left h1 {
  margin: 0;
  color: #075d29;
  font-size: 32px;
  line-height: 1;
}
.home-left strong {
  display: block;
  color: #0c1c17;
  font-size: 18px;
  margin-top: 4px;
}
.home-left header p {
  color: #101a17;
  font-size: 14px;
  line-height: 1.4;
}
.rail-card {
  background: #fff;
  border: 1px solid #d9e3df;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(20, 43, 34, .05);
}
.rail-card h2 {
  margin: 0 0 18px;
  color: #075d29;
  font-size: 14px;
  letter-spacing: 0;
}
.rail-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.rail-card li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  font-size: 13px;
}
.rail-card li span,
.marker:before {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #087a3b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}
.rail-card p {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
}
.rail-card p b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f7ef;
  color: #067636;
}
.rail-card p span {
  font-weight: 800;
  font-size: 13px;
}
.rail-card p small {
  display: block;
  color: #5d6864;
  font-weight: 500;
  margin-top: 3px;
}

.storefront {
  background: #fff;
  border: 1px solid #dfe8e4;
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17, 40, 31, .08);
}
.shop-header {
  display: grid;
  grid-template-columns: 150px 120px minmax(260px, 1fr) 112px 100px 42px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 16px;
  background: #087235;
  color: #fff;
}
.shop-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.shop-brand span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: #087235;
}
.deliver, .wallet, .account {
  font-size: 10px;
  line-height: 1.15;
}
.deliver strong, .wallet strong, .account strong { font-size: 12px; }
.search-box {
  height: 42px;
  display: grid;
  grid-template-columns: 138px 1fr 50px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.search-box select,
.search-box input {
  border: 0;
  min-width: 0;
  color: #26312d;
  background: #fff;
  padding: 0 12px;
}
.search-box select {
  border-right: 1px solid #e3e8e6;
  font-size: 12px;
}
.search-box input { font-size: 13px; }
.search-box button {
  border: 0;
  background: #0a5f2d;
  color: #fff;
  font-size: 22px;
}
.cart {
  position: relative;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 23px;
}
.cart i {
  position: absolute;
  top: 0;
  right: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ef2f18;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
}
.shop-nav {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  background: #064d26;
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
}
.shop-nav button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
}
.shop-nav b { color: #ffb000; margin-left: auto; }

.marker { position: relative; }
.marker:before {
  content: attr(data-step);
  position: absolute;
  left: -34px;
  top: 16px;
  z-index: 2;
}
.hero-commerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  padding: 16px;
}
.mega-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
  align-items: center;
  border-radius: 12px;
  padding: 36px;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 190, 0, .28), transparent 3%),
    radial-gradient(circle at 62% 72%, rgba(255, 190, 0, .25), transparent 2%),
    linear-gradient(135deg, #04471f, #06381c 58%, #092312);
  color: #fff;
  overflow: hidden;
}
.mega-hero span, .mega-hero em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  margin-right: 8px;
}
.mega-hero span { background: #17ad47; }
.mega-hero em { background: #101514; }
.mega-hero h2 {
  font-size: 48px;
  line-height: .98;
  margin: 28px 0 14px;
}
.mega-hero p { font-size: 18px; max-width: 330px; line-height: 1.35; }
.mega-hero button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: #ffc400;
  color: #111;
  font-weight: 900;
  padding: 0 18px;
  margin-right: 8px;
}
.mega-hero .outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
}
.hero-products {
  min-height: 240px;
  position: relative;
}
.hero-products i,
.product-visual,
.trend-img,
.service-grid article div,
.mini-service div {
  display: block;
  background-size: cover;
  background-position: center;
}
.hero-products .bag {
  position: absolute;
  left: 2%;
  bottom: 10%;
  width: 110px;
  height: 130px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(135deg, #153f2a, #af9a63);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.08);
}
.hero-products .phone {
  position: absolute;
  left: 31%;
  top: 8%;
  width: 78px;
  height: 158px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e9ebe8, #9ca39f);
  transform: rotate(-10deg);
}
.hero-products .shoe {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: 210px;
  height: 95px;
  border-radius: 70% 30% 28% 28%;
  background: linear-gradient(155deg, #fff 0 52%, #e9e9e9 52% 76%, #d71920 76%);
}
.hero-products .headset {
  position: absolute;
  right: 23%;
  top: 0;
  width: 130px;
  height: 150px;
  border-radius: 50%;
  border: 18px solid #1e2225;
  box-shadow: inset 0 -32px 0 #111;
}
.promo-stack { display: grid; gap: 14px; }
.promo-stack article {
  border-radius: 12px;
  min-height: 158px;
  padding: 20px;
  color: #fff;
}
.flash-promo { background: linear-gradient(135deg, #111, #2b2025); }
.flash-promo strong {
  display: block;
  font-size: 26px;
  letter-spacing: 2px;
}
.promo-stack button {
  border: 0;
  border-radius: 7px;
  background: #101514;
  color: #fff;
  min-height: 34px;
  padding: 0 12px;
}
.new-arrivals { background: linear-gradient(135deg, #0e7d3e, #064720); }

.trust-row, .safety-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}
.trust-row p, .safety-row p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border-radius: 9px;
  background: #f7fbf8;
}
.trust-row b, .safety-row b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #087235;
}
.trust-row span, .safety-row span { font-weight: 800; font-size: 13px; }
.trust-row small, .safety-row small {
  display: block;
  color: #64706b;
  font-weight: 500;
  margin-top: 2px;
}
.section-head {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 0 16px 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 19px;
}
.section-head p {
  margin: 0;
  color: #69756f;
  font-size: 12px;
}
.section-head b {
  border-radius: 999px;
  background: #de170d;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
}
.section-head a {
  margin-left: auto;
  color: #0b2518;
  font-weight: 800;
  font-size: 12px;
}
.category-row { padding-bottom: 12px; }
.category-icons {
  display: grid;
  grid-template-columns: repeat(10, minmax(70px, 1fr));
  gap: 12px;
  padding: 0 16px;
}
.category-icons button {
  border: 0;
  background: #fff;
  color: #111f19;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-weight: 700;
  font-size: 11px;
}
.category-icons span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f3ff;
  font-size: 24px;
}
.product-section, .trend-section, .service-section { padding: 10px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px;
}
.product-card {
  position: relative;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  min-width: 0;
}
.product-card i {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d81921;
  color: #fff;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  z-index: 1;
}
.product-card button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #dce5e1;
  border-radius: 50%;
  background: #fff;
  width: 30px;
  height: 30px;
  z-index: 1;
}
.product-visual {
  height: 130px;
  border-radius: 8px;
  background: #f1f4f3;
  margin-bottom: 10px;
}
.product-card h3 {
  min-height: 38px;
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.3;
}
.product-card p {
  margin: 0 0 6px;
  color: #e69c00;
  font-size: 11px;
}
.product-card strong { font-size: 16px; }
.product-card del {
  display: inline-block;
  color: #9aa4a0;
  font-size: 11px;
  margin-left: 4px;
}
.product-card small {
  display: block;
  color: #07833c;
  font-size: 11px;
  margin-top: 7px;
}
.phone-dark { background: linear-gradient(135deg, #1d1e23, #555b62); }
.earbuds { background: radial-gradient(circle, #fff 0 20%, #dfe4e4 22% 42%, transparent 43%), #f3f5f4; }
.phone-gold { background: linear-gradient(135deg, #1f516d, #e1c076); }
.tv { background: linear-gradient(135deg, #18213c, #4b8cff 45%, #ff5a1f); }
.noodles { background: linear-gradient(135deg, #d32121, #efb448); }
.power { background: linear-gradient(135deg, #111, #575757); }
.laptop { background: linear-gradient(135deg, #a5d5ff, #ffd973); }
.shoe-card { background: linear-gradient(155deg, #fff 0 55%, #e8e8e8 55% 75%, #161616 75%); }
.skincare { background: linear-gradient(135deg, #fff, #ffb2c8); }
.book { background: linear-gradient(135deg, #f5ebcc, #fff); }
.speaker { background: linear-gradient(135deg, #141414, #535f6b); }
.camera { background: linear-gradient(135deg, #202020, #67727b); }

.trend-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px;
}
.trend-grid article,
.service-grid article,
.gig-grid article {
  border: 1px solid #dce5e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.trend-img {
  height: 76px;
  background: linear-gradient(135deg, #dfe8e4, #9acdae);
}
.trend-grid b,
.trend-grid span,
.service-grid b,
.service-grid span,
.service-grid strong {
  display: block;
  padding: 0 10px;
}
.trend-grid b, .service-grid b { margin-top: 8px; font-size: 13px; }
.trend-grid span, .service-grid span { color: #66736d; font-size: 11px; margin: 3px 0 8px; }
.service-grid strong { color: #087235; font-size: 12px; margin-bottom: 10px; }
.phones { background: linear-gradient(135deg, #beccea, #0a4b9a); }
.fashion { background: linear-gradient(135deg, #17212a, #c6d3dd); }
.appliances { background: linear-gradient(135deg, #1a1a1a, #d4dde0); }
.beauty { background: linear-gradient(135deg, #ffcedb, #b15365); }
.food { background: linear-gradient(135deg, #f8bb52, #116c34); }
.car { background: linear-gradient(135deg, #0a1521, #26758d); }
.food-cards article div,
.stay-cards article div,
.mini-service div {
  height: 118px;
  background: radial-gradient(circle at 40% 40%, #f6b342 0 18%, transparent 19%), linear-gradient(135deg, #25140b, #b45f16);
}
.stay-cards article div,
.mini-service.stay div {
  background: linear-gradient(135deg, #d7c4a6, #765c45 48%, #f8f2e8);
}
.gig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px;
}
.gig-grid article {
  padding: 15px;
}
.gig-grid b, .gig-grid span, .gig-grid strong { display: block; }
.gig-grid b { font-size: 14px; }
.gig-grid span { color: #66736d; font-size: 12px; margin: 8px 0; }
.gig-grid strong { color: #087235; font-size: 13px; }
.ecosystem-strip {
  padding: 12px 16px;
}
.ecosystem-strip h2 {
  margin: 0 0 12px;
  font-size: 17px;
}
.ecosystem-strip > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.ecosystem-strip article {
  min-height: 82px;
  border-radius: 10px;
  color: #fff;
  padding: 14px;
  background: linear-gradient(135deg, #078339, #064d26);
}
.ecosystem-strip article:nth-child(2) { background: linear-gradient(135deg, #df5418, #a52d10); }
.ecosystem-strip article:nth-child(3) { background: linear-gradient(135deg, #5b35db, #1e50bb); }
.ecosystem-strip article:nth-child(4) { background: linear-gradient(135deg, #128297, #0b5271); }
.ecosystem-strip article:nth-child(5) { background: linear-gradient(135deg, #dc9b05, #b96a08); }
.ecosystem-strip article:nth-child(6) { background: linear-gradient(135deg, #0e9b6b, #087235); }
.ecosystem-strip article:nth-child(7) { background: linear-gradient(135deg, #111, #19a354); }
.ecosystem-strip b, .ecosystem-strip span { display: block; }
.ecosystem-strip span { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.85); }
.safety-row { padding: 12px 16px 16px; }
.home-footer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 30px;
  padding: 18px 22px;
  background: #064d26;
  color: #fff;
}
.home-footer p { margin: 0; color: #d9eee2; }
.home-footer nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
  font-size: 12px;
}

.home-right h3 {
  margin: 18px 0 10px;
  font-size: 13px;
}
.mini-product,
.mini-service,
.mini-gig {
  position: relative;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.mini-product i {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d81921;
  color: #fff;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  font-style: normal;
}
.mini-product button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #dce5e1;
  background: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}
.mini-product .product-visual { height: 120px; }
.mini-product b,
.mini-product span,
.mini-product strong,
.mini-product em,
.mini-service b,
.mini-service span,
.mini-service strong,
.mini-gig b,
.mini-gig span,
.mini-gig strong {
  display: block;
}
.mini-product b, .mini-service b, .mini-gig b { font-size: 12px; margin-top: 7px; }
.mini-product span, .mini-service span, .mini-gig span { color: #66736d; font-size: 11px; margin: 5px 0; }
.mini-product strong, .mini-service strong, .mini-gig strong { color: #101a17; font-size: 13px; }
.mini-product em {
  margin-top: 9px;
  border-radius: 7px;
  background: #087235;
  color: #fff;
  text-align: center;
  padding: 9px;
  font-style: normal;
  font-weight: 800;
}
.swatches, .radius-row {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.swatches span {
  width: 25px;
  height: 25px;
  border-radius: 5px;
}
.swatches span:nth-child(1) { background: #087235; }
.swatches span:nth-child(2) { background: #13a450; }
.swatches span:nth-child(3) { background: #ffb000; }
.swatches span:nth-child(4) { background: #f25a18; }
.swatches span:nth-child(5) { background: #f7ece9; }
.swatches span:nth-child(6) { background: #eef1f0; }
.radius-row span {
  width: 34px;
  height: 34px;
  border: 1px solid #ccd8d3;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 10px;
}
.design-system button {
  width: 100%;
  min-height: 34px;
  display: block;
  border: 0;
  border-radius: 7px;
  background: #087235;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}
.design-system .secondary {
  background: #fff;
  color: #087235;
  border: 1px solid #087235;
}
.design-system .accent { background: #ffb000; color: #0c1c17; }
.tech-stack p {
  margin: 0 0 10px;
  font-size: 12px;
}

@media (max-width: 1320px) {
  .homepage-board {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
  .home-left,
  .home-right {
    display: none;
  }
  .storefront {
    border-radius: 0;
    border: 0;
  }
  .marker:before { display: none; }
}

@media (max-width: 980px) {
  .shop-header {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }
  .deliver,
  .wallet,
  .account {
    display: none;
  }
  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 48px;
  }
  .search-box select { display: none; }
  .hero-commerce {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .mega-hero {
    grid-template-columns: 1fr;
    min-height: 440px;
    padding: 24px;
  }
  .hero-products {
    min-height: 180px;
  }
  .trust-row,
  .safety-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-icons,
  .product-grid,
  .trend-grid,
  .service-grid,
  .gig-grid,
  .ecosystem-strip > div {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .category-icons button,
  .product-card,
  .trend-grid article,
  .service-grid article,
  .gig-grid article,
  .ecosystem-strip article {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }
  .service-grid article { flex-basis: 240px; }
  .gig-grid article { flex-basis: 250px; }
  .ecosystem-strip article { flex-basis: 210px; }
}

@media (max-width: 560px) {
  .shop-header {
    padding: 10px;
  }
  .shop-brand b {
    font-size: 18px;
  }
  .shop-nav {
    gap: 16px;
    padding: 0 10px;
  }
  .mega-hero h2 {
    font-size: 36px;
  }
  .mega-hero p {
    font-size: 15px;
  }
  .promo-stack article {
    min-height: 130px;
  }
  .trust-row,
  .safety-row {
    grid-template-columns: 1fr;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section-head {
    padding-left: 10px;
    padding-right: 10px;
  }
  .category-icons,
  .product-grid,
  .trend-grid,
  .service-grid,
  .gig-grid,
  .ecosystem-strip > div {
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-footer {
    grid-template-columns: 1fr;
  }
}

/* ────────── ADMIN SPA additions ────────── */

#login-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, #0f231d 0%, #06100f 70%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.login-card .login-brand {
  font-size: 22px; letter-spacing: .5px;
}
.login-card .login-brand span { color: var(--green); }
.login-card small { color: var(--soft); font-size: 12px; margin-top: -8px; }
.login-card label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: #cdd6d2;
}
.login-card input {
  background: #0a1816; border: 1px solid var(--line);
  color: var(--text); padding: 12px 14px; border-radius: 10px;
  font-size: 16px; outline: none; transition: border-color .15s;
}
.login-card input:focus { border-color: var(--green); }
.login-card button[type=submit] {
  background: var(--green); color: #06100f;
  border: 0; padding: 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  margin-top: 4px; transition: transform .1s;
}
.login-card button[type=submit]:hover { transform: translateY(-1px); }
.login-card .link-btn {
  background: transparent; border: 0; color: var(--soft);
  font-size: 12px; cursor: pointer; padding: 6px;
  text-decoration: underline;
}
.login-card .login-hint { font-size: 13px; color: #c5d0cc; margin: 0 0 4px; }
.login-card .login-hint b { color: var(--text); }
.login-error {
  background: #2a1313; border: 1px solid #5a1f1f;
  color: #ffb4b4; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; margin: 0;
}

/* Dynamic view containers */
#view-root {
  padding: 18px 24px 60px;
  display: flex; flex-direction: column; gap: 18px;
}
#view-root .loading {
  color: var(--soft); padding: 48px; text-align: center;
}
#view-root .error-card {
  background: #2a1313; border: 1px solid #5a1f1f;
  color: #ffd6d6; padding: 18px; border-radius: 12px;
}

.admin-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; overflow: hidden;
}
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.admin-card-head h2 { margin: 0; font-size: 17px; }
.admin-card-head h2 small { color: var(--soft); font-weight: 400; font-size: 13px; margin-left: 4px; }
.admin-search {
  background: #0a1816; border: 1px solid var(--line);
  color: var(--text); padding: 9px 12px; border-radius: 8px;
  font-size: 14px; min-width: 220px; outline: none;
}
.admin-search:focus { border-color: var(--green); }

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; min-width: 600px;
}
.admin-table th, .admin-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.admin-table th {
  background: var(--panel-2);
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--soft); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.admin-table tbody tr:hover { background: rgba(255,255,255,.02); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td small { color: var(--soft); font-size: 11.5px; display: block; }
.admin-table .empty {
  text-align: center; padding: 32px; color: var(--soft);
}
.admin-table code {
  background: #0a1816; padding: 2px 6px; border-radius: 4px;
  font-size: 12px; color: #b8ff6a;
}
.audit-table { font-size: 12.5px; }

.chip {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  background: #1a2a31; color: #c9d6d3; text-transform: lowercase;
}
.chip-approved, .chip-paid, .chip-completed, .chip-delivered, .chip-active, .chip-ok, .chip-verified { background: #103a1d; color: #6dee9b; }
.chip-pending, .chip-disputed, .chip-flagged, .chip-failed, .chip-bad, .chip-rejected, .chip-suspended { background: #3a1a10; color: #ffb38a; }
.chip-shipped, .chip-processing, .chip-in_transit { background: #112a3a; color: #8ab7ef; }

.link-btn {
  background: transparent; border: 1px solid var(--line);
  color: #cdd6d2; padding: 6px 11px; border-radius: 7px;
  font-size: 12.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.link-btn:hover { border-color: var(--green); }
.link-btn.primary {
  background: var(--green); color: #06100f; border-color: var(--green); font-weight: 600;
}
.link-btn.primary:hover { background: #6dee9b; }

.finance-stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.finance-stats article {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.finance-stats article span { color: var(--soft); font-size: 12px; }
.finance-stats article strong { display: block; font-size: 22px; margin-top: 6px; }

/* Mobile-first tweaks */
@media (max-width: 768px) {
  #view-root { padding: 14px 12px 60px; }
  .admin-card { padding: 14px; border-radius: 12px; }
  .admin-card-head h2 { font-size: 15px; }
  .admin-search { min-width: 0; width: 100%; }
  .admin-table { min-width: 520px; font-size: 12.5px; }
  .admin-table th, .admin-table td { padding: 9px 10px; }
}

/* Fix: [hidden] attribute must beat explicit display values */
#login-overlay[hidden],
.admin-shell[hidden] { display: none !important; }

.login-devhint {
  background: #0e2615; border: 1px dashed #1f5a36;
  color: #b8ff6a; padding: 10px 12px; border-radius: 8px;
  font-size: 12.5px; margin: 0 0 4px;
}
.login-devhint code {
  background: #06100f; padding: 2px 6px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  color: #b8ff6a;
}
