:root {
  --bg: #08090c;
  --bg-2: #0c0d11;
  --sidebar: #080809;
  --card: #17181b;
  --card-2: #202126;
  --border: #292a31;
  --border-strong: #4f46e5;
  --blue: #645cff;
  --blue-2: #4f46e5;
  --glow: #645cff;
  --violet: #7c72ff;
  --pink: #645cff;
  --text: #f5f7fa;
  --muted: #a0a0a8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: #08090c;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(100, 92, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(100, 92, 255, 0.035), transparent 24%),
    #08090c;
  color: var(--text);
  font-family: "Inter", "Segoe UI Variable Text", "Aptos", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 520;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 100vh;
  padding: 24px 18px;
  gap: 20px;
}

.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 18px 12px;
  background: #080809;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.brand {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 2px 0 36px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #16161a;
  box-shadow: 0 12px 28px rgba(100, 92, 255, 0.22);
  font-weight: 900;
}

.brand-mark img,
.mobile-brand img {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-name {
  display: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  display: none;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-label {
  display: none;
  margin: 20px 10px 10px;
  color: #526078;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  gap: 0;
  margin: 11px auto;
  padding: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item span:last-child {
  display: none;
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(100, 92, 255, 0.18);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.main {
  min-width: 0;
  padding: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.search {
  flex: 1;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #151517;
  min-width: 0;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 850;
}

.mobile-brand img {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #16161a;
}

.search input {
  width: 100%;
  height: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
  outline: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.icon-btn {
  width: 42px;
  background: #03060f;
  border: 1px solid var(--border);
}

.primary-btn {
  padding: 0 16px;
  background: linear-gradient(135deg, #756dff, #4f46e5);
  box-shadow: 0 12px 30px rgba(100, 92, 255, 0.24);
  font-weight: 800;
}

.ghost-btn,
.danger-btn {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: #17181b;
}

.danger-btn {
  border-color: rgba(239, 68, 68, 0.38);
  color: #fecaca;
}

.primary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 18, 25, 0.22);
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  letter-spacing: 0;
  font-weight: 850;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  align-items: start;
}

.dashboard-income-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.dashboard-studio {
  padding: 22px;
  border-radius: 32px;
  background: #0c0d11;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 28px 70px rgba(0, 0, 0, 0.32);
}

.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 132px;
  align-items: center;
  overflow: hidden;
  padding: 24px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #645cff, #4f46e5);
  color: white;
}

.welcome-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -55px auto;
  width: 230px;
  height: 150px;
  border-radius: 80px;
  background: rgba(0, 0, 0, 0.18);
  transform: rotate(-12deg);
}

.welcome-kicker {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.welcome-card h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
}

.welcome-card p {
  max-width: 560px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  height: 110px;
}

.laptop {
  position: absolute;
  right: 62px;
  bottom: 14px;
  width: 92px;
  height: 58px;
  border: 3px solid #3a4050;
  border-radius: 8px 8px 3px 3px;
  background: #dce3ff;
  transform: skew(-12deg);
}

.laptop::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -11px;
  width: 112px;
  height: 9px;
  border-radius: 999px;
  background: #3a4050;
}

.person-head {
  position: absolute;
  right: 24px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8d9d7;
  box-shadow: -10px -8px 0 #645cff;
}

.person-body {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 88px;
  height: 58px;
  border-radius: 42px 42px 12px 12px;
  background: #eef0ff;
  transform: rotate(-6deg);
}

.soft-metrics {
  margin-top: 18px;
}

.soft-metrics .card {
  min-height: 112px;
  background: #17181b;
}

.dashboard-side {
  display: grid;
  gap: 14px;
}

.time-panel {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 24px;
  background: #17181b;
  box-shadow: var(--shadow);
  text-align: center;
}

.time-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.time-panel strong {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
}

.two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--card);
  box-shadow: var(--shadow);
}

.card.glow::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(239, 145, 194, 0.18), transparent 70%);
  pointer-events: none;
}

.error-banner {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(23, 24, 27, 0.96));
}

