@import url('brand-wordmark.css');

/* ===== Global theme tokens — Cyber Noir (admin → Site Theme updates :root via theme-colors.js) ===== */
:root {
  --primary-color: #e50914;
  --secondary-color: #ff3b3b;
  --background-color: #080404;
  --font-color: #f0ecec;

  --surface-color: #120608;
  --surface-alt-color: #1a080a;
  --border-color: #3a1520;
  --muted-color: #b8a0a4;
  --tint-color: #2a1015;
  --button-gradient: linear-gradient(135deg, #ff3b3b 0%, #b20710 55%, #8b0000 100%);
  --on-primary-color: #ffffff;
  --shadow-color: rgba(229, 9, 20, 0.22);
  --auth-brand-bg: linear-gradient(145deg, #1a080a 0%, #080404 42%, #3a0810 100%);
  --auth-glow-a: rgba(229, 9, 20, 0.18);
  --auth-glow-b: rgba(255, 59, 59, 0.12);

  --theme-font: var(--font-color);
  --theme-primary: var(--primary-color);
  --theme-secondary: var(--secondary-color);
  --glow-red: 0 0 24px rgba(229, 9, 20, 0.45);
  --glass-bg: rgba(12, 4, 6, 0.72);
  --glass-border: rgba(229, 9, 20, 0.22);

  /* Storefront aliases */
  --bg: var(--background-color);
  --surface: var(--surface-color);
  --surface-2: var(--surface-alt-color);
  --border: var(--border-color);
  --text: var(--font-color);
  --text-muted: var(--muted-color);
  --text-faint: var(--secondary-color);
  --accent: var(--primary-color);
  --accent-2: var(--secondary-color);
  --tint: var(--tint-color);
  --btn-bg: var(--button-gradient);
  --on-primary: var(--on-primary-color);

  /* Typography scale (rem — scales with html root) */
  --font-size-root: 93.75%;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.625rem;
  --leading-tight: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.55;
}

html.light-mode,
body.light-mode {
  --bg: var(--background-color);
  --surface: var(--surface-color);
  --surface-2: var(--surface-alt-color);
  --border: var(--border-color);
  --text: var(--font-color);
  --text-muted: var(--muted-color);
  --text-faint: var(--secondary-color);
  --accent: var(--primary-color);
  --accent-2: var(--secondary-color);
  --tint: var(--tint-color);
  --btn-bg: var(--button-gradient);
  --on-primary: var(--on-primary-color);
  --shadow-color: var(--shadow-color);
}

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

html {
  font-size: var(--font-size-root);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 15% -5%, rgba(229, 9, 20, 0.22), transparent 58%),
    radial-gradient(ellipse 65% 45% at 95% 15%, rgba(139, 0, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(229, 9, 20, 0.1), transparent 60%),
    linear-gradient(180deg, #0a0000 0%, var(--bg) 35%, #050202 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: var(--leading-normal);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
  max-width: 100%;
}

h1 {
  font-size: clamp(var(--text-xl), 3.2vw, var(--text-3xl));
  line-height: var(--leading-tight);
}

h2 {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-md);
  line-height: var(--leading-tight);
}

p,
label,
button,
input,
select,
textarea {
  font-size: inherit;
  line-height: var(--leading-normal);
}

.top-nav {
  padding: 0.75rem 1rem 0;
  background: transparent;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-left {
  gap: 0.25rem 1.125rem;
}

.nav-left a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 0.2rem 0;
}

.nav-left a:hover {
  color: var(--text);
}

.nav-left a.nav-pill.active,
.nav-left a.active {
  color: var(--accent) !important;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0.2rem 0;
}

.nav-left a.nav-pill.active::after,
.nav-left a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-2);
}

.nav-right {
  margin-left: auto;
}

.nav-right .nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-right .nav-link:hover {
  color: var(--text);
}

.nav-signup {
  padding: 0.5rem 1.15rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-signup:hover {
  opacity: 0.85;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--accent-2);
  background: var(--border);
}

.nav-header-row,
.nav-quick {
  display: none;
}

@media (min-width: 769px) {
  .nav-header-row {
    display: flex;
    align-items: center;
    order: 2;
    margin-left: auto;
  }

  .nav-header-row .nav-toggle,
  .nav-header-row .nav-brand {
    display: none !important;
  }

  .nav-quick {
    display: flex;
  }

  .nav-inner > .store-brand:not(.nav-brand) {
    order: 0;
  }

  .nav-left {
    order: 1;
  }

  .nav-right {
    order: 3;
    margin-left: 0.75rem;
  }
}

.nav-menu {
  display: contents;
}

/* Store brand — logo + name (desktop sidebar of nav + mobile header) */
.store-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 700;
  font-family: var(--brand-font, system-ui, -apple-system, sans-serif);
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.store-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* Circular store / admin logos */
.brand-logo-shell {
  --brand-logo-size: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  transition: background 0.25s ease;
}

html.logo-auto-theme .brand-logo-shell {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

html.logo-auto-theme body.admin-page .brand-logo-shell {
  background: var(--button-gradient);
}

.store-brand .brand-logo-shell {
  --brand-logo-size: 34px;
}

.auth-logo .brand-logo-shell {
  --brand-logo-size: 48px;
}

.store-brand .brand-logo-shell {
  display: none !important;
}

.store-brand-name {
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* brand-wordmark.css */

.nav-brand {
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--accent-2);
  text-decoration: none;
  letter-spacing: -0.02em;
  font-family: var(--brand-font, system-ui, -apple-system, sans-serif);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-quick {
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.cart-count {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 1rem;
}

.site-header {
  position: relative;
  text-align: left;
  max-width: none;
  margin: 0;
  padding: 2.65rem 2rem 2.85rem;
  min-height: 300px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 55%, #fff);
  border-radius: 26px;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--shadow-color) 35%, transparent),
    0 16px 40px color-mix(in srgb, var(--primary-color) 10%, transparent),
    0 4px 24px color-mix(in srgb, var(--shadow-color) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  isolation: isolate;
  overflow: hidden;
}

.hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem 0;
  margin-bottom: 2.25rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-color: #0a0000;
  background-image: url('/assets/hero-banner.png');
  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
}

.site-header--banner {
  min-height: clamp(340px, 48vw, 520px);
  padding: 3rem 2.5rem 3rem;
  display: flex;
  align-items: center;
  border-color: rgba(180, 0, 0, 0.35);
  background: #8b0000;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(229, 9, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-header--banner::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 38%, rgba(120, 0, 0, 0.08) 62%, transparent 88%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}

.site-header--banner .hero-bg-image {
  opacity: 1;
  filter: none;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 42%, transparent) 46%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 22%, transparent) 0%, transparent 52%);
}

.site-header-body {
  position: relative;
  z-index: 4;
}

/* Theme-adaptive decorative art (developer-editable in style.css) */
.hero-bg-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.hero-decor-wave {
  position: absolute;
  border-radius: 42% 58% 48% 52%;
  opacity: 0.75;
  will-change: transform;
  animation: hero-decor-drift 9s ease-in-out infinite;
}

.hero-decor-wave--1 {
  right: -8%;
  top: 8%;
  width: 58%;
  height: 72%;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 42%, transparent) 0%, color-mix(in srgb, var(--tint) 28%, transparent) 55%, transparent 100%);
  transform: rotate(-10deg);
  animation-delay: 0s;
}

.hero-decor-wave--2 {
  right: 2%;
  bottom: -12%;
  width: 48%;
  height: 55%;
  border-radius: 55% 45% 40% 60%;
  background:
    linear-gradient(200deg, color-mix(in srgb, var(--accent) 30%, transparent) 0%, color-mix(in srgb, var(--accent-2) 18%, transparent) 70%, transparent 100%);
  transform: rotate(6deg);
  animation-delay: 1.2s;
}

.hero-decor-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--accent) 8%, transparent);
  animation: hero-decor-drift 7s ease-in-out infinite;
}

.hero-decor-orbit--1 {
  width: 5.5rem;
  height: 5.5rem;
  right: 34%;
  top: 18%;
  animation-delay: 0.4s;
}

.hero-decor-orbit--2 {
  width: 3.25rem;
  height: 3.25rem;
  right: 14%;
  bottom: 22%;
  animation-delay: 1.8s;
}

.hero-decor-panel {
  position: absolute;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, #fff);
  box-shadow:
    0 14px 36px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: hero-app-float 6.2s ease-in-out infinite;
}

.hero-decor-panel--browser {
  right: 20%;
  top: 10%;
  width: 9.5rem;
  height: 5.75rem;
  padding: 0.55rem 0.65rem;
  animation-delay: 0.3s;
}

.hero-decor-dots {
  display: flex;
  gap: 0.28rem;
  margin-bottom: 0.45rem;
}

.hero-decor-dots i {
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, var(--accent-2));
  opacity: 0.85;
}

.hero-decor-play {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 70%, #fff), var(--accent));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  position: relative;
}

