/* ============================================================
   assets/css/style.css — Digital Mart (Refined)
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --main-bg: #0b0d10;
  --surface-1: #14171d;
  --surface-2: #191d24;
  --surface-3: #1e2330;
  --glass-surface: rgba(255, 255, 255, 0.05);
  --glass-surface-hover: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.10);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --accent-cyan: #34d6e4;
  --accent-purple: #b7a1ff;
  --accent-green: #78d88b;
  --accent-amber: #f2c86b;
  --accent-red: #ff6b7d;
  --primary: #d7c8ff;
  --text-primary: #f0ecf8;
  --text-secondary: #b3adc0;
  --text-muted: #746e80;
  --success: #53d58d;
  --warning: #f2bd5c;
  --error: #ff6b7d;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .22);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, .34);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .44);
  --header-h: 68px;
  --sidebar-w: 256px;
  --transition: 0.18s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--main-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #111520 0%, #0b0d10 50%);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

p {
  margin: 0;
}

::selection {
  background: rgba(215, 200, 255, .25);
  color: var(--text-primary);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: middle;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .22);
}

/* ── Glass Surface ──────────────────────────────────────────── */
.glass,
.glass-panel,
.surface-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)),
    var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.glass-panel:hover,
.surface-panel:hover {
  border-color: rgba(215, 200, 255, .16);
}

/* ── Gradient helpers ───────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-effect {
  background: linear-gradient(115deg, rgba(52, 214, 228, .1), transparent 34%),
    linear-gradient(245deg, rgba(215, 200, 255, .12), transparent 42%);
}

/* ── Buttons ────────────────────────────────────────────────── */
.primary-button,
.glass-button,
.accent-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: #081014;
  border: 0;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 22px rgba(52, 214, 228, .18);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.primary-button:hover,
.glass-button:hover,
.accent-gradient:hover {
  box-shadow: 0 12px 30px rgba(52, 214, 228, .28);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.primary-button:active,
.glass-button:active,
.accent-gradient:active {
  transform: translateY(0);
}

.primary-button:disabled {
  pointer-events: none;
}

.secondary-button,
.glass-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .04);
  color: var(--primary);
  border: 1px solid rgba(215, 200, 255, .28);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform var(--transition);
}

.secondary-button:hover,
.glass-button-secondary:hover {
  background: rgba(215, 200, 255, .09);
  border-color: rgba(215, 200, 255, .45);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.secondary-button:disabled {
  pointer-events: none;
  color: var(--text-muted);
}

/* Danger button variant */
.danger-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  background: rgba(255, 107, 125, .09);
  color: var(--error);
  border: 1px solid rgba(255, 107, 125, .28);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.danger-button:hover {
  background: rgba(255, 107, 125, .16);
  border-color: rgba(255, 107, 125, .5);
}

/* ── Inputs ─────────────────────────────────────────────────── */
/* Shared Input styling (Global defaults) */
input,
select,
textarea {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  color: var(--text-primary) !important;
  border-radius: var(--r-md);
  outline: none;
  color-scheme: dark;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(52, 214, 228, .7) !important;
  box-shadow: 0 0 0 3px rgba(52, 214, 228, .12) !important;
}

/* Fix for browser select options */
option {
  background-color: var(--surface-2) !important;
  color: var(--text-primary) !important;
}

/* Autofill fixes */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0px 1000px #14171d inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.glass-input,
.checkout-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
}

.glass-input::placeholder,
.checkout-input::placeholder {
  color: rgba(179, 173, 192, .4);
}

select.glass-input,
select.checkout-input {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
}

/* Validation states */
.glass-input.is-invalid {
  border-color: rgba(255, 107, 125, .6) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 125, .1) !important;
}

.glass-input.is-valid {
  border-color: rgba(83, 213, 141, .5) !important;
}

.field-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--error);
  font-weight: 600;
}

/* Admin form grid */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-height: 44px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--text-primary);
  border-radius: var(--r-md);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  border-color: rgba(52, 214, 228, .7);
  box-shadow: 0 0 0 3px rgba(52, 214, 228, .12);
  background: rgba(255, 255, 255, .08);
}

.admin-form-grid input::placeholder,
.admin-form-grid textarea::placeholder {
  color: rgba(179, 173, 192, .45);
}

.admin-form-grid select {
  color-scheme: dark;
}

.admin-form-grid .span-2 {
  grid-column: 1 / -1;
}

.admin-form-grid .admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.admin-form-grid .admin-checkbox input[type="checkbox"],
.admin-checkbox input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  border-radius: 4px;
  accent-color: var(--primary);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
}

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