.error-banner strong {
  color: #fecaca;
}

.error-banner span {
  color: var(--muted);
}

.metric-label,
.section-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 10px;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 850;
  letter-spacing: 0;
}

.metric-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.positive {
  color: var(--success);
}

.warning {
  color: var(--warning);
}

.danger {
  color: var(--danger);
}

.blue {
  color: var(--blue);
}

.chart-card {
  min-height: 360px;
}

.category-profit-card {
  min-height: 230px;
}

.category-profit-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 16px;
}

.donut-wrap {
  display: grid;
  place-items: center;
}

.donut {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(155, 53, 255, 0.16);
}

.donut-core {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 999px;
  background: #03050b;
  text-align: center;
}

.donut-core span {
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donut-core strong {
  color: var(--blue);
  font-size: 0.65rem;
  line-height: 1;
}

.category-list {
  display: grid;
  gap: 13px;
}

.category-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.88rem;
}

.category-row span:last-child {
  color: var(--blue);
  font-weight: 900;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.chart-head,
.panel-head,
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #02040b;
}

.segment {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.segment.active {
  color: var(--text);
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

canvas {
  display: block;
  width: 100%;
  height: 280px;
}

.alert-list,
.attention-list,
.rank-list {
  display: grid;
  gap: 10px;
}

.alert-item,
.rank-item,
.month-item {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  background: #17181b;
}

.alert-item strong,
.rank-item strong {
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 137, 255, 0.22);
  color: var(--text);
  background: rgba(180, 137, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 900;
}

.status-pill.warning {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.12);
}

.status-pill.success {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.12);
}

.status-pill.danger {
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.12);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #17181b;
}

th,
td {
  padding: 14px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #657189;
  background: #202126;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 0.9rem;
}

.row-btn {
  color: var(--text);
  background: transparent;
  font-weight: 900;
}

.order-summary-row {
  cursor: default;
}

.order-summary-row:hover td {
  background: rgba(100, 92, 255, 0.06);
}

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.row-action {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--text);
  background: #18181a;
  font-size: 0.72rem;
  font-weight: 800;
}

.disabled-btn {
  opacity: 0.5;
  pointer-events: none;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.booth-grid {
  align-items: start;
}

.booth-table table {
  min-width: 720px;
}

.booth-settlement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.booth-settlement-grid > div {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 16px;
  background: #17181b;
}

.booth-settlement-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booth-settlement-grid strong {
  font-size: 1.08rem;
}

.booth-traffic-list {
  display: grid;
  gap: 10px;
}

.booth-traffic-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  background: #17181b;
}

.booth-traffic-card > div:first-child,
.booth-traffic-card > div:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booth-traffic-card span,
.booth-traffic-card strong {
  font-size: 0.88rem;
}

.danger-link {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.28);
}

.item-row td {
  color: var(--muted);
  background: #18181a;
}

.item-photo-row td {
  background: #18181a;
}

.order-photo-strip img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.82);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(92vw, 1300px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  background: #101217;
}

.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.item-name {
  color: var(--blue);
  font-weight: 800;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: #17181b;
}

.textarea {
  min-height: 78px;
  resize: vertical;
}

.toolbar .input,
.toolbar .select {
  max-width: 260px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #647087;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.drawer-backdrop.open {
  display: block;
}

.drawer {
  position: fixed;
  inset: 20px 20px 20px auto;
  z-index: 90;
  width: min(720px, calc(100vw - 40px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: #0c0d11;
  box-shadow: 0 30px 120px rgba(75, 19, 143, 0.32);
  transform: translateX(calc(100% + 30px));
  transition: transform 0.2s ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.line-item-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #17181b;
}

.line-item-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.7fr 0.85fr 0.85fr 0.85fr;
  gap: 10px;
  align-items: end;
}

.order-image-tools {
  display: grid;
  gap: 10px;
}

.order-image-preview,
.order-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-image-chip,
.order-photo-strip img {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #0b0c10;
}

.order-image-chip {
  position: relative;
}

.order-image-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-photo-strip img {
  object-fit: cover;
}

.order-image-chip button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.68);
  font-weight: 900;
}