.hero-decor-play::after {
  content: '';
  position: absolute;
  left: 42%;
  top: 32%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.32rem 0 0.32rem 0.52rem;
  border-color: transparent transparent transparent var(--on-primary);
}

.hero-decor-bar {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 45%, transparent);
}

.hero-decor-bar--1 {
  width: 2.2rem;
}

.hero-decor-bar--2 {
  width: 1.4rem;
  bottom: 1rem;
  opacity: 0.65;
}

.hero-decor-panel--chat {
  right: 30%;
  top: 48%;
  width: 6.5rem;
  height: 4.5rem;
  padding: 0.55rem 0.6rem;
  animation-delay: 1.1s;
}

.hero-decor-chat-line {
  display: block;
  height: 0.34rem;
  border-radius: 999px;
  margin-bottom: 0.38rem;
  background: color-mix(in srgb, var(--accent) 38%, var(--tint));
}

.hero-decor-chat-line--short {
  width: 68%;
  opacity: 0.75;
}

.hero-decor-sparkle {
  position: absolute;
  right: 0.45rem;
  top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 75%, var(--accent-2));
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 40%, transparent));
}

.hero-decor-waveform {
  position: absolute;
  right: 10%;
  bottom: 14%;
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  height: 2.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 22%, transparent);
  animation: hero-app-float 5.8s ease-in-out infinite;
  animation-delay: 2s;
}

.hero-decor-waveform span {
  display: block;
  width: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  animation: hero-wave-pulse 1.4s ease-in-out infinite;
}

.hero-decor-waveform span:nth-child(1) { height: 0.55rem; animation-delay: 0s; }
.hero-decor-waveform span:nth-child(2) { height: 1.1rem; animation-delay: 0.15s; }
.hero-decor-waveform span:nth-child(3) { height: 1.65rem; animation-delay: 0.3s; }
.hero-decor-waveform span:nth-child(4) { height: 1rem; animation-delay: 0.45s; }
.hero-decor-waveform span:nth-child(5) { height: 0.7rem; animation-delay: 0.6s; }

.hero-decor-tile--grid {
  position: absolute;
  right: 42%;
  bottom: 18%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background:
    linear-gradient(color-mix(in srgb, var(--accent-2) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 35%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface) 50%, transparent);
  background-size: 0.55rem 0.55rem, 0.55rem 0.55rem, auto;
  border: 1px solid color-mix(in srgb, var(--accent-2) 25%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: hero-decor-drift 8s ease-in-out infinite;
  animation-delay: 0.7s;
}

@keyframes hero-decor-drift {
  0%, 100% { transform: translateY(0) rotate(var(--hero-decor-rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--hero-decor-rot, 0deg) + 2deg)); }
}

.hero-decor-wave--1 { --hero-decor-rot: -10deg; }
.hero-decor-wave--2 { --hero-decor-rot: 6deg; }

@keyframes hero-wave-pulse {
  0%, 100% { transform: scaleY(0.75); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-bg-apps {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.hero-bg-app {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.65rem;
  height: 3.65rem;
  padding: 0.72rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, #fff);
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--accent) 16%, transparent),
    0 6px 18px color-mix(in srgb, var(--shadow-color) 55%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent);
  opacity: 0.98;
  will-change: transform;
  animation: hero-app-float 5.5s ease-in-out infinite;
}

.hero-bg-app img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
}

.hero-bg-app--canva {
  top: 10%;
  left: 52%;
  animation-delay: 0s;
}

.hero-bg-app--spotify {
  top: 38%;
  left: 64%;
  animation-delay: 0.8s;
}

.hero-bg-app--netflix {
  top: 6%;
  right: 8%;
  animation-delay: 1.6s;
}

.hero-bg-app--capcut {
  top: 58%;
  right: 12%;
  animation-delay: 2.4s;
}

.hero-bg-app--chatgpt {
  top: 28%;
  right: 22%;
  animation-delay: 3.2s;
}

@keyframes hero-app-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
  padding: 0.48rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--primary-color) 55%, #fff 45%) 0%,
    var(--primary-color) 42%,
    color-mix(in srgb, var(--primary-color) 88%, #1a1208 12%) 100%
  );
  color: var(--on-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: default;
  line-height: 1.2;
  box-shadow:
    0 4px 18px color-mix(in srgb, var(--primary-color) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.store-btn-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.store-btn::before {
  content: none;
}

.site-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.15rem;
  max-width: 22rem;
  margin-inline: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  font-size: clamp(1.75rem, 4.8vw, 2.65rem);
}

.hero-line-group {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.hero-line-group--top {
  margin-bottom: 0.04rem;
}

.hero-line {
  display: block;
  line-height: 1.12;
}

.hero-line--dark {
  color: var(--text);
}

.hero-line--accent {
  color: var(--secondary-color);
}

.hero-line--primary {
  color: var(--accent);
}

.site-header h1.site-header-title {
  font-size: clamp(1.75rem, 4.8vw, 2.65rem);
}

@media (min-width: 769px) {
  .hero-line-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
  }

  .hero-line-group .hero-line {
    display: inline;
  }
}

.site-header-line-indent {
  display: block;
  padding-left: 0.45rem;
}

.site-header-lead {
  color: var(--text-muted);
  max-width: 24rem;
  margin-inline: 0;
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  line-height: 1.65;
  opacity: 0.94;
  position: relative;
  z-index: 2;
}

.site-header p.site-header-lead {
  margin-bottom: 0;
}

.search-bar {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
  padding: 0 1rem;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 1.1rem;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.55;
  pointer-events: none;
}

.search-bar input,
.search-input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.55rem;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-bottom: 0;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--shadow-color) 45%, transparent);
}

.search-bar input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: inherit;
}

.search-bar input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters button,
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: auto;
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-btn-icon {
  flex-shrink: 0;
  opacity: 0.75;
}

.filters button.active,
.filters button:hover,
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filters button.active,
.filter-btn.active {
  background: var(--btn-bg);
  border-color: transparent;
  color: var(--on-primary);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--primary-color) 28%, transparent);
}

