:root {
  --bg: #0b0b0c;
  --bg-elev: #0f0f11;
  --bg-soft: #131316;
  --border: #1a1a1d;
  --border-strong: #232328;
  --text: #f2f2f4;
  --text-dim: #7a7a82;
  --text-faint: #4a4a52;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

img, svg { display: block; max-width: 100%; }

* {
  scrollbar-width: thin;
  scrollbar-color: #2a2a31 transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #2a2a31;
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover { background: #3a3a44; }
*::-webkit-scrollbar-corner { background: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text-dim);
}
.btn-secondary:hover { color: var(--text); background: var(--bg-elev); }

.btn-primary {
  color: var(--bg);
  background: var(--text);
}
.btn-primary:hover { background: #d8d8dc; }

.btn-sm { padding: 7px 12px; font-size: 13px; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 11, 12, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-lg {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  gap: 12px !important;
}
.logo-lg .logo-img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text);
}

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 255, 255, 0.025), transparent 70%);
}

.hero > .container { position: relative; z-index: 1; }

.hero-preview {
  margin-top: 64px;
  perspective: 1500px;
}

.hero-preview-window {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02);
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
  transition: transform 0.4s ease;
}

.hero-preview-window:hover { transform: translateY(-2px); }

.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-preview-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.hero-preview-body {
  padding: 24px;
}