.profit-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #18181a;
}

.product-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 20px;
  background: #17181b;
}

.product-thumb,
.store-card-image {
  display: grid;
  min-height: 104px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 12%, rgba(100, 92, 255, 0.18), transparent 38%),
    #0b0c10;
  color: var(--text);
  font-weight: 950;
}

.product-thumb img,
.store-card-image img,
.image-preview img,
.store-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-admin-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-card-top > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-card-top strong,
.store-card-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-price-row span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: #101116;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.product-price-row small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.image-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  background: #17181b;
}

.image-preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.68);
  font-weight: 900;
}

.product-pricing-preview .profit-strip {
  flex-wrap: wrap;
}

.storefront {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(100, 92, 255, 0.16), transparent 32%),
    #08090c;
}

.store-hero {
  display: grid;
  gap: 44px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(100, 92, 255, 0.16), transparent 42%),
    #101116;
  box-shadow: var(--shadow);
}

.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 900;
}

.store-logo img {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 16px;
  background: #17181b;
}

.store-hero-copy {
  max-width: 680px;
  align-self: end;
}

.store-hero-copy h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.95;
}

.store-hero-copy p {
  max-width: 420px;
  color: var(--muted);
}

.store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.store-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 22px;
  background: #17181b;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.store-card-image {
  min-height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
}

.store-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.store-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.store-card-meta span:first-child {
  color: var(--blue);
  font-weight: 950;
}

.store-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.store-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #101116;
  box-shadow: var(--shadow);
}

.store-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.store-detail-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-detail-media img,
.store-detail-media .product-thumb {
  aspect-ratio: 1;
  border-radius: 18px;
  background: #17181b;
}

.store-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.hidden {
  display: none !important;
}

.mobile-nav {
  display: none;
}

.month-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-filterbar {
  margin: 0;
}

.analytics-filterbar .input {
  max-width: 170px;
}

.filter-active {
  border-color: rgba(155, 53, 255, 0.48);
  color: var(--text);
  background: rgba(155, 53, 255, 0.14);
}

.analytics-breakdown {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #151517;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  box-shadow: 0 0 20px rgba(155, 53, 255, 0.34);
}

.source-breakdown {
  display: grid;
  gap: 14px;
}

.source-row {
  display: grid;
  gap: 8px;
}

.source-row > div:first-child,
.source-row > div:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-goals-card {
  overflow: hidden;
}