.admin-muted {
  color: var(--text-muted);
  font-size: 12px;
}

@media (min-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Login form */
.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--text-primary);
  border-radius: var(--r-md);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-form input:focus {
  border-color: rgba(52, 214, 228, .7);
  box-shadow: 0 0 0 3px rgba(52, 214, 228, .12);
}

.login-form input::placeholder {
  color: rgba(179, 173, 192, .45);
}

/* ── Flash Messages ─────────────────────────────────────────── */
.flash-stack {
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: flashIn .25s ease;
  position: relative;
  overflow: hidden;
}

.flash::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: .4;
  animation: flashTimer 4s linear forwards;
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flashTimer {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@keyframes flashOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    padding: 0;
    margin: 0;
  }
}

.flash.dismissing {
  animation: flashOut .3s ease forwards;
}

.flash-success {
  background: rgba(83, 213, 141, .10);
  color: #a8f0c6;
  border-color: rgba(83, 213, 141, .22);
}

.flash-error {
  background: rgba(255, 107, 125, .10);
  color: #ffc0c8;
  border-color: rgba(255, 107, 125, .22);
}

.flash-info {
  background: rgba(52, 214, 228, .10);
  color: #a0eef5;
  border-color: rgba(52, 214, 228, .22);
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-h);
  background: rgba(11, 13, 16, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .24);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  box-shadow: 0 0 16px rgba(52, 214, 228, .35);
}

.header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }
}

.header-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 19px;
  pointer-events: none;
  transition: color var(--transition);
}

.header-search-input {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  color: var(--text-primary);
  border-radius: var(--r-full);
  padding: 0 46px 0 18px;
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}

.header-search-input:focus {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(52, 214, 228, .5) !important;
  box-shadow: 0 0 0 4px rgba(52, 214, 228, .08) !important;
}

.header-search-input:focus+.header-search-icon {
  color: var(--primary);
}

.header-search-input::placeholder {
  color: rgba(179, 173, 192, .4);
}

.site-nav {
  display: none;
  gap: 4px;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
}

.nav-link.is-active {
  background: rgba(215, 200, 255, .1);
  color: var(--primary);
  border: 1px solid rgba(215, 200, 255, .2);
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
}

.icon-button:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, .16);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--error);
  color: #fff;
  border-radius: var(--r-full);
  border: 2px solid var(--main-bg);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.cart-badge.bump {
  animation: badgeBump .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes badgeBump {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.4)
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 13, 16, .95);
  backdrop-filter: blur(18px);
}

.mobile-menu.is-open {
  display: flex;
  animation: slideDown .2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Ambient Gradient (hero) ────────────────────────────────── */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-orb-1 {
  width: 500px;
  height: 500px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(52, 214, 228, .1), transparent 65%);
  animation: orbFloat 12s ease-in-out infinite;
}

.ambient-orb-2 {
  width: 400px;
  height: 400px;
  top: 40px;
  right: -60px;
  background: radial-gradient(circle, rgba(183, 161, 255, .1), transparent 65%);
  animation: orbFloat 16s ease-in-out infinite reverse;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(24px)
  }
}

/* ── Storefront Hero ────────────────────────────────────────── */
.storefront-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .storefront-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--text-primary);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.02em;
}

.hero-lede {
  margin-top: 20px;
  max-width: 580px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 420px;
}

.hero-stat {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  background: rgba(255, 255, 255, .025);
  border-right: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, .05);
}

.hero-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.trust-badge .material-symbols-outlined {
  font-size: 15px;
  color: var(--accent-green);
}

