:root {
  --cb-bg: #050505;
  --cb-bg-alt: #0a0a0a;
  --cb-panel: #151515;
  --cb-panel-alt: #1b1b1b;
  --cb-panel-soft: #202020;
  --cb-border: #2a2a2a;
  --cb-border-strong: #333333;
  --cb-text: #ffffff;
  --cb-text-secondary: #cfcfcf;
  --cb-text-muted: #8a8a8a;
  --cb-success: #8fb49d;
  --cb-warning: #bca889;
  --cb-danger: #be8f8f;
  --cb-info: #9aa8b6;
  --cb-radius-sm: 8px;
  --cb-radius-md: 12px;
  --cb-radius-lg: 18px;
  --cb-space-1: 0.5rem;
  --cb-space-2: 0.75rem;
  --cb-space-3: 1rem;
  --cb-space-4: 1.25rem;
  --cb-space-5: 1.75rem;
  --cb-space-6: 2.5rem;
  --cb-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.26);
  --cb-shadow-md: 0 14px 30px rgba(0, 0, 0, 0.34);
  --cb-shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.48);
  --cb-type-xs: 0.76rem;
  --cb-type-sm: 0.9rem;
  --cb-type-md: 1rem;
  --cb-type-lg: 1.25rem;
  --cb-type-xl: clamp(1.5rem, 2vw, 2rem);
  --cb-type-2xl: clamp(2rem, 3.3vw, 2.8rem);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at 10% 8%, #111111 0, #090909 40%, #050505 100%);
  color: var(--cb-text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.cb-body { min-height: 100vh; }

a {
  color: var(--cb-text);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

a:hover { color: var(--cb-text-secondary); }

h1, h2, h3, h4, p { margin: 0; }

h1 { font-size: var(--cb-type-2xl); line-height: 1.1; letter-spacing: 0.01em; }
h2 { font-size: var(--cb-type-xl); line-height: 1.2; }
h3 { font-size: var(--cb-type-lg); line-height: 1.25; }

p, li, td, th, label, input, select, textarea, button { font-size: var(--cb-type-md); }

[x-cloak] { display: none !important; }

.cb-shell { min-height: 100vh; display: flex; flex-direction: column; }
.cb-container { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }
.cb-main { flex: 1; padding: var(--cb-space-6) 0; }

.cb-card,
.cb-glass {
  border-radius: var(--cb-radius-md);
  border: 1px solid var(--cb-border);
  box-shadow: var(--cb-shadow-sm);
}

.cb-card {
  background: linear-gradient(180deg, var(--cb-panel-alt), var(--cb-panel));
  padding: var(--cb-space-4);
}

.cb-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--cb-radius-sm);
  border: 1px solid transparent;
  padding: 0.62rem 1rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.cb-btn:hover { transform: translateY(-1px); }

.cb-btn:focus-visible,
.cb-input:focus-visible,
.cb-select:focus-visible,
.cb-textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #f1f1f1;
  outline-offset: 1px;
}

