:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #d7dee8;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --soft: #f4f7f9;
  --field: #ffffff;
  --field-soft: #f8fbfc;
  --gold: #0f766e;
  --amber: #f97316;
  --green: #16a34a;
  --red: #dc2626;
  --blue: #4f46e5;
  --navy: #172033;
  --aqua: #14b8a6;
  --coral: #fb7185;
  --shadow: 0 18px 42px rgba(23, 32, 51, 0.09);
}

body[data-theme="dark"] {
  --ink: #e5edf7;
  --muted: #9fb0c4;
  --line: #273449;
  --panel: #111827;
  --panel-glass: rgba(17, 24, 39, 0.9);
  --panel-strong: #0f172a;
  --soft: #0b1120;
  --field: #111827;
  --field-soft: #162033;
  --navy: #f8fafc;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .reseller-storefront {
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc, #14b8a6);
  border-color: rgba(203, 213, 225, 0.5);
}

body[data-theme="dark"] .reseller-storefront p,
body[data-theme="dark"] .reseller-storefront small,
body[data-theme="dark"] .reseller-storefront .eyebrow {
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.42;
  background:
    radial-gradient(circle at 9% 14%, rgba(20, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(79, 70, 229, 0.11), transparent 24%),
    radial-gradient(circle at 84% 86%, rgba(251, 113, 133, 0.13), transparent 24%),
    var(--soft);
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  padding: 28px 22px;
  background: var(--panel-glass);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: width 0.2s ease, padding 0.2s ease;
}

.sidebar-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--field-soft);
  font-weight: 900;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}

.brand span,
.eyebrow,
small {
  color: var(--muted);
}

.brand-mark,
.profile-button,
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  font-weight: 900;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 13px;
  background: transparent;
  color: #526174;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(135deg, var(--gold), var(--blue));
  color: white;
}

.admin-only {
  display: none;
}

body.is-admin .admin-only {
  display: block;
}

body.is-admin .customer-only {
  display: none;
}

body.is-admin .customer-menu {
  display: none;
}

.support-box {
  margin-top: auto;
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-soft);
}

.support-box span {
  color: var(--muted);
}

.app-shell {
  margin-left: 280px;
  min-height: 100vh;
  padding: 24px;
  transition: margin-left 0.2s ease;
}

body.sidebar-collapsed .sidebar {
  width: 86px;
  padding: 22px 14px;
  overflow: hidden;
}

body.sidebar-collapsed .brand div:last-child,
body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .support-box {
  display: none;
}

body.sidebar-collapsed .app-shell {
  margin-left: 86px;
}

body.sidebar-collapsed .sidebar-toggle {
  font-size: 0;
}

body.sidebar-collapsed .sidebar-toggle::after {
  content: "☰";
  font-size: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

body.auth-only .sidebar,
body.auth-only .topbar,
body.auth-only .mode-banner {
  display: none;
}

body.auth-only .app-shell {
  margin-left: 0;
  padding: 0;
}

body.auth-only .view {
  display: none;
}

body.auth-only #account {
  display: block;
}

body.auth-only .auth-page {
  min-height: 100vh;
  border-radius: 0;
  place-items: center;
  padding: 28px 16px;
}

body.app-loading #account {
  visibility: hidden;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

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

.profile-button,
.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.profile-button {
  background: var(--gold);
  color: white;
}