.filters button.active .filter-btn-icon,
.filter-btn.active .filter-btn-icon {
  opacity: 1;
  color: var(--on-primary);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.empty-state,
.page-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.info-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.info-header {
  text-align: center;
  margin-bottom: 2rem;
}

.info-header h1 {
  font-size: clamp(1.2rem, 3vw, 1.625rem);
  margin-bottom: 0.5rem;
  line-height: var(--leading-tight);
}

.info-header p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.faq-list,
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.faq-card h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.contact-body a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-body a:hover {
  text-decoration: underline;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.guide-state--error {
  color: var(--text-muted);
  background: rgba(139, 90, 43, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.guide-step {
  padding: 1.35rem 1.5rem;
}

.guide-step-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.guide-step-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--tint);
  border: 1px solid var(--border);
  color: var(--accent-2);
  position: relative;
}

.guide-step-icon {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.55;
  margin-bottom: 0.1rem;
}

.guide-step-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.guide-step-num {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.guide-step-title-wrap h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.guide-step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.guide-step-bullets {
  margin: 1rem 0 0 4.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guide-step-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

  .guide-step-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

@media (max-width: 560px) {
  .guide-step-bullets {
    margin-left: 0;
    margin-top: 0.85rem;
  }
  .guide-step-head {
    align-items: center;
  }
}

.info-page-wide {
  max-width: 760px;
}

.legal-date {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  max-width: none;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-card h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.legal-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-body a {
  color: var(--accent-2);
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.product-plans {
  margin: 0.5rem 0 1.25rem;
}

.product-plans-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.product-plans-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.plan-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 110px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border, var(--border));
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.plan-chip:hover {
  transform: translateY(-1px);
  border-color: var(--primary, var(--accent-2));
}

.plan-chip.active {
  border-color: var(--primary, var(--accent-2));
  background: var(--tint);
}

.plan-chip .plan-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.plan-chip .plan-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plan-chip .plan-price {
  font-weight: 700;
  color: var(--primary, var(--accent-2));
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-2);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.section-title {
  font-size: var(--text-lg);
  margin: 2rem 0 0.85rem;
  color: var(--text);
  line-height: var(--leading-tight);
}

.products,
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.catalog-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
}

.catalog-title {
  font-size: var(--text-lg);
  font-weight: 800;
  margin: 1.35rem 0 0.35rem;
  color: var(--text);
  line-height: var(--leading-tight);
}

.catalog-subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.catalog-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

main .products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.catalog-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--shadow-color);
  border-color: var(--accent);
}

.catalog-card-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0.5rem 0.45rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.catalog-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.catalog-card-badge {
  flex-shrink: 0;
  max-width: 48%;
}

.catalog-card-badge .theme-badge,
.catalog-card-badge .catalog-stock-badge {
  font-size: 0.55rem;
  padding: 0.1rem 0.38rem;
  gap: 0.22rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.catalog-card-badge .theme-badge-icon {
  width: 0.72rem;
  height: 0.72rem;
}

.catalog-card-icon .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.catalog-card-body {
  margin-bottom: 0.35rem;
  min-width: 0;
}

.catalog-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 0 0.1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card-category {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.catalog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.catalog-card-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.catalog-price-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.catalog-price-value {
  display: inline-flex;
  align-items: flex-start;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.catalog-price-currency {
  font-size: 0.875rem;
  margin-right: 0.05rem;
}

.catalog-price-major {
  font-size: 0.95rem;
}

.catalog-price-minor {
  font-size: 0.625rem;
  font-weight: 700;
  margin-left: 0.05rem;
  margin-top: 0.08rem;
  opacity: 0.85;
}

.catalog-price-empty {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.catalog-card-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt-color, var(--tint));
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.catalog-card:hover .catalog-card-arrow {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--on-primary-color, #fff);
}

.catalog-card-body h2 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
}

.catalog-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.catalog-stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.catalog-stock-badge--available {
  background: var(--tint);
  color: var(--accent-2);
  border-color: var(--border);
}

.catalog-stock-badge--preorder {
  background: rgba(139, 90, 43, 0.1);
  color: var(--accent);
  border-color: rgba(139, 90, 43, 0.22);
}

.catalog-variant-count {
  display: none;
}

.catalog-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  margin-top: auto;
}

.product-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Plan cards — top-level products with expandable variants */
.plan-card {
  gap: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card.expanded {
  border-color: var(--accent-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.plan-card-actions {
  margin-top: 0.15rem;
}

.plan-card-actions .add-to-cart,
.plan-card-actions .btn-buy-now {
  flex: 1;
  min-height: 38px;
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
}

.plan-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.plan-card-meta {
  flex: 1;
  min-width: 0;
}

.plan-card-meta h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.plan-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.plan-start-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0;
}

.plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.plan-toggle:hover {
  background: var(--border);
  opacity: 1;
}

.plan-toggle-icon {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.plan-card.expanded .plan-toggle-icon {
  transform: rotate(90deg);
}

.plan-variants {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  animation: planExpand 0.2s ease;
}

@keyframes planExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-description-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.plan-variant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan-variant-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.plan-variant-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-variant-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.plan-variant-duration {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.plan-variant-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}

.plan-variant-actions {
  margin-top: 0;
}

.plan-variant-actions .btn-view,
.plan-variant-actions .add-to-cart,
.plan-variant-actions .btn-buy-now {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
}

.product-card-media {
  display: contents;
}

.product-card-body {
  display: contents;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo img,
.product-logo img,
.admin-icon-preview-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.logo.has-icon,
.product-logo.has-icon {
  background: linear-gradient(145deg, #3a0a12 0%, #120204 100%);
  border: 1px solid rgba(229, 60, 75, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.1);
}

.catalog-card-icon .logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}

.catalog-card-icon .logo img,
.catalog-card-icon .logo-img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.product-icon-fallback {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.status {
  font-size: 0.75rem;
  color: #55efc4;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-available,
.product-status.status-available { color: var(--accent-2); }
.status-preorder,
.product-status.status-preorder { color: var(--accent); }
.status-sold_out,
.product-status.status-sold_out { color: var(--text-muted); }
.status-coming_soon,
.product-status.status-coming_soon { color: var(--accent-2); }

.product-card h2,
.card h2 {
  font-size: 1.1rem;
}

.product-link {
  color: inherit;
  text-decoration: none;
}

.product-link:hover {
  color: var(--accent-2);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  font-family: inherit;
}

button.btn-view {
  appearance: none;
}

.btn-view:hover {
  opacity: 0.85;
}

.btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-buy-now:hover {
  opacity: 0.85;
}

.checkout-page,
.payment-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.payment-timer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #ffb86b, #ff9f43);
  color: #1f150c;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.payment-timer-banner strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.payment-timer-banner svg {
  flex-shrink: 0;
}

.checkout-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.checkout-layout,
.payment-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.checkout-form .field label,
.redeem-section label,
.upload-section > label {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.redeem-section label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-form input[type="email"],
.checkout-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

.checkout-form input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.redeem-section {
  margin: 1.25rem 0;
}

.redeem-row {
  display: flex;
  gap: 0.5rem;
}

.redeem-row input {
  flex: 1;
  text-transform: uppercase;
}

.btn-apply {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent-2);
  font-weight: 600;
  cursor: pointer;
}

.redeem-msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.redeem-msg.success { color: #55efc4; }
.redeem-msg.error { color: #ff7675; }

.checkout-quantity-field {
  margin: 0.35rem 0 1.1rem;
}

.checkout-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checkout-qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--accent-2);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.checkout-qty-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.checkout-qty-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.checkout-qty-value {
  min-width: 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}

.checkout-guide-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}

.checkout-guide-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent-2);
}

.checkout-guide-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.25rem;
}

.checkout-guide-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.checkout-guide-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-2);
  text-decoration: none;
}

.checkout-guide-link:hover {
  text-decoration: underline;
}

.payment-section {
  margin-top: 0.25rem;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.payment-btn {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.payment-btn.active {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-pay {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.25rem;
}

/* Tingi Drop checkout / payment card */
.tingi-drop-card {
  margin: 0.85rem 0 1rem;
}

.tingi-drop-label {
  display: block;
  cursor: pointer;
}

.tingi-drop-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tingi-drop-shell {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tingi-drop-input:focus-visible + .tingi-drop-shell {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tingi-drop-input:checked + .tingi-drop-shell {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--tint) 0%, var(--surface) 55%, var(--surface-2) 100%);
  box-shadow: 0 4px 18px var(--shadow-color);
}

.tingi-drop-shell.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.tingi-drop-label:has(.tingi-drop-input:disabled) {
  cursor: not-allowed;
}

.tingi-drop-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.tingi-drop-input:checked + .tingi-drop-shell .tingi-drop-check {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-primary);
}

.tingi-drop-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.tingi-drop-input:checked + .tingi-drop-shell .tingi-drop-icon {
  background: var(--accent);
  color: var(--on-primary);
  border-color: transparent;
}

.tingi-drop-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tingi-drop-heading {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.tingi-drop-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.tingi-drop-card--info .tingi-drop-shell {
  cursor: default;
}

.tingi-drop-card--info .tingi-drop-shell {
  padding-left: 1rem;
}

/* Order thank-you page */
.thanks-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-shell {
  width: 100%;
}

.thanks-card {
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}

.thanks-hero {
  margin-bottom: 1.25rem;
}

.thanks-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px var(--shadow-color);
  animation: thanks-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes thanks-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-hero h1 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.thanks-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto;
}

.thanks-order-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 0.55rem 1rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.thanks-order-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.thanks-order-dot {
  color: var(--text-faint);
}

.thanks-status-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.thanks-status-box.is-approved {
  background: var(--tint);
}

.thanks-status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--tint);
}

.thanks-status-box.is-approved .thanks-status-dot {
  background: var(--accent-2);
}

.thanks-status-box strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.thanks-status-box p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.thanks-tingi {
  margin-bottom: 1rem;
  text-align: left;
}

.thanks-tingi .tingi-drop-shell {
  align-items: flex-start;
}

.thanks-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.thanks-steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.thanks-step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thanks-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.thanks-btn:hover {
  opacity: 0.92;
}

.thanks-btn-primary {
  background: var(--btn-bg);
  color: var(--on-primary);
  border: none;
}

.thanks-btn-ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--border);
}

.thanks-footnote {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.checkout-error {
  color: #ff7675;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.order-summary,
.order-detail-panel,
.payment-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.order-summary h2,
.order-detail-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.summary-items {
  list-style: none;
  margin-bottom: 1rem;
}

.summary-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.summary-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.summary-product span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: var(--text);
  font-size: 1rem;
}

.summary-total strong {
  color: var(--primary-color);
  font-size: 1.15rem;
}

.payment-via {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.payment-via strong {
  color: var(--text);
}

.payment-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.85rem;
  line-height: 1;
}

.payment-send-to {
  margin-bottom: 1rem;
}

.payment-send-to p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 0.35rem;
}

.payment-instructions-box {
  background: var(--tint, var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.payment-instructions-box p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.payment-instructions-box p:last-child {
  margin-bottom: 0;
}

.payment-method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px var(--shadow-color, rgba(0, 0, 0, 0.06));
}

.payment-account-number {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text);
}

.payment-account-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.payment-account-number strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color, var(--accent));
}

.checkout-payment-preview {
  margin-top: 1rem;
}

.checkout-payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 6px 20px var(--shadow-color, rgba(0, 0, 0, 0.05));
}

.checkout-payment-card-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--text);
}