.goal-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.goal-mini {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.goal-mini > div:first-child {
  display: grid;
  gap: 4px;
}

.goal-card {
  display: grid;
  gap: 10px;
}

.goal-track {
  height: 10px;
}

.danger-fill {
  background: linear-gradient(90deg, var(--danger), #ff7a45);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.28);
}

.goal-note {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.goal-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.goal-check {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.goal-check.good {
  border-color: rgba(34, 197, 94, 0.24);
}

.goal-check.watch {
  border-color: rgba(245, 158, 11, 0.3);
}

.goal-check span {
  color: var(--muted);
}

.empty-state {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background: rgba(8, 8, 9, 0.94);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
  }

  .mobile-nav .nav-item {
    justify-content: center;
    margin: 0;
    width: auto;
    height: 42px;
    padding: 0;
    font-size: 0;
    border-radius: 16px;
    box-shadow: none;
  }

  .mobile-nav .nav-item span:last-child {
    display: none;
  }

  .mobile-nav .nav-item.active {
    background: rgba(100, 92, 255, 0.18);
    box-shadow: inset 0 0 0 2px var(--blue);
  }

  .mobile-nav .nav-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-nav .nav-icon svg {
    width: 21px;
    height: 21px;
  }

  .main {
    padding-bottom: 76px;
  }

  .metric-grid,
  .three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .dashboard-income-grid,
  .two-grid {
    grid-template-columns: 1fr;
  }

  .goal-mini-grid,
  .goal-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-studio {
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  body {
    background: #08090c;
  }

  .main {
    padding: 0 0 76px;
  }

  .topbar {
    position: sticky;
    top: 0;
    margin: 0 0 10px;
    padding: max(10px, env(safe-area-inset-top)) 2px 8px;
    align-items: center;
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(14px);
  }

  .mobile-brand {
    display: flex;
  }

  .search {
    max-width: none;
    flex: 1;
    padding: 0 10px;
  }

  .search input {
    height: 38px;
    font-size: 0.9rem;
  }

  .top-actions .ghost-btn {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .primary-btn,
  .ghost-btn,
  .danger-btn {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .three-grid,
  .form-grid,
  .month-history,
  .goal-mini-grid,
  .goal-checklist,
  .booth-settlement-grid,
  .product-admin-grid,
  .store-grid,
  .store-detail {
    grid-template-columns: 1fr;
  }

  .dashboard-studio {
    padding: 10px;
    border-radius: 24px;
    background: #0c0d11;
  }

  .welcome-card {
    grid-template-columns: 1fr;
    min-height: 156px;
    padding: 18px;
    border-radius: 20px;
  }

  .welcome-card p {
    max-width: 70%;
    font-size: 0.82rem;
  }

  .welcome-card h1 {
    font-size: 1.55rem;
  }

  .hero-illustration {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 160px;
    opacity: 0.68;
  }

  .metric-grid {
    gap: 10px;
  }

  .soft-metrics .card {
    min-height: 96px;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .card {
    padding: 14px;
    border-radius: 20px;
  }

  .dashboard-side {
    gap: 10px;
  }

  .category-profit-card {
    min-height: auto;
  }

  .category-profit-body {
    gap: 12px;
  }

  .donut {
    width: 138px;
    height: 138px;
  }

  .donut-core {
    width: 74px;
    height: 74px;
  }

  .category-list {
    gap: 10px;
  }

  .category-row {
    font-size: 0.9rem;
  }

  .table-wrap {
    margin: 0 -4px;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px 10px;
    font-size: 0.82rem;
  }

  .drawer {
    inset: 8px;
    padding: 14px;
    border-radius: 22px;
  }

  .line-item-grid {
    grid-template-columns: 1fr;
  }

  .line-item-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-profit-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .line-item-grid label:first-child,
  .line-item-grid label:nth-child(2) {
    grid-column: 1 / -1;
  }

  .drawer {
    inset: 10px;
    width: auto;
    border-radius: 18px;
  }

  .profit-strip {
    flex-direction: column;
  }

  .product-admin-card {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 12px;
  }

  .product-thumb {
    min-height: 82px;
  }

  .product-price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront {
    padding: 12px;
  }

  .store-hero {
    min-height: 250px;
    padding: 18px;
    border-radius: 22px;
  }

  .store-logo img {
    width: 46px;
    height: 46px;
  }

  .store-hero-copy h1 {
    font-size: 2.5rem;
  }

  .store-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .store-card-body .primary-btn {
    width: 100%;
  }

  .store-detail {
    padding: 14px;
    border-radius: 20px;
  }

  .store-detail-media {
    grid-template-columns: 1fr;
  }
}

/* Kiosk · admin unlock */
.kiosk-hidden-logo-hit {
  position: fixed;
  right: 8px;
  bottom: 8px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  padding: 0;
  margin: 0;
  border: 0;
  background: rgba(12, 13, 17, 0.06);
  backdrop-filter: blur(2px);
  cursor: pointer;
  z-index: 50;
}

.kiosk-hidden-logo-hit:hover {
  background: rgba(100, 92, 255, 0.09);
}

.site-login-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(100, 92, 255, 0.18), transparent),
    var(--bg);
}

.site-login-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}

.site-login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.site-login-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.site-login-brand h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.site-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-login-field .input {
  font-size: 16px;
  min-height: 44px;
}

.site-login-btn {
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  font-size: 1rem;
  touch-action: manipulation;
}

.site-login-error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 0 0 10px;
  padding: 10px 12px;
}

.modal-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-sheet.open {
  display: flex;
}

.modal-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
}

.modal-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.modal-sheet-panel h2 {
  margin: 0 0 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-secure-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  font-size: 13px;
  white-space: nowrap;
}

.admin-secure-strip .ghost-btn {
  padding: 6px 12px;
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 8px;
}

/* Dashboard — Routine & scale */
.dashboard-routine-card .routine-grid {
  align-items: start;
}

.routine-day-row {
  display: grid;
  grid-template-columns: 100px 1fr minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

@media (max-width: 960px) {
  .routine-day-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .routine-day-meta {
    text-align: left !important;
  }
}

.routine-bar-track {
  height: 8px;
}

.routine-day-name {
  font-weight: 600;
  font-size: 13px;
}

.routine-day-meta {
  font-size: 11px;
  text-align: right;
}

.routine-playbook {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.routine-playbook strong {
  color: #fff;
}

.budget-summary-card .budget-formula {
  font-size: 13px;
  line-height: 1.5;
}

.budget-formula strong.blue {
  font-size: 1.05em;
}

/* Due alert toasts — text-message style */
.alert-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 650;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.alert-toast {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 22px;
  background: rgba(10, 11, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: auto;
}

.alert-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.alert-toast-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #17181b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.alert-toast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alert-toast-bubble {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.alert-toast-meta {
  font-size: 11px;
  color: var(--muted);
}

.alert-toast-bubble strong {
  font-size: 14px;
  line-height: 1.25;
}

.alert-toast-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #d6d8df;
}

.alert-toast--danger .alert-toast-bubble strong {
  color: #fecaca;
}

.alert-toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.alert-toast-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.alert-toast-btn.primary {
  border-color: rgba(100, 92, 255, 0.45);
  background: rgba(100, 92, 255, 0.18);
  color: #fff;
}

.alert-toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.alert-toast-dismiss-all {
  pointer-events: auto;
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
}

.alert-toast-dismiss-all:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.alert-toast-overflow {
  pointer-events: auto;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

.nav-alert-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

@media (max-width: 720px) {
  .alert-toast-stack {
    right: 10px;
    bottom: 78px;
    width: min(360px, calc(100vw - 20px));
  }
}

/* Deeda Agent chat */
.agent-chat-card {
  display: grid;
  gap: 12px;
  min-height: min(70vh, 720px);
}

.agent-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 560px);
  overflow: auto;
  padding: 4px 2px;
}

.agent-chat-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}

.agent-chat-empty img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-chat-bubble {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
  max-width: 92%;
}

.agent-chat-bubble.user {
  margin-left: auto;
  grid-template-columns: 1fr 40px;
}

.agent-chat-bubble.user .agent-chat-avatar {
  order: 2;
}

.agent-chat-bubble.user .agent-chat-text {
  background: rgba(100, 92, 255, 0.18);
  border-color: rgba(100, 92, 255, 0.35);
}

.agent-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #17181b;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.agent-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-chat-text {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #17181b;
  font-size: 14px;
  line-height: 1.45;
}