/* Hero showcase */
.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.hero-feature-card {
  overflow: hidden;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-title {
  color: var(--text-primary);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.section-copy {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

/* ── Category chips ─────────────────────────────────────────── */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.category-chip:hover {
  background: rgba(215, 200, 255, .08);
  border-color: rgba(215, 200, 255, .3);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-chip.is-active {
  background: rgba(215, 200, 255, .12);
  border-color: rgba(215, 200, 255, .35);
  color: var(--primary);
}

.category-chip .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary);
}

/* Category card grid (homepage) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.category-card:hover {
  background: rgba(215, 200, 255, .07);
  border-color: rgba(215, 200, 255, .25);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-card .cat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(215, 200, 255, .1);
  border: 1px solid rgba(215, 200, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.category-card .cat-icon .material-symbols-outlined {
  font-size: 22px;
}

.category-card .cat-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Product Grid & Cards ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)), var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 214, 228, .24);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #101318;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.product-media a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Badges */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  border: 1px solid;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.product-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-ok {
  color: var(--accent-green);
  background: rgba(120, 216, 139, .12);
  border-color: rgba(120, 216, 139, .28);
}

.badge-warn {
  color: var(--accent-amber);
  background: rgba(242, 200, 107, .12);
  border-color: rgba(242, 200, 107, .28);
}

.badge-error {
  color: var(--error);
  background: rgba(255, 107, 125, .12);
  border-color: rgba(255, 107, 125, .28);
}

/* Product body */
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.product-category {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: var(--accent-amber);
  font-size: 13px;
}

.product-rating-row.is-compact {
  margin-top: -2px;
}

.product-rating-row.is-empty {
  color: var(--text-muted);
}

.product-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: inherit;
  white-space: nowrap;
}

.product-rating-stars .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}

.product-rating-value {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-rating-value span {
  opacity: .82;
}

.product-price {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.product-action {
  margin-top: auto;
  width: 100%;
}

/* Quick-add button on card */
.product-quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  background: rgba(215, 200, 255, .07);
  border: 1px solid rgba(215, 200, 255, .22);
  border-radius: var(--r-md);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.product-quick-add:hover {
  background: rgba(215, 200, 255, .14);
  border-color: rgba(215, 200, 255, .4);
  transform: translateY(-1px);
}

.product-quick-add:disabled {
  opacity: .4;
  pointer-events: none;
}

.product-quick-add .material-symbols-outlined {
  font-size: 16px;
}

/* ── Shop toolbar ───────────────────────────────────────────── */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.shop-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.sort-select-wrap {
  position: relative;
}

.sort-select-wrap .material-symbols-outlined {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.sort-select {
  height: 36px;
  padding: 0 32px 0 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition);
}

.sort-select:focus {
  border-color: rgba(52, 214, 228, .5);
  outline: none;
}

/* ── Page heading ───────────────────────────────────────────── */
.page-heading {
  padding: 24px 0 8px;
}

/* ── Product Detail ─────────────────────────────────────────── */
.detail-media-panel {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #11141a;
}

.related-products-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

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

@media (min-width: 640px) {
  .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.related-product-card .product-media {
  aspect-ratio: 1 / 1;
}

.product-reviews-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.review-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .04);
}

.review-score {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-amber);
  white-space: nowrap;
}

.review-stars .material-symbols-outlined {
  font-size: 18px;
}

.review-count,
.review-meta,
.review-date {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

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

@media (min-width: 900px) {
  .product-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .028)), var(--surface-1);
  box-shadow: var(--shadow-sm);
}

.review-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
  border: 1px solid rgba(215, 200, 255, .18);
  border-radius: 50%;
  background: rgba(215, 200, 255, .10);
}

.review-author {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-message {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.review-empty-state {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .035);
  color: var(--text-secondary);
}

.review-empty-state .material-symbols-outlined {
  color: var(--primary);
  font-size: 28px;
}

.review-empty-state strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 2px;
}

.review-empty-state p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 48px;
}

.qty-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text-primary);
}

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

.qty-input {
  width: 52px;
  height: 100%;
  background: transparent;
  border: none;
  text-align: center;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  appearance: none;
}

/* Mobile sticky CTA */
.sticky-add-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 12px 16px;
  background: rgba(11, 13, 16, .95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: none;
}

@media (max-width: 767px) {
  .sticky-add-bar {
    display: block;
  }
}

/* ── Checkout progress ──────────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--r-full);
}

.checkout-step.is-active {
  color: var(--primary);
  background: rgba(215, 200, 255, .1);
}

.checkout-step.is-done {
  color: var(--accent-green);
}

.checkout-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.checkout-step.is-active .checkout-step-num {
  background: rgba(215, 200, 255, .2);
  border-color: rgba(215, 200, 255, .4);
}

.checkout-step.is-done .checkout-step-num {
  background: rgba(83, 213, 141, .15);
  border-color: rgba(83, 213, 141, .3);
}

.checkout-step-divider {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  min-width: 16px;
  max-width: 40px;
}

/* ── Checkout panel ─────────────────────────────────────────── */
.checkout-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)), var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Cart item AJAX spinner */
.qty-loading {
  opacity: .45;
  pointer-events: none;
}

.qty-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.qty-loading .qty-spinner {
  display: inline-block;
}

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