.checkout-payment-instructions {
  background: var(--tint, var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
}

.checkout-payment-instructions p {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.checkout-payment-instructions p:last-child {
  margin-bottom: 0;
}

.checkout-payment-qr-wrap {
  text-align: center;
}

.checkout-payment-qr {
  max-width: 200px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.checkout-payment-qr-placeholder {
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.checkout-payment-account {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.checkout-payment-account span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.checkout-payment-account strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color, var(--accent));
}

.payment-instructions {
  margin: 0 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.qr-box {
  background: var(--surface, #fff);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.qr-placeholder {
  aspect-ratio: 1;
  max-width: 260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text-faint);
  border: 2px dashed #ccc;
  border-radius: 8px;
}

.qr-placeholder span {
  font-weight: 700;
  color: #333;
}

#qr-image {
  max-width: 260px;
  width: 100%;
  border-radius: 8px;
}

.upload-section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.upload-required {
  color: var(--accent-2);
  font-weight: 800;
}

.upload-section-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.upload-error {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--tint);
}

.upload-confirm-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.55rem;
}

.upload-confirm-hint--ready {
  color: var(--accent-2);
  font-weight: 600;
}

.upload-section {
  position: relative;
  z-index: 2;
}

.upload-section .btn-upload,
.upload-section .btn-confirm,
.payment-methods .payment-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.upload-section--locked .btn-upload,
.upload-section--locked #receipt-file {
  pointer-events: none;
  opacity: 0.55;
}

.receipt-preview {
  margin: 0 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  max-height: 220px;
}

.receipt-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.qr-label {
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.btn-upload {
  padding: 0.65rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
}

.file-name {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.btn-confirm {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--on-primary);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.payment-continue-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.payment-continue-note a {
  color: var(--accent-2);
  font-weight: 600;
}

.order-detail-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.order-number-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-copy-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
}

.btn-copy-order:hover {
  color: var(--accent-2);
  background: var(--tint);
}

.order-meta-row dd {
  text-align: right;
}

.order-table td.price-cell,
.order-table td[data-price],
#order-subtotal,
#order-total {
  color: var(--primary-color);
  font-weight: 700;
}