.profile-menu-wrap {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: none;
  width: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-menu.open {
  display: grid;
  gap: 8px;
}

.profile-menu-head {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-menu-head span {
  color: var(--muted);
}

.profile-menu button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.profile-menu button:hover {
  background: var(--field-soft);
}

.profile-menu .danger {
  color: #dc2626;
}

.icon-button {
  background: var(--panel);
  color: var(--gold);
  border: 1px solid var(--line);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.mode-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 8px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 14px;
}

.mode-banner[hidden] {
  display: none;
}

.mode-banner strong {
  color: #c2410c;
}

body[data-theme="dark"] .mode-banner {
  color: #fed7aa;
  background: rgba(124, 45, 18, 0.32);
  border-color: rgba(251, 146, 60, 0.45);
}

body[data-theme="dark"] .mode-banner strong {
  color: #fdba74;
}

.hero-panel,
.metric,
.pricing-panel,
.api-card,
.endpoint-list,
.payment-grid article {
  background: var(--panel-glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-bottom: 18px;
}

.hero-panel p {
  color: var(--muted);
  max-width: 660px;
  line-height: 1.45;
}

.status-pill,
.chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-weight: 900;
  color: var(--gold);
  background: var(--field-soft);
  white-space: nowrap;
}

.user-chip {
  color: var(--navy);
  background: var(--panel);
}

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

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

.metric {
  min-height: 128px;
  padding: 17px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.reseller-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-metric {
  min-height: 96px;
  padding: 13px;
  gap: 8px;
}

.compact-metric strong {
  font-size: 17px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.tiny-metric {
  min-height: 82px;
  padding: 12px;
}

.tiny-metric strong {
  font-size: 16px;
}

.tiny-metric small {
  font-size: 12px;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  font-size: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 12px;
}

.primary,
.secondary,
.network-strip button,
.segmented button,
.bundle-card button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.primary {
  color: white;
  background: var(--gold);
}

.secondary {
  color: var(--navy);
  background: var(--panel);
  border: 1px solid var(--line);
}

.small {
  min-height: 40px;
}

.network-strip,
.filters,
.segmented {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reseller-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.action-button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(23, 32, 51, 0.12);
}

.action-button.teal {
  background: var(--gold);
}

.action-button.indigo {
  background: var(--blue);
}

.action-button.coral {
  background: var(--coral);
}

.network-strip button {
  background: var(--panel);
  border: 1px solid var(--line);
}

.segmented {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-soft);
}

.segmented button {
  background: transparent;
}

.segmented button.active,
.chip.active:not(.network-chip) {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.filters {
  margin-bottom: 20px;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.filters input,
.filters select {
  flex: 1 1 240px;
}

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

.payment-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 12px 0;
}

.bundle-card,
.markup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.bundle-card {
  padding: 16px;
}

.bundle-card header,
.order-row,
.markup-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bundle-card h3 {
  font-size: 24px;
}

.price {
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
}

.bundle-card button {
  width: 100%;
  margin-top: 12px;
  background: var(--blue);
  color: white;
}

.network-chip.network-all {
  --network-main: var(--gold);
  --network-dark: var(--gold);
  --network-ink: #ffffff;
}

.bundle-card.network-mtn,
.network-chip.network-mtn,
.network-tile.network-mtn {
  --network-main: #facc15;
  --network-dark: #d69e00;
  --network-ink: #172033;
}

.bundle-card.network-at-ishare,
.network-chip.network-at-ishare,
.network-tile.network-at-ishare {
  --network-main: #2563eb;
  --network-dark: #1d4ed8;
  --network-ink: #ffffff;
}

.bundle-card.network-telecel,
.network-chip.network-telecel,
.network-tile.network-telecel {
  --network-main: #dc2626;
  --network-dark: #991b1b;
  --network-ink: #ffffff;
}

.bundle-card.network-at-bigtime,
.bundle-card.network-default,
.network-chip.network-at-bigtime,
.network-chip.network-default,
.network-tile.network-at-bigtime,
.network-tile.network-default {
  --network-main: var(--blue);
  --network-dark: #3730a3;
  --network-ink: #ffffff;
}

.network-chip {
  color: color-mix(in srgb, var(--network-main, var(--gold)), var(--ink) 28%);
  border-color: color-mix(in srgb, var(--network-main, var(--line)) 50%, var(--line));
  background: color-mix(in srgb, var(--network-main, var(--field-soft)) 10%, var(--field-soft));
}

.network-chip.active {
  color: var(--network-ink);
  border-color: var(--network-main);
  background: linear-gradient(135deg, var(--network-main), var(--network-dark));
}

.bundle-card[class*="network-"] {
  border-color: color-mix(in srgb, var(--network-main), var(--line) 35%);
}

.bundle-card[class*="network-"] header {
  margin: -16px -16px 14px;
  padding: 13px 16px;
  color: var(--network-ink);
  background: linear-gradient(135deg, var(--network-main), var(--network-dark));
}

.bundle-card[class*="network-"] header small {
  color: color-mix(in srgb, var(--network-ink), transparent 20%);
}

.bundle-card[class*="network-"] button {
  color: var(--network-ink);
  background: linear-gradient(135deg, var(--network-main), var(--network-dark));
}

.network-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--network-ink, var(--ink));
  background: color-mix(in srgb, var(--network-main, var(--field-soft)), white 25%);
  font-weight: 900;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.18), var(--panel-glass) 48%, rgba(20, 184, 166, 0.08));
  box-shadow: var(--shadow);
}