.cb-btn-primary { background: #ffffff; color: #0b0b0b; border-color: #ffffff; }
.cb-btn-primary:hover { background: #e8e8e8; border-color: #e8e8e8; color: #050505; }

.cb-btn-secondary { background: transparent; color: var(--cb-text); border-color: var(--cb-border-strong); }
.cb-btn-secondary:hover { border-color: #565656; background: rgba(255, 255, 255, 0.04); }

.cb-btn-danger { background: transparent; color: #f0c8c8; border-color: #694848; }
.cb-btn-danger:hover { background: rgba(190, 143, 143, 0.12); border-color: #8a5f5f; }

.cb-btn:disabled,
.cb-btn.is-disabled,
[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.cb-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--cb-border-strong);
  font-size: 0.74rem;
  padding: 0.18rem 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cb-badge-neutral { background: rgba(255, 255, 255, 0.03); color: var(--cb-text-secondary); }
.cb-badge-success { background: rgba(143, 180, 157, 0.16); border-color: rgba(143, 180, 157, 0.42); color: #d8e8de; }
.cb-badge-danger { background: rgba(190, 143, 143, 0.16); border-color: rgba(190, 143, 143, 0.42); color: #efdbdb; }
.cb-badge-warning { background: rgba(188, 168, 137, 0.16); border-color: rgba(188, 168, 137, 0.42); color: #efe4d5; }
.cb-badge-superadmin { background: #ffffff; color: #050505; border-color: #ffffff; }

.cb-header,
.cb-topbar,
.cb-footer { border-bottom: 1px solid var(--cb-border); }

.cb-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
}

.cb-header-inner,
.cb-topbar-inner,
.cb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
}

.cb-brand { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cb-text); }
.cb-nav { display: flex; flex-wrap: wrap; gap: 0.62rem; }
.cb-nav a { padding: 0.38rem 0.55rem; border: 1px solid transparent; border-radius: var(--cb-radius-sm); color: var(--cb-text-secondary); }
.cb-nav a:hover,
.cb-nav a[aria-current="page"] { color: var(--cb-text); border-color: var(--cb-border-strong); background: rgba(255, 255, 255, 0.04); }

.cb-dashboard { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }

.cb-sidebar {
  background: linear-gradient(180deg, #101010, #080808);
  border-right: 1px solid var(--cb-border);
  padding: 1rem 0.9rem;
}

.cb-sidebar-nav { display: grid; gap: 0.4rem; margin-top: 1.1rem; }
.cb-sidebar-section-title { margin-top: 0.7rem; padding: 0.35rem 0.65rem; color: var(--cb-text-muted); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cb-sidebar-link {
  color: var(--cb-text-secondary);
  border-radius: var(--cb-radius-sm);
  border: 1px solid transparent;
  padding: 0.72rem;
  display: block;
}
.cb-sidebar-link:hover,
.cb-sidebar-link.is-active { color: var(--cb-text); border-color: var(--cb-border-strong); background: rgba(255, 255, 255, 0.04); }

.cb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(10px);
}

.cb-topbar h1 { font-size: var(--cb-type-xl); }
.cb-content { padding: var(--cb-space-5); overflow-x: hidden; }

.cb-grid { display: grid; gap: 1rem; }
.cb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
  background: #121212;
}

.cb-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #121212;
  font-size: var(--cb-type-sm);
}

.cb-table th,
.cb-table td {
  text-align: left;
  border-bottom: 1px solid var(--cb-border);
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
}

.cb-table th {
  position: sticky;
  top: 0;
  background: #0d0d0d;
  color: var(--cb-text-muted);
  font-size: var(--cb-type-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.cb-data-cards {
  display: grid;
  gap: 0.75rem;
}

.cb-data-card {
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
  background: #121212;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.cb-data-item {
  display: grid;
  gap: 0.3rem;
}

.cb-data-label {
  color: var(--cb-text-muted);
  font-size: var(--cb-type-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cb-data-value {
  color: var(--cb-text);
  font-size: var(--cb-type-sm);
}

.cb-field { display: grid; gap: 0.45rem; }
.cb-field > span { color: var(--cb-text-secondary); font-size: var(--cb-type-sm); }

.cb-input,
.cb-select,
.cb-textarea {
  width: 100%;
  border-radius: var(--cb-radius-sm);
  border: 1px solid var(--cb-border-strong);
  background: #0f0f0f;
  color: var(--cb-text);
  min-height: 44px;
  padding: 0.58rem 0.7rem;
}

.cb-input::placeholder,
.cb-textarea::placeholder { color: #727272; }

.cb-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100% - 2rem));
  display: grid;
  gap: 0.55rem;
  z-index: 80;
}

.cb-toast {
  border-radius: var(--cb-radius-sm);
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--cb-border-strong);
  background: #131313;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.cb-toast-success { border-color: rgba(143, 180, 157, 0.42); }
.cb-toast-error { border-color: rgba(190, 143, 143, 0.42); }
.cb-toast-info { border-color: rgba(154, 168, 182, 0.42); }
.cb-toast-warning { border-color: rgba(188, 168, 137, 0.42); }

.cb-toast-title { font-size: 0.72rem; display: block; letter-spacing: 0.09em; margin-bottom: 0.22rem; color: var(--cb-text-muted); }
.cb-toast-close {
  border: 1px solid var(--cb-border);
  background: transparent;
  color: var(--cb-text-muted);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.cb-toast-close:hover { color: var(--cb-text); border-color: var(--cb-border-strong); }

.cb-modal-root { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.cb-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.cb-modal {
  position: relative;
  width: min(640px, 100%);
  border-radius: var(--cb-radius-md);
  border: 1px solid var(--cb-border-strong);
  background: #141414;
  box-shadow: var(--cb-shadow-lg);
  padding: var(--cb-space-4);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.cb-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.cb-empty {
  border-radius: var(--cb-radius-md);
  border: 1px dashed var(--cb-border-strong);
  padding: var(--cb-space-5);
  color: var(--cb-text-secondary);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.cb-empty-state { display: grid; justify-items: center; gap: 0.7rem; padding: 1.2rem; text-align: center; color: var(--cb-text-secondary); }
.cb-empty-state h4 { color: var(--cb-text); font-size: var(--cb-type-lg); }

.cb-dropdown { position: relative; }
.cb-dropdown-toggle { min-height: 44px; }
.cb-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  z-index: 70;
  border-radius: var(--cb-radius-sm);
  border: 1px solid var(--cb-border-strong);
  background: #131313;
  box-shadow: var(--cb-shadow-md);
  padding: 0.3rem;
  display: grid;
  gap: 0.2rem;
}
.cb-dropdown-menu-right { left: auto; right: 0; }
.cb-dropdown-menu a,
.cb-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cb-text-secondary);
  border-radius: 8px;
  padding: 0.52rem 0.6rem;
  cursor: pointer;
}
.cb-dropdown-menu a:hover,
.cb-dropdown-menu button:hover { color: var(--cb-text); border-color: var(--cb-border); background: rgba(255, 255, 255, 0.05); }

.cb-sidebar-dropdown .cb-dropdown-menu { width: 100%; position: static; margin-top: 0.35rem; }
.cb-btn.is-loading { pointer-events: none; opacity: 0.85; }
.cb-spinner { width: 0.95rem; height: 0.95rem; border-radius: 999px; border: 2px solid rgba(5, 5, 5, 0.28); border-top-color: rgba(5, 5, 5, 1); animation: cb-spin 0.7s linear infinite; }
.cb-table-block.is-loading { position: relative; }
.cb-skeleton-line { display: block; height: 0.8rem; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.14), rgba(255,255,255,0.08)); background-size: 200% 100%; animation: cb-skeleton 1.3s ease-in-out infinite; }

.cb-fade-enter { transition: opacity 180ms ease, transform 180ms ease; }
.cb-fade-enter-start { opacity: 0; transform: translateY(6px); }
.cb-fade-enter-end { opacity: 1; transform: translateY(0); }
.cb-fade-leave { transition: opacity 140ms ease, transform 140ms ease; }
.cb-fade-leave-start { opacity: 1; transform: translateY(0); }
.cb-fade-leave-end { opacity: 0; transform: translateY(4px); }

.cb-mt-3 { margin-top: 0.75rem; }
.cb-mt-4 { margin-top: 1rem; }
.cb-flex { display: flex; }
.cb-gap-2 { gap: 0.6rem; }
.cb-space-between { justify-content: space-between; }
.cb-items-center { align-items: center; }
.cb-w-full { width: 100%; }
.cb-text-muted { color: var(--cb-text-muted); }

.cb-list-stack { display: grid; gap: 0.65rem; }
.cb-list-stack-item { padding: 0.85rem; border: 1px solid var(--cb-border); border-radius: var(--cb-radius-sm); background: #141414; }

.cb-hidden-mobile { display: initial; }
.cb-show-mobile { display: none; }
.cb-filterbar { padding-bottom: 1rem; }
.cb-filterbar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.cb-modal-shell { border-style: dashed; }

.cb-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cb-sidebar-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.cb-customer-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.cb-customer-shell { min-height: 100vh; }
.cb-customer-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid var(--cb-border);
}
.cb-customer-topbar-meta { text-align: right; font-size: 0.82rem; color: var(--cb-text-secondary); }
.cb-customer-main { padding: 1rem; }
.cb-customer-grid { display: grid; gap: 0.8rem; }
.cb-customer-grid-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cb-customer-kpi h2 { font-size: 1.2rem; }
.cb-customer-stack { display: grid; gap: 0.65rem; }
.cb-customer-list-item { display: grid; gap: 0.35rem; padding: 0.75rem; border-radius: var(--cb-radius-sm); border: 1px solid var(--cb-border); background: #151515; }
.cb-customer-list-item span { color: var(--cb-text-secondary); font-size: 0.88rem; }
.cb-customer-progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cb-customer-progress span { display: block; height: 100%; border-radius: 999px; background: #ffffff; }
.cb-customer-sticky-actions { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 15; display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.cb-customer-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  border-top: 1px solid var(--cb-border);
  background: rgba(8, 8, 8, 0.96);
  padding: 0.45rem 0.55rem calc(0.56rem + env(safe-area-inset-bottom));
}
.cb-customer-tab {
  text-align: center;
  font-size: 0.76rem;
  color: var(--cb-text-muted);
  border-radius: var(--cb-radius-sm);
  padding: 0.56rem 0.3rem;
  border: 1px solid transparent;
}
.cb-customer-tab:hover,
.cb-customer-tab.is-active { color: var(--cb-text); background: rgba(255, 255, 255, 0.06); border-color: var(--cb-border-strong); }

@media (max-width: 1024px) {
  html.cb-mobile-nav-open,
  html.cb-mobile-nav-open body { overflow: hidden; }

  .cb-dashboard { grid-template-columns: 1fr; }

  .cb-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 86vw);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .cb-sidebar.is-open { transform: translateX(0); }
  .cb-hidden-mobile { display: none; }
  .cb-show-mobile { display: inline-flex; }
  .cb-content { padding: var(--cb-space-4); }
  .cb-topbar-inner { flex-wrap: wrap; align-items: center; }
}

@media (max-width: 760px) {
  .cb-grid-2,
  .cb-grid-3,
  .cb-grid-4 { grid-template-columns: 1fr; }

  .cb-filterbar-grid { grid-template-columns: 1fr; }
  .cb-dropdown-menu { min-width: 180px; max-width: min(320px, calc(100vw - 2rem)); right: 0; left: auto; }
  .cb-topbar h1 { width: 100%; order: 3; font-size: 1.16rem; }
  .cb-modal-root { align-items: flex-end; }
  .cb-modal { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: min(90vh, 720px); }
  .cb-btn { width: 100%; }
  .cb-flex.cb-gap-2 { flex-direction: column; }
}

@media (min-width: 761px) {
  .cb-customer-main { width: min(940px, calc(100% - 2rem)); margin-inline: auto; padding: 1.25rem 0; }
  .cb-customer-grid-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cb-customer-sticky-actions { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb-customer-bottom-nav {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: min(520px, calc(100% - 2rem));
    border: 1px solid var(--cb-border-strong);
    border-radius: var(--cb-radius-md);
    box-shadow: var(--cb-shadow-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes cb-spin { to { transform: rotate(360deg); } }
@keyframes cb-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Home landing premium sections */
.cb-home { display: grid; gap: 1.25rem; }
.cb-home-hero-panel,
.cb-home-final-cta .cb-card { padding: clamp(1.25rem, 2.2vw, 2.2rem); }
.cb-home-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cb-home-story .cb-card,
.cb-home-feature,
.cb-home-location,
.cb-home-menu-card,
.cb-home-testimonial { height: 100%; }

/* Reusable motion patterns */
.cb-animate-in,
.cb-card,
.cb-kpi-card,
.cb-summary-card,
.cb-table-wrap {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease, box-shadow 180ms ease, border-color 180ms ease;
  transition-delay: var(--cb-reveal-delay, 0ms);
}
.cb-animate-in.is-visible,
.cb-card.is-visible,
.cb-kpi-card.is-visible,
.cb-summary-card.is-visible,
.cb-table-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cb-hover-lift:hover,
.cb-kpi-card:hover,
.cb-summary-card:hover,
.cb-table-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--cb-shadow-md);
  border-color: var(--cb-border-strong);
}

@media (max-width: 760px) {
  .cb-home-hero-ctas .cb-btn { width: 100%; }

  .cb-table-wrap { border-radius: var(--cb-radius-sm); }
  .cb-table,
  .cb-table thead,
  .cb-table tbody,
  .cb-table th,
  .cb-table td,
  .cb-table tr { display: block; width: 100%; }
  .cb-table { min-width: 0; }
  .cb-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .cb-table tbody tr {
    border-bottom: 1px solid var(--cb-border);
    padding: 0.5rem 0.75rem;
  }
  .cb-table tbody td {
    border: 0;
    padding: 0.45rem 0;
    display: grid;
    gap: 0.2rem;
  }
  .cb-table tbody td::before {
    content: attr(data-label);
    color: var(--cb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: var(--cb-type-xs);
  }
}

/* Stores registry card-grid design system */
.cb-kpi-grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cb-kpi-card {
  border-color: #2d2d2d;
}

.cb-kpi-label {
  color: var(--cb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--cb-type-xs);
}

.cb-kpi-value {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.cb-store-create-form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.cb-store-search {
  width: min(100%, 380px);
}

.cb-store-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.cb-store-card {
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  background: linear-gradient(180deg, #171717, #111111);
  padding: 1rem;
  box-shadow: var(--cb-shadow-sm);
  animation: cb-cardPop 380ms ease both;
  animation-delay: var(--cb-card-delay, 0ms);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.cb-store-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(209, 163, 95, 0.65);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(209, 163, 95, 0.18);
}

.cb-store-card .cb-btn:active {
  transform: scale(0.97);
}

.cb-store-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cb-store-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d1a35f;
  background: rgba(209, 163, 95, 0.12);
  border: 1px solid rgba(209, 163, 95, 0.35);
}

.cb-store-icon svg {
  width: 26px;
  height: 26px;
}

.cb-badge-active {
  background: rgba(91, 188, 132, 0.14);
  border-color: rgba(91, 188, 132, 0.5);
  color: #c6f4d8;
}

.cb-store-meta p {
  margin: 0;
  color: var(--cb-text-secondary);
}

.cb-store-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.cb-store-stats > div {
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-sm);
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.cb-store-stats span {
  display: block;
  color: var(--cb-text-muted);
  font-size: var(--cb-type-xs);
}

.cb-store-stats strong {
  font-size: 1.1rem;
}

.cb-store-edit summary {
  list-style: none;
}

.cb-store-edit summary::-webkit-details-marker {
  display: none;
}

@keyframes cb-cardPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1200px) {
  .cb-store-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .cb-kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-store-create-form {
    grid-template-columns: 1fr;
  }
}

/* Updated: 2026-04-15 10:52 UTC - Premium 2026 coffee-brand refresh */
:root {
  --cb-bg: #050505;
  --cb-panel: #120f0d;
  --cb-panel-alt: #1a1410;
  --cb-border: #3a2a1f;
  --cb-border-strong: #4a3728;
  --cb-text: #f3e9dc;
  --cb-text-secondary: #d8c9b5;
  --cb-text-muted: #9b856c;
  --cb-gold: #d4af77;
}

body {
  background: radial-gradient(circle at 12% 0%, #221912 0%, #0f0c0a 45%, #050505 100%);
  color: var(--cb-text);
}

.cb-btn-primary {
  background: linear-gradient(180deg, #e1bf8d, #cfa264);
  border-color: #d4af77;
  color: #1c140f;
}

.cb-btn-secondary {
  border-color: #5e4632;
  color: var(--cb-text);
  background: rgba(212, 175, 119, 0.08);
}

.cb-brand {
  color: #f2e0c6;
  letter-spacing: 0.12em;
}

.cb-header,
.cb-topbar,
.cb-footer,
.cb-customer-topbar {
  border-color: rgba(212, 175, 119, 0.24);
  background: rgba(8, 6, 5, 0.9);
}

.cb-header-inner { position: relative; }
.cb-header-cta { white-space: nowrap; }

.cb-nav a[aria-current="page"] {
  color: #f6e4c8;
  border-color: rgba(212, 175, 119, 0.6);
  background: rgba(212, 175, 119, 0.12);
}

.cb-footer-inner {
  border-top: 1px solid rgba(212, 175, 119, 0.16);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  align-items: flex-start;
}

.cb-footer-links,
.cb-social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cb-footer-meta { text-align: right; display: grid; gap: 0.5rem; justify-items: end; }
.cb-footer-brand { font-weight: 700; color: var(--cb-gold); }
.cb-social-links a {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 119, 0.5);
  display: inline-grid;
  place-items: center;
  color: var(--cb-text);
}

.cb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 119, 0.55);
  color: #f8ead4;
  background: rgba(212, 175, 119, 0.1);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

.cb-reveal,
.cb-card,
.cb-table-wrap,
.cb-toast,
.cb-modal {
  animation: cb-fade-up 460ms ease both;
}

.cb-home-hero-grid,
.cb-home-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.cb-home-image-wrap {
  margin: 0;
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 119, 0.28);
  background: linear-gradient(120deg, #271d16, #140f0c);
  min-height: 220px;
}

.cb-home-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.cb-customer-tab {
  display: grid;
  gap: 0.18rem;
  justify-items: center;
  font-size: 0.7rem;
}
.cb-customer-tab span { font-size: 1rem; line-height: 1; }
.cb-customer-tab small { font-size: 0.7rem; }

.cb-sidebar-link.is-active,
.cb-sidebar-link:hover,
.cb-hover-lift:hover {
  border-color: rgba(212, 175, 119, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 119, 0.12) inset;
}

@keyframes cb-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .cb-home-hero-grid,
  .cb-home-split { grid-template-columns: 1fr; }

  .cb-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: #120f0d;
    border: 1px solid rgba(212, 175, 119, 0.24);
    border-radius: 12px;
    padding: 0.7rem;
  }
  .cb-nav.is-open { display: grid; }
  .cb-footer-meta { justify-items: start; text-align: left; }
}


/* Updated: 2026-04-15 11:14 UTC - Icon sizing adjustments from review */
.cb-store-icon {
  width: 40px;
  height: 40px;
}

.cb-store-icon svg {
  width: 18px;
  height: 18px;
}

.cb-customer-tab span {
  font-size: 0.86rem;
}

.cb-social-links a {
  font-size: 0.82rem;
}
