:root {
  --bg: #f4f4f5;
  --panel: #f6f6f7;
  --sidebar: #f3f3f4;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #7d7d83;
  --line: #ececf0;
  /* Accent palette (overridden by includes/site_settings.php inline style) */
  --dd-accent: #be9334;
  --dd-accent-dark: #9f7524;
  --dd-accent-soft: #fff6e0;
  --dd-accent-text: #8d681b;
  --dd-accent-border: #f0dbad;
  --dd-accent-dot-bg: #efd29a;
  --dd-accent-dot-text: #7d5a14;
  --dd-accent-tabs: #d39d35;
  --dd-input-focus: #d5a23d;
  --dd-accent-mid: #d6ac49;
  --dd-accent-mid2: #a57d28;
  --dd-pill-live-bg: #fcecc8;
  --dd-pill-live-text: #8a6721;
  --dd-upgrade-start: #be9334;
  --dd-upgrade-end: #9f7524;
  --dd-outline: #d9b56a;
  --dd-input-hover: #d2a965;
  --dd-link: #825f17;
  --dd-link-muted: #e8d5a3;
  --dd-role-border: #cda457;
  --dd-role-bg: #fff7e6;
  --dd-gradient-bar1: #b68b2e;
  --dd-gradient-bar2: #c99d3f;
  --dd-btn-shadow: 190, 147, 52;
  --gold: var(--dd-accent);
  --gold-dark: var(--dd-accent-dark);
  --green: #1d9a5b;
  --red: #c74d4d;
  --blue: #3973c8;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-soft: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 18px rgba(20, 20, 20, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.app {
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: var(--panel);
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--dd-accent-mid), var(--dd-accent-mid2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.brand small {
  display: block;
  color: #9e9ea5;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.menu-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.menu-panel + .menu-panel {
  margin-top: 6px;
}

.menu-section {
  color: #9a9aa1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.menu {
  display: grid;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  padding: 10px;
  color: #707076;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.menu-item:hover {
  background: #f7f7f8;
  color: #3f3f45;
  border-color: #ececef;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.menu-item.active {
  background: var(--dd-accent-soft);
  color: var(--dd-accent-text);
  border-color: var(--dd-accent-border);
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f3f3f6;
  color: #7a7a82;
  font-size: 12px;
  flex-shrink: 0;
}

.menu-item.active .menu-dot {
  background: var(--dd-accent-dot-bg);
  color: var(--dd-accent-dot-text);
}

.menu-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #72727a;
  background: #f1f2f4;
}

.menu-pill.live {
  color: var(--dd-pill-live-text);
  background: var(--dd-pill-live-bg);
}

.upgrade {
  margin-top: auto;
  background: linear-gradient(160deg, var(--dd-upgrade-start), var(--dd-upgrade-end));
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.upgrade strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.upgrade span {
  opacity: 0.9;
  font-size: 11px;
}

.content {
  padding: 24px 28px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tabs {
  display: flex;
  gap: 26px;
  margin-left: 6px;
}

.tabs a {
  text-decoration: none;
  color: #8c8c93;
  font-weight: 600;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.tabs a.active {
  color: #2f2f35;
  border-color: var(--dd-accent-tabs);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.circle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #8d8d93;
  font-size: 14px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #293848, #101722);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.avatar-btn {
  border: 0;
  cursor: pointer;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 20, 30, 0.12);
  padding: 6px;
  display: none;
  z-index: 30;
}

.user-dropdown a {
  display: block;
  text-decoration: none;
  color: #37373e;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 8px;
}

.user-dropdown a:hover {
  background: #f4f5f8;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  display: block;
}

h1 {
  margin: 8px 0;
  font-size: 37px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 16px;
  margin-bottom: 18px;
}

.card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

/* Subtle 3D effect for dashboard cards */
.stats-grid .card,
.table-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stats-grid .card:hover,
.table-card:hover {
  transform: translateY(-4px) rotateX(1.5deg) rotateY(-1.5deg);
  border-color: #d9dfea;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.card .kicker {
  color: #9e9ea5;
  font-size: 11px;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-bottom: 8px;
}

.burn-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.burn-value {
  font-size: 40px;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 2px 0 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.badge.gold {
  color: #987229;
  background: #fff3d6;
  border: 1px solid #f3ddaa;
}

.stats-row {
  display: flex;
  gap: 22px;
  color: #7f7f86;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  display: inline-block;
  transform: translateY(1px);
}

.dot.green { background: #33a46a; }
.dot.blue { background: #4c7ac9; }

.optimization {
  background: linear-gradient(160deg, #b1862f, #9b7427);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.optimization h3 {
  margin: 14px 0 6px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.optimization p {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.95;
  max-width: 180px;
}

.btn-light {
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #4e3c15;
  background: #fff3d4;
  padding: 9px 12px;
  cursor: pointer;
}

.table-card { padding: 20px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.tools {
  display: flex;
  gap: 9px;
}

.tool-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #7f7f86;
  font-size: 13px;
}

.license-list { display: grid; gap: 10px; }

.license-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.license-row:hover {
  border-color: #dadfe8;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.license-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.license-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f5f6;
  border: 1px solid #e9eaed;
  display: grid;
  place-items: center;
  color: #76767d;
  font-size: 15px;
  flex-shrink: 0;
}

.license-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.license-meta {
  color: #8e8e95;
  font-size: 12px;
  margin-top: 3px;
}

.license-meta b { color: #3e3e43; }

.license-right {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.cost {
  color: #8b8b91;
  font-size: 12px;
}

.cost strong {
  color: #111114;
  font-size: 20px;
  margin-left: 5px;
}

.state {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  letter-spacing: 0.05em;
}

.state.active { color: #1d7b4d; background: #ddf4e8; border: 1px solid #c5ead8; }
.state.attention { color: #b33b3b; background: #fde8e8; border: 1px solid #f8d2d2; }
.state.pending { color: #9b731f; background: #fff2d7; border: 1px solid #f0deae; }

.extensions { margin-top: 22px; }

.extensions h3 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.extension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 13px;
}

.ext-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ext-preview {
  height: 120px;
  background: linear-gradient(140deg, #1a2330, #222f42 55%, #0f1520);
}

.ext-card:nth-child(2) .ext-preview { background: linear-gradient(140deg, #2f3f4d, #3f5467, #1d2730); }
.ext-card:nth-child(3) .ext-preview { background: linear-gradient(140deg, #394457, #6e879d, #2b3844); }
.ext-card:nth-child(4) .ext-preview { background: linear-gradient(140deg, #2c2f36, #445164, #171c24); }

.ext-body { padding: 10px 11px 12px; }
.ext-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.ext-sub { margin: 0; font-size: 11px; color: #8a8a90; }

/* Auth pages */
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-wrap {
  width: 100%;
  max-width: 480px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.auth-title {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #4e4e56;
}

.input {
  width: 100%;
  border: 1px solid #dfe1e6;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.input:hover {
  border-color: var(--dd-input-hover);
  box-shadow: 0 0 0 2px rgba(var(--dd-btn-shadow), 0.08);
}

.input:focus {
  border-color: var(--dd-input-focus);
  box-shadow: 0 0 0 3px rgba(var(--dd-btn-shadow), 0.15);
  transform: translateY(-1px);
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--dd-accent), var(--dd-accent-dark));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(var(--dd-btn-shadow), 0.28);
  filter: brightness(1.03);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--dd-outline);
  outline-offset: 2px;
}

.auth-links {
  margin-top: 14px;
  font-size: 13px;
  color: #73737b;
  text-align: center;
}

.auth-links a {
  color: var(--dd-accent-text);
  text-decoration: none;
  font-weight: 700;
}

.auth-page {
  min-height: 100vh;
  padding: 14px;
  background: #1b1b1d;
  display: grid;
  place-items: center;
}

.auth-main-standalone {
  width: 100%;
}

.auth-wrap-wide {
  max-width: 520px;
}

.auth-brand {
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-brand-logo {
  display: block;
  margin: 0 auto 10px;
  max-height: 48px;
  max-width: 220px;
  object-fit: contain;
}

.auth-brand-text {
  display: block;
}

.auth-card-clean {
  padding: 28px;
}

@media (max-width: 1150px) {
  .app { grid-template-columns: 86px 1fr; }
  .sidebar { padding: 18px 8px; }
  .brand span,
  .menu-section,
  .menu-item span:not(.menu-dot),
  .menu-pill,
  .upgrade span,
  .upgrade strong { display: none; }
  .menu-item { justify-content: center; }
  .menu-panel { padding: 6px; }
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: 1fr; }
  .extension-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 18px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .auth-title { font-size: 28px; }
}

/* Unified dashboard layout */
.page-frame {
  padding: 14px;
  background: #1b1b1d;
  min-height: 100vh;
}

.app-dashboard {
  max-width: 100%;
  width: 100%;
  background: #efefef;
  border-radius: 6px;
  overflow: hidden;
}

.content-dashboard {
  padding: 10px 0 0;
}

.topbar.compact {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: calc(100vh - 64px);
}

.dash-main {
  padding: 18px;
  overflow: auto;
}

.hero-card {
  padding: 26px;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-inline {
  width: auto;
  padding: 10px 14px;
}

.btn-ghost {
  border: 1px solid #e2e4ea;
  border-radius: 10px;
  background: #fff;
  padding: 10px 14px;
  font-weight: 700;
  color: #34343b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--dd-input-hover);
  background: var(--dd-accent-soft);
  color: var(--dd-accent-text);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--dd-outline);
  outline-offset: 2px;
}

.dash-section {
  margin-top: 18px;
}

.dash-section h2 {
  font-size: 30px;
}

.market-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.market-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 14px;
}

.market-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f3f5fb;
  margin-bottom: 10px;
}

.market-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.market-card p {
  margin: 0 0 10px;
  color: #808088;
  font-size: 12px;
}

.market-price {
  font-weight: 700;
}

.market-price span {
  color: #8f8f95;
  font-weight: 500;
  font-size: 12px;
}

.sub-table {
  margin-top: 12px;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.sub-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.8fr;
  padding: 11px 14px;
  align-items: center;
  border-top: 1px solid #f1f2f5;
  font-size: 13px;
  transition: background 0.2s ease;
}

.sub-row:first-child {
  border-top: 0;
}

.sub-row:not(.sub-head):hover {
  background: #fcfcff;
}

.sub-head {
  background: #fafafb;
  color: #8d8d95;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-panel {
  background: #fff;
  border-left: 1px solid #e6e8ee;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f0f1f4;
  padding-bottom: 10px;
}

.cart-item small {
  display: block;
  color: #8f8f96;
  margin-top: 3px;
}

.cart-lines p {
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  color: #8a8a91;
}

.cart-lines .total {
  color: #1c1c21;
  font-weight: 700;
  font-size: 20px;
}

.payment-box {
  margin-top: auto;
  background: #f6f7f9;
  border: 1px solid #eaebef;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    border-left: 0;
    border-top: 1px solid #e6e8ee;
  }
}

/* Subscription detail page */
.subdetail-wrap {
  padding: 16px 18px 18px;
}

.subdetail-back {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8f8f96;
}

.subdetail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.subdetail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subdetail-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1f252b;
  color: #d4a847;
  display: grid;
  place-items: center;
}

.subdetail-title h1 {
  margin: 0 0 4px;
  font-size: 42px;
  letter-spacing: -0.03em;
}

.subdetail-title p {
  margin: 0;
  color: #83838b;
}

.subdetail-actions {
  display: flex;
  gap: 10px;
}

.subdetail-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  margin-bottom: 12px;
}

.seat-card h3,
.tier-card h3 {
  margin: 0;
  font-size: 21px;
}

.seat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.seat-row p {
  margin: 4px 0 0;
  color: #83838b;
}

.seat-row strong {
  font-size: 36px;
  color: var(--dd-accent-dark);
}

.usage-bar {
  margin: 12px 0 14px;
  height: 8px;
  border-radius: 999px;
  background: #edeef1;
  overflow: hidden;
}

.usage-bar span {
  display: block;
  height: 100%;
  width: 80%;
  background: linear-gradient(90deg, var(--dd-gradient-bar1), var(--dd-gradient-bar2));
}

.seat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seat-stats > div {
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 10px;
}

.seat-stats small {
  color: #9a9aa1;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.seat-stats h4 {
  margin: 6px 0 2px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.seat-stats p {
  margin: 0;
  color: #919198;
  font-size: 11px;
}

.tier-card {
  border-radius: 14px;
  background: linear-gradient(165deg, #a67d29, #8a671f);
  color: #fff;
  padding: 18px;
}

.tier-price {
  margin: 8px 0 2px;
  font-size: 45px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tier-price span {
  font-size: 22px;
  font-weight: 600;
}

.tier-sub {
  margin: 0 0 10px;
  opacity: 0.92;
}

.tier-card ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.tier-card li::before {
  content: "✓";
  margin-right: 8px;
}

.tier-card .btn-light {
  width: 100%;
}

.team-card {
  padding: 16px;
}

.team-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.team-head h2 {
  margin: 0;
}

.team-head p {
  margin: 3px 0 0;
  color: #8c8c93;
}

.team-table {
  border: 1px solid #eceef3;
  border-radius: 10px;
  overflow: hidden;
}

.team-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.7fr 0.3fr;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #f2f3f6;
  font-size: 13px;
  transition: background 0.2s ease;
}

.team-row:first-child {
  border-top: 0;
}

.team-row:hover {
  background: #fcfcff;
}

.team-top {
  background: #fafafa;
  color: #97979e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.team-row small {
  display: block;
  color: #9a9aa1;
  margin-top: 2px;
}

.team-foot {
  margin: 10px 0 0;
  text-align: center;
  color: var(--dd-accent-text);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .subdetail-grid {
    grid-template-columns: 1fr;
  }
}

/* Teams page */
.teams-wrap {
  padding: 16px 18px 18px;
}

.teams-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  margin-top: 12px;
}

.teams-main {
  min-height: 360px;
}

.teams-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.teams-head h2 {
  margin: 0;
  font-size: 28px;
}

.teams-head p {
  margin: 2px 0 0;
  color: #8d8d94;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.07em;
}

.curator-list {
  display: grid;
  gap: 10px;
}

.curator-row {
  border: 1px solid #eceef2;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.curator-row strong {
  display: block;
  font-size: 14px;
}

.curator-row small {
  color: #8f8f97;
  font-size: 11px;
}

.teams-side {
  display: grid;
  gap: 12px;
}

.role-card {
  padding: 14px;
}

.role-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.role-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #888991;
}

.role-item {
  border: 1px solid #eceef2;
  border-radius: 9px;
  padding: 9px 10px;
  margin-bottom: 8px;
  background: #fff;
}

.role-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.role-item span {
  color: #8f8f96;
  font-size: 11px;
}

.role-card .btn-light {
  width: 100%;
}

.integrity-card {
  border-radius: 14px;
  background: linear-gradient(165deg, #a67d29, #8a671f);
  color: #fff;
  padding: 16px;
}

.integrity-card h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.integrity-card p {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.95;
}

.integrity-card a {
  color: #fff7df;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.activity-card {
  margin-top: 12px;
}

.activity-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.activity-head h2 {
  margin: 0;
  font-size: 28px;
}

.activity-head span {
  color: #8a8a91;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.activity-grid div {
  border-left: 2px solid #e6c777;
  padding-left: 10px;
}

.activity-grid small {
  color: #9b9ba2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.activity-grid p {
  margin: 4px 0;
  font-size: 13px;
}

.activity-grid span {
  color: #9a9aa1;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }
}

/* Marketplace page — refined / professional */
.market-wrap.market-page {
  padding: 14px 18px 36px;
  max-width: 1200px;
}

.market-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(
    145deg,
    #ffffff 0%,
    var(--dd-accent-soft) 38%,
    var(--dd-role-bg) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 36px -8px rgba(15, 23, 42, 0.08),
    0 32px 64px -16px rgba(15, 23, 42, 0.1);
}

.market-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--dd-btn-shadow), 0.4) 45%,
    rgba(var(--dd-btn-shadow), 0.15) 100%
  );
}

.market-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 58% at 96% -8%, rgba(var(--dd-btn-shadow), 0.2), transparent 52%),
    radial-gradient(ellipse 48% 42% at -4% 102%, rgba(var(--dd-btn-shadow), 0.11), transparent 48%);
}

.market-hero-shine {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 90%;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 55%
  );
  opacity: 0.55;
  transform: rotate(-12deg);
}

.market-hero-inner {
  position: relative;
  padding: 30px 30px 28px;
  max-width: 920px;
  z-index: 1;
}

.market-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dd-accent-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--dd-accent-soft) 100%);
  border: 1px solid var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 12px rgba(var(--dd-btn-shadow), 0.12);
}

.market-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 2.9vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.market-hero h1 em {
  font-style: normal;
  background: linear-gradient(125deg, var(--dd-accent-dark), var(--dd-accent), var(--dd-accent-mid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.market-hero-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 620px;
}

.market-hero-tagline {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dd-accent-mid2);
  opacity: 0.94;
}

.market-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.market-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  min-width: 112px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.98);
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px rgba(15, 23, 42, 0.05);
}

.market-stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
  line-height: 1;
}

.market-stat span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.market-stat--accent {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--dd-accent) 0%, var(--dd-accent-dark) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 28px rgba(var(--dd-btn-shadow), 0.38);
}