.dashboard-welcome h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.dashboard-welcome p {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-welcome .status-pill {
  margin-left: auto;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 0;
}

.welcome-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #172033;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  font-size: 24px;
  font-weight: 900;
}

.dashboard-metrics {
  margin-bottom: 22px;
}

.dashboard-card {
  min-height: 150px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), var(--panel-glass) 55%, rgba(79, 70, 229, 0.06));
}

.dashboard-card strong {
  font-size: 28px;
}

.balance-card-large button {
  margin-top: auto;
}

.dashboard-order-panel,
.recent-orders-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(250, 204, 21, 0.13), var(--panel-glass) 52%, rgba(249, 115, 22, 0.09));
  box-shadow: var(--shadow);
}

.network-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.network-tile {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--network-ink);
  background: linear-gradient(135deg, var(--network-main), var(--network-dark));
  box-shadow: var(--shadow);
}

.network-tile span {
  font-size: 22px;
  font-weight: 900;
}

.network-tile small {
  color: color-mix(in srgb, var(--network-ink), transparent 14%);
}

.recent-order-table {
  display: grid;
  gap: 0;
  overflow-x: auto;
}

.recent-order-row {
  min-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr;
  gap: 14px;
  align-items: center;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}

.recent-order-row.header {
  color: var(--muted);
  font-weight: 900;
}

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

.orders-toolbar,
.history-toolbar,
.order-details-panel,
.order-detail-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(250, 204, 21, 0.12), var(--panel-glass) 52%, rgba(249, 115, 22, 0.08));
  box-shadow: var(--shadow);
}

.orders-toolbar,
.history-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
}

.referral-panel {
  margin-bottom: 18px;
}

.referral-panel label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
}

.profile-hero h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.profile-hero p {
  color: var(--muted);
  margin-bottom: 0;
}

.profile-medal {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #172033;
  background: linear-gradient(135deg, #facc15, #d97706);
  font-weight: 900;
}

.profile-metrics {
  grid-column: 1 / -1;
}

.purple-card {
  color: white;
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
}

.gold-card {
  color: #172033;
  background: linear-gradient(135deg, #fde047, #eab308);
}

.blue-card {
  color: white;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.green-card {
  color: white;
  background: linear-gradient(135deg, #86efac, #22c55e);
}

.orange-card {
  color: white;
  background: linear-gradient(135deg, #fb923c, #d97706);
}

.notice-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.notice-card.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.26);
}

.notice-card.warning {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.32);
}

.notice-card span {
  color: var(--muted);
}

.support-grid,
.setting-list {
  display: grid;
  gap: 14px;
}

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

.support-tile,
.setting-toggle {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}

.support-tile.green,
.setting-toggle {
  background: rgba(34, 197, 94, 0.1);
}

.support-tile.yellow {
  background: rgba(250, 204, 21, 0.15);
}

.support-tile.purple {
  background: rgba(139, 92, 246, 0.12);
}

.setting-toggle:nth-child(1),
.setting-toggle:nth-child(4) {
  background: rgba(250, 204, 21, 0.15);
}

.setting-toggle:nth-child(3) {
  background: rgba(139, 92, 246, 0.12);
}

.setting-toggle:nth-child(5) {
  background: rgba(220, 38, 38, 0.08);
}

.setting-toggle input {
  min-height: auto;
  width: 22px;
  height: 22px;
}

.settings-warning {
  display: flex;
  margin: 14px 0;
}

.strength-bars {
  display: grid;
  gap: 14px;
}

.strength-bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626 30%, #e5e7eb 30%);
}

.strength-bars span + span {
  background: linear-gradient(90deg, #eab308 50%, #e5e7eb 50%);
}

.quick-action {
  width: 100%;
  text-align: left;
}

.order-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.order-filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.order-filter-actions {
  justify-content: flex-start;
}

.order-summary-grid {
  margin-bottom: 22px;
}

.order-total-card,
.order-pending-card {
  color: #172033;
  background: linear-gradient(135deg, #facc15, #d69e00);
}

.order-completed-card {
  color: white;
  background: linear-gradient(135deg, #86efac, #22c55e);
}

.order-failed-card {
  color: white;
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.order-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.5fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--network-main, var(--line)), var(--line) 45%);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
}

.order-card-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.order-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--network-ink, white);
  background: linear-gradient(135deg, var(--network-main, var(--gold)), var(--network-dark, var(--blue)));
  font-weight: 900;
}