.agent-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-prompt-btn {
  font-size: 12px;
  white-space: normal;
  text-align: left;
  max-width: 100%;
}

.agent-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.agent-chat-compose .textarea {
  min-height: 72px;
}

/* Bot Listings (dedicated Discord posting console) */
.bot-listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.bot-target-card {
  position: sticky;
  top: 16px;
}

.bot-dropzone {
  margin-top: 6px;
  padding: 22px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  background: var(--card-2);
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bot-dropzone p {
  margin: 0;
}

.bot-dropzone strong {
  color: var(--text);
}

.bot-dropzone.drag-over {
  border-color: var(--border-strong);
  background: rgba(100, 92, 255, 0.12);
}

.bot-save-product {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.bot-save-product input {
  width: auto;
}

.bot-post-row {
  margin-top: 14px;
}

.bot-post-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.bot-post-feedback {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}

.bot-post-feedback.success {
  color: var(--success);
}

.bot-post-feedback.error {
  color: var(--danger);
}

.bot-post-feedback a {
  color: var(--blue);
}

@media (max-width: 980px) {
  .bot-listing-layout {
    grid-template-columns: 1fr;
  }

  .bot-target-card {
    position: static;
  }
}

/* Bot Listings size picker (category toggle + EU/US or clothes chips) */
.bot-size-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-size-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.bot-size-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bot-size-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.bot-size-category .select {
  width: auto;
  padding: 6px 8px;
}

.bot-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bot-size-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.bot-size-chip:hover {
  border-color: var(--border-strong);
}

.bot-size-chip.selected {
  border-color: var(--blue);
  background: rgba(100, 92, 255, 0.16);
  color: var(--text);
}

/* Bot Listings "Load from folder" control */
.bot-folder-loader {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.bot-folder-loader label {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.bot-folder-feedback {
  flex-basis: 100%;
  font-size: 12px;
  min-height: 16px;
  color: var(--muted);
}

.bot-folder-feedback.success {
  color: var(--success);
}

.bot-folder-feedback.error {
  color: var(--danger);
}

/* Bot Listings queue panel */
.bot-queue-panel {
  margin-top: 16px;
}

.bot-queue-hint {
  margin: 0 0 12px;
  font-size: 13px;
}

.bot-queue-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bot-post-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-2);
}

.bot-queue-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bot-queue-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.bot-queue-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-queue-item-main strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-queue-item-main .muted {
  font-size: 12px;
}

.bot-queue-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.bot-queue-item-actions .ghost-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.bot-queue-feedback {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
  color: var(--muted);
}

.bot-queue-feedback.success {
  color: var(--success);
}

.bot-queue-feedback.error {
  color: var(--danger);
}

.compact-table {
  min-width: 520px;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
  font-size: 0.86rem;
}

/* Mobile order cards + touch-friendly forms */
.orders-mobile-list {
  display: none;
}

.order-mobile-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.order-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-mobile-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.order-mobile-meta,
.order-mobile-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-mobile-meta strong,
.order-mobile-totals strong {
  display: block;
  margin-top: 2px;
}

.order-mobile-line {
  font-size: 0.9rem;
  line-height: 1.35;
}

.order-mobile-more {
  font-size: 0.82rem;
}

.order-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.order-mobile-actions .primary-btn,
.order-mobile-actions .row-action {
  min-height: 44px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px) {
  html.mobile-layout,
  html.mobile-layout body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
  }

  html.mobile-layout .input,
  html.mobile-layout .select,
  html.mobile-layout .textarea,
  html.mobile-layout input,
  html.mobile-layout select,
  html.mobile-layout textarea {
    font-size: 16px !important;
    min-height: 44px;
  }

  html.mobile-layout .textarea {
    min-height: 96px;
  }

  html.mobile-layout .orders-desktop-table {
    display: none;
  }

  html.mobile-layout .orders-mobile-list {
    display: block;
  }

  html.mobile-layout .orders-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  html.mobile-layout .orders-toolbar .danger-btn {
    width: 100%;
  }

  html.mobile-layout .drawer.open {
    inset: 0;
    width: auto;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  html.mobile-layout .drawer-backdrop.open {
    backdrop-filter: blur(8px);
  }

  html.mobile-layout .order-form-mobile .form-grid,
  html.mobile-layout .line-item-grid {
    grid-template-columns: 1fr;
  }

  html.mobile-layout .line-item-card {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  html.mobile-layout .line-item-grid label:first-child,
  html.mobile-layout .line-item-grid label:nth-child(2) {
    grid-column: auto;
  }

  html.mobile-layout .profit-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  html.mobile-layout .page-title .primary-btn {
    width: 100%;
  }

  html.mobile-layout .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  html.mobile-layout .table-wrap table {
    min-width: 640px;
  }
}

.address-autocomplete-wrap {
  position: relative;
}

.address-hint {
  margin: -4px 0 8px !important;
  font-size: 0.82rem;
}

.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 13, 17, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow: auto;
}

.address-suggestion-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.address-suggestion-btn:hover,
.address-suggestion-btn.active {
  background: rgba(100, 92, 255, 0.16);
}