.order-meta dd strong {
  color: var(--primary-color);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.order-table th,
.order-table td {
  padding: 0.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.order-table th {
  color: var(--text-faint);
  font-weight: 500;
}

.order-table small {
  color: var(--text-faint);
}

.delivery-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.order-meta {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.order-meta div {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.order-meta dt {
  font-weight: 500;
}

.order-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.order-total-box strong {
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 800;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #55efc4;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55efc4;
}

.btn-checkout {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-checkout:hover {
  opacity: 0.9;
}

.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.cart-page-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.cart-page-header h1 {
  font-size: 1.5rem;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cart-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.cart-row-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.cart-row-info strong {
  display: block;
  margin-bottom: 0.2rem;
}

.cart-row-price {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-row-total {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-value {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 600;
}

.cart-remove {
  border: none;
  background: transparent;
  color: #ff7675;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
}

.cart-remove:hover {
  opacity: 0.8;
}

.cart-buy-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cart-buy-btn:hover {
  opacity: 0.9;
}

.cart-empty-page {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.cart-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.summary-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}

.summary-amount {
  font-size: 1.75rem;
  color: var(--text);
}

.cart-summary-note {
  max-width: 260px;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.5;
  text-align: right;
}

.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.back-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.back-explore:hover {
  color: var(--accent-2);
}

.product-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.product-hero-logo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  min-width: 160px;
}

.product-hero-logo .product-logo {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
}

.explore-services {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.explore-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.explore-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.explore-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.explore-tile:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.explore-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.explore-tile-icon.has-icon {
  background: linear-gradient(145deg, #3a0a12 0%, #120204 100%);
  border: 1px solid rgba(229, 60, 75, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.1);
}

.explore-tile-icon .logo-img,
.explore-tile-icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.explore-tile-all {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--tint);
}

.product-about-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.product-about-box h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.product-about-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.plans-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.plans-bar {
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}

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

.plan-purchase-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-purchase-card.is-disabled {
  opacity: 0.72;
}

.plan-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.plan-badge.status-available {
  background: var(--tint);
  color: var(--accent-2);
  border: 1px solid var(--border);
}

.plan-badge.status-preorder {
  background: rgba(139, 90, 43, 0.1);
  color: var(--accent);
  border: 1px solid rgba(139, 90, 43, 0.22);
}

.plan-badge.status-sold_out {
  background: var(--tint);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.plan-badge.status-coming_soon {
  background: var(--tint);
  color: var(--accent-2);
}

.plan-purchase-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-right: 4.5rem;
}

.plan-purchase-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  overflow: hidden;
}

.plan-purchase-icon.has-icon {
  background: linear-gradient(145deg, #3a0a12 0%, #120204 100%);
  border: 1px solid rgba(229, 60, 75, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.1);
}

.plan-purchase-info h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.plan-desc-box {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tint) 55%, var(--surface)) 0%,
    color-mix(in srgb, var(--surface) 92%, var(--bg)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-left: 3px solid var(--accent-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 85%, white),
    0 2px 10px color-mix(in srgb, var(--shadow-color) 35%, transparent);
}

.plan-desc-box-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-desc-box-label svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.plan-desc-box-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.plan-purchase-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.plan-purchase-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-purchase {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--on-primary) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-purchase:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-purchase:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.btn-cart-icon:hover:not(:disabled) {
  background: var(--tint);
  border-color: var(--accent);
}

.btn-cart-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 1rem;
}

.product-image {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 32px var(--shadow-color);
  overflow: hidden;
}

.product-logo.has-icon {
  background: linear-gradient(145deg, #3a0a12 0%, #120204 100%);
  border: 1px solid rgba(229, 60, 75, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.1);
}

.product-logo.has-icon img,
.product-logo.has-icon .product-logo-img,
.product-logo.has-icon .logo-img {
  filter: brightness(0) invert(1);
}

.product-logo img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.product-status {
  font-size: 0.75rem;
  color: #55efc4;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.product-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.product-updated {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.stat-card strong {
  font-size: 1.1rem;
  color: var(--text);
}

.product-description-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-description-card h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.product-description-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-outline,
.btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.875rem;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-tight);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-2);
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
}

.btn-outline:hover,
.btn-primary:hover {
  opacity: 0.9;
}

.price {
  font-weight: 600;
  color: var(--accent-2);
  margin-top: auto;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

button {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.85;
}

.add-to-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
}

.buy-now {
  background: var(--border);
  color: var(--text);
}

.card button {
  margin-top: 0.5rem;
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.modal-cart {
  max-width: 480px;
}

.modal h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.modal input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.modal-submit {
  margin-top: 0.25rem;
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.form-error {
  color: #ff7675;
  font-size: 0.85rem;
}

.nav-account-link {
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 500;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0;
}

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

.cart-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 280px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remove-cart-item {
  background: var(--border);
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.cart-total {
  font-weight: 600;
  color: var(--accent-2);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .top-nav {
    padding: 0.5rem 0 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .nav-header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .nav-brand {
    display: flex;
    flex: none;
    justify-content: flex-start;
    justify-self: start;
    align-items: center;
    min-width: 0;
    margin-left: 0.1rem;
    padding-left: 0;
  }

  .nav-brand .brand-logo-shell,
  .nav-brand .store-brand-logo {
    display: none !important;
  }

  .nav-brand .brand-wordmark-front,
  .nav-brand .store-brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-brand .brand-wordmark-wrap {
    max-width: min(100%, 11.5rem);
    overflow: hidden;
  }

  .nav-inner > .store-brand:not(.nav-brand) {
    display: none !important;
  }

  .nav-quick {
    display: flex;
    justify-self: end;
    flex-shrink: 0;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.75rem;
    margin-top: 0.65rem;
    border-top: none;
  }

  .nav-inner.nav-open .nav-menu {
    display: flex;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .nav-left li,
  .nav-right li {
    width: auto;
    max-width: 100%;
  }

  .nav-left a,
  .nav-right .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.45rem 0.9rem;
    font-size: var(--text-md);
    min-height: 44px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  .nav-left a.nav-pill.active,
  .nav-left a.active {
    background: linear-gradient(165deg, #ff4545 0%, #e50914 48%, #b20710 100%);
    color: #fff !important;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 3px 14px rgba(229, 9, 20, 0.35);
  }

  .nav-pill.active {
    text-align: center;
  }

  .nav-left a.nav-pill.active::after,
  .nav-left a.active::after {
    content: none;
  }

  .nav-left a:not(.active):hover,
  .nav-right .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  .nav-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.5rem 1rem;
    text-align: center;
    white-space: nowrap;
  }

  .nav-right li:has(.cart-btn),
  .nav-right li:has(.sound-toggle),
  .nav-right li:has(.theme-toggle) {
    display: none;
  }

  .icon-btn {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .site-header {
    text-align: left;
    padding: 1.85rem 1.35rem 2.15rem;
    min-height: 260px;
    border-radius: 22px;
    overflow-x: clip;
  }

  .hero-section {
    padding: 0.5rem 0.75rem 0;
    margin-bottom: 1.85rem;
  }

  .hero-decor-panel--browser {
    width: 7.25rem;
    height: 4.35rem;
    right: 12%;
    top: 6%;
  }

  .hero-decor-panel--chat {
    width: 5.25rem;
    height: 3.75rem;
    right: 24%;
    top: 50%;
  }

  .hero-decor-orbit--1 {
    width: 4rem;
    height: 4rem;
    right: 30%;
  }

  .hero-decor-tile--grid {
    right: 38%;
    bottom: 14%;
    width: 2.25rem;
    height: 2.25rem;
  }

  .hero-decor-waveform {
    right: 6%;
    bottom: 10%;
    height: 1.75rem;
  }

  .hero-bg-app {
    width: 3rem;
    height: 3rem;
    padding: 0.58rem;
    border-radius: 16px;
  }

  .hero-bg-app--canva {
    top: 8%;
    left: 48%;
  }

  .hero-bg-app--spotify {
    top: 40%;
    left: 62%;
  }

  .hero-bg-app--netflix {
    top: 4%;
    right: 4%;
  }

  .hero-bg-app--capcut {
    top: 56%;
    right: 6%;
  }

  .hero-bg-app--chatgpt {
    top: 24%;
    right: 16%;
  }

  .site-header::before {
    background:
      linear-gradient(105deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 48%, transparent) 50%, transparent 100%),
      radial-gradient(ellipse 75% 45% at 0% -5%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 70%),
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, transparent) 0%, transparent 55%);
  }

  .store-btn {
    margin-bottom: 1.15rem;
    padding: 0.35rem 0.75rem;
    font-size: var(--text-xs);
  }

  .site-header-title,
  .site-header h1.site-header-title {
    font-size: clamp(1.45rem, 6.8vw, 1.85rem);
    line-height: 1.14;
    margin-inline: 0;
    max-width: 14rem;
    margin-bottom: 1.25rem;
    gap: 0.1rem;
  }

  .hero-line-group {
    gap: 0.04rem;
  }

  .hero-line {
    line-height: 1.14;
  }

  .site-header-line-indent {
    padding-left: 0.35rem;
  }

  .site-header-lead,
  .site-header p.site-header-lead {
    font-size: var(--text-sm);
    line-height: 1.65;
    padding: 0;
    margin-inline: 0;
    max-width: 100%;
  }

  .search-bar {
    margin: 0 auto 2rem;
    padding: 0 0.85rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .search-input-wrap {
    margin-bottom: 1.35rem;
  }

  .search-bar input,
  .search-input-wrap input {
    font-size: var(--text-sm);
    padding: 0.8rem 1rem 0.8rem 2.55rem;
    max-width: 100%;
  }

  .search-input-icon {
    left: 0.9rem;
    width: 17px;
    height: 17px;
  }

  .filters {
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0;
    max-width: 100%;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button,
  .filter-btn {
    flex-shrink: 0;
    padding: 0.48rem 0.85rem;
    font-size: var(--text-sm);
    gap: 0.35rem;
  }

  .catalog-header {
    padding: 0 0.85rem;
    max-width: 100%;
  }

  .catalog-title {
    font-size: var(--text-lg);
    margin: 0.25rem 0 1rem;
    text-align: left;
  }

  main {
    padding: 0 0.75rem 2rem;
    max-width: 100%;
    overflow-x: clip;
  }

  .products,
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
  }

  .product-card,
  .catalog-card {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-card {
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
  }

  .product-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 0.85rem;
    background: linear-gradient(160deg, var(--border) 0%, var(--surface) 55%, var(--tint) 100%);
    border-bottom: 1px solid var(--border);
  }

  .product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.7rem 0.75rem;
    flex: 1;
  }

  .product-card .logo {
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 12px;
  }

  .product-card .status,
  .product-card .card-desc,
  .product-card .btn-view {
    display: none;
  }

  .product-card h2 {
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
  }

  .product-card .price {
    font-size: 1rem;
    margin-top: 0.15rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border);
  }

  .product-card .card-actions {
    flex-direction: row;
    gap: 0.35rem;
    margin-top: 0.15rem;
  }

  .product-card.expanded {
    grid-column: 1 / -1;
  }

  .catalog-card-link {
    padding: 0.5rem 0.5rem 0.45rem;
  }

  .catalog-card-head {
    margin-bottom: 0.35rem;
  }

  .catalog-card-icon .logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .catalog-card-body {
    margin-bottom: 0.35rem;
  }

  .catalog-card-name {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
  }

  .catalog-card-category {
    font-size: 0.5625rem;
  }

  .catalog-card-badge {
    max-width: 48%;
  }

  .catalog-card-badge .theme-badge,
  .catalog-card-badge .catalog-stock-badge {
    font-size: 0.5rem;
    padding: 0.08rem 0.3rem;
  }

  .catalog-price-label {
    font-size: 0.5625rem;
  }

  .catalog-price-major {
    font-size: 0.95rem;
  }

  .catalog-price-minor {
    font-size: 0.625rem;
  }

  .catalog-card-arrow {
    width: 26px;
    height: 26px;
  }

  .catalog-card-arrow svg {
    width: 14px;
    height: 14px;
  }

  .product-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    gap: 0;
    box-shadow: 0 2px 10px var(--shadow-color);
  }

  .plan-card-actions {
    flex-direction: row;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0 0.7rem 0.75rem;
  }

  .plan-card-actions .add-to-cart,
  .plan-card-actions .btn-buy-now {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .plan-variant-actions {
    flex-direction: row;
    gap: 0.35rem;
  }

  .plan-variant-actions .btn-view,
  .plan-variant-actions .add-to-cart,
  .plan-variant-actions .btn-buy-now {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .plan-toggle-label {
    display: none;
  }

  .product-card .add-to-cart,
  .product-card .btn-buy-now {
    flex: 1;
    min-height: 34px;
    padding: 0.35rem 0.25rem;
    font-size: 0.68rem;
    border-radius: 8px;
    justify-content: center;
    white-space: nowrap;
  }

  .card {
    padding: 1rem;
  }

  .card-actions:not(.plan-variant-actions) {
    flex-direction: column;
  }

  .card-actions:not(.plan-variant-actions) .btn-view,
  .card-actions:not(.plan-variant-actions) .add-to-cart,
  .card-actions:not(.plan-variant-actions) .btn-buy-now {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .info-page {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .info-card {
    padding: 1rem 1.15rem;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom));
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .product-hero-logo {
    display: flex;
    justify-content: center;
    min-width: 0;
  }

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

  .product-gallery {
    position: static;
  }

  .product-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem 0.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn-outline,
  .product-actions .btn-primary {
    width: 100%;
    min-height: 48px;
  }

  .checkout-page,
  .payment-page,
  .cart-page {
    padding: 1rem 0.75rem 2.5rem;
  }

  .checkout-page h1,
  .payment-page h1 {
    font-size: 1.35rem;
  }

  .checkout-layout,
  .payment-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .checkout-form input[type="email"],
  .checkout-form input[type="text"] {
    font-size: 16px;
  }

  .redeem-row {
    flex-direction: column;
  }

  .redeem-row .btn-apply {
    width: 100%;
    min-height: 44px;
  }

  .payment-methods {
    flex-direction: column;
  }

  .payment-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .btn-checkout,
  .btn-confirm,
  .btn-place-order {
    min-height: 48px;
    font-size: 1rem;
  }

  .order-table {
    font-size: 0.8rem;
  }

  .order-table th,
  .order-table td {
    padding: 0.45rem 0;
    word-break: break-word;
  }

  .cart-page-header h1 {
    font-size: 1.25rem;
  }

  .cart-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.65rem 0.75rem;
    padding: 1rem;
  }

  .cart-row .qty-control,
  .cart-row .cart-remove,
  .cart-row .cart-buy-btn {
    grid-column: 2;
  }

  .cart-row .cart-buy-btn {
    justify-self: stretch;
    width: 100%;
    min-height: 44px;
  }

  .cart-row .cart-remove {
    justify-self: start;
  }

  .qty-control button {
    min-width: 36px;
    min-height: 36px;
  }

  .cart-summary-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .cart-summary-note {
    text-align: left;
    max-width: none;
    font-size: 0.85rem;
  }

  #toast-container {
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 0.75rem;
    left: 0.75rem;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .product-stats {
    grid-template-columns: 1fr;
  }
}

#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 220px;
  max-width: 340px;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

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

.toast-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success .toast-icon,
.toast-approved .toast-icon {
  background: var(--accent);
  color: var(--on-primary);
}

.toast-error {
  border-left-color: var(--accent-2);
}

.toast-error .toast-icon {
  background: var(--surface-2);
  color: var(--accent-2);
  border: 1px solid var(--border);
}

.toast-info {
  border-left-color: var(--accent);
}

.toast-info .toast-icon {
  background: var(--tint);
  color: var(--accent);
  border: 1px solid var(--border);
}

.toast-approved {
  border-left-color: var(--accent);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.toast-message--flirty {
  font-style: italic;
  text-transform: lowercase;
  color: #e8c0c0;
  border-color: rgba(229, 9, 20, 0.28);
  background: rgba(24, 6, 8, 0.92);
}

.icon-btn.sound-toggle.is-muted {
  color: var(--text-muted);
}

.icon-btn.sound-toggle.is-muted:hover {
  color: var(--accent);
}

/* ===== Buyer dashboard ===== */
.dashboard-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.dashboard-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.35rem;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard-account h2,
.dashboard-orders-head h2 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.dashboard-meta {
  display: grid;
  gap: 0.65rem;
}

.dashboard-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.dashboard-meta dt {
  color: var(--text-muted);
}

.dashboard-meta dd {
  font-weight: 600;
  text-align: right;
}

.dashboard-orders {
  margin-top: 1.25rem;
}

.dashboard-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.dashboard-order-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dashboard-order-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-order-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dashboard-order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.dashboard-order-number {
  font-weight: 700;
  font-size: 0.95rem;
}

.dashboard-order-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dashboard-order-items {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dashboard-order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.dashboard-order-total {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-2);
}

.dashboard-order-payment {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dashboard-order-link {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dashboard-status.status-paid {
  background: rgba(85, 239, 196, 0.15);
  color: #55efc4;
}

.dashboard-status.status-receipt {
  background: rgba(116, 185, 255, 0.15);
  color: #74b9ff;
}

.dashboard-status.status-pending {
  background: rgba(253, 203, 110, 0.15);
  color: #fdcb6e;
}

.dashboard-status.status-cancelled,
.dashboard-status.status-refunded {
  background: rgba(255, 118, 117, 0.15);
  color: #ff7675;
}

.dashboard-empty,
.dashboard-loading,
.dashboard-error {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem 0;
}

.dashboard-error {
  color: #ff7675;
}

/* Buyer dashboard account load screen */
.dash-account-load-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.dash-account-load-screen.is-fading {
  opacity: 0;
  pointer-events: none;
}

.dash-account-load-screen[hidden] {
  display: none !important;
}

#buyer-dash-main[hidden] {
  display: none !important;
}

#buyer-dash-main:not([hidden]) {
  animation: dash-welcome-fade-in 0.35s ease;
}

.dash-welcome-area {
  display: flex;
  flex-direction: column;
}

.dash-welcome-loader-inner {
  width: min(100%, 280px);
  max-width: 100%;
  text-align: center;
}

.dash-welcome-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.15rem;
  border: 3px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
  border-top-color: var(--primary-color);
  border-right-color: color-mix(in srgb, var(--secondary-color) 55%, var(--primary-color));
  border-radius: 50%;
  animation: dash-welcome-spin 0.85s linear infinite;
  will-change: transform;
}

@keyframes dash-welcome-spin {
  to { transform: rotate(360deg); }
}

.dash-welcome-progress-track {
  height: 6px;
  background: color-mix(in srgb, var(--secondary-color) 28%, var(--bg));
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.dash-welcome-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 999px;
  transition: width 0.2s ease;
  will-change: width;
}

.dash-welcome-progress-pct {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.65rem;
  font-variant-numeric: tabular-nums;
}

.dash-welcome-loader-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
}

@keyframes dash-welcome-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .dash-welcome-loader-inner {
    width: min(100%, 240px);
  }

  .dash-welcome-spinner {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-welcome-spinner {
    animation: none;
    border-top-color: var(--primary-color);
  }

  .hero-bg-app {
    animation: none;
    opacity: 0.88;
  }

  .dash-welcome-progress-bar,
  .dash-account-load-screen,
  #buyer-dash-main:not([hidden]) {
    transition: none;
    animation: none;
  }
}

.dashboard-empty a {
  color: var(--accent-2);
}

/* ===== Buyer dashboard (sidebar layout) ===== */
.buyer-dashboard-page {
  min-height: 100vh;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.45;
}

.buyer-dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Hide sidebar during account bootstrap */
.buyer-dash-layout.buyer-dash-account-loading .buyer-dash-sidebar {
  display: none !important;
  visibility: hidden !important;
}

.buyer-dash-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.buyer-dash-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  padding: 0 0.35rem;
}

.buyer-dash-logo-shell {
  --brand-logo-size: 38px;
}

.buyer-dash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.buyer-dash-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.buyer-dash-brand-name {
  font-size: 1.05rem !important;
  font-weight: 800;
  color: var(--text);
}

.buyer-dash-brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.buyer-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.buyer-dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.buyer-dash-nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.buyer-dash-nav-btn:hover {
  background: var(--tint);
  color: var(--text);
}

.buyer-dash-nav-btn.active {
  background: var(--tint);
  color: var(--text);
  font-weight: 600;
}

.buyer-dash-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.buyer-dash-foot-link {
  background: none;
  border: none;
  padding: 0.45rem 0.75rem;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}

.buyer-dash-foot-link:hover {
  color: var(--accent-2);
}

.buyer-dash-main {
  padding: 1.75rem 1.5rem 2.5rem;
  position: relative;
  max-width: 900px;
}

.buyer-dash-menu-toggle {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem;
  color: var(--text);
  cursor: pointer;
}

.buyer-dash-panel-head h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.buyer-dash-panel-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.buyer-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.buyer-dash-stats-hero .buyer-stat-balance {
  grid-column: 1 / -1;
  background: var(--btn-bg);
  border: none;
  color: var(--on-primary);
}

.buyer-dash-stats-hero .buyer-stat-balance span,
.buyer-dash-stats-hero .buyer-stat-balance strong {
  color: #fff;
}

.buyer-dash-stats-hero .buyer-stat-balance strong {
  font-size: 1.75rem;
}

.buyer-dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.buyer-dash-section-head h2 {
  margin-bottom: 0;
}

.buyer-dash-view-all {
  border: none;
  background: transparent;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.buyer-wallet-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.buyer-wallet-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  border-left: 4px solid var(--border);
}

.buyer-wallet-stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.buyer-wallet-stat strong {
  font-size: 1.1rem;
}

.buyer-wallet-stat-balance {
  border-left-color: #27ae60;
}

.buyer-wallet-stat-balance strong {
  color: #27ae60;
}

.buyer-wallet-stat-pre strong {
  color: #3498db;
}

.buyer-wallet-stat-reports strong {
  color: #e74c3c;
}

.buyer-wallet-stat-refund strong {
  color: #27ae60;
}

.buyer-wallet-tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}

.buyer-wallet-tab {
  border: none;
  background: transparent;
  padding: 0.65rem 0.15rem;
  margin-bottom: -2px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.buyer-wallet-tab.active {
  color: var(--text);
  border-bottom-color: #c0395b;
}

.buyer-wallet-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.buyer-wallet-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.buyer-wallet-filter input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}


.buyer-cred-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.buyer-cred-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.buyer-cred-list dt {
  color: var(--text-muted);
  font-weight: 500;
}

.buyer-cred-list code {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.buyer-cred-grid {
  display: grid;
  gap: 0.55rem;
}

.buyer-cred-field {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.buyer-cred-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.buyer-cred-value-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.buyer-cred-value {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}

.buyer-cred-value-row code.buyer-cred-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  padding: 0.2rem 0.35rem;
  background: var(--tint);
  border-radius: 6px;
}

.buyer-cred-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.buyer-cred-copy:hover {
  background: var(--tint);
  color: var(--accent);
  border-color: var(--accent);
}

.buyer-cred-copy.is-copied {
  background: var(--tint);
  color: var(--accent);
  border-color: var(--accent);
}

.buyer-cred-copy svg {
  opacity: 0.85;
}

.buyer-cred-subsection {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.buyer-cred-subsection h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.buyer-account-card .buyer-cred-grid {
  margin-top: 0.65rem;
}

.buyer-account-card {
  margin-bottom: 0.75rem;
}

.buyer-account-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.buyer-wallet-row small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* My Purchases */
.buyer-purchase-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.buyer-purchase-stats strong {
  color: var(--text);
  margin-left: 0.25rem;
}

.buyer-purchase-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.buyer-purchase-card {
  padding: 0;
  overflow: hidden;
}

.buyer-purchase-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.buyer-purchase-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.buyer-purchase-summary {
  flex: 1;
  min-width: 0;
}

.buyer-purchase-summary strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.buyer-purchase-summary span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.buyer-purchase-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.buyer-purchase-card.is-open .buyer-purchase-chevron {
  transform: rotate(180deg);
}

.buyer-purchase-card.is-targeted {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 35%, transparent), 0 10px 28px var(--shadow-color);
}

.buyer-purchase-foot {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.buyer-purchase-expand {
  display: none;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--tint) 32%, var(--surface));
}

.buyer-purchase-card.is-open .buyer-purchase-foot {
  display: flex;
}

.buyer-purchase-card.is-details-open .buyer-purchase-expand {
  display: block;
}

.buyer-purchase-expand .buyer-purchase-accounts {
  margin-top: 0.25rem;
}

.buyer-purchase-credentials {
  padding-bottom: 0.35rem;
}

.buyer-purchase-credentials[hidden],
.buyer-purchase-meta[hidden] {
  display: none !important;
}

.buyer-purchase-expand .buyer-purchase-actions {
  margin-top: 0.75rem;
}

.buyer-purchase-status {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.buyer-purchase-completed {
  background: var(--tint);
  color: var(--accent);
  border: 1px solid var(--border);
}

.buyer-purchase-pending {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.buyer-purchase-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.buyer-purchase-view .buyer-purchase-eye-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  pointer-events: none;
}

.buyer-purchase-view:hover {
  background: var(--tint);
}

.buyer-purchase-view.is-active,
.buyer-purchase-view[aria-expanded="true"] {
  background: var(--btn-bg);
  border-color: transparent;
  color: var(--on-primary);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.buyer-purchase-view.is-active:hover,
.buyer-purchase-view[aria-expanded="true"]:hover {
  background: var(--btn-bg);
  color: var(--on-primary);
}

/* Modals */
.buyer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.buyer-modal-overlay[hidden] {
  display: none;
}

.buyer-modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.buyer-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.buyer-modal-head h2 {
  font-size: 1.05rem;
  margin: 0;
}

.buyer-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.buyer-modal-body {
  padding: 1rem 1.15rem 1.15rem;
}

.buyer-account-block {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.buyer-account-block:last-child {
  margin-bottom: 0;
}

.buyer-account-block h3 {
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  color: var(--accent-2);
}

.buyer-purchase-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Tingi Drop order details panel */
.tingi-status-panel {
  margin-bottom: 1.15rem;
}

.tingi-status-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
}

.tingi-status-card--primary {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--tint) 0%, var(--surface) 45%, var(--surface-2) 100%);
}

.tingi-status-card--partial {
  margin-top: 0.65rem;
  background: var(--surface);
}

.tingi-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.tingi-status-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  line-height: 1.35;
}

.tingi-status-glyph {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--border);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tingi-status-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.tingi-status-partial-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tingi-hold-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: -0.25rem 0 0.55rem;
}

.tingi-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.tingi-progress--muted {
  margin-bottom: 0.5rem;
}

.tingi-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: width 0.35s ease;
}