.order-card-main h3 {
  margin-bottom: 2px;
  font-size: 18px;
}

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

.order-card-facts div {
  min-height: 66px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--field-soft);
}

.order-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.order-card-actions a,
.order-detail-actions a {
  text-decoration: none;
}

.purple-action {
  color: white;
  background: #8b5cf6;
}

.whatsapp-action {
  color: white;
  background: #22c55e;
  border-color: #22c55e;
}

.floating-whatsapp {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #25d366;
  box-shadow: 0 18px 36px rgba(18, 140, 126, 0.35);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0;
  border: 4px solid rgba(255, 255, 255, 0.72);
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.floating-whatsapp[hidden] {
  display: none;
}

.floating-whatsapp span {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.site-footer {
  position: fixed;
  left: 300px;
  right: 24px;
  bottom: 10px;
  z-index: 30;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-glass);
  text-align: center;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
}

body.sidebar-collapsed .site-footer {
  left: 106px;
}

.storefront-footer {
  left: 24px;
}

.site-footer[hidden] {
  display: none;
}

.reorder-action {
  color: #172033;
  background: linear-gradient(135deg, #facc15, #d97706);
  border: 0;
}

.status-completed {
  color: #166534;
  background: #dcfce7;
}

.status-pending {
  color: #92400e;
  background: #fef3c7;
}

.status-failed {
  color: #991b1b;
  background: #fee2e2;
}

.order-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 4px 10px;
  background: var(--field-soft);
  color: var(--green);
  font-weight: 900;
}

.order-back-link {
  margin-bottom: 22px;
}

.order-details-panel {
  padding: 28px;
}

.order-details-panel .section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.order-detail-tile {
  min-height: 92px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border-radius: 8px;
}

.order-detail-tile small {
  font-size: 14px;
}

.order-detail-tile strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.order-detail-tile.yellow {
  background: rgba(250, 204, 21, 0.18);
}

.order-detail-tile.blue {
  background: rgba(79, 70, 229, 0.14);
}

.order-detail-tile.purple {
  background: rgba(139, 92, 246, 0.12);
}

.order-detail-tile.green {
  background: rgba(34, 197, 94, 0.12);
}

.order-detail-tile.plain {
  background: var(--field-soft);
}

.order-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
}

.order-detail-actions button,
.order-detail-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.pricing-panel {
  padding: 17px;
}

.withdrawal-panel {
  padding: 15px;
}

.withdrawal-panel h2 {
  font-size: 18px;
}

.withdrawal-panel p {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.45;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  box-shadow: none;
}

.compact-filters {
  gap: 8px;
}

.compact-filters select {
  min-height: 40px;
  flex: 1 1 160px;
}

.compact-form label {
  display: grid;
  gap: 7px;
}