/* ── Success / Order Confirmed ──────────────────────────────── */
@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.confetti-piece {
  position: fixed;
  top: -10px;
  z-index: 9999;
  pointer-events: none;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

.success-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  background: rgba(83, 213, 141, .12);
  border: 1px solid rgba(83, 213, 141, .25);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop .45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes successPop {
  from {
    transform: scale(.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Star rating widget */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  font-size: 28px;
  line-height: 1;
}

.star-btn:hover,
.star-btn.is-active {
  color: var(--accent-amber);
  transform: scale(1.15);
}

.star-display {
  display: inline-flex;
  gap: 2px;
}

.star-display .material-symbols-outlined {
  font-size: 16px;
  color: var(--accent-amber);
}

.star-display .material-symbols-outlined.empty {
  color: var(--border-subtle);
}

/* ── Login ──────────────────────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, rgba(52, 214, 228, .07), transparent 40%), var(--main-bg);
}

.login-card {
  width: min(100%, 440px);
  padding: 36px;
  display: grid;
  gap: 24px;
}

.login-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background: rgba(215, 200, 255, .12);
  border: 1px solid rgba(215, 200, 255, .25);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  color: var(--primary);
}

/* ── Status pills ───────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-full);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .03em;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pending,
.status-processing {
  color: var(--warning);
  background: rgba(242, 189, 92, .08);
  border-color: rgba(242, 189, 92, .2);
}

.status-confirmed,
.status-shipped,
.status-delivered,
.status-resolved,
.status-read {
  color: var(--success);
  background: rgba(83, 213, 141, .08);
  border-color: rgba(83, 213, 141, .2);
}

.status-cancelled,
.status-unread {
  color: var(--error);
  background: rgba(255, 107, 125, .08);
  border-color: rgba(255, 107, 125, .2);
}

/* ── Admin Layout ───────────────────────────────────────────── */
.admin-body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(11, 13, 16, .95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  height: 100vh;
}

@media (max-width: 767px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
}

.sidebar-overlay.is-open {
  display: block;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.sidebar-brand {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(215, 200, 255, .15);
  border: 1px solid rgba(215, 200, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.sidebar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text-primary);
}

.admin-nav-link.is-active {
  background: rgba(215, 200, 255, .12);
  color: var(--primary);
  border: 1px solid rgba(215, 200, 255, .2);
}

.admin-nav-link .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--error);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: 12px 8px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Admin main content area */
.admin-main {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
}

.admin-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 16px;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 13, 16, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 767px) {
  .admin-topbar {
    display: flex;
  }
}

.admin-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-page-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.admin-page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Dashboard cards ────────────────────────────────────────── */
.dashboard-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)), var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 200, 255, .16);
}

.dashboard-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.dashboard-card-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1;
}

.dashboard-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
}

.dashboard-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Admin Table ────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, .025);
}

.admin-table tr.is-expanded td {
  background: rgba(215, 200, 255, .04);
  border-bottom-color: transparent;
}

.order-detail-row {
  display: none;
}

.order-detail-row.is-open {
  display: table-row;
}

.order-detail-cell {
  padding: 12px 16px 20px;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

/* ── Admin Filter Strip ─────────────────────────────────────── */
.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background: rgba(215, 200, 255, .12);
  border-color: rgba(215, 200, 255, .3);
  color: var(--primary);
}

/* ── Admin Modal ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
  animation: fadeIn .2s ease;
}

.modal-box {
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  animation: modalIn .25s cubic-bezier(.34, 1.3, .64, 1);
}

@keyframes modalIn {
  from {
    transform: scale(.93) translateY(12px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: rgba(255, 107, 125, .1);
  color: var(--error);
}

/* Image preview */
.img-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.img-preview .material-symbols-outlined {
  color: var(--text-muted);
  font-size: 24px;
}

/* ── Feedback stars display ─────────────────────────────────── */
.feedback-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-stars {
  display: flex;
  gap: 2px;
}

.feedback-stars .material-symbols-outlined {
  font-size: 18px;
}

.feedback-stars .filled {
  color: var(--accent-amber);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.feedback-stars .empty {
  color: rgba(255, 255, 255, .15);
}

/* Rating summary bar */
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.rating-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 14px;
  text-align: center;
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent-amber);
  transition: width .6s ease;
}

.rating-bar-count {
  font-size: 12px;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.page-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text-primary);
}

.page-btn.is-active {
  background: rgba(215, 200, 255, .14);
  border-color: rgba(215, 200, 255, .3);
  color: var(--primary);
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--text-muted);
}

.empty-state h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}