.market-stat--accent span {
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.market-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  animation: market-pulse 2.4s ease-in-out infinite;
}

@keyframes market-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

.market-filter-card {
  margin-top: 0;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 16px 40px -12px rgba(15, 23, 42, 0.08);
  padding: 2px;
}

.market-filter-card .market-filter-form {
  padding: 16px 18px 18px;
  background: #fff;
  border-radius: 16px;
}

.market-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 18px;
}

.market-filter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 140px;
}

.market-filter-grow {
  flex: 1 1 220px;
  min-width: 200px;
}

.market-filter-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.market-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.market-filter-submit {
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 14px rgba(var(--dd-btn-shadow), 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.market-filter-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 18px rgba(var(--dd-btn-shadow), 0.24);
}

.market-filter-actions .btn-ghost {
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.market-block {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #e8ecf2;
}

.market-block--featured {
  margin-top: 32px;
}

.market-block-head {
  margin-bottom: 16px;
}

.market-block-head .market-section-title {
  margin: 0;
}

.market-section-sub--flush {
  margin-top: 6px;
  margin-bottom: 0;
}

.market-headline {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.market-headline-copy h2,
.market-section-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.market-headline-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  max-width: 420px;
}

.market-section-title--tight {
  margin-top: 0;
}

.market-section-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  max-width: 720px;
}

.market-section-sub--inline {
  margin: 4px 0 0;
}

.market-headline-link {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--dd-accent-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dd-accent-border);
  background: linear-gradient(180deg, #fff 0%, var(--dd-accent-soft) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 12px rgba(var(--dd-btn-shadow), 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.market-headline-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 8px 20px rgba(var(--dd-btn-shadow), 0.16);
}

.market-pill {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, var(--dd-accent-soft) 100%);
  color: var(--dd-accent-text);
  border: 1px solid var(--dd-accent-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.category-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
  gap: 14px;
}

.market-cat-card,
.category-grid article {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 16px 14px;
  transition: transform 0.22s cubic-bezier(0.34, 1.15, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s ease;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset,
    0 4px 10px rgba(15, 23, 42, 0.04);
}

.market-cat-card:hover,
.category-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 8px 20px rgba(15, 23, 42, 0.06),
    0 20px 44px -12px rgba(var(--dd-btn-shadow), 0.18);
}

.market-cat-card.active,
.category-grid article.active {
  border-color: var(--dd-accent);
  background: linear-gradient(165deg, var(--dd-role-bg) 0%, #fff 65%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(var(--dd-btn-shadow), 0.15);
}

.market-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dd-accent-text);
  background: linear-gradient(145deg, #fff 0%, var(--dd-accent-soft) 100%);
  border: 1px solid var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 12px rgba(var(--dd-btn-shadow), 0.12);
}

.market-cat-card strong,
.category-grid strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.market-cat-card span,
.category-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.market-cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 20px;
}

.market-cat-empty span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.category-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dd-accent-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.category-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.market-cat-card:hover .category-link::after,
.category-grid article:hover .category-link::after {
  transform: translateX(3px);
}

.featured-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 16px;
}

.featured-main,
.featured-mini {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 18px 44px -14px rgba(15, 23, 42, 0.1);
}

.featured-main {
  display: flex;
  flex-direction: column;
}

.featured-main--empty .featured-image--empty {
  min-height: 200px;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border-style: dashed;
}

.featured-price-muted {
  font-size: 1.5rem !important;
  color: #94a3b8 !important;
}

.featured-image {
  height: 228px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--dd-accent-soft), var(--dd-link-muted), #fff);
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--dd-accent-border);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.65),
    inset 0 -4px 12px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(var(--dd-btn-shadow), 0.1);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle at 20% 20%, #ffffff 0%, #f2f4f8 65%, #eaedf3 100%);
  padding: 12px;
  transition: transform 0.28s ease;
}

.featured-main:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 28px 56px -16px rgba(var(--dd-btn-shadow), 0.14);
}

.featured-main:hover .featured-image img {
  transform: scale(1.03);
}

.chip {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 11px;
  align-self: flex-start;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.featured-main h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0f172a;
  font-weight: 800;
}

.featured-main p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
}

.featured-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-foot .btn-primary {
  border-radius: 12px;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 18px rgba(var(--dd-btn-shadow), 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-foot .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 26px rgba(var(--dd-btn-shadow), 0.38);
}

.featured-foot strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #0f172a;
}

.featured-foot strong span {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  margin-left: 4px;
}

.featured-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.featured-side--empty {
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed #e2e8f0;
  background: #f8fafc;
}

.featured-mini {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
}

.featured-mini:hover {
  transform: translateY(-3px);
  border-color: var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 20px 40px -12px rgba(var(--dd-btn-shadow), 0.12);
}