.compact-form small,
.compact-form button {
  grid-column: 1 / -1;
}

.markup-card header {
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.markup-card .body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.markup-card header {
  padding: 14px;
}

.markup-card .body strong {
  font-size: 16px;
}

.api-card,
.auth-card,
.account-status {
  padding: 24px;
}

.payment-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  align-content: start;
  min-height: 0;
}

.payment-grid article h3 {
  font-size: 16px;
}

.payment-grid article p,
.payment-grid article small {
  margin: 0;
  line-height: 1.35;
  color: var(--muted);
}

.payment-grid article input {
  min-height: 40px;
  padding: 0 12px;
}

.payment-grid article button {
  min-height: 40px;
  padding: 0 14px;
}

.api-card {
  display: grid;
  gap: 14px;
}

.api-card label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.api-card p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.auth-page {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: start center;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  border-radius: 8px;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.28;
  pointer-events: none;
  animation: authFloat 14s ease-in-out infinite alternate;
}

.auth-page::before {
  left: 8%;
  top: 10%;
  background: rgba(20, 184, 166, 0.55);
}

.auth-page::after {
  right: 7%;
  bottom: 8%;
  background: rgba(79, 70, 229, 0.45);
  animation-duration: 18s;
}

@keyframes authFloat {
  from {
    transform: translate3d(-18px, 10px, 0) scale(0.95);
  }
  to {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

.auth-page[hidden],
.profile-settings[hidden] {
  display: none;
}

.profile-settings {
  display: grid;
  gap: 16px;
}

.auth-panel {
  width: min(520px, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.auth-logo .brand-mark {
  width: 52px;
  height: 52px;
}

.auth-logo strong {
  display: block;
  font-size: 22px;
}

.auth-logo span {
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-soft);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.auth-tabs button.active {
  color: white;
  background: var(--gold);
}

.auth-card,
.account-status,
.admin-panel {
  display: grid;
  gap: 14px;
  background: var(--panel-glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel .auth-card {
  display: none;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 2px 0 0;
}

.auth-panel .auth-card.active {
  display: grid;
}

.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.check-line {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  font-weight: 600 !important;
}

.check-line input {
  min-height: auto;
}

.link-button {
  border: 0;
  color: var(--gold);
  background: transparent;
  font-weight: 800;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.input-action button {
  min-height: 42px;
  white-space: nowrap;
}

.logout-wide {
  width: 100%;
}

.account-status {
  margin-bottom: 18px;
}

.account-status span,
.hint {
  color: var(--muted);
}

.verification-status.success {
  color: #15803d;
  font-weight: 800;
}

.verification-status.error {
  color: #b91c1c;
  font-weight: 800;
}

.hint {
  margin-bottom: 0;
  font-size: 14px;
}

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

.payment-history-panel {
  margin-top: 18px;
}

.balance-card {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-soft);
  margin: 4px 0;
}

.balance-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.balance-card strong {
  color: var(--navy);
  font-size: 19px;
}

.payment-row {
  align-items: center;
}

.admin-panel {
  padding: 16px;
}

.business-settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(226, 185, 54, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 185, 54, 0.24), rgba(70, 130, 126, 0.12) 45%, rgba(151, 96, 238, 0.12)),
    var(--panel-glass);
  box-shadow: var(--shadow);
}

.business-settings-hero h2 {
  margin: 2px 0 6px;
}

.business-settings-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.business-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.business-settings-card,
.business-preview-card {
  align-content: start;
}

.logo-upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(226, 185, 54, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 247, 207, 0.82), rgba(236, 251, 247, 0.72));
}

body[data-theme="dark"] .logo-upload-card {
  background: linear-gradient(135deg, rgba(226, 185, 54, 0.14), rgba(70, 130, 126, 0.14));
}

.logo-upload-card p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.logo-preview {
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  box-shadow: var(--shadow);
  font-weight: 900;
  font-size: 24px;
}

.logo-preview.small {
  width: 54px;
  font-size: 16px;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-upload-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 900 !important;
}

.logo-upload-button input {
  display: none;
}

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

.business-form-grid label:first-child,
.business-form-grid label:nth-child(5) {
  grid-column: 1 / -1;
}

.business-switch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mode-switch-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px !important;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 900 !important;
}

.mode-switch-card input {
  grid-row: span 2;
  min-height: auto;
}

.mode-switch-card small {
  color: var(--muted);
  font-weight: 700;
}

.business-preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(70, 130, 126, 0.12), rgba(226, 185, 54, 0.14));
}