.hero-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.hero-preview-stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.hp-label {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.hp-value {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.hp-delta {
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hp-delta.up { color: var(--green); }
.hp-delta.down { color: var(--red); }

.hero-preview-chart {
  height: 140px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 12px;
}

.hero-preview-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 640px) {
  .hero-preview { margin-top: 48px; }
  .hero-preview-stats { grid-template-columns: 1fr; gap: 8px; }
  .hero-preview-body { padding: 16px; }
  .hero-preview-chart { height: 100px; }
  .hp-value { font-size: 17px; }
  .hero-preview-url { display: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero p.sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-stats .stat {
  padding: 24px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.landing-stats .stat:last-child { border-right: none; }

.landing-stats .stat-value {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.landing-stats .stat-label {
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

section.features {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto;
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature h3 {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.feature-num {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

section.pricing {
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.pricing-num {
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-label {
  color: var(--text-dim);
  font-size: clamp(13px, 1.6vw, 15px);
  margin-bottom: 32px;
  padding: 0 16px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-meta {
  color: var(--text-faint);
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--text); }

body.dashboard { font-size: 14px; }

.layout {
  padding-left: 220px;
  min-height: 100vh;
}

aside.sidebar {
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
  z-index: 40;
}

aside.sidebar .logo {
  padding: 6px 10px;
  margin-bottom: 14px;
  font-size: 18px;
  gap: 14px;
}
aside.sidebar .logo .logo-img {
  width: 51px;
  height: 51px;
  border-radius: 14px;
}

.sidebar-store-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-store-name {
  flex: 1;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-bell {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.sidebar-bell:hover { background: var(--bg-elev); color: var(--text); }
.sidebar-bell-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f87171;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bg);
}
.sidebar-bell-count.hidden { display: none; }

.notif-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
}
.notif-item {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
  text-decoration: none;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item .notif-msg { line-height: 1.4; }
.notif-item .notif-time { color: var(--text-faint); font-size: 11px; margin-top: 2px; }
.notif-item.unread { background: rgba(74, 222, 128, 0.05); }
.notif-wrap { position: relative; }

.fb-list { display: flex; flex-direction: column; }
.fb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
}
.fb-row:last-child { border-bottom: none; }
.fb-row:hover { background: var(--bg-soft); }
.fb-row-main { flex: 1; min-width: 0; }
.fb-row-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.fb-row-product { font-weight: 500; color: var(--text); font-size: 13.5px; }
.fb-row-comment {
  color: var(--text-dim); font-size: 12.5px;
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fb-row-meta { color: var(--text-faint); font-size: 11.5px; display: flex; gap: 6px; }
.fb-stars { color: #f5c14b; font-size: 13px; letter-spacing: 1px; }
.fb-stars-empty { color: var(--border-strong); }
.fb-comment {
  white-space: pre-wrap;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.nav-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: all 0.12s ease;
  cursor: pointer;
}
.nav-item:hover { color: var(--text); background: var(--bg-elev); }
.nav-item.active { color: var(--text); background: var(--bg-elev); }

.nav-item svg { flex-shrink: 0; opacity: 0.9; }

.sidebar-foot {
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #222);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 500; }
.user-mail { font-size: 11.5px; color: var(--text-faint); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 35;
}
.sidebar-backdrop.open { display: block; }

main.dashboard-main {
  padding: 24px clamp(20px, 3vw, 40px) 48px;
  width: 100%;
  min-width: 0;
}

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

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text);
}

.topbar h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.topbar .sub {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  min-width: 0;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.stat-title {
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-delta {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.stat-delta.up { color: var(--green); background: rgba(74, 222, 128, 0.08); }
.stat-delta.down { color: var(--red); background: rgba(248, 113, 113, 0.08); }

.stat-value {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
}

.card-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.range-tabs {
  position: relative;
  display: flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.date-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px;
  z-index: 30;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.date-pop.open { display: block; }

.date-pop-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.date-pop-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.date-pop-row input[type="date"] {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 9px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  color-scheme: dark;
  outline: none;
  transition: border-color 0.15s ease;
}
.date-pop-row input[type="date"]:focus { border-color: var(--border-strong); }

.date-pop-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.range-tab {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  transition: all 0.12s ease;
}
.range-tab.active { background: var(--border-strong); color: var(--text); }
.range-tab:hover:not(.active) { color: var(--text); }

.chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 8px;
}

.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #1f1f24;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 6px));
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip .t-date {
  color: var(--text-faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.chart-tooltip .t-val {
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.bottom-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}

.mid-grid {
  margin-top: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.mid-grid > .card { min-width: 0; }

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.three-grid > .card { min-width: 0; }

.payment-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-stat-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
}

.payment-stat-row .method-icon {
  width: 22px;
  height: 22px;
}

.payment-stat-info { min-width: 0; }

.payment-stat-name {
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 5px;
}

.payment-stat-bar {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
}

.payment-stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--text-dim), var(--text));
  border-radius: 2px;
}

.payment-stat-value {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-count {
  color: var(--text-faint);
  margin-left: 2px;
}

.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-weight: 500;
  color: var(--text-faint);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

td.product { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.pill-dot.pending { background: var(--yellow); }
.pill-dot.refunded { background: var(--text-dim); }
.pill-dot.failed { background: var(--red); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px 8px 34px;
  outline: none;
  transition: border-color 0.15s ease;
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { border-color: var(--border-strong); }

.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.chip-group {
  display: flex;
  gap: 2px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.chip {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  transition: all 0.12s ease;
  cursor: pointer;
  font-family: inherit;
}
.chip.active { background: var(--border-strong); color: var(--text); }
.chip:hover:not(.active) { color: var(--text); }

.chip-count {
  font-size: 11px;
  margin-left: 4px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.chip.active .chip-count { color: var(--text-dim); }

.order-id {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--text); }

.order-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.order-detail-head-main { min-width: 0; flex: 1; }

.order-detail-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.order-detail-id {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  line-height: 1.3;
}

.product-detail-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.order-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.order-detail-amount {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.order-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.order-col > .card:only-child,
.order-col > .card:nth-last-child(2) {
  flex: 1;
}

.order-grid.align-start { align-items: start; }
.order-grid:has(.order-col:only-child) { grid-template-columns: 1fr; }
.sel-card-disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
}
.order-grid.align-start .order-col > .card:only-child,
.order-grid.align-start .order-col > .card:nth-last-child(2) {
  flex: 0 0 auto;
}

.card:has(.icon-actions) {
  padding: 0;
}
.drawer-section:has(.icon-actions) {
  padding: 12px 16px;
}
.drawer-section:has(.icon-actions) .drawer-section-title {
  margin-bottom: 8px;
}

.order-actions {
  display: flex;
  gap: 8px;
}
.order-actions .btn { flex: 1; }

.icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg);
}

.icon-btn::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f24;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}
.icon-btn::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: #1f1f24;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.icon-btn:hover::before,
.icon-btn:hover::after { opacity: 1; }

.flag-img {
  display: inline-block;
  width: 20px;
  height: auto;
  margin-right: 6px;
  vertical-align: -3px;
  border-radius: 2px;
}

.amount-refunded {
  text-decoration: line-through;
  color: var(--text-faint);
}

.vpn-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
}
.vpn-pill.yes {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
.vpn-pill.no {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.discord-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  cursor: context-menu;
}

.discord-pfp {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.2;
  gap: 2px;
}

.discord-username {
  font-size: 11.5px;
  color: #c9cdfb;
  background: rgba(88, 101, 242, 0.15);
  padding: 0 1px;
  border-radius: 3px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.discord-cell:hover .discord-username {
  background: rgba(88, 101, 242, 0.3);
  color: #ffffff;
}

.discord-display {
  font-size: 11.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}

.discord-pfp-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.discord-profile-display {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.discord-profile-username {
  align-self: flex-start;
  display: inline-block;
  font-size: 13px;
  color: #c9cdfb;
  background: rgba(88, 101, 242, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.12s ease;
  width: fit-content;
}
.discord-profile-username:hover {
  background: rgba(88, 101, 242, 0.3);
  color: #ffffff;
}

.discord-profile-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 4px;
  cursor: context-menu;
  word-break: break-all;
}
.discord-profile-id:hover { color: var(--text-dim); }

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  z-index: 200;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.payment-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease;
}
.payment-card.enabled {
  border-color: rgba(74, 222, 128, 0.35);
}

.payment-card.coming-soon-card {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.6);
}
.payment-card.coming-soon-card .payment-card-foot {
  pointer-events: auto;
}
.payment-card.coming-soon-card:hover {
  transform: none;
  border-color: var(--border);
}
.payment-card.coming-soon-card .toggle,
.payment-card.coming-soon-card .settings-btn {
  cursor: not-allowed;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.4s ease-out backwards;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.product-card:nth-child(1) { animation-delay: 0.04s; }
.product-card:nth-child(2) { animation-delay: 0.08s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.16s; }
.product-card:nth-child(5) { animation-delay: 0.20s; }
.product-card:nth-child(6) { animation-delay: 0.24s; }
.product-card:nth-child(7) { animation-delay: 0.28s; }
.product-card:nth-child(8) { animation-delay: 0.32s; }
.product-card:nth-child(9) { animation-delay: 0.36s; }
.product-card:nth-child(10) { animation-delay: 0.40s; }
.product-card:nth-child(11) { animation-delay: 0.44s; }
.product-card:nth-child(12) { animation-delay: 0.48s; }

.product-img {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}

.product-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.product-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variants-block {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.variants-count {
  background: var(--bg-soft);
  color: var(--text-dim);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0;
}

.variants-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 5px 8px;
  font-size: 12.5px;
  background: var(--bg-soft);
  border-radius: 5px;
  align-items: center;
}

.variant-name { color: var(--text); }
.variant-price {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.variant-stock {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.variant-stock.stock-ok { color: var(--green); }
.variant-stock.stock-low { color: var(--yellow); }
.variant-stock.stock-out { color: var(--text-faint); }

.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

.footer-label {
  color: var(--text-faint);
  margin-right: 4px;
}

.empty-state {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  grid-column: 1 / -1;
}

.edit-modal {
  max-width: 560px;
  text-align: left;
  padding: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.edit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.edit-modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.edit-modal-body {
  overflow-y: auto;
  padding: 18px 20px;
  flex: 1;
}

.edit-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.form-section {
  margin-bottom: 18px;
}
.form-section:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus { border-color: var(--border-strong); }

textarea.form-input {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%237a7a82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.image-edit {
  display: flex;
  gap: 14px;
  align-items: center;
}

.image-preview {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.image-actions {
  display: flex;
  gap: 6px;
  flex-direction: column;
}

.image-actions .btn {
  cursor: pointer;
  justify-content: flex-start;
}

.variants-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variants-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variant-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.variant-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.variant-card-head:hover { background: var(--bg); }

.variant-chevron {
  color: var(--text-faint);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.variant-card.expanded .variant-chevron { transform: rotate(90deg); }

.variant-card-name {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.variant-card-meta {
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.variant-card-delete {
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: color 0.12s ease;
  flex-shrink: 0;
}
.variant-card-delete:hover { color: var(--red); }

.variant-card-body {
  display: none;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}
.variant-card.expanded .variant-card-body { display: block; }

.variant-form-row { margin-bottom: 12px; }
.variant-form-row:last-child { margin-bottom: 0; }

.variant-form-row > label {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.variant-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.variant-form-grid > div > label {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.variant-serials {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.stock-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.stock-row .form-input { flex: 1; }

.stock-unlimited {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.stock-unlimited input { margin: 0; }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

.stock-manage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}
.stock-count {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.volume-discounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.volume-row {
  display: grid;
  grid-template-columns: 70px 28px 70px 28px 32px;
  gap: 6px;
  align-items: center;
}
.volume-row span {
  font-size: 11.5px;
  color: var(--text-dim);
}

.vd-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  transition: all 0.12s ease;
}
.vd-btn:hover { border-color: var(--border-strong); color: var(--text); }
.vd-btn.vd-del:hover { color: var(--red); border-color: var(--red); }

.selection-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
}
.sel-card:hover { border-color: var(--border-strong); }
.sel-card.active {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.05);
}
.sel-card-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 3px;
}
.sel-card-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

.ms-dropdown { position: relative; }
.ms-trigger {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.12s ease;
}
.ms-trigger:hover { border-color: var(--border-strong); }
.ms-trigger svg { color: var(--text-faint); flex-shrink: 0; }

.ms-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px;
  z-index: 30;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 240px;
  overflow-y: auto;
}
.ms-menu.open { display: block; }
.ms-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.ms-menu label:hover { background: var(--bg-soft); }
.ms-menu input[type=checkbox] {
  margin: 0;
  accent-color: var(--green);
}

.unsaved-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 140%);
  background: #232328;
  border: 1px solid #3a3a44;
  border-radius: 8px;
  padding: 10px 10px 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 120;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  max-width: calc(100vw - 40px);
}
.unsaved-bar.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.unsaved-text {
  font-size: 13px;
  color: #f2f2f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unsaved-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.unsaved-reset,
.unsaved-save {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.12s ease;
}

.unsaved-reset {
  background: transparent;
  color: #f2f2f4;
}
.unsaved-reset:hover { text-decoration: underline; }

.unsaved-save {
  background: #16a34a;
  color: #ffffff;
}
.unsaved-save:hover { background: #15803d; }

.store-link {
  position: absolute;
  top: 22px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  transition: all 0.12s ease;
}
.store-link:hover {
  color: var(--text);
  background: var(--bg-elev);
}

.dns-records {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dns-records-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dns-records-head {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dns-record-row {
  display: grid;
  grid-template-columns: 110px 70px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.18s ease;
}
.dns-record-row.checking { border-color: rgba(245, 193, 75, 0.4); }
.dns-record-row.verified { border-color: rgba(74, 222, 128, 0.4); }

.dns-record-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-faint);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.dns-record-status.checking {
  background: rgba(245, 193, 75, 0.08);
  color: #f5c14b;
  border-color: rgba(245, 193, 75, 0.3);
}
.dns-record-status.verified {
  background: rgba(74, 222, 128, 0.08);
  color: #6bd896;
  border-color: rgba(74, 222, 128, 0.3);
}
.dns-record-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.dns-record-status.checking .dot {
  animation: dns-pulse 1s ease-in-out infinite;
}
@keyframes dns-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.dns-record-type {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-dim);
}

.dns-record-data { min-width: 0; }
.dns-record-data .label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dns-record-data .value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dns-record-data .copy-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s ease;
}
.dns-record-data .copy-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dns-record-data .copy-btn.copied { background: rgba(74,222,128,0.15); border-color: rgba(74,222,128,0.4); color: #6bd896; }

.dns-records-help {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

.dns-records-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.dns-records-message {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(245, 193, 75, 0.08);
  border: 1px solid rgba(245, 193, 75, 0.25);
  color: #f5c14b;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
}
.sub-row-main { flex: 1; min-width: 0; }
.sub-row-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.sub-row-value {
  font-size: 13.5px;
  color: var(--text);
  word-break: break-all;
}
.sub-row-cog {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.sub-row-cog:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sub-row-cog.active { background: var(--bg-elev); color: var(--text); border-color: var(--text-dim); }

.custom-domain-panel {
  margin-top: 16px;
  animation: slide-in 0.2s ease-out;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
}

td.mono,
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text);
}

.desc-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 10px;
  width: fit-content;
}

.desc-tab {
  padding: 5px 11px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s ease;
}
.desc-tab:hover:not(.active) { color: var(--text); }
.desc-tab.active { background: var(--border-strong); color: var(--text); }

.form-help {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

.variant-edit-row .form-input {
  padding: 7px 10px;
  font-size: 12.5px;
}

.variant-delete-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.12s ease;
}
.variant-delete-btn:hover {
  color: #f87171;
  border-color: #f87171;
}

.add-variant-btn {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  font-family: inherit;
  transition: all 0.12s ease;
}
.add-variant-btn:hover {
  color: var(--text);
  border-color: var(--text-faint);
  background: var(--bg-soft);
}

.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px 2px 0 0;
}

.protection-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 900px) {
  .protection-grid { grid-template-columns: 1fr; }
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-row:first-child { padding-top: 4px; }

.setting-name {
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 3px;
}

.setting-desc {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.4;
}

.dropdown-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 4px;
  min-width: 170px;
  display: none;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideDownIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-menu.open { display: block; }

.dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--text-dim);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s ease;
}
.dropdown-menu button:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.blacklist-section {
  margin-bottom: 18px;
}
.blacklist-section:last-child { margin-bottom: 0; }

.blacklist-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.blacklist-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.blacklist-entry-info {
  flex: 1;
  min-width: 0;
}

.blacklist-entry-value {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blacklist-entry-message {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blacklist-entry-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.blacklist-edit,
.blacklist-remove {
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: color 0.12s ease, background 0.12s ease;
}
.blacklist-edit:hover { color: var(--text); background: var(--bg); }
.blacklist-remove:hover { color: var(--red); background: var(--bg); }

.blacklist-empty {
  color: var(--text-faint);
  font-size: 12.5px;
  padding: 6px 0 4px;
}

.setting-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-config-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.12s ease;
}
.setting-config-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.payment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.payment-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.payment-card-text { min-width: 0; }

.payment-card-name {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.payment-card-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.payment-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.config-tag {
  font-size: 11px;
  color: var(--text-faint);
}
.config-tag.ok { color: var(--text-dim); }
.config-tag.missing { color: var(--yellow); }

.toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-dim);
  border-radius: 50%;
  transition: all 0.2s ease;
}
.toggle input:checked + .toggle-slider {
  background: #16a34a;
  border-color: #16a34a;
}
.toggle input:checked + .toggle-slider::before {
  transform: translate(14px, -50%);
  background: #ffffff;
}

.settings-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: all 0.15s ease;
}
.settings-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg);
}

.config-modal {
  max-width: 460px;
  text-align: left;
  padding: 0;
}

.config-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.config-modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.config-modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.config-modal-body {
  padding: 18px 20px;
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.config-field:last-child { margin-bottom: 0; }

.config-field label {
  font-size: 12.5px;
  color: var(--text-dim);
}

.config-field input,
.config-field select {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
.config-field input::placeholder { color: var(--text-faint); }
.config-field input:focus,
.config-field select:focus { border-color: var(--border-strong); }
.config-field select { appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.config-field-help {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 4px;
  line-height: 1.45;
}
.config-slider {
  -webkit-appearance: none; appearance: none;
  width: calc(100% - 32px);
  margin: 4px 16px;
  height: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  padding: 0;
  cursor: pointer;
}
.config-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.config-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.config-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
  cursor: pointer;
}

.config-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.config-modal-actions .btn { flex: 0; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body { animation: fadeIn 0.25s ease-out; }

main.dashboard-main > .topbar,
main.dashboard-main > .toolbar,
main.dashboard-main > .stats-grid,
main.dashboard-main > .card,
main.dashboard-main > .bottom-grid,
main.dashboard-main > .order-grid,
main.dashboard-main > .payments-grid,
main.dashboard-main > #orderDetail,
main.dashboard-main > #customerDetail,
main.dashboard-main > .back-link,
section.hero > .container,
section.features > .container,
section.pricing > .container {
  animation: fadeInUp 0.35s ease-out backwards;
}

main.dashboard-main > :nth-child(1) { animation-delay: 0s; }
main.dashboard-main > :nth-child(2) { animation-delay: 0.04s; }
main.dashboard-main > :nth-child(3) { animation-delay: 0.08s; }
main.dashboard-main > :nth-child(4) { animation-delay: 0.12s; }
main.dashboard-main > :nth-child(5) { animation-delay: 0.16s; }

.payment-card {
  animation: fadeInUp 0.4s ease-out backwards;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.payment-card:nth-child(1) { animation-delay: 0.04s; }
.payment-card:nth-child(2) { animation-delay: 0.08s; }
.payment-card:nth-child(3) { animation-delay: 0.12s; }
.payment-card:nth-child(4) { animation-delay: 0.16s; }
.payment-card:nth-child(5) { animation-delay: 0.20s; }
.payment-card:nth-child(6) { animation-delay: 0.24s; }
.payment-card:nth-child(7) { animation-delay: 0.28s; }
.payment-card:nth-child(8) { animation-delay: 0.32s; }
.payment-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.payment-card.enabled:hover {
  border-color: rgba(74, 222, 128, 0.55);
}

.stat-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.feature {
  transition: background 0.2s ease;
}
.feature:hover { background: var(--bg-elev); }

.modal-backdrop.open { animation: fadeIn 0.18s ease-out; }
.modal-backdrop.open > .modal {
  animation: scaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-pop.open { animation: slideDownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1); }

.toast.show { animation: slideDownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); }

.btn,
.icon-btn,
.chip,
.range-tab,
.page-btn,
.settings-btn,
.menu-btn {
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active,
.icon-btn:active,
.chip:active,
.range-tab:active,
.page-btn:active,
.settings-btn:active {
  transform: scale(0.95);
}

.orders-row {
  transition: background 0.12s ease;
}

.chart-line {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawLine 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chart-area {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.35s forwards;
}

.chart-end-glow {
  animation: pulseGlow 2s ease-in-out infinite;
  transform-origin: center;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.modal-actions .btn { flex: 1; }

.modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.modal-checkbox input { margin-top: 2px; cursor: pointer; }
.modal-checkbox span { line-height: 1.4; }

.btn-danger {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-detail-amount { font-size: 22px; }
  .order-detail-id { font-size: 15px; }
}

.method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.method-mark {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.method-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.paid-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.status-pill.paid { background: #16a34a; }
.status-pill.pending { background: #d97706; }
.status-pill.refunded { background: #6b7280; }
.status-pill.failed { background: #dc2626; }
.status-pill.coming-soon { background: #3a3a44; color: var(--text-dim); }
.status-pill.unlisted { background: transparent; border: 1px solid var(--border-strong); color: var(--text-dim); padding: 2px 9px; }

.paid-refunded {
  color: var(--text-faint);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}

.paid-dash {
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--text-faint);
  border-radius: 1px;
  vertical-align: middle;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-meta {
  font-size: 12.5px;
  color: var(--text-faint);
}

.pagination-controls {
  display: flex;
  gap: 4px;
}

.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-family: inherit;
  transition: all 0.12s ease;
  cursor: pointer;
}
.page-btn:hover { color: var(--text); border-color: var(--border-strong); }
.page-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.orders-row { transition: background 0.1s ease; }
.orders-row:hover { background: var(--bg-soft); cursor: pointer; }
.orders-row.selected { background: var(--bg-soft); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 65;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.drawer-id {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
  word-break: break-all;
  color: var(--text);
}

.drawer-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-amount {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.drawer-close:hover { color: var(--text); border-color: #3a3a44; }

.drawer-body {
  overflow-y: auto;
  flex: 1;
}

.drawer-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-section:last-child { border-bottom: none; }

.drawer-section-title {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.drawer-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  gap: 16px;
}
.drawer-kv .k {
  color: var(--text-dim);
  flex-shrink: 0;
}
.drawer-kv .v {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kv-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kv-key {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.kv-val {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}

.kv-val.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.kv-val.wrap {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.delivered-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 14px;
  bottom: -18px;
  width: 1px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-dot.muted { background: var(--border-strong); }
.timeline-dot.failed { background: var(--red); }
.timeline-dot.refunded { background: var(--text-dim); }

.timeline-content { flex: 1; min-width: 0; }
.timeline-event { color: var(--text); }
.timeline-time { color: var(--text-faint); font-size: 11.5px; margin-top: 2px; }

.drawer-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-actions .btn { flex: 1; }

@media (max-width: 520px) {
  .drawer { width: 100vw; border-left: none; }
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.product-item:last-child { border-bottom: none; }

.product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.product-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-meta { font-size: 11.5px; color: var(--text-faint); }
.product-val { font-size: 13px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.spender-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.spender-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.spender-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.spender-avatar.avatar-fallback {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: help;
}

.product-img-small {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.product-item.clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}
.product-item.clickable:hover {
  background: var(--bg-soft);
}

@media (min-width: 1300px) {
  .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .layout { padding-left: 0; }

  aside.sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  aside.sidebar.open { transform: translateX(0); }

  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .bottom-grid { grid-template-columns: 1fr; }
  .mid-grid { grid-template-columns: 1fr; }
  .three-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .three-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }

  .landing-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-stats .stat:nth-child(2) { border-right: none; }
  .landing-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .feature-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-extra { display: none; }
  .chart-wrap { height: 220px; }

  .topbar { margin-bottom: 20px; }
  .topbar h1 { font-size: 18px; }
  .topbar .sub { font-size: 12px; }
}

@media (max-width: 1200px) {
  .t-orders th:nth-child(8),
  .t-orders td:nth-child(8) { display: none; }
  .t-customers th:nth-child(6),
  .t-customers td:nth-child(6) { display: none; }
}

@media (max-width: 1100px) {
  .t-customers th:nth-child(7),
  .t-customers td:nth-child(7) { display: none; }
}

@media (max-width: 1000px) {
  .t-orders th:nth-child(7),
  .t-orders td:nth-child(7) { display: none; }
  .t-customers th:nth-child(3),
  .t-customers td:nth-child(3) { display: none; }
}

@media (max-width: 800px) {
  .t-orders th:nth-child(6),
  .t-orders td:nth-child(6) { display: none; }
}

@media (max-width: 640px) {
  .t-recent th:nth-child(4),
  .t-recent td:nth-child(4) { display: none; }
  .t-recent td.product { white-space: normal; }

  .t-orders th:nth-child(5),
  .t-orders td:nth-child(5) { display: none; }
}

@media (max-width: 480px) {
  .t-recent th:nth-child(2),
  .t-recent td:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .footer-inner { justify-content: center; text-align: center; }
}