.tingi-status-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.tingi-status-callout {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.tingi-status-callout p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.tingi-status-callout--muted {
  background: var(--tint);
}

.tingi-request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--on-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.tingi-request-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.tingi-request-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tingi-account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.tingi-account-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tingi-status-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--tint);
  border: 1px solid var(--border);
}

.buyer-order-status-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--tint);
}

.buyer-order-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.buyer-order-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.buyer-order-status-row + .buyer-order-status-row {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.buyer-order-status-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.buyer-order-status-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.buyer-order-status-badge--pending {
  color: var(--accent);
  border-color: rgba(139, 90, 43, 0.35);
  background: rgba(139, 90, 43, 0.08);
}

.buyer-order-status-badge--approved {
  color: var(--accent-2);
  border-color: var(--border);
  background: var(--surface);
}

.buyer-order-status-badge--waiting {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--surface);
}

/* ===== Shared theme badges (badges.js) ===== */
.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--accent-2);
  vertical-align: middle;
  white-space: nowrap;
}

.theme-badge--sm {
  font-size: 0.62rem;
  padding: 0.18rem 0.5rem;
  gap: 0.3rem;
}

.theme-badge--md {
  font-size: 0.78rem;
  padding: 0.32rem 0.78rem;
  gap: 0.45rem;
}