.business-preview-brand div:last-child {
  display: grid;
  gap: 2px;
}

.business-preview-brand strong {
  color: var(--ink);
  font-size: 20px;
}

.business-preview-brand span {
  color: var(--muted);
  font-size: 13px;
}

.compact-list,
.system-list {
  display: grid;
  gap: 10px;
}

.compact-row,
.system-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.table-list {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
}

.open-table-section {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.open-table-section h3 {
  margin: 0;
}

.reseller-list-section .table-list {
  overflow: visible;
}

.table-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr 0.8fr 86px;
  gap: 10px;
  align-items: center;
  min-width: 760px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.table-row.header {
  color: var(--muted);
  background: var(--field-soft);
  font-weight: 900;
}

.table-row:has(.action-menu.open) {
  z-index: 10;
}

.table-row small {
  display: block;
}

.reseller-table-row {
  grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) 0.7fr 0.9fr 0.55fr 0.75fr 0.75fr 0.75fr 86px;
  min-width: 1160px;
  box-shadow: var(--shadow-soft);
}

.admin-user-row {
  grid-template-columns: minmax(220px, 1.4fr) 0.7fr 0.55fr 86px;
  min-width: 760px;
}

.admin-order-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(190px, 1.1fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) 0.75fr 0.7fr minmax(150px, 1fr) 80px;
  min-width: 1280px;
}

.reseller-overview-panel {
  width: 100%;
}

.reseller-admin-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reseller-stat-card {
  min-height: 104px;
  box-shadow: var(--shadow-soft);
}

.level-badge {
  color: #172033;
  background: rgba(226, 185, 54, 0.28);
}

.menu-select-label {
  display: grid;
  gap: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.menu-select-label select {
  width: 100%;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 8px;
}

.admin-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(226, 185, 54, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 185, 54, 0.22), rgba(70, 130, 126, 0.12) 44%, rgba(151, 96, 238, 0.12)),
    var(--panel-glass);
  box-shadow: var(--shadow);
}

.admin-detail-hero h2 {
  margin: 0 0 4px;
}

.admin-detail-hero p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.detail-metrics {
  margin: 18px 0;
}

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

.reseller-detail-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}

.reseller-detail-actions label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

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

.rank-markup-grid label {
  font-size: 12px;
}

.search-panel {
  background: linear-gradient(135deg, rgba(70, 130, 126, 0.1), rgba(226, 185, 54, 0.1)), var(--panel-glass);
}

.danger-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  font-weight: 900;
}

.referral-admin-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.referral-admin-mode p {
  color: var(--muted);
  margin: 4px 0 0;
}

.compact-row small {
  display: block;
  margin-top: 4px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-actions {
  position: relative;
  justify-content: center;
  overflow: visible;
}

.menu-trigger {
  width: 48px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--field-soft);
  color: var(--ink);
}

.menu-trigger span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 4px;
  z-index: 15;
  display: none;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.action-menu.open {
  display: grid;
}

.action-menu button {
  min-height: 36px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.action-menu button:hover {
  color: white;
  background: var(--gold);
}

.endpoint-list {
  margin-top: 18px;
  overflow: hidden;
}

.endpoint-list div {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.endpoint-list div:last-child {
  border-bottom: 0;
}

.endpoint-list strong {
  color: var(--blue);
}

.endpoint-list span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.2s ease;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  z-index: 20;
}

.modal-backdrop.open {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reseller-storefront {
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--gold));
}

.reseller-storefront p,
.reseller-storefront small {
  color: #cbd5e1;
}