.mini-thumb {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--dd-accent-mid), var(--dd-accent-dark));
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 24px rgba(var(--dd-btn-shadow), 0.3);
  flex-shrink: 0;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-thumb-letter {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.featured-mini-copy {
  min-width: 0;
}

.featured-mini h4 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.featured-mini h4 a {
  color: #0f172a;
  text-decoration: none;
}

.featured-mini h4 a:hover {
  color: var(--dd-accent-text);
}

.featured-mini p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.featured-mini-price {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #fff 0%, var(--dd-accent-soft) 100%);
  border: 1px solid var(--dd-accent-border);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 12px rgba(var(--dd-btn-shadow), 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-mini-price:hover {
  background: linear-gradient(180deg, var(--dd-accent-mid) 0%, var(--dd-accent-dark) 100%);
  color: #fff;
  border-color: var(--dd-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 20px rgba(var(--dd-btn-shadow), 0.3);
}

.arrivals-head {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.arrivals-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.arrivals-filters a {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-radius: 999px;
  padding: 8px 16px;
  color: #64748b;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.arrivals-filters a:hover {
  border-color: var(--dd-accent-border);
  color: var(--dd-accent-text);
  transform: translateY(-1px);
}

.arrivals-filters .active {
  background: linear-gradient(180deg, var(--dd-accent-soft) 0%, #fff 100%);
  border-color: var(--dd-accent);
  color: var(--dd-accent-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 14px rgba(var(--dd-btn-shadow), 0.12);
}

.arrivals-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.market-arrival-card {
  display: flex;
  gap: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.market-arrival-card:hover {
  transform: translateY(-4px);
  border-color: var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 24px 48px -14px rgba(var(--dd-btn-shadow), 0.14);
}

.market-arrival-media {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 1px solid #e8ecf4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 6px 16px rgba(15, 23, 42, 0.06);
}

.market-arrival-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-arrival-fallback {
  font-size: 22px;
  font-weight: 800;
  color: var(--dd-accent-text);
}

.market-arrival-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.market-arrival-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dd-accent-mid2);
}

.market-arrival-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.market-arrival-title a {
  color: #0f172a;
  text-decoration: none;
}

.market-arrival-title a:hover {
  color: var(--dd-accent-text);
}

.market-arrival-desc {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-arrival-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-arrival-price {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.market-arrival-cta {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--dd-accent-mid) 0%, var(--dd-accent-dark) 100%);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 18px rgba(var(--dd-btn-shadow), 0.32);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.market-arrival-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 24px rgba(var(--dd-btn-shadow), 0.38);
}

.market-arrival-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.market-arrival-empty p {
  margin: 8px 0 16px;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 1200px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .market-hero-inner {
    padding: 22px 18px;
  }

  .market-filter-actions {
    margin-left: 0;
    width: 100%;
  }

  .arrivals-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Theme toggle and dark mode */
.theme-toggle {
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}

.theme-toggle::before {
  content: "☾";
  font-size: 14px;
  line-height: 1;
}

html[data-theme="dark"] .theme-toggle::before {
  content: "☀";
}

html[data-theme="dark"] {
  --bg: #0f1115;
  --panel: #151922;
  --sidebar: #121722;
  --surface: #1a202c;
  --text: #e8ecf3;
  --muted: #a3aab8;
  --line: #2a3242;
}

html[data-theme="dark"] body {
  color: var(--text);
  background: var(--bg);
}

html[data-theme="dark"] .page-frame {
  background: #090b10;
}

html[data-theme="dark"] .app-dashboard {
  background: #0f141d;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar.compact,
html[data-theme="dark"] .menu-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .license-row,
html[data-theme="dark"] .featured-main,
html[data-theme="dark"] .featured-mini,
html[data-theme="dark"] .arrivals-grid article,
html[data-theme="dark"] .category-grid article,
html[data-theme="dark"] .sub-table,
html[data-theme="dark"] .team-table,
html[data-theme="dark"] .cart-panel,
html[data-theme="dark"] .payment-box,
html[data-theme="dark"] .tool-btn,
html[data-theme="dark"] .circle-icon,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .input,
html[data-theme="dark"] .role-item,
html[data-theme="dark"] .curator-row,
html[data-theme="dark"] .seat-stats > div {
  background: #1a202c;
  border-color: #2a3242;
  color: var(--text);
}

html[data-theme="dark"] .menu-item:hover,
html[data-theme="dark"] .arrivals-filters .active,
html[data-theme="dark"] .sub-head,
html[data-theme="dark"] .team-top {
  background: #232b38;
}

html[data-theme="dark"] .menu-item:hover {
  border-color: #3a4559;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .menu-dot,
html[data-theme="dark"] .market-icon,
html[data-theme="dark"] .license-icon {
  background: #232b38;
  color: #d2d8e4;
}

html[data-theme="dark"] .menu-item,
html[data-theme="dark"] .tabs a,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .license-meta,
html[data-theme="dark"] .cost,
html[data-theme="dark"] .market-card p,
html[data-theme="dark"] .featured-main p,
html[data-theme="dark"] .featured-mini p,
html[data-theme="dark"] .arrivals-grid p,
html[data-theme="dark"] .activity-grid span,
html[data-theme="dark"] .curator-row small,
html[data-theme="dark"] .role-item span,
html[data-theme="dark"] .seat-row p,
html[data-theme="dark"] .seat-stats p,
html[data-theme="dark"] .team-head p,
html[data-theme="dark"] .subdetail-title p {
  color: #a8b0bf;
}

html[data-theme="dark"] .tabs a.active,
html[data-theme="dark"] .team-foot,
html[data-theme="dark"] .arrivals-grid span {
  color: #e8c06a;
}

html[data-theme="dark"] .category-grid article.active {
  border-color: #9b7c3f;
  background: #2b2417;
}

html[data-theme="dark"] .featured-image img {
  background: radial-gradient(circle at 20% 20%, #1f2633 0%, #1a202c 60%, #171d29 100%);
}

html[data-theme="dark"] .featured-image {
  border-color: #5d4f35;
  background: linear-gradient(140deg, #3a3120, #4b3f2a, #6a5736);
}

html[data-theme="dark"] .featured-main:hover,
html[data-theme="dark"] .featured-mini:hover {
  border-color: #3b475f;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .featured-mini-price {
  background: #232b38;
  border-color: #374258;
  color: #e1e7f2;
}

html[data-theme="dark"] .arrivals-filters a {
  border-color: #2d3647;
  background: #1a202c;
  color: #a8b0bf;
}

html[data-theme="dark"] .arrivals-filters .active {
  background: #2a3242;
  border-color: #425170;
  color: #e5ebf5;
}

html[data-theme="dark"] .market-hero {
  background: linear-gradient(145deg, #252032 0%, #1a202c 48%, #151b24 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .market-hero::after {
  opacity: 0.45;
}

html[data-theme="dark"] .market-hero-shine {
  opacity: 0.12;
}

html[data-theme="dark"] .market-hero-bg {
  opacity: 0.88;
}

html[data-theme="dark"] .market-hero h1 {
  color: #f1f5f9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .market-hero h1 em {
  background: linear-gradient(120deg, var(--dd-accent-mid), var(--dd-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

html[data-theme="dark"] .market-hero-lead,
html[data-theme="dark"] .market-section-sub,
html[data-theme="dark"] .market-headline-sub {
  color: #a8b0bf;
}

html[data-theme="dark"] .market-headline-copy h2,
html[data-theme="dark"] .market-section-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .market-headline-link {
  background: linear-gradient(180deg, #2a3242 0%, #1f2633 100%);
  border-color: #425170;
  color: #e2e8f0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .market-block {
  border-top-color: #2a3242;
}

html[data-theme="dark"] .market-stat {
  background: rgba(26, 32, 44, 0.92);
  border-color: #343f54;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .market-stat strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .market-stat span {
  color: #94a3b8;
}

html[data-theme="dark"] .market-filter-card {
  border-color: #343f54;
  background: linear-gradient(180deg, #1f2633 0%, #1a202c 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .market-filter-card .market-filter-form {
  background: #1a202c;
}

html[data-theme="dark"] .market-filter-label {
  color: #94a3b8;
}

html[data-theme="dark"] .market-badge {
  background: linear-gradient(180deg, #2a3242 0%, #1f2633 100%);
  border-color: #425170;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .market-pill {
  background: rgba(var(--dd-btn-shadow), 0.12);
  border-color: #3d4559;
}

html[data-theme="dark"] .market-cat-icon {
  background: linear-gradient(145deg, #323d50 0%, #252f3f 100%);
  border-color: #425170;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 14px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .market-cat-card strong,
html[data-theme="dark"] .category-grid strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .featured-side--empty {
  background: #151b24;
  border-color: #2f3b4e;
}

html[data-theme="dark"] .mini-thumb-letter {
  color: #fff;
}

html[data-theme="dark"] .featured-mini h4 a {
  color: #f1f5f9;
}

html[data-theme="dark"] .market-arrival-card {
  background: linear-gradient(165deg, #242d3a 0%, #1a202c 100%);
  border-color: #343f54;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 18px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .market-arrival-media {
  background: #232b38;
  border-color: #3d4a5f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .market-arrival-title a {
  color: #f1f5f9;
}

html[data-theme="dark"] .market-arrival-price {
  color: #f1f5f9;
}

html[data-theme="dark"] .market-arrival-empty {
  border-color: #3d4559;
  background: linear-gradient(180deg, #1c2432 0%, #1a202c 100%);
}

html[data-theme="dark"] .auth-page {
  background: #090b10;
}

html[data-theme="dark"] .auth-brand {
  color: #f2f5fb;
}

html[data-theme="dark"] .user-dropdown {
  background: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .user-dropdown a {
  color: #dce2ee;
}

html[data-theme="dark"] .user-dropdown a:hover {
  background: #232b38;
}

/* Products module */
.products-wrap {
  padding: 16px 18px 18px;
}

.products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.products-head-enhanced {
  margin-bottom: 14px;
}

.product-filter-card {
  border: 1px solid #eceef2;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.product-filter-card.market-filter-card {
  padding: 2px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 16px 40px -12px rgba(15, 23, 42, 0.08);
}

.products-filter-bar {
  margin-bottom: 0;
  grid-template-columns: 1.25fr 1fr 1fr 1fr auto;
  gap: 10px;
}

.products-filter-actions {
  display: flex;
  gap: 8px;
}

.products-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e3e7f0 16%, #d8dde9 50%, #e3e7f0 84%, transparent 100%);
  margin: 6px 0 16px;
}

.products-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ead9b9;
  background: #fff7e8;
  color: #7e5b1d;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.filter-chip span {
  font-size: 14px;
  line-height: 1;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: var(--dd-input-hover);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
}

.filter-clear-all {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dd-accent-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--dd-outline);
}

.filter-clear-all:hover {
  color: #6d4f15;
  border-bottom-color: #a88344;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.product-card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
  transform-style: preserve-3d;
  perspective: 1100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  border-color: #d6dceb;
  box-shadow: 0 20px 36px rgba(16, 24, 40, 0.16);
}

.product-thumb {
  width: 100%;
  height: 170px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e5e7ec;
  background: linear-gradient(180deg, #f8f9ff 0%, #eef2ff 100%);
  padding: 10px;
  transform: translateZ(12px) scale(1);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.product-card:hover .product-thumb {
  transform: translateZ(22px) scale(1.08);
  filter: saturate(1.05) contrast(1.02);
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.product-card h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.product-cat {
  margin: 5px 0 6px;
  color: #8d8d94;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-desc {
  margin: 6px 0 0;
  color: #7f7f86;
  font-size: 13px;
  line-height: 1.45;
}

.product-order-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: #7b5a1a;
  background: #fff7e8;
  border: 1px solid #f0dfba;
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  gap: 4px;
}

.product-order-note b {
  color: #5a3f10;
}

.profile-main-card {
  margin-bottom: 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #dfe4ee;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e9f3;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: #f2f4f8;
  color: #6d7380;
  font-weight: 700;
  font-size: 28px;
}

.profile-head-copy h2 {
  margin: 0 0 4px;
}

.profile-section-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-section-lead {
  margin: 0 0 14px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-form-grid {
  margin-top: 4px;
}

/* Site settings (super admin) — brand uploads & palette */
.site-settings-asset-row .site-settings-asset-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e8ecf2;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.site-settings-asset-thumb-link {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  line-height: 0;
}

.site-settings-asset-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.site-settings-asset-file-pill {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dd-accent-text);
  background: var(--dd-accent-soft);
  border-radius: 8px;
  word-break: break-all;
}

.site-settings-asset-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.site-settings-asset-open {
  font-size: 13px;
  font-weight: 700;
  color: var(--dd-link);
  text-decoration: none;
}

.site-settings-asset-open:hover {
  text-decoration: underline;
}

.site-settings-asset-path code {
  font-size: 11px;
  color: #64748b;
}

.site-settings-asset-none {
  margin: 0;
}

.site-settings-upload-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.site-settings-upload-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.site-settings-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-settings-color-row input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}

.site-settings-color-row input[type="color"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-settings-hex-input {
  max-width: 140px;
  font-family: ui-monospace, monospace;
}

.site-settings-palette-hint {
  margin: 0 0 10px;
}

.site-settings-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.site-settings-palette-swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8ecf2;
  background: #fff;
}

.site-settings-palette-chip {
  display: block;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-settings-palette-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.site-settings-palette-hex {
  font-size: 10px;
  color: #64748b;
}

html[data-theme="dark"] .site-settings-asset-row .site-settings-asset-current {
  background: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .site-settings-palette-swatch {
  background: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .site-settings-palette-name {
  color: #f1f5f9;
}

.profile-table-wrap {
  margin-top: 12px;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.profile-table th,
.profile-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #f1f2f5;
  font-size: 13px;
}

.profile-table tbody tr {
  transition: background 0.2s ease;
}

.profile-table tbody tr:hover {
  background: #fcfcff;
}

.profile-table th {
  background: #fafafb;
  color: #8d8d95;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-empty {
  color: #8d8d95;
  text-align: center;
}

.product-card-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e4e8f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-card-foot strong {
  font-size: 22px;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--dd-accent-text);
  border: 1px solid var(--dd-accent-border);
  border-radius: 999px;
  padding: 6px 10px;
}

.product-detail-wrap {
  padding: 16px 18px 18px;
}

.product-detail-main-card {
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 45%, #f4f6fb 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px rgba(15, 23, 42, 0.07);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.product-detail-main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-dark));
  opacity: 0.85;
  pointer-events: none;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.15fr 360px;
  gap: 16px;
}

.product-detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.product-detail-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dd-accent-border);
  background: var(--dd-accent-soft);
  color: var(--dd-accent-text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-detail-title {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.product-detail-lead {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dd-accent-text);
  letter-spacing: 0.02em;
}

.product-detail-desc {
  max-width: 52ch;
}

.product-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.product-hero-copy h1 i {
  color: var(--dd-accent-text);
  font-style: italic;
}

.product-hero-copy .subtitle {
  margin: 0 0 12px;
  line-height: 1.55;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.product-detail-meta-item {
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-detail-meta-item:hover {
  border-color: var(--dd-accent-border);
  box-shadow: 0 6px 16px rgba(var(--dd-btn-shadow), 0.08);
}

.product-detail-meta-item small {
  display: block;
  color: #9aa0aa;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-detail-meta-item strong {
  color: #2f3440;
  font-size: 13px;
}

.product-hero-media {
  border-radius: 16px;
  min-height: 280px;
  background: linear-gradient(145deg, #eceff3, #d8dde5 35%, #c4b5a0);
  border: 1px solid #e4e6eb;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 12px 28px rgba(16, 24, 40, 0.14);
}

.product-hero-media--empty {
  background: linear-gradient(160deg, var(--dd-accent-soft), #e8ecf1);
}

/* Product detail — your order panel */
.product-detail-order-card {
  padding: 22px 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--dd-accent-border);
  background: linear-gradient(180deg, var(--dd-accent-soft) 0%, #fff 38%);
  box-shadow: 0 10px 28px rgba(var(--dd-btn-shadow), 0.1);
  margin-bottom: 20px;
}

.product-detail-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-detail-order-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.product-detail-order-sub {
  margin: 0;
  max-width: 42rem;
}

.product-detail-order-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-detail-order-badge--placed {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.product-detail-order-badge--processing {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.product-detail-order-badge--completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.product-detail-order-badge--cancelled,
.product-detail-order-badge--unknown {
  background: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}

.product-detail-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 8px 0 18px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  border: 1px solid #e8ecf2;
}

.product-detail-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.product-detail-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e8eaef;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.product-detail-step.is-done .product-detail-step-dot {
  background: linear-gradient(160deg, var(--dd-accent), var(--dd-accent-dark));
  color: #fff;
}

.product-detail-step.is-current .product-detail-step-dot {
  box-shadow: 0 0 0 3px rgba(var(--dd-btn-shadow), 0.25);
}

.product-detail-step strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.product-detail-step small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.product-detail-step-line {
  width: 24px;
  height: 3px;
  margin-top: 13px;
  background: #e2e8f0;
  border-radius: 2px;
  flex-shrink: 0;
}

.product-detail-step-line.is-done {
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-dark));
}

.product-detail-order-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  max-width: 52rem;
}

.product-detail-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.product-detail-order-stat {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8ecf2;
}

.product-detail-order-stat--wide {
  grid-column: 1 / -1;
}

.product-detail-order-stat small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.product-detail-order-stat strong {
  font-size: 14px;
  color: #0f172a;
  word-break: break-word;
}

.product-detail-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-detail-empty-order-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed var(--dd-accent-border);
  background: linear-gradient(180deg, #fff 0%, var(--dd-accent-soft) 100%);
  margin-bottom: 20px;
}

.product-detail-empty-order-inner {
  max-width: 40rem;
}

.product-detail-pricing-block {
  margin-top: 8px;
}

.product-detail-section-title {
  margin-bottom: 12px;
}

.product-detail-pricing-grid {
  max-width: 380px;
}

.product-detail-price-card {
  border-radius: 18px !important;
  border: 1px solid var(--dd-accent-border) !important;
  background: linear-gradient(165deg, #fff 0%, var(--dd-accent-soft) 100%) !important;
  box-shadow: 0 12px 32px rgba(var(--dd-btn-shadow), 0.12) !important;
  overflow: hidden;
}

.product-detail-price-card-inner {
  padding: 8px 4px 4px;
}

.product-detail-price-label {
  display: block;
  margin-bottom: 8px;
}

.product-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.product-detail-price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dd-accent-text);
}

.product-detail-price-value {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.product-detail-price-period {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
}

.product-detail-price-note {
  margin: 0 0 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.product-detail-price-cta {
  width: 100%;
}

@media (max-width: 900px) {
  .product-detail-stepper {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-step-line {
    display: none;
  }

  .product-detail-step {
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf2;
  }

  .product-detail-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

html[data-theme="dark"] .product-detail-main-card {
  background: linear-gradient(145deg, #161d28 0%, #1a2230 100%);
  border-color: #2a3242;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .product-detail-main-card::before {
  opacity: 1;
}

html[data-theme="dark"] .product-detail-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .product-detail-meta-item {
  background: rgba(22, 28, 38, 0.85);
  border-color: #2a3242;
}

html[data-theme="dark"] .product-detail-meta-item strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .product-detail-order-card {
  background: linear-gradient(180deg, rgba(42, 36, 24, 0.6) 0%, #161d28 45%);
  border-color: #3d3528;
}

html[data-theme="dark"] .product-detail-order-lead {
  color: #94a3b8;
}

html[data-theme="dark"] .product-detail-order-stat {
  background: #161d28;
  border-color: #2a3242;
}

html[data-theme="dark"] .product-detail-order-stat strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .product-detail-stepper {
  background: rgba(22, 28, 38, 0.75);
  border-color: #2a3242;
}

html[data-theme="dark"] .product-detail-step small {
  color: #94a3b8;
}

html[data-theme="dark"] .product-detail-step-dot {
  background: #2a3242;
  color: #94a3b8;
}

html[data-theme="dark"] .product-detail-step-line {
  background: #2a3242;
}

html[data-theme="dark"] .product-detail-empty-order-card {
  background: linear-gradient(180deg, #161d28 0%, #1f2735 100%);
  border-color: #3d3528;
}

html[data-theme="dark"] .product-detail-price-card {
  background: linear-gradient(165deg, #161d28 0%, #1f2735 100%) !important;
  border-color: #3d3528 !important;
}

html[data-theme="dark"] .product-detail-price-value {
  color: #f1f5f9;
}

.feature-grid {
  margin: 10px 0 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
}

.feature-grid article {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 12px;
}

.feature-grid article.active {
  background: #a67d29;
  color: #fff;
  border-color: #a67d29;
}

.feature-grid h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.feature-grid p {
  margin: 0;
  color: #84848b;
  font-size: 12px;
}

.feature-grid article.active p {
  color: #f8eedb;
}

.pricing-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 380px);
  gap: 12px;
}

.pricing-grid article {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.pricing-grid article.highlight {
  border-color: #ba933c;
  box-shadow: 0 8px 18px rgba(166, 125, 41, 0.16);
}

.pricing-grid small {
  color: #9a9aa1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pricing-grid h3 {
  margin: 8px 0 2px;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.pricing-grid p {
  margin: 0 0 10px;
  color: #8f8f96;
  font-size: 12px;
}

.product-form-card {
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-form-card:hover {
  border-color: #dde3ef;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.form-preview-image {
  margin-top: 8px;
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e1e4ea;
}

.user-preview-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-full {
  grid-column: span 2;
}

.form-actions {
  grid-column: span 2;
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1050px) {
  .product-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-detail-meta {
    grid-template-columns: 1fr;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }

  .form-row-full,
  .form-actions {
    grid-column: span 1;
  }
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .feature-grid article,
html[data-theme="dark"] .pricing-grid article,
html[data-theme="dark"] .product-actions a {
  background: #1a202c;
  border-color: #2a3242;
  color: var(--text);
}

html[data-theme="dark"] .product-hero-media {
  background-color: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .product-filter-card {
  background: #1a202c;
  border-color: #2a3242;
  box-shadow: none;
}

html[data-theme="dark"] .product-filter-card.market-filter-card {
  background: linear-gradient(180deg, #1f2633 0%, #1a202c 100%);
  border-color: #343f54;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .product-detail-chip {
  background: rgba(42, 36, 24, 0.85);
  border-color: var(--dd-role-border);
  color: var(--dd-link-muted);
}

html[data-theme="dark"] .product-detail-meta-item small {
  color: #a8b0bf;
}

html[data-theme="dark"] .product-detail-meta-item strong {
  color: #edf2fb;
}

html[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 10px 20px rgba(var(--dd-btn-shadow), 0.35);
}

html[data-theme="dark"] .btn-ghost:hover {
  border-color: #6f5a2d;
  background: #2a2418;
  color: #f1d59b;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .products-separator {
  background: linear-gradient(90deg, transparent 0%, #2a3242 16%, #334055 50%, #2a3242 84%, transparent 100%);
}

html[data-theme="dark"] .filter-chip {
  background: #2a2418;
  border-color: #6f5a2d;
  color: #f1d59b;
}

html[data-theme="dark"] .filter-clear-all {
  color: #f1d59b;
  border-bottom-color: #6f5a2d;
}

html[data-theme="dark"] .product-cat,
html[data-theme="dark"] .product-desc,
html[data-theme="dark"] .feature-grid p,
html[data-theme="dark"] .pricing-grid p {
  color: #a8b0bf;
}

html[data-theme="dark"] .product-order-note {
  background: #2a2418;
  border-color: #6f5a2d;
  color: #f1d59b;
}

html[data-theme="dark"] .product-order-note b {
  color: #ffd986;
}

html[data-theme="dark"] .profile-hero {
  border-color: #2b3445;
}

html[data-theme="dark"] .profile-avatar {
  border-color: #2a3242;
}

html[data-theme="dark"] .profile-avatar-fallback {
  background: #232b38;
  color: #dce2ee;
}

html[data-theme="dark"] .profile-table-wrap {
  background: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .profile-table th {
  background: #232b38;
  color: #a8b0bf;
  border-bottom-color: #2a3242;
}

html[data-theme="dark"] .profile-table td {
  border-bottom-color: #2a3242;
}

html[data-theme="dark"] .profile-empty {
  color: #a8b0bf;
}

html[data-theme="dark"] .pricing-grid article.highlight {
  border-color: #d6a94a;
  box-shadow: 0 10px 22px rgba(214, 169, 74, 0.18);
}

html[data-theme="dark"] .license-row:hover {
  border-color: #3a4559;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .product-form-card:hover {
  border-color: #3a4559;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .input:hover {
  border-color: #6f7e99;
  box-shadow: 0 0 0 2px rgba(123, 149, 199, 0.16);
}

html[data-theme="dark"] .input:focus {
  border-color: #9ab3df;
  box-shadow: 0 0 0 3px rgba(123, 149, 199, 0.25);
}

html[data-theme="dark"] .sub-row:not(.sub-head):hover,
html[data-theme="dark"] .team-row:hover,
html[data-theme="dark"] .profile-table tbody tr:hover {
  background: #232b38;
}

/* Dashboard beautification */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 6px;
}

.kpi-card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 12px;
}

.kpi-card small {
  font-size: 11px;
  color: #8f8f96;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.kpi-card h3 {
  margin: 6px 0 4px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.kpi-card h3 a,
.kpi-card p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kpi-card h3 a:hover,
.kpi-card p a:hover {
  color: var(--dd-accent-text);
  border-bottom-color: var(--dd-outline);
}

.kpi-card p {
  margin: 0;
  color: #7f7f86;
  font-size: 12px;
}

/* User dashboard (end-user home) — layered depth / “3D” panels */
.user-dash {
  padding-bottom: 12px;
  perspective: 1200px;
}

.user-dash-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(
    145deg,
    #ffffff 0%,
    var(--dd-accent-soft) 42%,
    var(--dd-role-bg) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 12px 28px -6px rgba(15, 23, 42, 0.08),
    0 28px 56px -12px rgba(15, 23, 42, 0.12);
}

.user-dash-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--dd-btn-shadow), 0.35) 40%,
    rgba(var(--dd-btn-shadow), 0.2) 100%
  );
  opacity: 0.85;
}

.user-dash-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 100% -10%, rgba(var(--dd-btn-shadow), 0.18), transparent 52%),
    radial-gradient(ellipse 50% 45% at -5% 100%, rgba(var(--dd-btn-shadow), 0.12), transparent 48%);
}

.user-dash-hero-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 26px;
}

.user-dash-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dd-accent-text);
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--dd-accent-soft) 100%);
  border: 1px solid var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(var(--dd-btn-shadow), 0.12);
}

.user-dash-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.12;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-dash-hero h1 em {
  font-style: normal;
  background: linear-gradient(125deg, var(--dd-accent-dark), var(--dd-accent), var(--dd-accent-mid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.user-dash-lead {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.user-dash-tagline {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dd-accent-mid2);
  opacity: 0.95;
}

.user-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.user-dash-hero-actions .btn-light {
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #fff 0%, var(--dd-accent-soft) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 8px 20px -4px rgba(var(--dd-btn-shadow), 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.user-dash-hero-actions .btn-light:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 14px 28px -6px rgba(var(--dd-btn-shadow), 0.32);
}

.user-dash-hero-actions .btn-ghost {
  border-radius: 12px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.user-dash-hero-actions .btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 8px 20px rgba(15, 23, 42, 0.08);
}

.user-dash-btn-primary {
  font-weight: 700;
}

.user-dash-link-history {
  font-size: 13px;
}

.user-dash-kpis {
  margin-top: 0;
  margin-bottom: 22px;
}

.user-dash-kpi {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 55%, #e8edf3 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(15, 23, 42, 0.05) inset,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 10px 24px -6px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s ease;
  transform-style: preserve-3d;
}

.user-dash-kpi:hover {
  transform: translateY(-5px) rotateX(2deg);
  border-color: var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset,
    0 6px 12px rgba(15, 23, 42, 0.06),
    0 20px 40px -10px rgba(var(--dd-btn-shadow), 0.22);
}

.user-dash-kpi--clock {
  background: linear-gradient(165deg, #ffffff 0%, var(--dd-accent-soft) 45%, #fefce8 100%);
}

.user-dash-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--dd-accent-text);
  background: linear-gradient(145deg, #fff 0%, var(--dd-accent-soft) 100%);
  border: 1px solid var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(var(--dd-btn-shadow), 0.12);
}

.user-dash-kpi--clock .user-dash-kpi-icon {
  background: linear-gradient(155deg, var(--dd-accent-mid) 0%, var(--dd-accent) 45%, var(--dd-accent-dark) 100%);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.25) inset,
    0 -2px 6px rgba(0, 0, 0, 0.12) inset,
    0 10px 22px rgba(var(--dd-btn-shadow), 0.35);
}

.user-dash-kpi--actions .user-dash-kpi-icon {
  background: linear-gradient(160deg, #ffffff 0%, #e2e8f0 100%);
  color: var(--dd-accent-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 4px 12px rgba(15, 23, 42, 0.08);
}

.user-dash-kpi-body {
  min-width: 0;
  flex: 1;
}

.user-dash-kpi-body small {
  display: block;
}

.user-dash-kpi-body h3 {
  margin: 4px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.user-dash-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.user-dash-shortcuts a {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--dd-accent-text);
  background: linear-gradient(180deg, #fff 0%, var(--dd-accent-soft) 100%);
  border: 1px solid var(--dd-accent-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 6px 14px -4px rgba(var(--dd-btn-shadow), 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.user-dash-shortcuts a:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--dd-accent-mid) 0%, var(--dd-accent-dark) 100%);
  color: #fff;
  border-color: var(--dd-accent-dark);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 18px rgba(var(--dd-btn-shadow), 0.35);
}

.user-dash-orders-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 16px 40px -12px rgba(15, 23, 42, 0.12);
  padding-bottom: 4px;
}

.user-dash-orders-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
  opacity: 0.9;
}

.user-dash-orders-card.product-form-card {
  padding: 22px 22px 20px;
}

.user-dash-orders-card.product-form-card:hover {
  border-color: #cbd5e1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(15, 23, 42, 0.06),
    0 24px 52px -14px rgba(15, 23, 42, 0.14);
}

.user-dash-orders-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding: 4px 2px 0;
}

.user-dash-orders-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.user-dash-orders-head .btn-ghost {
  border-radius: 11px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 3px 10px rgba(15, 23, 42, 0.06);
}

.user-dash-orders-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.user-dash-sub-table {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid #e8ecf2;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.user-dash-sub-table .sub-head {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.user-dash-order-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  border-top: 1px solid #f1f5f9;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.user-dash-sub-table .sub-row.user-dash-order-row:first-of-type {
  border-top: 0;
}

.user-dash-order-row:focus-visible {
  outline: 2px solid var(--dd-accent);
  outline-offset: -2px;
  z-index: 1;
}

.user-dash-order-row:hover {
  background: linear-gradient(90deg, var(--dd-role-bg) 0%, #fff 55%, #fff 100%) !important;
  box-shadow: 0 4px 14px -4px rgba(var(--dd-btn-shadow), 0.12);
  transform: translateY(-1px);
}

.user-dash-order-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.user-dash-order-main strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--dd-link);
  letter-spacing: -0.01em;
}

.user-dash-order-product {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dash-order-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  text-align: right;
}

.user-dash-order-meta strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.user-dash-order-meta small {
  font-size: 11px;
  color: #94a3b8;
}

.user-dash-status.state {
  justify-self: start;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.user-dash-empty {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid #f1f2f5;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) inset;
}

.user-dash-empty p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.user-dash-empty p strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.user-dash-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.user-dash-empty-actions .btn-light {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(var(--dd-btn-shadow), 0.2);
}

@media (max-width: 720px) {
  .user-dash-kpi:hover {
    transform: translateY(-3px);
  }

  .user-dash-order-meta {
    align-items: flex-start;
    text-align: left;
  }

  .sub-row.user-dash-order-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .user-dash-status.state {
    justify-self: start;
  }
}

html[data-theme="dark"] .user-dash-hero {
  background: linear-gradient(145deg, #252032 0%, #1a202c 45%, #151b24 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .user-dash-hero::after {
  opacity: 0.5;
}

html[data-theme="dark"] .user-dash-eyebrow {
  background: linear-gradient(180deg, #2a3242 0%, #1f2633 100%);
  border-color: #3d4559;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .user-dash-hero h1 {
  color: #f1f5f9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-dash-hero h1 em {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

html[data-theme="dark"] .user-dash-lead,
html[data-theme="dark"] .user-dash-orders-sub {
  color: #a8b0bf;
}

html[data-theme="dark"] .user-dash-orders-head h2 {
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-dash-hero-actions .btn-light {
  background: linear-gradient(180deg, #2a3242 0%, #1f2633 100%);
  border-color: #3d4559;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-dash-hero-actions .btn-ghost {
  background: rgba(30, 38, 52, 0.85);
  border-color: #3d4559;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 6px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .user-dash-kpi {
  background: linear-gradient(165deg, #242d3a 0%, #1a202c 50%, #151c26 100%);
  border-color: #343f54;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-dash-kpi:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .user-dash-kpi--clock {
  background: linear-gradient(165deg, #2a2635 0%, #1a202c 100%);
}

html[data-theme="dark"] .user-dash-kpi-body h3 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-dash-kpi-icon {
  background: linear-gradient(145deg, #323d50 0%, #252f3f 100%);
  border-color: #425170;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .user-dash-kpi--clock .user-dash-kpi-icon {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 -2px 8px rgba(0, 0, 0, 0.35) inset,
    0 10px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .user-dash-shortcuts a {
  background: linear-gradient(180deg, #2a3242 0%, #1f2633 100%);
  border-color: #425170;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 14px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .user-dash-orders-card {
  background: linear-gradient(180deg, #1f2633 0%, #1a202c 100%);
  border-color: #343f54;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 14px 36px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .user-dash-orders-card.product-form-card:hover {
  border-color: #4a5870;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 44px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .user-dash-sub-table {
  background: #1a202c;
  border-color: #2f3b4e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) inset;
}

html[data-theme="dark"] .user-dash-sub-table .sub-head {
  background: linear-gradient(180deg, #232d3d 0%, #1c2432 100%);
  border-bottom-color: #343f54;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html[data-theme="dark"] .user-dash-order-row {
  border-top-color: #2a3242;
}

html[data-theme="dark"] .user-dash-order-main strong {
  color: #c4b5fd;
}

html[data-theme="dark"] .user-dash-order-meta strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .user-dash-order-product {
  color: #94a3b8;
}

html[data-theme="dark"] .user-dash-empty {
  background: linear-gradient(180deg, #1c2432 0%, #1a202c 100%);
  border-top-color: #2a3242;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) inset;
}

html[data-theme="dark"] .user-dash-empty p strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .user-dash-order-row:hover {
  background: linear-gradient(90deg, #232b38 0%, #1a202c 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pulse-list {
  display: grid;
  gap: 9px;
}

.pulse-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 11px;
  padding: 10px 12px;
}

.pulse-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.pulse-item small {
  color: #8d8d94;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 820px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Role quick-login cards */
.role-login-grid {
  margin: 4px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
}

.role-login-card {
  text-align: left;
  border: 1px solid #e5e8ef;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.role-login-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.role-login-card span {
  color: #7f7f86;
  font-size: 11px;
}

.role-login-card.active,
.role-login-card:hover {
  border-color: var(--dd-role-border);
  background: var(--dd-role-bg);
}

.role-hint {
  margin-top: 6px;
}

.auth-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #f1caca;
  background: #fff1f1;
  color: #9f2d2d;
  border-radius: 10px;
  font-size: 13px;
}

.page-flash {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
}

.page-flash-success {
  background: linear-gradient(180deg, #edf9f1 0%, #e2f4e9 100%);
  border-color: #c9e9d6;
  color: #1f7048;
}

.page-flash-error {
  background: linear-gradient(180deg, #fff3f3 0%, #ffeaea 100%);
  border-color: #f0c9c9;
  color: #9a2f2f;
}

.checkout-success {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #ccead7;
  background: linear-gradient(180deg, #eefaf2 0%, #e4f6ec 100%);
  color: #1f6b45;
  border-radius: 10px;
}

.checkout-success-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
}

.checkout-success-meta {
  font-size: 13px;
  color: #2b7d55;
}

.checkout-success-links {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkout-success-links a {
  color: var(--dd-link);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.checkout-success-links a:hover {
  color: var(--dd-accent-dark);
  border-bottom-color: var(--dd-outline);
}

.checkout-success-wide {
  padding: 16px 18px;
}

.checkout-success-intro,
.checkout-success-next {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #2b7d55;
}

.checkout-success-next {
  margin-top: 12px;
  margin-bottom: 0;
}

.checkout-order-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

.checkout-order-refs span {
  font-size: 13px;
  color: #2b7d55;
}

.checkout-bank-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #c9e0d4;
  background: #ffffff;
  color: #1d2636;
  text-align: left;
}

.checkout-bank-card-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1e3a5f;
}

.checkout-bank-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.checkout-bank-list li {
  margin-bottom: 4px;
}

.checkout-bank-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5c6570;
}

.invoice-section-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #0f172a;
}

.invoice-section-lead {
  margin: 0 0 16px !important;
  max-width: 40rem;
}

.invoice-bank-card-wrap .checkout-bank-card {
  margin-top: 0;
}

.invoice-upload-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: #475569;
}

.invoice-upload-hint a {
  font-weight: 600;
  color: #1e3a5f;
}

.invoice-proof-card .subtitle {
  margin-bottom: 14px;
}

.invoice-proof-image-link {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  line-height: 0;
  max-width: 100%;
}

.invoice-proof-image {
  display: block;
  max-width: min(520px, 100%);
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f8fafc;
}

.invoice-proof-open {
  margin: 12px 0 0;
}

.my-orders-head {
  margin-bottom: 10px;
}

.my-orders-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.my-orders-kpi {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 10px 12px;
}

.my-orders-kpi small {
  display: block;
  color: #8891a1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.my-orders-kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  color: #1d2636;
}

.my-orders-amount {
  font-size: 20px;
  font-weight: 800;
  color: #1d2636;
}

.my-orders-date {
  margin-top: 5px;
  font-size: 11px;
  color: #9199a7;
}

.my-orders-empty {
  border: 1px dashed #d8e0ec;
  border-radius: 12px;
  background: #fafcff;
  padding: 16px;
  text-align: center;
}

.my-orders-empty h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.my-orders-empty p {
  margin: 0;
  color: #7f8896;
  font-size: 13px;
}

.my-orders-row {
  align-items: flex-start;
}

.my-orders-row-main {
  flex: 1;
  min-width: 0;
}

.my-orders-row-actions {
  flex-shrink: 0;
}

.my-orders-proof {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  max-width: 420px;
}

.my-orders-proof-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.my-orders-proof-hint,
.my-orders-proof-na {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.my-orders-proof-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #1d7b4d;
  font-weight: 600;
}

.my-orders-proof-thumb-link {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  line-height: 0;
}

.my-orders-proof-thumb {
  display: block;
  max-height: 100px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.my-orders-proof-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.my-orders-proof-file-label {
  flex: 1;
  min-width: 200px;
}

.my-orders-proof-file-label .input[type="file"] {
  padding: 8px;
  font-size: 12px;
}

.my-orders-proof-submit {
  flex-shrink: 0;
}

.my-orders-invoice-title-link {
  color: inherit;
  text-decoration: none;
}

.my-orders-invoice-title-link:hover {
  color: #1e3a5f;
  text-decoration: underline;
}

.my-orders-invoice-link-wrap {
  margin: 8px 0 0;
}

.my-orders-invoice-detail-link {
  font-size: 13px;
  font-weight: 600;
  color: #2d5a87;
  text-decoration: none;
}

.my-orders-invoice-detail-link:hover {
  color: #c9a227;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .my-orders-row {
    flex-direction: column;
    align-items: stretch;
  }

  .my-orders-row-actions {
    text-align: left;
    justify-items: start;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 4px;
  }

  .my-orders-proof {
    max-width: none;
  }
}

html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .pulse-item,
html[data-theme="dark"] .role-login-card {
  background: #1a202c;
  border-color: #2a3242;
  color: var(--text);
}

html[data-theme="dark"] .kpi-card p,
html[data-theme="dark"] .pulse-item small,
html[data-theme="dark"] .role-login-card span {
  color: #a8b0bf;
}

html[data-theme="dark"] .kpi-card h3 a:hover,
html[data-theme="dark"] .kpi-card p a:hover {
  color: #f1d59b;
  border-bottom-color: #6f5a2d;
}

html[data-theme="dark"] .role-login-card.active,
html[data-theme="dark"] .role-login-card:hover {
  background: #2a2418;
  border-color: var(--dd-role-border);
}

html[data-theme="dark"] .auth-error {
  border-color: #5f3535;
  background: #382424;
  color: #ffd0d0;
}

html[data-theme="dark"] .page-flash-success {
  background: #1e2f26;
  border-color: #2f5b45;
  color: #9ad7b6;
}

html[data-theme="dark"] .page-flash-error {
  background: #3a2525;
  border-color: #6a3b3b;
  color: #ffcccc;
}

html[data-theme="dark"] .checkout-success {
  border-color: #2f5b45;
  background: #1e2f26;
  color: #9ad7b6;
}

html[data-theme="dark"] .checkout-success-meta {
  color: #84c7a4;
}

html[data-theme="dark"] .checkout-success-links a {
  color: #f1d59b;
}

html[data-theme="dark"] .checkout-success-links a:hover {
  color: #ffe4ad;
  border-bottom-color: #6f5a2d;
}

html[data-theme="dark"] .checkout-success-intro,
html[data-theme="dark"] .checkout-success-next {
  color: #9ad7b6;
}

html[data-theme="dark"] .checkout-order-refs span {
  color: #9ad7b6;
}

html[data-theme="dark"] .checkout-bank-card {
  background: #1a202c;
  border-color: #2f4d3d;
  color: #e2e8f0;
}

html[data-theme="dark"] .checkout-bank-card-title {
  color: #f1d59b;
}

html[data-theme="dark"] .checkout-bank-list {
  color: #cbd5e1;
}

html[data-theme="dark"] .checkout-bank-note {
  color: #94a3b8;
}

html[data-theme="dark"] .invoice-section-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .invoice-upload-hint {
  color: #a8b0bf;
}

html[data-theme="dark"] .invoice-upload-hint a {
  color: #f1d59b;
}

html[data-theme="dark"] .invoice-proof-image-link {
  border-color: #2a3242;
}

html[data-theme="dark"] .invoice-proof-image {
  background: #151b24;
}

html[data-theme="dark"] .my-orders-invoice-title-link:hover {
  color: #f1d59b;
}

html[data-theme="dark"] .my-orders-invoice-detail-link {
  color: #7ab8e8;
}

html[data-theme="dark"] .my-orders-invoice-detail-link:hover {
  color: #f1d59b;
}

html[data-theme="dark"] .my-orders-kpi {
  background: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .my-orders-kpi small {
  color: #a8b0bf;
}

html[data-theme="dark"] .my-orders-kpi strong,
html[data-theme="dark"] .my-orders-amount {
  color: #e6ebf5;
}

html[data-theme="dark"] .my-orders-date {
  color: #93a0b5;
}

html[data-theme="dark"] .my-orders-empty {
  background: #1b2230;
  border-color: #2a3447;
}

html[data-theme="dark"] .my-orders-empty p {
  color: #a8b0bf;
}

html[data-theme="dark"] .my-orders-proof {
  border-top-color: #2a3242;
}

html[data-theme="dark"] .my-orders-proof-label,
html[data-theme="dark"] .my-orders-proof-hint,
html[data-theme="dark"] .my-orders-proof-na {
  color: #a8b0bf;
}

html[data-theme="dark"] .my-orders-proof-thumb-link {
  border-color: #2a3242;
}

html[data-theme="dark"] .my-orders-proof-status {
  color: #4ade80;
}

.products-head h2 {
  margin: 0 0 8px;
}

.user-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(270px, 1fr));
  gap: 16px;
}

.user-card {
  border: 1px solid #eceef2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
  border-color: #d9dff0;
}

.user-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.user-card-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6e9f2;
}

.user-card-photo-fallback {
  display: grid;
  place-items: center;
  background: #f2f4f8;
  color: #6d7380;
  font-weight: 700;
}

.user-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.user-card p {
  margin: 0;
  color: #7f7f86;
  font-size: 13px;
}

.user-card-meta {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  color: #83838b;
  font-size: 12px;
}

.user-card-meta b {
  color: #27272d;
}

.user-card-actions {
  margin-top: 12px;
  display: flex;
}

.users-head {
  margin-bottom: 14px;
}

.users-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.users-stat-card {
  border: 1px solid #eceef2;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.users-stat-card small {
  display: block;
  color: #8a8f9b;
  font-size: 12px;
  margin-bottom: 6px;
}

.users-stat-card strong {
  color: #242834;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.users-filter-card {
  border-radius: 16px;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .user-card-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .user-card {
  background: #1a202c;
  border-color: #2a3242;
}

html[data-theme="dark"] .product-thumb,
html[data-theme="dark"] .form-preview-image,
html[data-theme="dark"] .user-card-photo {
  border-color: #2a3242;
}

html[data-theme="dark"] .user-card p,
html[data-theme="dark"] .user-card-meta {
  color: #a8b0bf;
}

html[data-theme="dark"] .user-card-meta b {
  color: #edf2fb;
}

.users-filter-bar {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.users-filter-actions {
  display: flex;
  gap: 8px;
}

.users-list-card {
  border-radius: 16px;
}

.users-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.users-list-head h2 {
  margin: 0;
}

.users-list-head span {
  font-size: 12px;
  color: #8a8f9b;
}

.pagination-bar {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #7f7f86;
}

.pagination-links {
  display: flex;
  gap: 8px;
}

@media (max-width: 1100px) {
  .users-stats {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .users-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .products-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .users-stats {
    grid-template-columns: 1fr;
  }

  .users-filter-bar {
    grid-template-columns: 1fr;
  }

  .products-filter-bar {
    grid-template-columns: 1fr;
  }

  .users-filter-actions {
    justify-content: stretch;
  }

  .users-filter-actions .btn-light,
  .users-filter-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .users-list-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-filter-actions .btn-light,
  .products-filter-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

html[data-theme="dark"] .pagination-bar {
  color: #a8b0bf;
}

html[data-theme="dark"] .users-stat-card,
html[data-theme="dark"] .users-filter-card,
html[data-theme="dark"] .users-list-card {
  background: #1a202c;
  border-color: #2a3242;
  box-shadow: none;
}

html[data-theme="dark"] .users-stat-card small,
html[data-theme="dark"] .users-list-head span {
  color: #a8b0bf;
}

html[data-theme="dark"] .users-stat-card strong {
  color: #edf2fb;
}

html[data-theme="dark"] .user-card {
  background: linear-gradient(180deg, #1b2230 0%, #151b27 100%);
}

/* --- Public plans / subscriptions landing (redesigned) --- */
.plans-public-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f1f4f9;
  overflow-x: hidden;
}

.plans-public-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(45, 90, 135, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 70%, rgba(30, 58, 95, 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f8 45%, #f5f2eb 100%);
  z-index: 0;
}

.plans-public-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(30, 58, 95, 0.07);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.plans-public-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plans-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1e3a5f;
}

.plans-public-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f, #2d5a87);
  color: #f8e6a8;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
}

.plans-public-brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.plans-public-brand:hover .plans-public-brand-text {
  color: #c9a227;
}

.plans-public-nav-links {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plans-theme-btn {
  border: 1px solid rgba(30, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.plans-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 6px 4px;
}

.plans-nav-link:hover {
  color: #1e3a5f;
}

.plans-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.plans-nav-cta--primary {
  background: linear-gradient(135deg, #b8922e 0%, #c9a227 40%, #a67c12 100%);
  color: #1a1520;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}

.plans-nav-cta--primary:hover {
  filter: brightness(1.05);
  color: #0f172a;
}

.plans-nav-cta--ghost {
  background: transparent;
  border-color: rgba(30, 58, 95, 0.18);
  color: #1e3a5f;
}

.plans-nav-cta--ghost:hover {
  border-color: #1e3a5f;
  background: rgba(30, 58, 95, 0.04);
}

.plans-public-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 56px;
}

/* Hero */
.plans-hero {
  padding: 48px 0 40px;
}

.plans-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px 40px;
  align-items: center;
}

.plans-hero-copy {
  text-align: left;
}

.plans-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b8860b;
}

.plans-hero-title {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.plans-hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #475569;
}

.plans-hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.plans-trust {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.plans-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.plans-trust-icon {
  color: #c9a227;
  font-size: 10px;
  opacity: 0.85;
}

.plans-hero-art {
  position: relative;
  min-height: 280px;
}

.plans-hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(145deg, #1e3a5f 0%, #2d5a87 45%, #c9a227 100%);
  opacity: 0.95;
  filter: blur(0px);
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.28);
}

.plans-hero-card {
  position: absolute;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.plans-hero-card--a {
  width: 52%;
  height: 120px;
  left: 0;
  bottom: 18%;
}

.plans-hero-card--b {
  width: 44%;
  height: 88px;
  right: 0;
  top: 12%;
}

/* Buttons (plans page) */
.plans-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s, border-color 0.2s, background 0.2s;
}

.plans-btn:active {
  transform: scale(0.98);
}

.plans-btn--primary {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3);
}

.plans-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.35);
}

.plans-btn--outline {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(30, 58, 95, 0.2);
  color: #1e3a5f;
}

.plans-btn--outline:hover {
  border-color: #1e3a5f;
  background: #fff;
}

.plans-btn--ghost {
  background: transparent;
  border-color: rgba(30, 58, 95, 0.15);
  color: #334155;
}

.plans-btn--ghost:hover {
  background: rgba(30, 58, 95, 0.06);
  border-color: rgba(30, 58, 95, 0.25);
}

.plans-btn--block {
  width: 100%;
  text-align: center;
}

.plans-btn--on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.plans-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Empty state */
.plans-empty {
  margin: 20px 0 40px;
  padding: 48px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.plans-empty-inner {
  max-width: 460px;
  margin: 0 auto;
}

.plans-empty-icon {
  font-size: 2.5rem;
  color: #c9a227;
  margin-bottom: 16px;
  opacity: 0.9;
}

.plans-empty-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: #0f172a;
}

.plans-empty-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

.plans-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* How it works */
.plans-steps {
  margin-bottom: 40px;
  padding: 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(30, 58, 95, 0.07);
}

.plans-section-title {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.plans-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plans-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(30, 58, 95, 0.06);
}

.plans-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), rgba(201, 162, 39, 0.12));
}

.plans-step-body {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.plans-step-body strong {
  color: #1e3a5f;
}

/* Catalog */
.plans-catalog {
  margin-bottom: 48px;
}

.plans-catalog-head {
  margin-bottom: 24px;
}

.plans-catalog-sub {
  margin: 0;
  max-width: 42rem;
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
}

.plans-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plans-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.plans-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.plans-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 280px;
}

.plans-card--featured .plans-card-media {
  flex: 0 0 42%;
  max-width: 420px;
  min-height: 100%;
  aspect-ratio: auto;
}

.plans-card--featured .plans-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 28px 26px;
}

.plans-card--featured .plans-card-actions {
  flex-direction: row;
  flex-wrap: wrap;
}

.plans-card--featured .plans-btn--block {
  width: auto;
  min-width: 160px;
}

.plans-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 55%, #8b6914 100%);
  overflow: hidden;
}

.plans-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
}

.plans-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plans-card-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.plans-card-media-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.plans-card-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1520;
  background: linear-gradient(135deg, #f0d78c, #c9a227);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plans-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  gap: 16px;
}

.plans-card-top {
  flex: 1;
}

.plans-card-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e3a5f;
  background: rgba(201, 162, 39, 0.2);
}

.plans-card-name {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
}

.plans-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.plans-card-bottom {
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.plans-card-price-block {
  margin-bottom: 16px;
}

.plans-card-price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #1e3a5f;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plans-card-price--free {
  font-size: 1.75rem;
  color: #15803d;
}

.plans-card-currency {
  font-size: 1.1rem;
  font-weight: 700;
  vertical-align: 0.15em;
  margin-right: 2px;
}

.plans-card-price-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: lowercase;
}

.plans-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bottom CTA panel */
.plans-cta-panel {
  margin-top: 8px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #24364f 35%, #2d5a87 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.35);
}

.plans-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 32px 34px;
}

.plans-cta-title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: #fff;
}

.plans-cta-text {
  margin: 0;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.85);
}

.plans-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.plans-cta-actions .plans-btn--primary {
  background: linear-gradient(135deg, #f0d78c 0%, #c9a227 100%);
  color: #1a1520;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.plans-cta-actions .plans-btn--primary:hover {
  filter: brightness(1.06);
}

/* Footer */
.plans-public-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.plans-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.plans-footer-copy {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.plans-footer-nav {
  display: flex;
  gap: 20px;
}

.plans-footer-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  text-decoration: none;
}

.plans-footer-nav a:hover {
  color: #c9a227;
}

@media (max-width: 960px) {
  .plans-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .plans-hero-copy {
    text-align: center;
  }

  .plans-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .plans-hero-actions {
    justify-content: center;
  }

  .plans-trust {
    justify-content: center;
  }

  .plans-hero-art {
    min-height: 220px;
    order: -1;
  }

  .plans-hero-orb {
    right: 50%;
    transform: translate(50%, -40%);
    width: 220px;
    height: 220px;
  }

  .plans-hero-card--a,
  .plans-hero-card--b {
    display: none;
  }

  .plans-card--featured {
    flex-direction: column;
  }

  .plans-card--featured .plans-card-media {
    flex: none;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .plans-card--featured .plans-card-actions {
    flex-direction: column;
  }

  .plans-card--featured .plans-btn--block {
    width: 100%;
  }

  .plans-steps-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .plans-public-nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .plans-public-nav-links {
    justify-content: center;
  }

  .plans-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .plans-cta-actions {
    justify-content: center;
    width: 100%;
  }

  .plans-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Dark theme */
html[data-theme="dark"] .plans-public-page {
  background: #0c1016;
}

html[data-theme="dark"] .plans-public-bg {
  background:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 25%, rgba(45, 90, 135, 0.15), transparent 50%),
    linear-gradient(180deg, #121820 0%, #0f1419 50%, #15101a 100%);
}

html[data-theme="dark"] .plans-public-nav {
  background: rgba(18, 24, 32, 0.88);
  border-bottom-color: #2a3242;
}

html[data-theme="dark"] .plans-theme-btn {
  background: rgba(30, 38, 50, 0.9);
  border-color: #2a3242;
  color: #e2e8f0;
}

html[data-theme="dark"] .plans-public-brand {
  color: #e8ecf4;
}

html[data-theme="dark"] .plans-nav-link {
  color: #a8b0bf;
}

html[data-theme="dark"] .plans-nav-cta--ghost {
  border-color: #3d4a5f;
  color: #e2e8f0;
}

html[data-theme="dark"] .plans-hero-title,
html[data-theme="dark"] .plans-section-title,
html[data-theme="dark"] .plans-card-name,
html[data-theme="dark"] .plans-empty-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .plans-hero-lead,
html[data-theme="dark"] .plans-catalog-sub,
html[data-theme="dark"] .plans-card-desc,
html[data-theme="dark"] .plans-empty-text {
  color: #94a3b8;
}

html[data-theme="dark"] .plans-trust li {
  color: #94a3b8;
}

html[data-theme="dark"] .plans-steps {
  background: rgba(22, 28, 38, 0.85);
  border-color: #2a3242;
}

html[data-theme="dark"] .plans-step {
  background: rgba(15, 20, 28, 0.9);
  border-color: #2a3242;
}

html[data-theme="dark"] .plans-step-body {
  color: #a8b0bf;
}

html[data-theme="dark"] .plans-step-body strong {
  color: var(--dd-link-muted);
}

html[data-theme="dark"] .plans-card {
  background: #161d28;
  border-color: #2a3242;
  box-shadow: none;
}

html[data-theme="dark"] .plans-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .plans-card-bottom {
  border-top-color: #2a3242;
}

html[data-theme="dark"] .plans-card-price {
  color: var(--dd-link-muted);
}

html[data-theme="dark"] .plans-card-price--free {
  color: #4ade80;
}

html[data-theme="dark"] .plans-empty {
  background: rgba(22, 28, 38, 0.9);
  border-color: #2a3242;
}

html[data-theme="dark"] .plans-btn--outline {
  background: rgba(30, 38, 50, 0.6);
  border-color: #3d4a5f;
  color: #e2e8f0;
}

html[data-theme="dark"] .plans-btn--ghost {
  border-color: #3d4a5f;
  color: #cbd5e1;
}

html[data-theme="dark"] .plans-public-footer {
  background: rgba(15, 20, 28, 0.92);
  border-top-color: #2a3242;
}

html[data-theme="dark"] .plans-footer-copy {
  color: #94a3b8;
}

html[data-theme="dark"] .plans-footer-nav a {
  color: var(--dd-link-muted);
}

/* ----- Printable order receipt (invoice template) ----- */
.inv-print-body {
  margin: 0;
  padding: 24px 16px 48px;
  background: #e8eaef;
  min-height: 100vh;
  box-sizing: border-box;
}

.inv-receipt-card {
  padding: 20px 18px 28px;
  overflow: auto;
  background: #fff !important;
  border-color: #e4e6ec !important;
}

.inv-receipt {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.inv-receipt-inner {
  width: 100%;
  padding-top: 8px;
}

.inv-receipt-logo-row {
  margin-bottom: 18px;
}

.inv-receipt-logo-wrap {
  overflow: hidden;
}

.inv-receipt-logo {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.inv-receipt-company-name {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.inv-receipt-banner {
  background-color: #fcaf3b;
  padding: 10px 12px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 18px;
  border-radius: 4px;
}

.inv-receipt-divider {
  height: 2px;
  background: #000;
  margin: 18px 0;
}

.inv-receipt-details {
  margin-bottom: 18px;
}

.inv-receipt-details p {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.inv-receipt-h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.inv-receipt-h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.inv-receipt-lead {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.inv-receipt-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.inv-receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.inv-receipt-table th,
.inv-receipt-table td {
  border: 1px solid #222;
  padding: 10px 12px;
  text-align: left;
}

.inv-receipt-table th {
  font-weight: 600;
  background: #f6f6f6;
}

.inv-receipt-totals {
  background-color: #fcaf3b;
  padding: 14px 16px;
  margin-top: 18px;
  border-radius: 4px;
  border-bottom: 2px solid #000;
}

.inv-receipt-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 6px;
}

.inv-receipt-total-row:last-child {
  margin-bottom: 0;
}

.inv-receipt-total-main {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  font-size: 1.25rem;
  font-weight: 600;
}

.inv-receipt-tax-note {
  text-align: right;
  padding: 8px 6px;
  border-radius: 4px;
  border-bottom: 2px solid #000;
  font-weight: 700;
}

.inv-receipt-bank {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #222;
  border-radius: 6px;
  background: #fafafa;
}

.inv-receipt-bank-list {
  margin: 0;
  padding-left: 1.2rem;
}

.inv-receipt-bank-list li {
  margin-bottom: 6px;
}

.inv-receipt-bank-note {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #333;
}

.inv-receipt-upload-hint {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.inv-receipt-upload-hint a {
  font-weight: 600;
}

.inv-receipt-proof {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #ccc;
}

.inv-receipt-proof-lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #444;
}

.inv-receipt-proof-link {
  display: inline-block;
  max-width: 100%;
}

.inv-receipt-proof-img {
  display: block;
  max-width: min(420px, 100%);
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.inv-receipt-footer-block {
  text-align: center;
  margin-top: 18px;
  padding: 12px 8px;
  border-radius: 4px;
  border-bottom: 2px solid #000;
}

.inv-receipt-footer-block p {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.inv-receipt-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.inv-receipt-social a {
  font-weight: 600;
  color: var(--dd-link);
}

.inv-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.inv-receipt-actions .btn-primary,
.inv-receipt-actions .btn-light,
.inv-receipt-actions .btn-ghost {
  text-decoration: none;
  cursor: pointer;
  border: none;
  font: inherit;
}

.invoice-print-link {
  color: var(--dd-link);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.invoice-print-link:hover {
  border-bottom-color: var(--dd-link);
}

@media print {
  .inv-receipt-no-print,
  .inv-receipt-actions {
    display: none !important;
  }

  .inv-print-body,
  .inv-receipt-card,
  .page-frame,
  .content-dashboard {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .inv-receipt {
    max-width: 100%;
  }
}

html[data-theme="dark"] .inv-receipt-card {
  background: #fff !important;
  color: #111 !important;
}

html[data-theme="dark"] .inv-receipt {
  background: #fff;
  color: #111;
}

/* —— Orders admin (super admin) —— */
.orders-admin-page .products-wrap.orders-admin-wrap {
  max-width: 1100px;
}

.orders-admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 40px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.orders-admin-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-dark));
  opacity: 0.9;
  pointer-events: none;
}

.orders-admin-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dd-accent-text);
}

.orders-admin-title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.orders-admin-lead {
  margin: 0;
  max-width: 42ch;
  line-height: 1.55;
}

.orders-admin-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 88px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.orders-kpi:hover {
  transform: translateY(-2px);
  border-color: var(--dd-accent-border);
  box-shadow: 0 10px 24px rgba(var(--dd-btn-shadow), 0.12);
}

.orders-kpi.is-active {
  border-color: var(--dd-accent);
  background: linear-gradient(180deg, var(--dd-accent-soft) 0%, #fff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 22px rgba(var(--dd-btn-shadow), 0.14);
}

.orders-kpi--muted:hover {
  border-color: #cbd5e1;
}

.orders-kpi--all {
  border-style: dashed;
}

.orders-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

.orders-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.orders-kpi.is-active .orders-kpi-label {
  color: var(--dd-accent-text);
}

.orders-admin-filter-card {
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.orders-admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}

.orders-admin-search {
  flex: 1 1 240px;
}

.orders-admin-search-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.orders-admin-search-input {
  width: 100%;
}

.orders-admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.orders-admin-chips {
  margin-bottom: 8px;
}

.filter-chip--static {
  cursor: default;
  pointer-events: none;
  opacity: 0.95;
}

.orders-admin-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.orders-admin-list-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}

.orders-admin-list-count {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.orders-admin-grid {
  display: grid;
  gap: 14px;
}

.order-admin-card {
  border-radius: 18px;
  border: 1px solid #e7ebf2;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.order-admin-card:hover {
  transform: translateY(-2px);
  border-color: #d0d7e2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 44px rgba(15, 23, 42, 0.09);
}

.order-admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.65);
}

.order-admin-card-ids {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-admin-no {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.order-admin-inv {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.orders-status-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orders-status-badge--placed {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.orders-status-badge--processing {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.orders-status-badge--completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.orders-status-badge--cancelled {
  background: #f4f4f5;
  color: #71717a;
  border: 1px solid #e4e4e7;
}

.order-admin-card-body {
  padding: 14px 16px 12px;
}

.order-admin-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.order-admin-meta-block {
  min-width: 0;
}

.order-admin-meta-k {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.order-admin-meta-v {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  word-break: break-word;
}

.order-admin-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.order-admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px dashed rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.5);
}

.order-admin-status-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
  min-width: 140px;
}

.order-admin-status-label-text {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.order-admin-status-select {
  width: 100%;
}

.order-admin-invoice {
  text-decoration: none;
  white-space: nowrap;
}

.order-admin-save {
  margin-left: auto;
}

.orders-admin-empty {
  padding: 12px 0;
}

.orders-admin-empty-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.orders-admin-empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.85;
}

.orders-admin-empty-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #334155;
}

@media (max-width: 720px) {
  .order-admin-meta {
    grid-template-columns: 1fr;
  }

  .order-admin-save {
    margin-left: 0;
    width: 100%;
  }

  .order-admin-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .order-admin-invoice {
    text-align: center;
  }
}

html[data-theme="dark"] .orders-admin-hero {
  background: linear-gradient(145deg, #1a202c 0%, #171923 100%);
  border-color: #2d3748;
}

html[data-theme="dark"] .orders-admin-title,
html[data-theme="dark"] .orders-kpi-value,
html[data-theme="dark"] .order-admin-no,
html[data-theme="dark"] .order-admin-amount {
  color: #f1f5f9;
}

html[data-theme="dark"] .orders-admin-lead,
html[data-theme="dark"] .order-admin-inv {
  color: #94a3b8;
}

html[data-theme="dark"] .orders-kpi {
  background: rgba(26, 32, 44, 0.92);
  border-color: #2d3748;
}

html[data-theme="dark"] .orders-kpi.is-active {
  background: linear-gradient(180deg, rgba(190, 147, 52, 0.15) 0%, #1a202c 100%);
}

html[data-theme="dark"] .orders-admin-filter-card,
html[data-theme="dark"] .order-admin-card {
  background: linear-gradient(165deg, #1a202c 0%, #171923 100%);
  border-color: #2d3748;
}

html[data-theme="dark"] .order-admin-card-top {
  background: rgba(23, 25, 35, 0.85);
  border-bottom-color: #2d3748;
}

html[data-theme="dark"] .order-admin-meta-v {
  color: #e2e8f0;
}

html[data-theme="dark"] .orders-admin-list-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .orders-status-badge--placed {
  background: rgba(194, 65, 12, 0.2);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.35);
}

html[data-theme="dark"] .orders-status-badge--processing {
  background: rgba(29, 78, 216, 0.22);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

html[data-theme="dark"] .orders-status-badge--completed {
  background: rgba(4, 120, 87, 0.2);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

html[data-theme="dark"] .orders-status-badge--cancelled {
  background: #27272a;
  color: #a1a1aa;
  border-color: #3f3f46;
}

html[data-theme="dark"] .orders-admin-empty-card {
  background: #1a202c;
  border-color: #2d3748;
}

html[data-theme="dark"] .orders-admin-empty-title {
  color: #e2e8f0;
}

/* —— Staff dashboard (manager / super admin) —— */
.dash-admin-flash {
  margin: 0 0 14px;
}

.dash-admin-hero {
  display: grid;
  grid-template-columns: 1.2fr minmax(120px, 280px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 24px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 40%, #eef2ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 18px 48px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.dash-admin-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dd-accent), var(--dd-accent-dark));
  opacity: 0.92;
  pointer-events: none;
}

.dash-admin-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dd-accent-text);
}

.dash-admin-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.dash-admin-lead {
  margin: 0 0 16px;
  max-width: 52ch;
  line-height: 1.55;
}

.dash-admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dash-admin-hero-aside {
  position: relative;
  border-radius: 18px;
  min-height: 120px;
  background: linear-gradient(160deg, var(--dd-accent-soft), #e0e7ff 55%, #c7d2fe);
  border: 1px solid rgba(199, 210, 254, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dash-admin-hero-glow {
  position: absolute;
  inset: 18% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.dash-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.dash-admin-kpi {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.dash-admin-kpi small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.dash-admin-kpi-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
}

.dash-admin-kpi-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.dash-admin-shell {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 20px;
  align-items: start;
}

.dash-admin-main {
  min-width: 0;
}

.dash-shared-snapshot {
  margin-bottom: 22px;
}

.dash-admin-section {
  margin-bottom: 26px;
}

.dash-admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-admin-h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
}

.dash-admin-section-lead {
  margin: 0;
}

.dash-admin-table {
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.dash-admin-table-head,
.dash-admin-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.9fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  font-size: 13px;
}

.dash-admin-table-head {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid #eef2f7;
}

.dash-admin-table-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.dash-admin-table-row:last-child {
  border-bottom: 0;
}

.dash-admin-table-row:hover {
  background: #fcfdff;
}

.dash-admin-table-row--empty {
  color: #64748b;
  font-weight: 600;
}

.dash-admin-cell-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dash-admin-link {
  font-weight: 800;
  color: var(--dd-link);
  text-decoration: none;
}

.dash-admin-link:hover {
  text-decoration: underline;
}

.dash-admin-cell-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.dash-admin-cell-num {
  font-weight: 700;
  color: #0f172a;
}

.dash-admin-cell-num small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.dash-admin-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #475569;
}

.dash-admin-pill--pending {
  background: #fff7ed;
  color: #c2410c;
}

.dash-admin-pill--processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.dash-admin-pill--completed {
  background: #ecfdf5;
  color: #047857;
}

.dash-admin-pill--cancelled {
  background: #f4f4f5;
  color: #71717a;
}

.dash-admin-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.dash-admin-spotlight {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dash-admin-spotlight:hover {
  transform: translateY(-3px);
  border-color: var(--dd-accent-border);
  box-shadow: 0 14px 32px rgba(var(--dd-btn-shadow), 0.12);
}

.dash-admin-spotlight-media {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}

.dash-admin-spotlight-media--empty {
  background: linear-gradient(145deg, var(--dd-accent-soft), #e2e8f0);
}

.dash-admin-spotlight-body {
  padding: 12px 14px 14px;
}

.dash-admin-spotlight-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
}

.dash-admin-spotlight-price {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--dd-accent-text);
}

.dash-admin-spotlight-price span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.dash-admin-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.dash-admin-activity-empty {
  padding: 20px 16px;
  color: #64748b;
  font-weight: 600;
}

.dash-admin-activity-item {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.dash-admin-activity-item:last-child {
  border-bottom: 0;
}

.dash-admin-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--dd-accent), var(--dd-accent-dark));
  box-shadow: 0 0 0 3px var(--dd-accent-soft);
}

.dash-admin-activity-copy strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.dash-admin-activity-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

.dash-admin-activity-amt {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
}

.dash-admin-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.dash-admin-side-card {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.dash-admin-side-card--accent {
  border-color: var(--dd-accent-border);
  background: linear-gradient(180deg, var(--dd-accent-soft) 0%, #fff 55%);
}

.dash-admin-side-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}

.dash-admin-quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-admin-quick a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-admin-quick a:hover {
  background: var(--dd-accent-soft);
  color: var(--dd-accent-text);
}

.dash-admin-pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-admin-pipeline li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(203, 213, 225, 0.85);
  font-size: 13px;
}

.dash-admin-pipeline li:last-child {
  border-bottom: 0;
}

.dash-admin-pipeline span {
  color: #64748b;
  font-weight: 600;
}

.dash-admin-pipeline strong {
  font-size: 1.05rem;
  color: #0f172a;
}

@media (max-width: 1024px) {
  .dash-admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-admin-shell {
    grid-template-columns: 1fr;
  }

  .dash-admin-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dash-admin-side-card {
    flex: 1 1 240px;
  }
}

@media (max-width: 720px) {
  .dash-admin-hero {
    grid-template-columns: 1fr;
  }

  .dash-admin-hero-aside {
    min-height: 100px;
  }

  .dash-admin-table-head,
  .dash-admin-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dash-admin-table-head span:nth-child(2),
  .dash-admin-table-head span:nth-child(3) {
    display: none;
  }

  .dash-admin-activity-item {
    grid-template-columns: 8px 1fr;
    grid-template-rows: auto auto;
  }

  .dash-admin-activity-item .dash-admin-pill {
    grid-column: 2;
  }

  .dash-admin-activity-amt {
    grid-column: 2;
  }
}

html[data-theme="dark"] .dash-admin-hero {
  background: linear-gradient(135deg, #1a202c 0%, #171923 100%);
  border-color: #2d3748;
}

html[data-theme="dark"] .dash-admin-title,
html[data-theme="dark"] .dash-admin-kpi-num,
html[data-theme="dark"] .dash-admin-h2,
html[data-theme="dark"] .dash-admin-link,
html[data-theme="dark"] .dash-admin-cell-num,
html[data-theme="dark"] .dash-admin-spotlight-body h3,
html[data-theme="dark"] .dash-admin-activity-copy strong,
html[data-theme="dark"] .dash-admin-activity-amt,
html[data-theme="dark"] .dash-admin-pipeline strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .dash-admin-kpi,
html[data-theme="dark"] .dash-admin-table,
html[data-theme="dark"] .dash-admin-activity,
html[data-theme="dark"] .dash-admin-side-card,
html[data-theme="dark"] .dash-admin-spotlight {
  background: #1a202c;
  border-color: #2d3748;
}

html[data-theme="dark"] .dash-admin-table-head {
  background: #171923;
  border-bottom-color: #2d3748;
}

html[data-theme="dark"] .dash-admin-table-row:hover {
  background: #202633;
}

html[data-theme="dark"] .dash-admin-quick a {
  color: #e2e8f0;
}

html[data-theme="dark"] .dash-admin-quick a:hover {
  background: rgba(190, 147, 52, 0.12);
}

/* Login history styles live in /login-history.css (loaded from user-login-history.php). */