.theme-badge--lg {
  font-size: 0.85rem;
  padding: 0.38rem 0.88rem;
  gap: 0.5rem;
}

.theme-badge--xl {
  font-size: 0.92rem;
  padding: 0.45rem 1rem;
  gap: 0.55rem;
}

.theme-badge-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.theme-badge--sm .theme-badge-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.theme-badge--md .theme-badge-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-badge--lg .theme-badge-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.theme-badge--xl .theme-badge-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.theme-badge-icon svg {
  width: 100%;
  height: 100%;
}

.theme-badge--pending {
  background: rgba(139, 90, 43, 0.12);
  color: var(--accent);
  border-color: rgba(139, 90, 43, 0.28);
}

.theme-badge--approved,
.theme-badge--paid,
.theme-badge--available {
  background: var(--tint);
  color: var(--accent-2);
  border-color: var(--border);
}

.theme-badge--waiting {
  background: rgba(168, 156, 133, 0.14);
  color: var(--text-muted);
  border-color: var(--border);
}

.theme-badge--preorder {
  background: rgba(139, 90, 43, 0.1);
  color: var(--accent);
  border-color: rgba(139, 90, 43, 0.22);
}

.theme-badge--cancelled,
.theme-badge--refunded {
  background: rgba(122, 110, 89, 0.12);
  color: var(--text-muted);
  border-color: var(--border);
}

.theme-badge--no_proof {
  background: rgba(168, 156, 133, 0.16);
  color: var(--text-muted);
  border-color: rgba(141, 123, 104, 0.35);
}

.theme-badge--receipt {
  background: rgba(139, 90, 43, 0.1);
  color: var(--accent);
  border-color: rgba(139, 90, 43, 0.25);
}

.theme-badge--delivered {
  background: var(--tint);
  color: var(--accent-2);
  border-color: var(--border);
}

.buyer-rules-box {
  margin: 1rem 0;
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(192, 57, 43, 0.04);
}

.buyer-rules-head {
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c0395b;
  background: rgba(192, 57, 43, 0.08);
}

.buyer-rules-box p {
  padding: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.buyer-purchase-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.buyer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.buyer-action-buy {
  background: #1e8449;
  color: #fff;
}

.buyer-action-report {
  background: #c0392b;
  color: #fff;
}

.buyer-action-vouch {
  background: var(--secondary-color, #a4907c);
  color: #fff;
}

.buyer-vouch-card {
  padding: 1.15rem 1.25rem;
}

.buyer-vouch-warning {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.35);
  margin-bottom: 1.15rem;
}

.buyer-vouch-warning strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #c0392b;
}

.buyer-vouch-warning p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.buyer-vouch-section-title {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.buyer-vouch-steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.buyer-vouch-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.buyer-vouch-step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--tint-color, rgba(0, 0, 0, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-color);
}

.buyer-vouch-send {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--surface-alt-color, rgba(0, 0, 0, 0.03));
}

.buyer-vouch-format {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  background: var(--surface-alt-color, rgba(0, 0, 0, 0.03));
  margin-bottom: 1rem;
}

.buyer-vouch-format .buyer-vouch-section-title {
  margin-bottom: 0.45rem;
}