.store-link {
  word-break: break-all;
}

.storefront-page {
  min-height: 100vh;
}

.storefront-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 28px;
}

.storefront-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

.storefront-header h1 {
  font-size: 20px;
}

.storefront-header p {
  margin-bottom: 0;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.track-panel {
  margin-bottom: 12px;
}

.recovery-panel {
  margin-bottom: 12px;
}

.recovery-panel p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.storefront-page .hero-panel {
  padding: 12px 14px;
  margin-bottom: 8px;
}

.storefront-page .hero-panel h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.storefront-page .hero-panel p {
  margin-bottom: 0;
}

.storefront-page .admin-panel {
  padding: 10px 12px;
}

.storefront-page .section-head {
  margin: 4px 0 8px;
}

.storefront-page .section-head h2 {
  font-size: 16px;
}

.storefront-page .auth-card,
.storefront-page .compact-form {
  padding: 10px;
  gap: 8px;
}

.storefront-page .bundle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.storefront-page .bundle-card {
  padding: 11px;
}

.storefront-page .bundle-card header {
  gap: 8px;
}

.storefront-page .bundle-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.storefront-page .bundle-card p {
  margin-bottom: 5px;
  font-size: 13px;
}

.storefront-page .price {
  font-size: 16px;
}

.storefront-page .bundle-card button {
  min-height: 34px;
  margin-top: 8px;
}

.storefront-page input,
.storefront-page select {
  min-height: 36px;
}

.storefront-page .filters {
  gap: 8px;
  margin-bottom: 10px;
}

.storefront-page .chip,
.storefront-page .status-pill {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}

.storefront-page .system-row,
.storefront-page .compact-row,
.storefront-page .order-row {
  padding: 8px 10px;
  gap: 8px;
}

.storefront-page .order-row h3,
.storefront-page .admin-panel h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.storefront-page .order-row p,
.storefront-page .system-row span,
.storefront-page .compact-row small {
  font-size: 13px;
}

.storefront-page .modal-card {
  padding: 14px;
  gap: 10px;
}

.storefront-page .modal-card h2 {
  font-size: 16px;
}

.storefront-page .secondary,
.storefront-page .primary {
  min-height: 36px;
  padding: 0 12px;
}

@media (max-width: 1040px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-shell {
    margin-left: 0;
  }

  body.sidebar-collapsed .sidebar {
    width: auto;
  }

  body.sidebar-collapsed .app-shell,
  body.sidebar-collapsed .site-footer,
  .site-footer {
    left: 18px;
    right: 18px;
  }

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

  .metric-grid,
  .metric-grid.three,
  .reseller-metrics,
  .reseller-admin-metrics,
  .bundle-grid,
  .markup-grid,
  .payment-grid,
  .auth-grid,
  .admin-grid,
  .business-settings-layout,
  .business-switch-grid,
  .reseller-actions,
  .order-filter-grid,
  .order-detail-grid,
  .order-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-hero {
    grid-template-columns: auto 1fr;
  }

  .profile-medal {
    grid-column: 1 / -1;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .order-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .app-shell,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .storefront-header,
  .section-head,
  .business-settings-hero,
  .referral-admin-mode,
  .hero-panel,
  .order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .nav,
  .metric-grid,
  .metric-grid.three,
  .reseller-metrics,
  .bundle-grid,
  .markup-grid,
  .payment-grid,
  .auth-grid,
  .admin-grid,
  .reseller-actions,
  .compact-form,
  .business-form-grid,
  .business-switch-grid,
  .order-filter-grid,
  .order-card-facts,
  .order-detail-grid,
  .order-detail-actions {
    grid-template-columns: 1fr;
  }

  .logo-upload-card {
    grid-template-columns: 1fr;
  }

  .admin-detail-hero {
    grid-template-columns: 1fr;
  }

  .referral-admin-mode {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero,
  .support-grid,
  .two-column-list,
  .reseller-detail-actions {
    grid-template-columns: 1fr;
  }

  .endpoint-list div {
    grid-template-columns: 1fr;
  }
}