.buyer-vouch-format-rule {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--surface-color, #fff);
  border: 1px solid var(--border-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.45;
}

.buyer-vouch-format-example {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.buyer-vouch-format-example span {
  font-weight: 600;
  color: var(--font-color);
}

.buyer-vouch-send-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.buyer-vouch-telegram-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.buyer-vouch-telegram-link:hover {
  text-decoration: underline;
}

.buyer-vouch-telegram-missing {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.buyer-report-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.15rem 0.75rem;
}

.buyer-report-tab {
  flex: 1;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.buyer-report-tab.active {
  background: var(--tint);
  border-color: var(--accent);
  color: var(--accent);
}

.buyer-report-proof-section {
  margin-bottom: 0.75rem;
  padding-top: 0.25rem;
}

.buyer-report-proof-warning {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.buyer-report-proof-warning strong {
  color: var(--accent);
  font-weight: 700;
}

.buyer-report-upload {
  margin-bottom: 0.85rem;
}

.buyer-report-upload-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.buyer-report-required {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.buyer-report-upload .btn-upload {
  margin-bottom: 0.5rem;
}

.buyer-report-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buyer-report-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.buyer-report-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.buyer-report-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--border);
}

.buyer-report-thumb-remove:hover {
  background: var(--tint);
  color: var(--accent);
}

.buyer-report-form-label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.buyer-report-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.buyer-report-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
}

.buyer-report-field input,
.buyer-report-field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}

.buyer-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.buyer-report-submit {
  background: var(--primary-color);
  border: none;
  color: var(--on-primary, #fff);
}

.buyer-report-error {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--primary-color);
  line-height: 1.35;
}

.buyer-report-error[hidden] {
  display: none;
}

.buyer-report-target-section {
  margin: 0.75rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(139, 115, 85, 0.15);
}

.buyer-report-target-hint {
  font-size: 12px;
  color: var(--muted, #8b7355);
  margin: 0.25rem 0 0.65rem;
  line-height: 1.4;
}

.buyer-report-target-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.buyer-report-target {
  border: 1px solid rgba(139, 115, 85, 0.22);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 252, 245, 0.65);
}

.buyer-report-target.is-disabled {
  opacity: 0.55;
}

.buyer-report-target-main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

.buyer-report-target-main input {
  margin-top: 0.2rem;
}

.buyer-report-profile-pick {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(139, 115, 85, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.buyer-report-profile-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: #5c4a3a;
}

.buyer-report-target-empty {
  font-size: 13px;
  color: var(--muted, #8b7355);
  margin: 0;
}

.buyer-report-shared-fields {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.buyer-reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.buyer-report-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.buyer-report-card-meta {
  display: block;
  font-size: 12px;
  color: var(--muted, #8b7355);
  margin-top: 0.15rem;
}

.buyer-report-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  font-size: 13px;
  margin-bottom: 0.65rem;
}

.buyer-report-card-grid dt {
  font-size: 11px;
  color: var(--muted, #8b7355);
  font-weight: 600;
}

.buyer-report-card-grid dd { margin: 0; }

.buyer-report-admin-note {
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 252, 245, 0.9);
  border: 1px dashed rgba(139, 115, 85, 0.25);
  margin-bottom: 0.5rem;
}

.buyer-report-admin-note.has-note {
  border-style: solid;
  background: rgba(107, 142, 90, 0.08);
}

.buyer-report-admin-note-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #8b7355);
  margin-bottom: 0.25rem;
}

.buyer-report-admin-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.buyer-report-card-foot {
  font-size: 12px;
  color: var(--muted, #8b7355);
}

.buyer-account-report-note {
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.85);
  border: 1px solid rgba(139, 115, 85, 0.18);
}

.buyer-account-report-note-text {
  margin: 0.25rem 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.buyer-account-report-note-text.muted {
  color: var(--muted, #8b7355);
}

/* Account Settings */
.buyer-settings-section {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.buyer-settings-section h2 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.buyer-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.buyer-settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.buyer-settings-grid input,
.buyer-settings-grid select,
.buyer-settings-grid textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}

.buyer-settings-readonly input {
  opacity: 0.75;
  cursor: default;
}

.buyer-settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.buyer-settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b2942, #6b1d32);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.buyer-settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buyer-settings-link {
  border: none;
  background: transparent;
  color: var(--accent-2);
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 0.35rem;
}

.buyer-settings-meta,
.buyer-settings-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.buyer-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buyer-settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.buyer-settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.buyer-settings-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.buyer-settings-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.buyer-settings-stats dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.buyer-settings-stats dd {
  font-size: 1rem;
  font-weight: 600;
}

.admin-user-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-user-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.admin-user-detail-grid dt {
  font-size: 0.72rem;
  color: var(--a-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-user-detail-grid dd {
  font-size: 0.88rem;
  margin: 0;
}

.admin-user-social {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.admin-user-social li {
  margin-bottom: 0.35rem;
}

@media (max-width: 860px) {
  .buyer-settings-grid {
    grid-template-columns: 1fr;
  }

  .buyer-settings-stats {
    grid-template-columns: 1fr;
  }

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

.buyer-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.buyer-stat-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.buyer-stat-card strong {
  font-size: 1.35rem;
  color: var(--text);
}

.buyer-dash-section h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.buyer-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.buyer-wallet-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.buyer-wallet-row strong {
  display: block;
  font-size: 1rem;
}

.buyer-wallet-row span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.buyer-wallet-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.buyer-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.buyer-notif-item {
  padding: 0.85rem 1rem;
}

.buyer-notif-item.is-unread {
  background: var(--tint);
  border-color: var(--accent);
}

.buyer-notif-item p {
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.buyer-notif-item small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.buyer-notif-item a,
.buyer-notif-item .buyer-notif-view {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--accent-2);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.buyer-notif-item .buyer-notif-view:hover {
  text-decoration: underline;
}

.buyer-update-card {
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.buyer-update-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.buyer-update-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.buyer-update-date {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.buyer-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.buyer-chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg);
}

.buyer-chat-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: auto;
}

.buyer-chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
}

.buyer-chat-bubble.is-mine {
  align-self: flex-end;
  background: var(--btn-bg);
  color: var(--on-primary);
  border-bottom-right-radius: 4px;
}

.buyer-chat-bubble.is-seller {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.buyer-chat-sender {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.buyer-chat-bubble time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  opacity: 0.75;
}

.buyer-chat-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.buyer-chat-compose input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.buyer-chat-send {
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .buyer-dash-layout {
    grid-template-columns: 1fr;
  }

  .buyer-dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 88vw);
    z-index: 200;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 32px var(--shadow-color);
  }

  .buyer-dash-layout.sidebar-open .buyer-dash-sidebar {
    transform: translateX(0);
  }

  .buyer-dash-menu-toggle {
    display: inline-flex;
  }

  .buyer-dash-main {
    padding: 0 1rem 2.5rem;
  }

  .buyer-dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .buyer-dash-stats-hero .buyer-stat-balance {
    grid-column: 1 / -1;
  }

  .buyer-wallet-stats {
    grid-template-columns: 1fr 1fr;
  }

  .buyer-wallet-filters {
    grid-template-columns: 1fr;
  }

  .buyer-wallet-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .buyer-wallet-meta {
    text-align: left;
  }
}

/* ===== Palette: readable primary buttons (gradient bg + on-primary text) ===== */
.nav-signup,
.btn-buy-now,
.btn-primary,
.btn-checkout,
.btn-confirm,
.add-to-cart,
.buy-now,
.btn-place-order {
  background: var(--btn-bg);
  color: var(--on-primary) !important;
  border: none;
}

.btn-view,
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Prevent iOS input zoom — form controls need ≥16px on small screens */
@media (max-width: 768px) {
  input:not(#search-input):not(.search-bar input),
  select,
  textarea {
    font-size: max(16px, 1rem);
  }

  .search-bar input,
  #search-input {
    font-size: var(--text-xs);
  }
}

.dashboard-order-reject-note,
.buyer-order-reject-reason {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.buyer-purchase-rejected .buyer-order-status-badges {
  margin-bottom: 0.35rem;
}

/* —— About Us (portfolio) —— */
.about-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-page.about-loaded {
  opacity: 1;
  transform: none;
}

.about-portfolio {
  position: relative;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 28px;
  padding: 1.75rem 1.35rem 1.5rem;
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--accent) 10%, transparent),
    0 4px 20px color-mix(in srgb, var(--text) 5%, transparent);
  overflow: hidden;
}

.about-portfolio-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
}

.about-portfolio-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.about-photo-frame {
  position: relative;
  width: min(140px, 36vw);
  height: min(140px, 36vw);
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--background);
}

.about-photo-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, var(--border));
}

.about-portfolio-intro {
  max-width: 100%;
}

.about-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.about-name {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.about-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem 0 1.15rem;
  color: color-mix(in srgb, var(--accent) 55%, var(--text-muted));
  font-size: 0.75rem;
}

.about-divider::before,
.about-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 35%, var(--border)),
    transparent
  );
}

.about-divider span {
  padding: 0 0.75rem;
}

.about-bio-text {
  margin: 0;
  padding: 0;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: center;
  font-style: normal;
  quotes: none;
}

.about-social-strip {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 15%, var(--border));
  text-align: center;
}

.about-social-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.about-social-orbit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.about-social-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 0.28rem 0.72rem 0.28rem 0.28rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--accent) 8%, var(--background));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.about-social-pill:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

.about-social-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent-2);
}

.about-social-pill-icon svg {
  width: 16px;
  height: 16px;
}

.about-social-pill-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.about-social-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.about-btn-primary {
  display: block;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--btn-bg, var(--accent));
  color: var(--on-primary) !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent);
}

.about-btn-ghost {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease;
}

.about-btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

@media (min-width: 520px) {
  .about-portfolio {
    padding: 2rem 1.75rem 1.65rem;
  }

  .about-portfolio-head {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 1.25rem;
  }

  .about-photo-frame {
    margin: 0;
  }

  .about-bio-text {
    text-align: left;
  }

  .about-actions {
    flex-direction: row;
    justify-content: center;
  }

  .about-btn-primary,
  .about-btn-ghost {
    flex: 1;
    max-width: 200px;
  }
}

/* Buyer dashboard — platform services (Plugging, Webtech) */
.buyer-service-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.buyer-service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.buyer-service-card {
  padding: 1rem 1.1rem;
}

.buyer-service-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.buyer-service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.buyer-service-card-main {
  flex: 1;
  min-width: 0;
}

.buyer-service-card-main strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.buyer-service-card-main span {
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-word;
}

.buyer-service-status {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.buyer-service-status-pending {
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
}

.buyer-service-status-ok {
  background: color-mix(in srgb, #22c55e 18%, transparent);
  color: #16a34a;
}

.buyer-service-status-bad {
  background: color-mix(in srgb, #ef4444 15%, transparent);
  color: #dc2626;
}

.buyer-service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.buyer-service-key {
  width: 100%;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.buyer-service-key code {
  font-family: 'Consolas', monospace;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}

.buyer-service-message {
  width: 100%;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dashboard-empty a {
  color: var(--accent-2);
  text-decoration: underline;
}
