    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    img,
    svg,
    video {
      max-width: 100%;
      height: auto;
    }

    [hidden] {
      display: none !important;
    }

    :root {
      --accent: #f593ff;
      --accent-dim: #ba37c7;
      --accent-rgb: 220, 140, 225;
      --mint: #5ff7bf;
      --mint-rgb: 95, 247, 191;
      --reserved: #c8a96a;
    }

    html {
      overflow-y: scroll;
      scrollbar-gutter: stable;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: #0a0a0a;
      color: #e0e0e0;
      min-height: 100vh;
      padding: 24px;
    }

    .bg-grid {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
      -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      animation: fadeIn 0.6s ease;
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      min-height: calc(100vh - 47px);
    }

    /* Header */
    .header-sentinel {
      height: 1px;
      pointer-events: none;
    }

    header {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      padding: 0 24px;
      background: #1111118c;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      /* No margin-bottom: sticky header margin leaves a dead unblurred gap under Shop chrome. */
      animation: slideDown 0.5s ease;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: none;
      view-transition-name: site-header;
      transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, border-radius 0.35s ease, backdrop-filter 0.35s ease;
    }

    ::view-transition-old(site-header) {
      animation: none;
      opacity: 0;
    }

    ::view-transition-new(site-header) {
      animation: none;
    }

    header.header--float {
      border-radius: 0 0 14px 14px;
      background: rgba(17, 17, 17, 0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-color: rgba(30, 30, 30, 0.6);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
    }

    @media (prefers-reduced-motion: reduce) {
      header {
        transition: none;
      }
    }

    .logo {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.5px;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 0;
      text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
      cursor: pointer;
    }

    .logo-icon {
      width: 64px;
      height: 64px;
      border-radius: 8px;
      object-fit: contain;
      display: inline-block;
      vertical-align: middle;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
    }

    .logo-text {
      display: flex;
      flex-direction: column;
      line-height: 1.05;
    }

    .logo-text-bottom {
      color: #f593ff;
      font-weight: 400;
    }

    .nav-links {
      display: flex;
      align-items: stretch;
      gap: 0;
    }

    .nav-links a {
      position: relative;
      display: flex;
      align-items: center;
      padding: 10px 16px;
      color: #888;
      text-decoration: none;
      font-size: 18px;
      font-weight: 600;
      transition: color 0.2s;
      text-shadow: 3px 3px 0 rgb(0, 0, 0);
    }

    .nav-links a:hover {
      color: #fff;
    }

    .nav-links a.nav-link--active {
      color: var(--accent);
    }

    .nav-links a.nav-link--active::after {
      content: '';
      position: absolute;
      left: 50%;
      top: calc(50% + 0.5em + 10px);
      transform: translateX(-50%);
      width: 48px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      pointer-events: none;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 0;
    }

    .btn-oauth {
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      border: 1px solid #2a2a2a;
      background: #181818;
      color: #ccc;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .btn-oauth:hover {
      background: #222;
      border-color: #444;
      color: #fff;
      transform: translateY(-1px);
    }

    /* Hero */
    .hero {
      text-align: center;
      padding: 45px 20px 45px;
      animation: fadeIn 0.8s ease;
    }

    .hero h1 {
      font-size: clamp(28px, 5vw + 1rem, 42px);
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.03em;
      margin-bottom: 16px;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero h1 span {
      color: var(--accent);
    }

    .hero-sub {
      font-size: 16px;
      color: #888;
      max-width: 520px;
      margin: 0 auto 32px;
      line-height: 1.6;
    }

    .hero-btns {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(var(--accent-rgb), 0.08);
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      border-radius: 20px;
      padding: 5px 14px;
      font-size: 12px;
      color: var(--accent);
      margin-bottom: 20px;
      font-weight: 500;
    }

    .section-title {
      font-size: 14px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 10px;
    }

    /* Feature Cards */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
      margin-bottom: clamp(48px, 10vw, 100px);
      animation: fadeIn 0.6s ease backwards;
    }

    .feature-card {
      background: #111111;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      padding: 24px;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .feature-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.06);
    }

    .feature-card .fc-icon {
      font-size: 24px;
      margin-bottom: 12px;
      color: var(--accent);
    }

    .feature-card h3 {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
    }

    .feature-card p {
      font-size: 13px;
      color: #777;
      line-height: 1.5;
    }

    /* Analytics */
    .analytics-shell {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
      gap: 16px;
      margin-bottom: clamp(48px, 10vw, 100px);
      animation: fadeIn 0.6s ease backwards;
    }

    .analytics-panel,
    .analytics-side-card {
      background: #111111;
      border: 1px solid #1e1e1e;
      border-radius: 16px;
      padding: 24px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
      position: relative;
      overflow: hidden;
    }

    .analytics-panel,
    .analytics-side-card {
      padding: 20px;
    }

    .analytics-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.13), transparent 34%), radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.035), transparent 32%);
    }

    .analytics-panel>*,
    .analytics-side-card>* {
      position: relative;
      z-index: 1;
    }

    .analytics-header {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }

    .analytics-eyebrow {
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    .analytics-header h2 {
      font-size: 22px;
      line-height: 1.15;
      color: #fff;
      letter-spacing: -0.03em;
      margin-bottom: 6px;
    }

    .analytics-header p {
      max-width: 520px;
      font-size: 13px;
      color: #777;
      line-height: 1.5;
    }

    .analytics-live {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      flex-shrink: 0;
      padding: 7px 11px;
      border: 1px solid rgba(var(--accent-rgb), 0.24);
      border-radius: 999px;
      background: rgba(var(--accent-rgb), 0.08);
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
    }

    .analytics-live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.12);
      animation: livePulse 1.8s ease-in-out infinite;
    }

    .analytics-chart {
      position: relative;
      min-height: 0;
      padding: 14px;
      border: 1px solid #202020;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), #0d0d0d;
      overflow: hidden;
    }

    .analytics-chart::before {
      content: '';
      position: absolute;
      inset: 14px;
      opacity: 0.8;
      pointer-events: none;
      background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
      background-size: 100% 40px, 80px 100%;
    }

    .analytics-overlay-card {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 2;
      min-width: 140px;
      padding: 10px 12px;
      border: 1px solid rgba(var(--accent-rgb), 0.16);
      border-radius: 12px;
      background: rgba(10, 10, 10, 0.82);
      backdrop-filter: blur(10px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    }

    .analytics-overlay-card span {
      display: block;
      margin-bottom: 5px;
      font-size: 11px;
      color: #777;
      text-transform: uppercase;
      letter-spacing: 0.7px;
    }

    .analytics-overlay-card strong {
      display: block;
      color: #fff;
      font-size: 20px;
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .analytics-overlay-card em {
      display: block;
      margin-top: 7px;
      color: var(--accent);
      font-size: 12px;
      font-style: normal;
    }

    .chart-svg {
      display: block;
      width: 100%;
      aspect-ratio: 720 / 190;
      height: auto;
      margin-top: 12px;
      overflow: visible;
    }

    .chart-area {
      fill: url(#analyticsArea);
    }

    .chart-line {
      fill: none;
      stroke: url(#analyticsLine);
      stroke-width: 5;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.38));
    }

    .chart-point {
      fill: #0d0d0d;
      stroke: var(--accent);
      stroke-width: 4;
      filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.5));
    }

    .chart-axis {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-top: 10px;
      color: #555;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
    }

    .analytics-kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .analytics-kpi {
      padding: 12px;
      border: 1px solid #202020;
      border-radius: 12px;
      background: #0d0d0d;
    }

    .analytics-kpi-label {
      font-size: 11px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 8px;
    }

    .analytics-kpi-value {
      color: #fff;
      font-size: 20px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .analytics-kpi-change {
      display: inline-flex;
      margin-top: 6px;
      color: var(--accent);
      font-size: 11px;
    }

    .analytics-side {
      display: grid;
      gap: 16px;
    }

    @media (min-width: 881px) {
      .analytics-side {
        grid-template-rows: repeat(2, minmax(0, 1fr));
        min-height: 100%;
      }

      .analytics-side-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
      }

      .analytics-side-card .pipeline-grid {
        flex: 1;
        margin-bottom: 12px;
      }

      .analytics-side-card .pipeline-note {
        margin-top: auto;
      }
    }

    .analytics-side-card {
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .analytics-side-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.06);
    }

    .side-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
      flex-shrink: 0;
    }

    .side-card-header span {
      font-size: 12px;
      color: #777;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

    .side-card-header strong {
      color: var(--accent);
      font-size: 13px;
    }

    .pipeline-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(16px, 1fr));
      align-items: end;
      gap: 8px;
      min-height: 88px;
      margin: 0 0 12px;
      padding: 0 2px;
    }

    .pipeline-bar {
      border-radius: 999px 999px 4px 4px;
      background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-rgb), 0.22));
      border: 1px solid rgba(var(--accent-rgb), 0.16);
      min-height: 28px;
      box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.08);
    }

    .pipeline-note {
      padding: 10px 12px;
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      border-radius: 12px;
      background: rgba(var(--accent-rgb), 0.07);
      color: #b7f4df;
      font-size: 12px;
      line-height: 1.45;
      flex-shrink: 0;
    }

    .pie-charts-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      flex: 1;
      align-content: center;
    }

    .pie-chart-block {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .pie-chart-title {
      font-size: 10px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.7px;
    }

    .pie-chart-body {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .pie-chart-wrap {
      position: relative;
      width: 68px;
      flex-shrink: 0;
    }

    .pie-chart-svg {
      display: block;
      width: 100%;
      height: auto;
      overflow: visible;
    }

    .pie-ring-bg {
      fill: none;
      stroke: #1a1a1a;
      stroke-width: 3.8;
    }

    .pie-slice {
      fill: none;
      stroke-width: 3.8;
      stroke-linecap: butt;
    }

    .pie-slice--accent {
      stroke: var(--accent);
      filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.35));
    }

    .pie-slice--mint {
      stroke: #5ff7bf;
    }

    .pie-slice--indigo {
      stroke: #6366f1;
    }

    .pie-slice--muted {
      stroke: #444;
    }

    .pie-chart-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      pointer-events: none;
    }

    .pie-chart-center strong {
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .pie-chart-center span {
      margin-top: 2px;
      color: #666;
      font-size: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .pie-legend {
      display: grid;
      gap: 4px;
      flex: 1;
      min-width: 0;
    }

    .pie-legend-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      font-size: 10px;
      color: #777;
      line-height: 1.2;
    }

    .pie-legend-row strong {
      color: #bbb;
      font-weight: 600;
      font-size: 10px;
    }

    .pie-legend-label {
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .pie-swatch {
      width: 6px;
      height: 6px;
      border-radius: 2px;
      flex-shrink: 0;
    }

    .pie-swatch--accent {
      background: var(--accent);
      box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.35);
    }

    .pie-swatch--mint {
      background: #5ff7bf;
    }

    .pie-swatch--indigo {
      background: #6366f1;
    }

    .pie-swatch--muted {
      background: #444;
    }

    /* Pricing */
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
      margin-bottom: clamp(48px, 10vw, 100px);
      animation: fadeIn 0.6s ease backwards;
    }

    .pricing-card {
      background: #111111;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      padding: 24px;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      text-align: center;
      display: flex;
      flex-direction: column;
    }

    .pricing-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.06);
    }

    .pricing-card.featured {
      border-color: var(--accent);
      position: relative;
    }

    .pricing-card.featured::before {
      content: 'Most Popular';
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--accent);
      color: #0a0a0a;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 14px;
      border-radius: 10px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .pricing-card .p-name {
      font-size: 14px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 12px;
    }

    .pricing-card .p-price {
      font-size: 36px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }

    .pricing-card .p-price small {
      font-size: 14px;
      font-weight: 400;
      color: #666;
    }

    .pricing-card .p-desc {
      font-size: 13px;
      color: #666;
      margin-bottom: 16px;
    }

    .pricing-card ul {
      list-style: none;
      text-align: left;
      margin-bottom: 20px;
      flex: 1;
    }

    .pricing-card ul li {
      padding: 6px 0;
      font-size: 13px;
      color: #aaa;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .pricing-card ul li::before {
      content: '✓';
      color: var(--accent);
      font-weight: 700;
    }

    .pricing-card ul li.muted {
      color: #555;
    }

    .pricing-card ul li.muted::before {
      color: #444;
      content: '—';
    }

    /* Table / placeholder reuse */
    .table-wrap {
      background: #111111;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-bottom: clamp(48px, 10vw, 100px);
      animation: fadeIn 0.6s ease backwards;
    }

    table {
      width: 100%;
      min-width: 520px;
      border-collapse: collapse;
    }

    th {
      text-align: left;
      padding: 14px 18px;
      font-size: 11px;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      border-bottom: 1px solid #1a1a1a;
      background: #0d0d0d;
    }

    td {
      padding: 5px 18px;
      font-size: 14px;
      border-bottom: 1px solid #181818;
    }

    tr:last-child td {
      border-bottom: none;
    }

    tr {
      transition: background 0.2s;
    }

    tr:hover td {
      background: #161616;
    }

    .status-pill {
      display: inline-block;
      font-size: 11px;
      padding: 3px 10px;
      border-radius: 20px;
      font-weight: 500;
    }

    .status-active {
      background: rgba(var(--accent-rgb), 0.1);
      color: var(--accent);
    }

    .status-trial {
      background: #6366f11a;
      color: #a5b4fc;
    }

    .status-review {
      background: rgba(245, 158, 11, 0.16);
      color: #fbbf24;
    }

    .order-review-warning {
      max-width: 220px;
      margin-top: 6px;
      color: #fbbf24;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
    }

    .progress-wrap {
      width: min(120px, 100%);
      max-width: 100%;
      height: 6px;
      background: #1a1a1a;
      border-radius: 4px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: 4px;
      background: linear-gradient(90deg, var(--accent), var(--accent-dim));
      transition: width 0.8s ease;
      width: 0%;
    }

    /* Actions */
    .actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 28px;
    }

    .btn {
      padding: 10px 22px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      border: 1px solid #2a2a2a;
      background: #181818;
      color: #ccc;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn:hover {
      background: #222;
      border-color: #444;
      color: #fff;
      transform: translateY(-1px);
    }

    .btn-primary {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, var(--accent), var(--accent-dim));
      color: #0a0a0a;
      border-color: var(--accent);
      font-weight: 600;
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: -45%;
      bottom: -45%;
      left: -70%;
      width: 55%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14), transparent);
      transform: skewX(-20deg);
      opacity: 0;
      pointer-events: none;
    }

    .pricing-card:hover .btn-primary::before,
    .shop-card:hover .btn-primary::before {
      animation: btnShine 3.2s ease-in-out infinite;
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #ffc4ff, var(--accent-dim));
      color: #0a0a0a;
      border-color: var(--accent-dim);
      filter: brightness(1.06);
      box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.32);
    }

    .btn-ghost {
      background: transparent;
      border-color: transparent;
      color: #888;
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.04);
      color: #ccc;
    }

    /* Profile */
    .profile-wrapper {
      position: relative;
    }

    .profile-wrapper::after {
      content: '';
      position: absolute;
      top: 100%;
      right: 0;
      width: 220px;
      height: 10px;
    }

    .profile-trigger {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      padding: 4px 12px 4px 4px;
      border-radius: 10px;
      outline: none;
      transition: background 0.18s ease, box-shadow 0.18s ease;
    }

    .profile-trigger:hover,
    .profile-trigger:focus-visible,
    .profile-wrapper:hover .profile-trigger,
    .profile-wrapper:focus-within .profile-trigger {
      background: rgba(255, 255, 255, 0.04);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    }

    .profile-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #2d2d2d;
      color: #ef93ff;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .profile-avatar img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .profile-info {
      line-height: 1.3;
    }

    .profile-name {
      font-size: 14px;
      font-weight: 600;
      color: #e0e0e0;
    }

    .profile-email {
      font-size: 12px;
      color: #666;
    }

    .profile-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 190px;
      padding: 7px;
      z-index: 100;
      background: linear-gradient(180deg, #131313, #101010);
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.025);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-5px) scale(0.985);
      transform-origin: top right;
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    }

    .profile-wrapper:hover .profile-menu,
    .profile-menu.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0) scale(1);
      transition-delay: 0s;
    }

    .profile-menu-item {
      padding: 9px 11px;
      border: 1px solid transparent;
      border-radius: 8px;
      font-size: 13px;
      color: #b8b8b8;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .profile-menu-item:hover {
      background: rgba(255, 255, 255, 0.045);
      border-color: #252525;
      color: #fff;
    }

    .profile-menu-danger {
      color: #f87171;
    }

    .profile-menu-danger:hover {
      background: rgba(248, 113, 113, 0.1);
      border-color: rgba(248, 113, 113, 0.16);
      color: #f87171;
    }

    .profile-menu-divider {
      height: 1px;
      background: #1e1e1e;
      margin: 5px 3px;
    }

    /* Sign in */
    .signin-wrapper {
      position: relative;
    }

    .signin-wrapper::after {
      content: '';
      position: absolute;
      top: 100%;
      right: 0;
      width: 260px;
      height: 10px;
    }

    .signin-trigger {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px 10px 20px;
      border-radius: 10px;
      border: 1px solid #2a2a2a;
      background: #181818;
      color: #e0e0e0;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .signin-trigger-chevron {
      width: 20px;
      height: 20px;
      color: #888;
      flex-shrink: 0;
      transition: transform 0.18s ease, color 0.18s ease;
    }

    .signin-wrapper:hover .signin-trigger-chevron,
    .signin-wrapper:focus-within .signin-trigger-chevron,
    .signin-wrapper:has(.signin-menu.open) .signin-trigger-chevron {
      color: #aaa;
      transform: rotate(180deg);
    }

    .signin-trigger:hover,
    .signin-trigger:focus-visible,
    .signin-wrapper:hover .signin-trigger,
    .signin-wrapper:focus-within .signin-trigger {
      background: rgba(255, 255, 255, 0.04);
      border-color: #3a3a3a;
      color: #fff;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    }

    .signin-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 260px;
      padding: 10px;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: linear-gradient(180deg, #131313, #101010);
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.025);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-5px) scale(0.985);
      transform-origin: top right;
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    }

    .signin-wrapper:hover .signin-menu,
    .signin-menu.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0) scale(1);
      transition-delay: 0s;
    }

    .btn-signin-provider {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      padding: 11px 16px 11px 20px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      transition: filter 0.15s ease, transform 0.15s ease;
    }

    .btn-signin-provider:hover {
      filter: brightness(1.08);
      transform: translateY(-1px);
    }

    .signin-provider-icon {
      width: 20px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .signin-provider-icon svg {
      display: block;
    }

    .btn-signin-x {
      background: #000;
      color: #fff;
    }

    .btn-signin-google {
      background: #fff;
      color: #3c4043;
    }

    /* Toast */
    .toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .toast {
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      padding: 14px 20px;
      font-size: 13px;
      color: #ddd;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      min-width: 220px;
      animation: slideInRight 0.35s ease;
      border-left: 3px solid var(--accent);
    }

    .toast.fade-out {
      animation: fadeOut 0.3s ease forwards;
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      animation: fadeIn 0.2s ease;
    }

    .modal-overlay[hidden] {
      display: none;
    }

    .modal {
      background: #141414;
      border: 1px solid #222;
      border-radius: 14px;
      padding: 28px 32px;
      max-width: 420px;
      width: 90%;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
      animation: scaleIn 0.25s ease;
    }

    .modal h2 {
      font-size: 18px;
      margin-bottom: 6px;
      color: #fff;
    }

    .modal p {
      font-size: 14px;
      color: #888;
      margin-bottom: 4px;
    }

    .modal .preview-box {
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      border-radius: 8px;
      padding: 16px;
      margin: 16px 0;
      font-size: 13px;
      color: #aaa;
    }

    .modal .btn {
      margin-top: 8px;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes fadeOut {
      from {
        opacity: 1;
      }

      to {
        opacity: 0;
        transform: translateY(8px);
      }
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes btnShine {
      0% {
        opacity: 0;
        transform: skewX(-20deg) translateX(0);
      }

      12% {
        opacity: 1;
      }

      35% {
        opacity: 0;
        transform: skewX(-20deg) translateX(340%);
      }

      100% {
        opacity: 0;
        transform: skewX(-20deg) translateX(340%);
      }
    }

    @keyframes livePulse {

      0%,
      100% {
        box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
      }

      50% {
        box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.03);
      }
    }

    /* Form fields */
    .form-group {
      margin-bottom: 14px;
    }

    .form-group label {
      display: block;
      font-size: 12px;
      color: #666;
      margin-bottom: 5px;
      font-weight: 600;
      text-transform: none;
    }

    .form-group input {
      width: 100%;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid #2a2a2a;
      background: #0d0d0d;
      color: #e0e0e0;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s;
    }

    .form-group input:focus {
      border-color: var(--accent);
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .card-row {
      display: flex;
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      background: #0d0d0d;
    }

    .card-row .card-icon {
      font-size: 18px;
      color: #666;
    }

    .footer-text {
      text-align: center;
      padding: 24px 0 8px;
      font-size: 12px;
      color: #555;
      border-top: 1px solid #181818;
      margin-top: auto;
      margin-bottom: 16px;
      display: flex;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }

    .footer-text a {
      color: #666;
      text-decoration: none;
    }

    .footer-text a:hover {
      color: #888;
    }

    .feature-card:nth-child(1) {
      animation-delay: 0.05s;
    }

    .feature-card:nth-child(2) {
      animation-delay: 0.1s;
    }

    .feature-card:nth-child(3) {
      animation-delay: 0.15s;
    }

    .feature-card:nth-child(4) {
      animation-delay: 0.2s;
    }

    .feature-card:nth-child(5) {
      animation-delay: 0.25s;
    }

    .feature-card:nth-child(6) {
      animation-delay: 0.3s;
    }

    .pricing-card:nth-child(1) {
      animation-delay: 0.05s;
    }

    .pricing-card:nth-child(2) {
      animation-delay: 0.1s;
    }

    .pricing-card:nth-child(3) {
      animation-delay: 0.15s;
    }

    @media (max-width: 880px) {
      .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }

      .nav-links a {
        padding: 10px 8px;
      }

      .analytics-shell {
        grid-template-columns: 1fr;
      }

      .analytics-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .analytics-overlay-card {
        position: relative;
        top: auto;
        right: auto;
        min-width: 0;
        margin-bottom: 12px;
      }

      .chart-svg {
        margin-top: 0;
      }
    }

    @media (max-width: 560px) {
      body {
        padding: 14px;
      }

      .container {
        min-height: calc(100vh - 27px);
      }

      header {
        padding: 0 14px;
      }

      .logo,
      .header-actions {
        padding: 14px 0;
      }

      .nav-links {
        justify-content: space-between;
      }

      .nav-links a {
        font-size: 13px;
        padding: 14px 5px;
      }

      .profile-info {
        display: none;
      }

      .hero {
        padding: 40px 12px 32px;
      }

      .hero-sub {
        font-size: 15px;
      }

      .form-row {
        grid-template-columns: 1fr;
      }

      .toast-container {
        left: 16px;
        right: 16px;
      }

      .toast {
        min-width: 0;
        max-width: calc(100vw - 48px);
      }

      .analytics-panel,
      .analytics-side-card {
        padding: 18px;
      }

      .analytics-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .analytics-header h2 {
        font-size: 20px;
      }

      .analytics-chart {
        min-height: 0;
        padding: 14px;
      }

      .analytics-chart::before {
        inset: 14px;
        background-size: 100% 46px, 72px 100%;
      }

      .analytics-kpis {
        grid-template-columns: 1fr;
      }

      .pie-charts-grid {
        grid-template-columns: 1fr;
      }

      .pie-chart-body {
        gap: 12px;
      }

      .pie-chart-wrap {
        width: 80px;
      }
    }

    .app-view {
      display: none;
    }

    .app-view.is-active {
      display: block;
      flex: 1 0 auto;
      animation: fadeIn 0.25s ease;
    }

    .profile-menu-item--active {
      color: var(--accent);
      background: rgba(var(--accent-rgb), 0.08);
      border-color: rgba(var(--accent-rgb), 0.15);
      cursor: default;
    }

    .account-shell {
      display: grid;
      grid-template-columns: 200px minmax(0, 1fr);
      gap: 16px;
      /* Content-side gap under header (not header margin — that dead-zones Shop when sticky). */
      margin-top: 18px;
      animation: fadeIn 0.6s ease backwards;
    }

    .account-sidebar {
      --account-sidebar-header-offset: 88px;
      --account-sidebar-pad: 12px;
      position: sticky;
      top: calc(var(--account-sidebar-header-offset) + var(--account-sidebar-pad));
      align-self: start;
      display: grid;
      gap: 12px;
    }

    #view-admin .account-shell {
      --admin-sidebar-header-offset: 88px;
      --admin-sidebar-pad: 12px;
    }

    #view-admin .account-sidebar {
      top: calc(var(--admin-sidebar-header-offset) + var(--admin-sidebar-pad));
      max-height: calc(100vh - var(--admin-sidebar-header-offset) - var(--admin-sidebar-pad) * 2);
    }

    #view-admin .account-nav {
      background: #0d0d0d;
      border-radius: 12px;
      box-shadow: black 2px 2px;
    }

    .account-nav {
      background: #111111;
      border: 1px solid #1e1e1e;
      border-radius: 16px;
      padding: 18px 10px;
    }

    .account-nav-label {
      font-size: 11px;
      font-weight: 700;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 0 12px 12px;
    }

    .account-nav-label--secondary {
      margin-top: 12px;
      padding-top: 14px;
      border-top: 1px solid #1e1e1e;
    }

    .account-nav-item {
      display: block;
      width: 100%;
      text-align: left;
      padding: 10px 12px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: none;
      font-size: 14px;
      font-weight: 500;
      color: #888;
      cursor: pointer;
      transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    }

    .account-nav-item:hover {
      color: #ccc;
      background: rgba(255, 255, 255, 0.03);
    }

    .account-nav-item--active,
    .account-nav-item--active:hover {
      color: var(--accent);
      background: rgba(var(--accent-rgb), 0.08);
      border-color: rgba(var(--accent-rgb), 0.15);
    }

    .account-panel {
      /* background: #111111;
      border: 1px solid #1e1e1e;
      border-radius: 16px; */
      padding: 28px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
      position: relative;
      overflow: hidden;
      min-width: 0;
      min-height: 480px;
    }

    /* Admin list/tool views no longer have page titles — drop the empty top pad only here.
       Customer account keeps the default .account-panel padding for profile/purchases headers. */
    #view-admin .account-panel {
      padding: 0 12px 24px;
    }

    #view-admin .account-panel.is-inventory-active {
      overflow: visible;
    }

    .account-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      /* background: radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.1), transparent 34%); */
    }

    .account-panel>* {
      position: relative;
      z-index: 1;
    }

    .account-section {
      display: none;
    }

    .account-section--active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    .account-section h2 {
      font-size: 24px;
      line-height: 1.15;
      color: #fff;
      letter-spacing: -0.03em;
      margin-bottom: 6px;
    }

    .account-section>p {
      font-size: 14px;
      color: #777;
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .account-profile-hero {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 18px;
      padding: 18px;
      border: 1px solid #202020;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), transparent 46%), #0d0d0d;
    }

    .account-profile-avatar {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: #2d2d2d;
      color: #ef93ff;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.04em;
    }

    .account-profile-avatar img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .account-profile-heading {
      flex: 1;
      min-width: 0;
    }

    .account-profile-heading p {
      max-width: 560px;
      color: #777;
      font-size: 14px;
      line-height: 1.55;
    }

    .account-profile-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
      gap: 16px;
    }

    .account-profile-card {
      min-width: 0;
    }

    .account-profile-card h3 {
      color: #fff;
      font-size: 15px;
      letter-spacing: -0.02em;
      margin-bottom: 10px;
    }

    .account-profile-highlights {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .account-profile-detail .account-detail-row span:last-child {
      overflow-wrap: anywhere;
    }

    .account-section>.analytics-kpis,
    .account-section>.account-plan,
    .account-section>.table-wrap,
    .account-section>.form-group {
      margin-top: 0;
    }

    .account-section>.analytics-kpis+.account-detail,
    .account-section>.account-plan+.actions {
      margin-top: 24px;
    }

    .account-detail {
      border: 1px solid #202020;
      border-radius: 12px;
      background: #0d0d0d;
      overflow: hidden;
    }

    .account-detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding: 14px 18px;
      border-bottom: 1px solid #181818;
      font-size: 14px;
    }

    .account-detail-row:last-child {
      border-bottom: none;
    }

    .account-detail-row span:first-child {
      color: #666;
    }

    .account-detail-row span:last-child {
      color: #e0e0e0;
      font-weight: 500;
      text-align: right;
    }

    .account-plan {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      padding: 20px;
      border: 1px solid #202020;
      border-radius: 12px;
      background: #0d0d0d;
    }

    .account-plan-name {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }

    .account-plan-price {
      font-size: 14px;
      color: #888;
    }

    .account-plan-price strong {
      color: var(--accent);
    }

    @media (max-width: 880px) {
      .account-shell {
        grid-template-columns: 1fr;
      }

      .account-sidebar {
        position: static;
        gap: 8px;
      }

      .account-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding: 10px;
      }

      .account-nav-label {
        display: none;
      }

      .account-nav-item {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
      }

      .account-profile-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 560px) {
      .account-plan {
        flex-direction: column;
      }

      .account-profile-hero {
        align-items: flex-start;
        flex-direction: column;
      }

      .account-profile-highlights {
        grid-template-columns: 1fr;
      }
    }

    /* Admin */
    .shop-header.admin-products-header,
    .shop-header.admin-product-form-header {
      margin-bottom: 24px;
    }

    .admin-product-form-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      flex-shrink: 0;
    }

    .admin-product-form-actions-primary {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    /* Compact secondary control: icon + label as one unit, content-width. */
    .admin-product-back-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.03);
      border-color: #2a2a2a;
      color: #888;
      white-space: nowrap;
      width: auto;
    }

    .admin-product-back-btn:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: #3a3a3a;
      color: #ccc;
    }

    .admin-product-back-btn:hover .admin-product-back-icon {
      color: #e8e8e8;
      transform: translateX(-1px);
    }

    .admin-product-back-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      display: block;
      color: #aaa;
      transition: color 0.15s ease, transform 0.15s ease;
    }

    .admin-product-form-header .admin-product-form-actions-primary .btn.btn-primary,
    .admin-product-form-header .admin-product-form-actions-primary .admin-toggle,
    .admin-product-form-header .admin-product-back-btn,
    .admin-bottom-toolbar .btn.btn-primary,
    .admin-bottom-toolbar .admin-toggle,
    .admin-bottom-toolbar .admin-product-back-btn {
      box-sizing: border-box;
      padding: 9px 16px;
      font-size: 13px;
      font-weight: 600;
      border-radius: 999px;
      flex-shrink: 0;
    }

    /* Stable widths so Live/Draft and Save/Saving… do not shift the action cluster. */
    .admin-product-form-header .admin-product-form-actions-primary .admin-toggle,
    .admin-bottom-toolbar .admin-toggle {
      justify-content: center;
      min-width: 5.25rem;
    }

    .admin-product-form-header .admin-product-form-actions-primary .btn.btn-primary,
    .admin-bottom-toolbar .btn.btn-primary {
      min-width: 6.5rem;
      text-align: center;
    }

    .admin-product-form-header .admin-product-form-actions-primary .admin-toggle {
      align-self: flex-start;
    }

    .admin-product-form-header .admin-toggle,
    .admin-bottom-toolbar .admin-toggle {
      transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
    }

    .admin-product-form-header .admin-toggle:hover:not(:disabled),
    .admin-bottom-toolbar .admin-toggle:hover:not(:disabled) {
      transform: translateY(-1px);
    }

    @keyframes adminBottomToolbarIn {
      from {
        transform: translate3d(0, 100%, 0);
        opacity: 0;
      }

      to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
      }
    }

    @keyframes adminBottomToolbarOut {
      from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
      }

      to {
        transform: translate3d(0, 100%, 0);
        opacity: 0;
      }
    }

    .admin-bottom-toolbar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: auto;
      z-index: 60;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 16px;
      background: rgba(17, 17, 17, 0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(30, 30, 30, 0.6);
      border-bottom: none;
      border-radius: 14px 14px 0 0;
      box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.75);
      font-size: 13px;
      transform: translate3d(0, 100%, 0);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .admin-bottom-toolbar.is-shown {
      transform: translate3d(0, 0, 0);
      opacity: 1;
      pointer-events: auto;
    }

    .admin-bottom-toolbar.is-entering {
      animation: adminBottomToolbarIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      pointer-events: none;
    }

    .admin-bottom-toolbar.is-leaving {
      animation: adminBottomToolbarOut 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      pointer-events: none;
    }

    @media (prefers-reduced-motion: reduce) {

      .admin-bottom-toolbar.is-entering,
      .admin-bottom-toolbar.is-leaving {
        animation: none;
      }
    }

    .admin-bottom-toolbar .admin-bottom-toolbar-right {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    #section-admin-new-product.admin-form-bottom-toolbar-visible {
      padding-bottom: 64px;
      transition: padding-bottom 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .admin-new-product-btn {
      flex-shrink: 0;
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 16px;
      border-radius: 999px;
      border: 1px solid rgba(95, 247, 191, 0.2);
      background: rgba(95, 247, 191, 0.08);
      color: #d7fff1;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
      white-space: nowrap;
    }

    .admin-new-product-btn:hover {
      background: rgba(95, 247, 191, 0.14);
      border-color: rgba(95, 247, 191, 0.35);
      color: #fff;
      transform: translateY(-1px);
    }

    .admin-new-product-btn-plus {
      color: #5ff7bf;
      font-size: 18px;
      line-height: 1;
      margin-top: -1px;
    }

    .admin-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .admin-search {
      flex: 1;
      max-width: 320px;
      padding: 9px 30px 9px 14px;
      border-radius: 8px;
      border: 1px solid #2a2a2a;
      background: #0d0d0d;
      color: #e0e0e0;
      font-size: 13px;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }

    .admin-search:focus {
      border-color: var(--accent);
    }

    .admin-search::placeholder {
      color: #555;
    }

    .admin-count {
      font-size: 12px;
      color: #666;
      white-space: nowrap;
    }

    .admin-inventory-save-hint {
      color: #d18c8c;
      font-size: 11px;
      line-height: 1.25;
      min-height: 14px;
    }

    .admin-inventory-tabs {
      align-items: center;
      color: #555;
      display: flex;
      flex-shrink: 0;
      font-size: 13px;
      gap: 8px;
      white-space: nowrap;
    }

    .admin-inventory-tab {
      background: transparent;
      border: 0;
      color: #999;
      cursor: pointer;
      font: inherit;
      padding: 0;
      transition: color 0.15s ease;
    }

    .admin-inventory-tab:hover,
    .admin-inventory-tab.is-active {
      color: var(--accent);
    }

    /* No backdrop-filter: sticky + blur re-rasters the whole account-panel on stick/unstick. */
    .admin-inventory-ops {
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      box-shadow: none;
      margin-bottom: 12px;
      padding: 12px;
      position: sticky;
      top: calc(var(--admin-sidebar-header-offset, 88px) + 12px);
      z-index: 20;
      transition: box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .admin-inventory-ops.is-floating {
      border-color: #252525;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }

    @media (prefers-reduced-motion: reduce) {
      .admin-inventory-ops {
        transition: none;
      }
    }

    .admin-inventory-ops-row,
    .admin-inventory-mode-row {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .admin-inventory-search-wrap {
      flex: 1 1 220px;
      max-width: 320px;
      min-width: 200px;
    }

    .admin-inventory-count {
      color: #aaa;
      margin-left: auto;
      overflow-wrap: anywhere;
      white-space: normal;
    }

    .admin-inventory-filter {
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #2a2a2a;
      background: #0d0d0d;
      color: #e0e0e0;
      font-size: 13px;
      font-family: inherit;
      outline: none;
      min-width: 132px;
    }

    .admin-inventory-filter:focus {
      border-color: rgba(var(--accent-rgb), 0.55);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    }

    .admin-inventory-mode-row {
      margin-top: 10px;
    }

    .admin-inventory-mode-chips {
      align-items: center;
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      gap: 6px;
      min-width: 0;
    }

    .admin-inventory-mode-chip {
      background: #121212;
      border: 1px solid #2a2a2a;
      border-radius: 999px;
      color: #aaa;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      padding: 5px 11px;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .admin-inventory-mode-chip:hover {
      border-color: #444;
      color: #eee;
    }

    .admin-inventory-mode-chip.is-active {
      background: rgba(var(--accent-rgb), 0.12);
      border-color: rgba(var(--accent-rgb), 0.38);
      color: var(--accent);
    }

    .admin-inventory-tree-tools {
      align-items: center;
      display: flex;
      flex-shrink: 0;
      gap: 8px;
      margin-left: auto;
    }

    .admin-inventory-tree-tool {
      background: #121212;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #aaa;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      padding: 5px 10px;
    }

    .admin-inventory-tree-tool:hover {
      border-color: #444;
      color: #eee;
    }

    .admin-inventory-tree {
      display: grid;
      gap: 10px;
    }

    .admin-inventory-tree.is-row-selecting {
      user-select: none;
    }

    .admin-inventory-product {
      background: #0d0d0d;
      border: 1px solid #222;
      border-radius: 12px;
      overflow: hidden;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .admin-inventory-product.is-dirty {
      border-color: rgba(var(--accent-rgb), 0.3);
      box-shadow: inset 3px 0 0 rgba(var(--accent-rgb), 0.55);
    }

    .admin-inventory-product.has-selected {
      border-color: rgba(var(--mint-rgb), 0.28);
    }

    .admin-inventory-product-head {
      align-items: center;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      transition: background 0.15s ease;
    }

    .admin-inventory-product-head:hover {
      background: #111113;
    }

    .admin-inventory-product-main {
      align-items: center;
      background: transparent;
      border: 0;
      color: inherit;
      cursor: pointer;
      display: grid;
      font: inherit;
      gap: 12px;
      grid-template-columns: 28px 44px minmax(0, 1fr);
      align-items: center;
      min-width: 0;
      padding: 12px 8px 12px 14px;
      text-align: left;
      width: 100%;
    }

    .admin-inventory-chevron {
      align-items: center;
      background: #141414;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #888;
      display: inline-flex;
      height: 28px;
      justify-content: center;
      transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
      width: 28px;
    }

    .admin-inventory-chevron svg {
      fill: none;
      height: 12px;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 2;
      width: 12px;
    }

    .admin-inventory-product.is-open .admin-inventory-chevron {
      border-color: rgba(var(--accent-rgb), 0.35);
      color: var(--accent);
      transform: rotate(90deg);
    }

    .admin-product-icon.admin-inventory-product-image {
      border-radius: 8px;
      height: 44px;
      width: 44px;
    }

    .admin-inventory-product-identity {
      display: block;
      min-width: 0;
    }

    .admin-inventory-product-identity>strong {
      color: #f0f0f0;
      display: block;
      font-size: 14px;
      font-weight: 650;
      letter-spacing: -0.01em;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .admin-inventory-product-meta {
      align-items: center;
      color: #888;
      display: flex;
      flex-wrap: wrap;
      font-size: 12px;
      gap: 6px 8px;
      margin-top: 4px;
    }

    .admin-inventory-product-stats {
      display: contents;
    }

    .admin-inventory-draft-pill,
    .admin-inventory-stat-pill {
      align-items: center;
      background: #141414;
      border: 1px solid #2a2a2a;
      border-radius: 999px;
      color: #b8b8b8;
      display: inline-flex;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.4;
      padding: 2px 8px;
    }

    .admin-inventory-draft-pill {
      color: #aaa;
      font-size: 10px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .admin-inventory-stat-pill.is-warning {
      background: rgba(200, 169, 106, 0.08);
      border-color: rgba(200, 169, 106, 0.32);
      color: #d6bc87;
    }

    .admin-inventory-stat-pill.is-danger {
      background: rgba(248, 113, 113, 0.08);
      border-color: rgba(248, 113, 113, 0.28);
      color: #f58b8b;
    }

    .admin-inventory-stat-pill.is-dirty {
      background: rgba(var(--accent-rgb), 0.1);
      border-color: rgba(var(--accent-rgb), 0.34);
      color: var(--accent);
    }

    .admin-inventory-product-actions {
      align-items: center;
      display: flex;
      flex-shrink: 0;
      gap: 8px;
      padding: 12px 14px 12px 6px;
    }

    .admin-inventory-select-product {
      background: #141414;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #bbb;
      cursor: pointer;
      font: inherit;
      font-size: 11px;
      font-weight: 600;
      padding: 6px 10px;
      white-space: nowrap;
    }

    .admin-inventory-select-product:hover {
      border-color: #444;
      color: #eee;
    }

    .admin-inventory-select-product.is-active {
      background: rgba(var(--mint-rgb), 0.1);
      border-color: rgba(var(--mint-rgb), 0.35);
      color: var(--mint);
    }

    .admin-inventory-product-body {
      background: #0b0b0b;
      border-top: 1px solid #1a1a1a;
    }

    .admin-inventory-variant-head,
    .admin-inventory-row {
      align-items: center;
      display: grid;
      gap: 12px;
      grid-template-columns: 28px minmax(140px, 1.4fr) 108px 96px 96px;
      padding-left: 14px;
      padding-right: 14px;
    }

    .admin-inventory-variant-head {
      color: #999;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      padding-bottom: 6px;
      padding-top: 8px;
      text-transform: uppercase;
    }

    .admin-inventory-variant-head span:nth-child(4),
    .admin-inventory-variant-head span:nth-child(5) {
      text-align: right;
    }

    .admin-inventory-row {
      border-top: 1px solid #171717;
      color: #ddd;
      cursor: pointer;
      min-width: 0;
      padding-bottom: 8px;
      padding-top: 8px;
      position: relative;
    }

    .admin-inventory-row:hover {
      background: #111113;
    }

    .admin-inventory-row.is-selected {
      background: rgba(var(--mint-rgb), 0.08);
    }

    .admin-inventory-row.is-selected:hover {
      background: rgba(var(--mint-rgb), 0.12);
    }

    .admin-inventory-row.is-dirty::before {
      background: rgba(var(--accent-rgb), 0.65);
      content: '';
      inset: 0 auto 0 0;
      position: absolute;
      width: 3px;
    }

    .admin-inventory-row.is-inactive {
      opacity: 0.72;
    }

    .admin-inventory-select-wrap {
      align-items: center;
      display: inline-flex;
      height: 28px;
      justify-content: center;
      width: 28px;
    }

    .admin-inventory-select {
      accent-color: var(--mint);
      cursor: pointer;
      height: 16px;
      width: 16px;
    }

    .admin-inventory-option-pills .shop-product-option-pill {
      cursor: default;
      font-size: 11px;
      max-width: 100%;
      min-height: 24px;
      overflow: hidden;
      padding: 3px 9px;
      pointer-events: none;
      text-overflow: ellipsis;
    }

    .admin-inventory-option-pills {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      min-width: 0;
    }

    .admin-variant-sku-readonly.admin-inventory-sku {
      color: #c4c4c4;
      font-size: 12px;
      line-height: 1.4;
    }

    .admin-inventory-input-group {
      align-items: center;
      display: flex;
      gap: 4px;
      min-width: 0;
    }

    .admin-inventory-currency {
      color: #888;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
    }

    .admin-inventory-price-input,
    .admin-inventory-stock-input {
      width: 100%;
      box-sizing: border-box;
      padding: 7px 8px;
      font-size: 12px;
      border-radius: 8px;
      border: 1px solid #2a2a2a;
      background: #0d0d0d;
      color: #e0e0e0;
      font-family: inherit;
      outline: none;
      min-width: 0;
      text-align: right;
    }

    .admin-inventory-price-input:focus,
    .admin-inventory-stock-input:focus {
      border-color: rgba(var(--accent-rgb), 0.55);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    }

    .admin-inventory-price-input.is-invalid,
    .admin-inventory-stock-input.is-invalid {
      border-color: #b84f4f;
      box-shadow: 0 0 0 3px rgba(184, 79, 79, 0.15);
    }

    .admin-inventory-stock-cell {
      min-width: 0;
    }

    .admin-inventory-reserved {
      margin-top: 4px;
      color: #d6bc87;
      font-size: 11px;
      line-height: 1.2;
      text-align: right;
      white-space: nowrap;
    }

    .admin-inventory-active-toggle {
      justify-self: center;
    }

    .admin-inventory-active-toggle input:not(:checked)+.admin-variant-switch {
      border-color: #666;
    }

    .admin-inventory-active-toggle input:not(:checked)+.admin-variant-switch::after {
      border-color: #888;
    }

    .admin-inventory-product-main:focus-visible,
    .admin-inventory-tab:focus-visible,
    .admin-inventory-mode-chip:focus-visible,
    .admin-inventory-tree-tool:focus-visible,
    .admin-inventory-select-product:focus-visible,
    .admin-inventory-select:focus-visible,
    .admin-inventory-toolbar-link:focus-visible {
      outline: 2px solid rgba(var(--accent-rgb), 0.7);
      outline-offset: 2px;
    }

    .admin-inventory-empty {
      margin-top: 8px;
    }

    /* Solid slide only — no blur/opacity fade (those repaint a wide band of the panel on hide). */
    .admin-bottom-toolbar.admin-inventory-bottom-toolbar {
      background: #111111;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
      opacity: 1;
      padding-bottom: calc(8px + env(safe-area-inset-bottom));
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @media (prefers-reduced-motion: reduce) {
      .admin-bottom-toolbar.admin-inventory-bottom-toolbar {
        transition: none;
      }
    }

    .admin-inventory-bottom-status {
      align-items: center;
      color: #aaa;
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      font-size: 12px;
      gap: 8px 14px;
      min-width: 0;
    }

    .admin-inventory-bottom-status.is-selection {
      color: #b8f5dd;
    }

    .admin-inventory-toolbar-link {
      background: transparent;
      border: 0;
      color: #b8f5dd;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      padding: 0;
      text-decoration: underline;
      text-underline-offset: 2px;
      white-space: nowrap;
    }

    .admin-inventory-toolbar-link:hover {
      color: #e1fff4;
    }

    /* Stable clearance for the fixed compact bar — never toggle with show/hide (that reflow flashes the panel). */
    #section-admin-inventory.account-section--active {
      padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
      overflow-anchor: none;
    }

    .admin-variant-table input:not([type="checkbox"]),
    .admin-variant-image-grid select,
    .admin-variants-list .admin-field-input,
    .admin-variants-list input:not([type="checkbox"]):not([type="file"]):not([data-new-option-attribute]):not(.admin-option-value-input):not(.admin-option-name-input),
    .admin-variants-list select,
    .admin-product-modal input:not([type="checkbox"]),
    .admin-product-modal select {
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #2a2a2a;
      background: #0d0d0d;
      color: #e0e0e0;
      font-size: 13px;
      font-family: inherit;
      outline: none;
      min-width: 0;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .admin-variants-list input:not([type="checkbox"]):not([type="file"]):not([data-new-option-attribute]):not(.admin-option-value-input):not(.admin-option-name-input):focus,
    .admin-variants-list select:focus,
    .admin-product-modal input:not([type="checkbox"]):focus,
    .admin-product-modal select:focus,
    .admin-variant-table .admin-field-input:focus {
      border-color: rgba(var(--accent-rgb), 0.55);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    }

    .admin-variants-list select,
    .admin-product-modal select,
    .admin-variant-image-grid select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      padding-right: 30px;
      background-color: #0d0d0d;
      background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
      background-repeat: no-repeat;
      background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
      background-size: 5px 5px, 5px 5px;
      cursor: pointer;
    }

    .admin-variants-list select option,
    .admin-product-modal select option,
    .admin-variant-image-grid select option {
      background: #0d0d0d;
      color: #e0e0e0;
    }

    .admin-variants-list input[type="number"],
    .admin-product-modal input[type="number"],
    .admin-variant-table input[type="number"] {
      -moz-appearance: textfield;
      appearance: textfield;
    }

    .admin-variants-list input[type="number"]::-webkit-outer-spin-button,
    .admin-variants-list input[type="number"]::-webkit-inner-spin-button,
    .admin-product-modal input[type="number"]::-webkit-outer-spin-button,
    .admin-product-modal input[type="number"]::-webkit-inner-spin-button,
    .admin-variant-table input[type="number"]::-webkit-outer-spin-button,
    .admin-variant-table input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .admin-variants-list input[type="checkbox"],
    .admin-product-modal input[type="checkbox"],
    .admin-form input[type="checkbox"] {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: var(--accent);
      cursor: pointer;
      vertical-align: middle;
    }

    .admin-variant-active-toggle input[type="checkbox"] {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .admin-empty {
      text-align: center;
      padding: 40px 20px;
      color: #666;
      font-size: 14px;
    }

    .admin-empty p {
      margin: 0;
    }

    .admin-archive-panel {
      margin-top: 32px;
      padding-top: 22px;
      border-top: 1px solid #202020;
    }

    .admin-archive-heading {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      margin-bottom: 14px;
    }

    .admin-archive-heading h3 {
      margin: 0 0 4px;
      color: #e0e0e0;
      font-size: 16px;
      letter-spacing: -0.01em;
    }

    .admin-archive-heading p {
      margin: 0;
      color: #666;
      font-size: 13px;
    }

    .admin-product-icon {
      width: 64px;
      height: 64px;
      border-radius: 8px;
      object-fit: contain;
      display: block;
    }

    .admin-product-icon.fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      background: #131313;
      border: 1px solid #222;
      color: #555;
    }

    .admin-product-option-types {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      max-width: 160px;
    }

    .admin-product-option-types--empty {
      color: #444;
      font-size: 13px;
    }

    .admin-product-option-type {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      color: #aaa;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.4;
      white-space: nowrap;
    }

    .admin-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      border: 1px solid #2a2a2a;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
      background: #141414;
      color: #c8c8c8;
      font-family: inherit;
    }

    .admin-toggle:hover:not(:disabled) {
      background: #1c1c1c;
      border-color: #3a3a3a;
      color: #f0f0f0;
    }

    .admin-toggle:disabled {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .admin-toggle--subtle {
      background: #111113;
      border-color: #2a2a2a;
      color: #aaa;
      border-radius: 999px;
    }

    .admin-toggle--subtle:hover:not(:disabled) {
      background: #1a1a1c;
      border-color: #3d3d3d;
      color: #ddd;
    }

    .admin-toggle--primary {
      background: #2c1f33;
      border-color: #4a2f52;
      border-radius: 999px;
      color: #f5a3ff;
      font-weight: 600;
    }

    .admin-toggle--primary:hover:not(:disabled) {
      background: #3a2942;
      border-color: #5c3c66;
      color: #f7d0ff;
    }

    .admin-toggle--active {
      background: rgba(95, 247, 191, 0.1);
      border-color: rgba(95, 247, 191, 0.15);
      color: #5ff7bf;
    }

    .admin-toggle--active:hover:not(:disabled) {
      background: rgba(95, 247, 191, 0.18);
      border-color: rgba(95, 247, 191, 0.3);
      color: #9dffd9;
    }

    .admin-toggle--inactive {
      background: rgba(255, 255, 255, 0.03);
      color: #777;
      border-color: #222;
    }

    .admin-toggle--inactive:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.06);
      color: #aaa;
    }

    .admin-btn-sm {
      padding: 6px 12px;
      font-size: 12px;
      border-radius: 8px;
    }

    .admin-btn-danger {
      color: #f87171;
      border-color: rgba(248, 113, 113, 0.15);
      background: rgba(248, 113, 113, 0.06);
    }

    .admin-btn-danger:hover {
      background: rgba(248, 113, 113, 0.14);
      border-color: rgba(248, 113, 113, 0.3);
      color: #f87171;
    }

    .admin-btn-restore {
      color: #5ff7bf;
      border-color: rgba(95, 247, 191, 0.18);
      background: rgba(95, 247, 191, 0.07);
    }

    .admin-btn-restore:hover {
      background: rgba(95, 247, 191, 0.14);
      border-color: rgba(95, 247, 191, 0.35);
      color: #d7fff1;
    }

    .admin-config-form {
      max-width: 420px;
      margin-top: 8px;
    }

    .admin-config-fieldset {
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      padding: 14px 16px 16px;
      margin: 0 0 14px;
      background: #0d0d0d;
    }

    .admin-config-fieldset legend {
      padding: 0 6px;
      color: #c8c8c8;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .admin-config-help {
      margin: 6px 0 0;
      color: #888;
      font-size: 12px;
      line-height: 1.4;
    }

    .admin-config-checkbox {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #e0e0e0;
      font-size: 14px;
      cursor: pointer;
    }

    .admin-config-checkbox input {
      width: 16px;
      height: 16px;
      accent-color: var(--accent);
    }

    .admin-config-actions {
      display: flex;
      justify-content: flex-start;
      padding-top: 4px;
    }

    .shop-closed-banner {
      margin: 0 0 12px;
      padding: 10px 14px;
      border-radius: 8px;
      border: 1px solid rgba(200, 140, 60, 0.35);
      background: rgba(200, 140, 60, 0.1);
      color: #e8d5b0;
      font-size: 13px;
      line-height: 1.4;
    }

    .admin-form .form-group {
      margin-bottom: 14px;
    }

    .admin-form textarea {
      width: 100%;
      padding: 9px 14px;
      border-radius: 8px;
      border: 1px solid #2a2a2a;
      background: #0d0d0d;
      color: #e0e0e0;
      font-size: 13px;
      outline: none;
      font-family: inherit;
      resize: vertical;
      transition: border-color 0.2s;
      box-sizing: border-box;
    }

    .admin-form textarea:focus {
      border-color: var(--accent);
    }

    .admin-image-uploader {
      border: 1px dashed #2a2a2a;
      border-radius: 12px;
      padding: 12px;
      background: #0b0b0b;
      transition: border-color 0.2s, background 0.2s;
    }

    .admin-image-uploader.is-drag-over {
      border-color: rgba(var(--accent-rgb), 0.55);
      background: rgba(var(--accent-rgb), 0.05);
    }

    .admin-image-slots {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }

    .admin-image-slot {
      position: relative;
      min-width: 0;
      border: 1px solid #222;
      border-radius: 10px;
      background: #101010;
      padding: 8px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }

    .admin-image-slot:hover,
    .admin-image-slot:focus-visible {
      border-color: rgba(var(--accent-rgb), 0.35);
      background: #101010;
      outline: none;
    }

    .admin-image-slot.has-image {
      cursor: grab;
    }

    .admin-image-slot.has-image:active {
      cursor: grabbing;
    }

    .admin-image-slot-label {
      color: #aaa;
      font-size: 12px;
      margin-bottom: 6px;
      padding-right: 34px;
    }

    .admin-image-slot-remove {
      position: absolute;
      top: 0;
      right: 0;
      z-index: 1;
      width: 36px;
      height: 32px;
      border: 0;
      background: transparent;
      color: #d71616;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      font-size: 16px;
      font-weight: 700;
      padding: 0;
    }

    .admin-image-slot-remove:hover,
    .admin-image-slot-remove:focus-visible {
      color: #ff0000;
      outline: none;
    }

    .admin-image-slot-preview {
      aspect-ratio: 1 / 1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 8px;
      background: #131313;
      color: #555;
      font-size: 12px;
      text-align: center;
    }

    .admin-image-slot-preview img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .admin-variants-list {
      color-scheme: dark;
      display: grid;
      gap: 12px;
    }

    .admin-editor-card {
      border: 1px solid #141414;
      border-radius: 8px;
      background: #080808;
      padding: 16px;
      display: grid;
      gap: 5px;
    }

    .admin-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      color: #e0e0e0;
      margin-bottom: 2px;
    }

    .admin-card-head strong {
      display: block;
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 1px;
      color: #f0f0f0;
    }

    .admin-card-head span,
    .admin-card-head small {
      color: #666;
      font-size: 10.5px;
    }

    .admin-variant-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .admin-variant-search-wrap {
      display: flex;
      flex: 1 1 360px;
      min-width: 280px;
      max-width: 480px;
      width: 100%;
    }

    .admin-variant-search-wrap .admin-variants-search {
      max-width: none;
      width: 100%;
      font-size: 13.5px;
      padding: 10px 34px 10px 14px;
    }

    .admin-variant-search-wrap .admin-variants-search::placeholder {
      color: #6a6a6a;
      font-style: italic;
    }

    .admin-declarations {
      --admin-option-card-min: 220px;
      --admin-option-card-single-max: 320px;
      display: grid;
      gap: 12px;
      align-items: stretch;
      width: 100%;
    }

    .admin-declarations:has(> .admin-option-card:nth-child(1):last-child) {
      grid-template-columns: minmax(var(--admin-option-card-min), var(--admin-option-card-single-max));
      justify-content: center;
    }

    .admin-declarations:has(> .admin-option-card:nth-child(2):last-child) {
      grid-template-columns: repeat(2, minmax(var(--admin-option-card-min), 1fr));
    }

    .admin-declarations:has(> .admin-option-card:nth-child(3)) {
      grid-template-columns: repeat(3, minmax(var(--admin-option-card-min), 1fr));
    }

    .admin-declarations>.admin-variant-help {
      grid-column: 1 / -1;
      margin: 0;
      padding: 18px 16px;
      border: 1px dashed #262626;
      border-radius: 12px;
      background: #070707;
      text-align: center;
    }

    .admin-declarations-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      color: #e0e0e0;
      font-size: 13px;
    }

    .admin-declarations-head span {
      color: #777;
      font-size: 12px;
    }

    .admin-variant-error {
      border: 1px solid rgba(239, 68, 68, 0.45);
      border-radius: 10px;
      background: rgba(239, 68, 68, 0.08);
      color: #fecaca;
      font-size: 12px;
      padding: 10px 12px;
    }

    .admin-option-card-head {
      align-items: center;
      gap: 10px;
    }

    .admin-add-option-btn {
      flex-shrink: 0;
      border-radius: 999px;
    }

    .admin-options-card {
      gap: 6px;
      border-color: #121212;
      background: #070707;
    }

    .admin-option-card {
      border: 1px solid #1c1c1c;
      border-radius: 8px;
      background: #090909;
      display: flex;
      flex-direction: column;
      width: 100%;
      min-width: 0;
      height: 100%;
      overflow: hidden;
      box-shadow: none;
      transition: border-color 0.15s ease, opacity 0.15s ease;
    }

    .admin-option-card.is-dragging,
    .admin-option-value-row.is-dragging {
      opacity: 0.45;
    }

    .admin-option-card.is-drop-target {
      border-color: rgba(var(--accent-rgb), 0.55);
    }

    .admin-option-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px;
      border-bottom: 1px solid #181818;
      background: #0f0f0f;
      min-height: 44px;
    }

    .admin-option-head .admin-icon-btn {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      background: #1a1a1a;
      border: 1px solid #252525;
      border-radius: 5px;
    }

    .admin-option-head .admin-icon-btn:hover:not(:disabled) {
      background: #222;
      border-color: #3a3a3a;
    }

    .admin-option-head .admin-icon-btn .admin-icon-svg {
      width: 13px;
      height: 13px;
    }

    .admin-option-drag-handle {
      align-items: center;
      background: transparent;
      border: 0;
      color: #555;
      cursor: grab;
      display: inline-flex;
      flex-shrink: 0;
      font: inherit;
      font-size: 20px;
      font-weight: 700;
      justify-content: center;
      letter-spacing: 1px;
      line-height: 1;
      width: 20px;
    }

    .admin-option-drag-handle:hover,
    .admin-option-drag-handle:focus-visible {
      color: #aaa;
      outline: none;
    }

    .admin-option-drag-handle:active {
      cursor: grabbing;
    }

    .admin-option-title {
      display: flex;
      flex-direction: column;
      gap: 0;
      min-width: 0;
      flex: 1;
    }

    .admin-option-name {
      border: 0;
      background: transparent;
      color: #eee;
      cursor: text;
      display: block;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.2;
      padding: 0;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: left;
    }

    .admin-option-name:hover,
    .admin-option-name:focus-visible {
      color: #fff;
      outline: none;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 2px;
    }

    .admin-option-name-input {
      width: 100%;
      min-width: 0;
      border: 0;
      border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
      background: transparent;
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      outline: none;
      padding: 0;
      box-shadow: none;
    }

    .admin-option-count {
      color: #666;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.02em;
      line-height: 1.1;
    }

    .admin-option-body {
      display: flex;
      flex: 1;
      flex-direction: column;
      gap: 6px;
      min-height: 0;
    }

    .admin-option-value-list {
      display: flex;
      flex: 1;
      flex-direction: column;
      gap: 2px;
      padding: 2px;
      min-height: 110px;
      max-height: 210px;
      overflow-y: auto;
      scrollbar-color: #252525 transparent;
      scrollbar-width: thin;
    }

    .admin-option-value-list::-webkit-scrollbar {
      width: 5px;
    }

    .admin-option-value-list::-webkit-scrollbar-thumb {
      background: #252525;
      border-radius: 999px;
    }

    .admin-option-values-empty {
      margin: auto 0;
      padding: 16px 10px;
      color: #666;
      font-size: 12px;
      line-height: 1.45;
      text-align: center;
    }

    .admin-option-value-row {
      display: flex;
      align-items: center;
      gap: 3px;
      padding: 5px 5px 5px 6px;
      background: #0a0a0a;
      color: #888;
      font-size: 12px;
      line-height: 1.2;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
      user-select: none;
    }

    .admin-option-value-row:hover {
      background: #101010;
      border-color: #252525;
      color: #aaa;
    }

    .admin-option-value-row.is-active {
      background: rgba(var(--accent-rgb), 0.10);
      border-color: rgba(var(--accent-rgb), 0.28);
      color: #f0e6f3;
    }

    .admin-option-value-row.is-active:hover {
      background: rgba(var(--accent-rgb), 0.14);
      border-color: rgba(var(--accent-rgb), 0.38);
      color: #fff;
    }

    .admin-option-value-row.is-drop-target {
      background: rgba(var(--accent-rgb), 0.18);
      outline: 1px solid rgba(var(--accent-rgb), 0.55);
    }

    .admin-option-value-drag {
      margin-right: 1px;
    }

    .admin-option-value-row input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      margin: 0 2px 0 0;
      border: 1px solid #333;
      border-radius: 3px;
      background: #111;
      cursor: pointer;
      position: relative;
      box-sizing: border-box;
      transition: background-color 0.1s ease, border-color 0.1s ease;
    }

    .admin-option-value-row input[type="checkbox"]:checked {
      background: var(--accent);
      border-color: var(--accent);
    }

    .admin-option-value-row input[type="checkbox"]:checked::after {
      content: '';
      position: absolute;
      left: 50%;
      top: 42%;
      width: 5px;
      height: 9px;
      border: solid #0a0a0a;
      border-width: 0 2px 2px 0;
      transform: translate(-50%, -50%) rotate(45deg);
    }

    .admin-option-value-label {
      flex: 0 1 auto;
      max-width: calc(100% - 70px);
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: text;
      font: inherit;
      font-size: inherit;
      padding: 0;
      text-align: left;
    }

    .admin-option-value-label:hover,
    .admin-option-value-label:focus-visible {
      color: #fff;
      outline: none;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 2px;
    }

    .admin-option-value-input {
      flex: 1;
      min-width: 0;
      border: 0;
      border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
      background: transparent;
      color: #fff;
      font: inherit;
      font-size: inherit;
      outline: none;
      padding: 0;
      box-shadow: none;
    }

    .admin-option-value-delete {
      flex-shrink: 0;
      margin-left: auto;
      width: 22px;
      height: 22px;
      border: none;
      background: none;
      color: #666;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      font-size: 26px;
      font-weight: 700;
      padding: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease, color 0.15s ease;
    }

    .admin-option-value-row:hover .admin-option-value-delete,
    .admin-option-value-delete:focus-visible {
      opacity: 1;
      pointer-events: auto;
    }

    .admin-option-value-row:hover .admin-option-value-delete:not(:hover):not(:focus-visible) {
      color: #666;
    }

    .admin-option-value-delete:hover,
    .admin-option-value-delete:focus-visible {
      background: none;
      border: none;
      color: #ff2a2a;
      outline: none;
    }

    @media (hover: none) {
      .admin-option-value-delete {
        opacity: 0.7;
        pointer-events: auto;
      }
    }

    .admin-option-controls {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: auto;
      padding: 0 2px 2px;
    }

    .admin-option-add {
      display: flex;
      align-items: stretch;
      gap: 0;
      border: 1px solid #222;
      border-radius: 6px;
      overflow: hidden;
      background: #0b0b0b;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .admin-option-add:focus-within {
      border-color: rgba(var(--accent-rgb), 0.55);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    }

    .admin-variants-list .admin-option-add button.admin-toggle.admin-btn-sm.admin-toggle--subtle {
      flex-shrink: 0;
      align-self: stretch;
      white-space: nowrap;
      min-width: 52px;
      margin: 0;
      padding: 0 12px;
      font-size: 11px;
      font-weight: 600;
      border: none;
      border-left: 1px solid #222;
      border-radius: 0;
      box-shadow: none;
      background: #141414;
      color: #aaa;
    }

    .admin-variants-list .admin-option-add button.admin-toggle.admin-btn-sm.admin-toggle--subtle:hover:not(:disabled) {
      background: #1c1c1c;
      border-color: transparent;
      border-left-color: #222;
      color: #ddd;
    }

    .admin-option-add:focus-within button.admin-toggle.admin-btn-sm.admin-toggle--subtle {
      border-left-color: rgba(var(--accent-rgb), 0.35);
    }

    .admin-variants-list .admin-option-add input[type="text"] {
      flex: 1;
      width: auto;
      min-width: 0;
      font-size: 12px;
      padding: 6px 10px;
      border: none;
      border-radius: 0;
      background: #111;
      color: #e0e0e0;
      font-family: inherit;
      outline: none;
      box-shadow: none;
      appearance: none;
      -webkit-appearance: none;
      transition: none;
    }

    .admin-variants-list .admin-option-add input[type="text"]::placeholder {
      color: #555;
      font-size: 11px;
    }

    .admin-variants-list .admin-option-add input[type="text"]:focus {
      border: none;
      box-shadow: none;
      outline: none;
    }

    .admin-options-footnote {
      margin: 0;
      padding-top: 4px;
      color: #555;
      font-size: 10.5px;
      line-height: 1.35;
    }

    .admin-variants-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 3px;
    }

    .admin-variant-count-badge {
      border: 1px solid #242424;
      border-radius: 999px;
      color: #888;
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
    }

    .admin-variant-table-wrap {
      border: 1px solid #222;
      border-radius: 12px;
      overflow: auto;
      background: #070707;
    }

    .admin-variant-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
      table-layout: fixed;
    }

    .admin-variant-table .admin-col-sku {
      width: 118px;
    }

    .admin-variant-table .admin-col-price {
      width: 84px;
    }

    .admin-variant-table .admin-col-stock {
      width: 68px;
    }

    .admin-variant-table .admin-col-active {
      width: 72px;
      text-align: center;
    }

    .admin-variant-table .admin-col-actions {
      width: 88px;
    }

    .admin-variant-table thead th {
      color: #888;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      text-align: left;
      padding: 10px 10px;
      border-bottom: 1px solid #1f1f1f;
      background: #101010;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .admin-variant-table thead th.admin-col-active,
    .admin-variant-table thead th.admin-col-actions {
      text-align: center;
    }

    .admin-variant-table thead th.admin-col-active {
      overflow: visible;
      text-overflow: clip;
    }

    .admin-variant-table thead th.admin-col-actions {
      padding-right: 12px;
    }

    .admin-variant-table thead th:has(.admin-sort-btn) {
      padding: 0;
    }

    .admin-variant-table thead th .admin-sort-btn {
      box-sizing: border-box;
      display: block;
      overflow: hidden;
      padding: 10px;
      text-align: inherit;
      text-overflow: ellipsis;
      white-space: nowrap;
      width: 100%;
    }

    .admin-variant-table-row {
      cursor: pointer;
    }

    .admin-variant-table-row td {
      color: #ddd;
      padding: 8px 10px;
      border-bottom: 1px solid #1a1a1a;
      vertical-align: middle;
      overflow: hidden;
    }

    .admin-variant-table-row td.admin-col-option {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .admin-variant-table-row.is-inactive td:not(.admin-col-price):not(.admin-col-stock):not(.admin-variant-actions-cell) {
      color: #777;
    }

    .admin-variant-table-row:hover td {
      background: #111113;
    }

    .admin-variant-table-row.is-inactive:hover td {
      background: #0d0d0f;
    }

    .admin-variant-table-row.is-selected td {
      background: rgba(95, 247, 191, 0.08);
    }

    .admin-variant-table-row.is-selected td:first-child {
      box-shadow: inset 3px 0 0 #555;
    }

    .admin-variant-table-row.is-selected:hover td {
      background: rgba(95, 247, 191, 0.12);
    }

    .admin-variant-table-wrap.is-row-selecting {
      user-select: none;
    }

    .admin-variant-section-row td {
      background: #0d0d0f;
      border-bottom: 1px solid #242424;
      border-top: 1px solid #242424;
      color: #aaa;
      padding: 9px 10px;
    }

    .admin-variant-section-head {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: space-between;
    }

    .admin-variant-section-head strong {
      color: #ddd;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .admin-variant-table-row--unoffered {
      cursor: default;
    }

    .admin-variant-table-row--unoffered td {
      background: #09090b;
      color: #666;
    }

    .admin-variant-table-row--unoffered:hover td {
      background: #0b0b0d;
    }

    .admin-variant-not-offered-tag {
      color: #666;
      display: inline-block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .admin-variant-enable-btn {
      background: rgba(95, 247, 191, 0.12);
      border-color: rgba(95, 247, 191, 0.35);
      border-radius: 999px;
      color: #5ff7bf;
      font-weight: 600;
      min-width: 72px;
    }

    .admin-variant-enable-btn:hover:not(:disabled) {
      background: rgba(95, 247, 191, 0.2);
      border-color: rgba(95, 247, 191, 0.5);
      color: #9dffd9;
    }

    .admin-variant-table-row:last-of-type td {
      border-bottom: none;
    }

    .admin-variant-empty {
      text-align: center;
      color: #666;
      padding: 28px 12px !important;
    }

    .admin-variant-table .admin-field-input,
    .admin-variant-table input[type="number"],
    .admin-variant-table input[type="text"] {
      width: 100%;
      box-sizing: border-box;
      padding: 7px 8px;
      font-size: 12px;
    }

    .admin-variant-sku-readonly {
      color: #888;
      display: block;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 13px;
      line-height: 30px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .admin-variant-active-cell {
      padding: 8px 0;
      text-align: center;
      vertical-align: middle;
    }

    .admin-variant-active-toggle {
      cursor: pointer;
      display: inline-block;
      line-height: 0;
      margin: 0;
      position: relative;
      vertical-align: middle;
    }

    .admin-variant-switch {
      background: #1a1a1c;
      border: 1px solid #333;
      border-radius: 999px;
      display: inline-block;
      height: 20px;
      position: relative;
      transition: background 0.2s ease, border-color 0.2s ease;
      width: 36px;
    }

    .admin-variant-switch::after {
      background: #666;
      border: 1px solid transparent;
      border-radius: 50%;
      box-sizing: border-box;
      content: '';
      height: 14px;
      left: 2px;
      position: absolute;
      top: 2px;
      transform: translateX(0);
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
      width: 14px;
    }

    .admin-variant-active-toggle input:not(:checked)+.admin-variant-switch {
      background: transparent;
      border-color: #3a3a3a;
    }

    .admin-variant-active-toggle input:not(:checked)+.admin-variant-switch::after {
      background: transparent;
      border-color: #555;
    }

    .admin-variant-active-toggle input:checked+.admin-variant-switch {
      background: rgba(95, 247, 191, 0.22);
      border-color: rgba(95, 247, 191, 0.42);
    }

    .admin-variant-active-toggle input:checked+.admin-variant-switch::after {
      background: #5ff7bf;
      border-color: #5ff7bf;
      transform: translateX(16px);
    }

    .admin-variant-active-toggle input:focus-visible+.admin-variant-switch {
      outline: 2px solid rgba(95, 247, 191, 0.45);
      outline-offset: 2px;
    }

    .admin-variant-actions-cell {
      padding: 8px 12px 8px 8px;
      text-align: center;
      vertical-align: middle;
      white-space: nowrap;
    }

    .admin-variant-actions-cell .admin-icon-btn+.admin-icon-btn {
      margin-left: 4px;
    }

    .admin-icon-btn {
      align-items: center;
      background: #121212;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #777;
      cursor: pointer;
      display: inline-flex;
      height: 30px;
      justify-content: center;
      padding: 0;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
      vertical-align: middle;
      width: 30px;
    }

    .admin-icon-btn .admin-icon-svg {
      display: block;
      flex-shrink: 0;
    }

    .admin-icon-btn:hover:not(:disabled) {
      background: #1a1a1c;
      border-color: #404040;
      color: #b0b0b0;
    }

    .admin-icon-btn--active {
      background: rgba(var(--accent-rgb), 0.08);
      border-color: rgba(var(--accent-rgb), 0.3);
      color: var(--accent);
    }

    .admin-icon-btn--active:hover:not(:disabled) {
      background: rgba(var(--accent-rgb), 0.14);
      border-color: rgba(var(--accent-rgb), 0.42);
      color: #f4c8f8;
    }

    .admin-icon-btn--danger:hover:not(:disabled) {
      background: rgba(248, 113, 113, 0.08);
      border-color: rgba(248, 113, 113, 0.35);
      color: #f87171;
    }

    .admin-icon-btn:disabled {
      cursor: not-allowed;
      opacity: 0.38;
    }

    .admin-sort-btn {
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      font-weight: inherit;
      padding: 0;
      text-transform: inherit;
      letter-spacing: inherit;
    }

    .admin-sort-indicator {
      display: inline-block;
      width: 8px;
      height: 10px;
      margin-left: 6px;
      vertical-align: middle;
      position: relative;
    }

    .admin-sort-indicator--asc::before,
    .admin-sort-indicator--desc::before {
      content: '';
      position: absolute;
      left: 0;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
    }

    .admin-sort-indicator--asc::before {
      top: 1px;
      border-bottom: 6px solid #9a9a9a;
    }

    .admin-sort-indicator--desc::before {
      bottom: 1px;
      border-top: 6px solid #9a9a9a;
    }

    .admin-variant-table-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: #777;
      font-size: 12px;
      padding: 2px 2px 0;
    }

    .admin-variant-expanded-row[hidden] {
      display: none;
    }

    .admin-variant-expanded {
      display: grid;
      gap: 10px;
      padding: 4px 0;
    }

    .admin-product-modal {
      color-scheme: dark;
      max-width: 480px;
      width: min(92vw, 480px);
    }

    .admin-product-modal h2 {
      color: #f2f2f2;
      font-size: 17px;
      margin: 0 0 4px;
    }

    .admin-product-modal p {
      color: #888;
      font-size: 13px;
      margin: 0 0 8px;
    }

    .admin-modal-field {
      display: grid;
      gap: 6px;
      margin: 14px 0;
    }

    .admin-modal-field label {
      color: #bbb;
      font-size: 12px;
      font-weight: 600;
    }

    .admin-modal-field input,
    .admin-modal-field select {
      width: 100%;
      box-sizing: border-box;
    }

    .admin-modal-divider {
      color: #666;
      font-size: 11px;
      margin: 16px 0 8px;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .admin-modal-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .admin-modal-actions--end {
      justify-content: flex-end;
      margin-top: 16px;
    }

    .admin-variant-help {
      margin: 0 0 10px;
      color: #777;
      font-size: 12px;
    }

    .admin-variant-image-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    .admin-actions-cell {
      display: flex;
      gap: 6px;
      white-space: nowrap;
    }

    /* Keep Manage Products columns stable when Live/Draft label width differs. */
    .admin-actions-cell .admin-toggle--active,
    .admin-actions-cell .admin-toggle--inactive {
      box-sizing: border-box;
      justify-content: center;
      min-width: 4.75rem;
    }

    @media (max-width: 1120px) {

      .admin-inventory-variant-head,
      .admin-inventory-row {
        gap: 8px;
        grid-template-columns: 28px minmax(110px, 1.4fr) 94px 86px 82px 54px;
      }
    }

    @media (max-width: 960px) {
      .admin-declarations:has(> .admin-option-card:nth-child(3)) {
        grid-template-columns: repeat(2, minmax(var(--admin-option-card-min), 1fr));
      }
    }

    @media (max-width: 720px) {

      .shop-header.admin-products-header,
      .shop-header.admin-product-form-header {
        flex-direction: column;
        align-items: stretch;
      }

      .admin-product-form-actions {
        width: 100%;
        align-items: stretch;
      }

      .admin-inventory-ops {
        position: static;
      }

      .admin-inventory-ops-row,
      .admin-inventory-mode-row {
        align-items: stretch;
        flex-direction: column;
      }

      .admin-inventory-search-wrap {
        flex-basis: auto;
        max-width: none;
        min-width: 0;
        width: 100%;
      }

      .admin-inventory-filter {
        width: 100%;
      }

      .admin-inventory-count {
        margin-left: 0;
      }

      .admin-inventory-mode-chips {
        width: 100%;
      }

      .admin-inventory-tree-tools {
        justify-content: flex-end;
        margin-left: 0;
        width: 100%;
      }

      .admin-inventory-product-head {
        grid-template-columns: minmax(0, 1fr);
      }

      .admin-inventory-product-main {
        padding-right: 14px;
      }

      .admin-inventory-product-actions {
        border-top: 1px solid #171717;
        justify-content: flex-end;
        padding: 8px 14px;
      }

      .admin-inventory-variant-head {
        display: none;
      }

      .admin-inventory-row {
        align-items: start;
        gap: 10px 12px;
        grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
        padding: 12px 14px;
      }

      .admin-inventory-select-wrap {
        grid-column: 1;
        grid-row: 1;
      }

      .admin-inventory-option-pills {
        align-self: center;
        grid-column: 2 / -1;
        grid-row: 1;
        min-height: 28px;
      }

      .admin-inventory-sku {
        grid-column: 2;
        grid-row: 2;
      }

      .admin-inventory-active-toggle {
        align-items: center;
        display: grid;
        gap: 5px;
        grid-column: 2 / -1;
        grid-row: 4;
        justify-self: start;
        line-height: 1.2;
      }

      .admin-inventory-input-group {
        grid-column: 2;
        grid-row: 3;
      }

      .admin-inventory-stock-cell {
        grid-column: 3;
        grid-row: 3;
      }

      .admin-inventory-row [data-inventory-label]::before {
        color: #888;
        content: attr(data-inventory-label);
        display: block;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        margin-bottom: 5px;
        text-align: left;
        text-transform: uppercase;
      }

      .admin-inventory-input-group {
        align-items: end;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
      }

      .admin-inventory-input-group::before {
        grid-column: 1 / -1;
      }

      .admin-inventory-option-pills::before {
        display: none !important;
      }

      .admin-inventory-bottom-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
      }

      .admin-inventory-bottom-toolbar .admin-bottom-toolbar-right {
        margin-left: auto;
      }

      .admin-product-form-actions-primary {
        width: 100%;
        flex-wrap: wrap;
      }

      .admin-new-product-btn,
      .admin-product-form-header .admin-product-form-actions-primary .admin-toggle,
      .admin-product-form-header .admin-product-form-actions-primary .btn.btn-primary {
        justify-content: center;
        width: 100%;
      }

      .admin-product-form-header .admin-product-back-btn {
        justify-content: center;
        width: auto;
        align-self: flex-end;
      }

      .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
      }

      .admin-new-product-btn {
        margin-left: 0;
      }

      .admin-variant-toolbar,
      .admin-card-head,
      .admin-declarations-head {
        align-items: stretch;
        flex-direction: column;
      }

      .admin-variant-toolbar button {
        width: 100%;
      }

      .admin-option-card-head {
        align-items: stretch;
        flex-direction: column;
      }

      .admin-declarations,
      .admin-declarations:has(> .admin-option-card:nth-child(1):last-child),
      .admin-declarations:has(> .admin-option-card:nth-child(2):last-child),
      .admin-declarations:has(> .admin-option-card:nth-child(3)) {
        grid-template-columns: 1fr;
        justify-content: stretch;
      }

      .admin-option-add {
        flex-direction: column;
      }

      .admin-variants-list .admin-option-add button.admin-toggle.admin-btn-sm.admin-toggle--subtle {
        width: 100%;
        border-left: none;
        border-top: 1px solid #222;
      }

      .admin-option-add:focus-within button.admin-toggle.admin-btn-sm.admin-toggle--subtle {
        border-left-color: transparent;
        border-top-color: rgba(var(--accent-rgb), 0.35);
      }

      .admin-variant-toolbar {
        width: 100%;
      }

      .admin-variant-search-wrap {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
      }

      .admin-variant-toolbar button {
        flex: 1;
      }

      .admin-variant-table-wrap {
        -webkit-overflow-scrolling: touch;
      }

      .admin-variant-table {
        min-width: 640px;
      }

      .admin-archive-heading {
        flex-direction: column;
        align-items: flex-start;
      }

      .admin-toolbar .shop-search-wrap {
        max-width: none !important;
      }

      .admin-search {
        max-width: none;
      }

      .admin-image-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 560px) {
      #view-admin .account-panel {
        padding: 0 10px 20px;
      }

      .admin-inventory-product-main {
        gap: 9px;
        grid-template-columns: 28px 40px minmax(0, 1fr);
        padding-left: 10px;
        padding-right: 10px;
      }

      .admin-product-icon.admin-inventory-product-image {
        height: 40px;
        width: 40px;
      }

      .admin-inventory-product-actions {
        padding-left: 10px;
        padding-right: 10px;
      }

      .admin-inventory-mode-chip,
      .admin-inventory-tree-tool,
      .admin-inventory-select-product {
        min-height: 44px;
      }

      .admin-inventory-tab,
      .admin-inventory-product-actions .admin-icon-btn {
        min-height: 44px;
        min-width: 44px;
      }

      .admin-inventory-select-wrap,
      .admin-inventory-active-toggle {
        min-height: 44px;
        min-width: 44px;
      }

      .admin-inventory-row {
        gap: 8px;
        grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
        padding-left: 10px;
        padding-right: 10px;
      }

      .admin-inventory-bottom-toolbar .admin-bottom-toolbar-right {
        justify-content: flex-end;
        width: 100%;
      }

      .admin-inventory-bottom-toolbar .admin-inventory-save-hint {
        flex: 1 1 auto;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      .admin-inventory-product,
      .admin-inventory-product-head,
      .admin-inventory-chevron,
      .admin-inventory-tab,
      .admin-inventory-mode-chip,
      .admin-inventory-tree-tool,
      .admin-inventory-select-product,
      .admin-inventory-active-toggle .admin-variant-switch,
      .admin-inventory-active-toggle .admin-variant-switch::after,
      .admin-inventory-bottom-toolbar .btn,
      .admin-inventory-bottom-toolbar {
        animation: none;
        transition: none;
      }

      .admin-inventory-bottom-toolbar .btn:hover:not(:disabled) {
        transform: none;
      }

      .toast,
      .toast.fade-out {
        animation: none;
      }
    }

    .shop-shell {
      animation: fadeIn 0.6s ease backwards;
      margin-bottom: clamp(32px, 6vw, 64px);
    }

    .shop-panel {
      --shop-filter-header-offset: 88px;
      --shop-filter-pad: 12px;
      /* background: #1111118c;
      border: 1px solid #1e1e1e;
      border-radius: 16px; */
      padding: 20px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    }

    .shop-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 16px;
    }

    .shop-header-text {
      flex: 1;
      min-width: 0;
    }

    .shop-header h2 {
      font-size: 24px;
      line-height: 1.15;
      color: #fff;
      letter-spacing: -0.03em;
      margin-bottom: 6px;
    }

    .shop-header p {
      font-size: 14px;
      color: #777;
      line-height: 1.6;
      max-width: 560px;
    }

    /* --- About page --- */
    .about-panel {
      position: relative;
      overflow: hidden;
    }

    .about-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.1), transparent 38%),
        radial-gradient(circle at 92% 100%, rgba(255, 255, 255, 0.03), transparent 32%);
    }

    .about-panel>* {
      position: relative;
      z-index: 1;
    }

    .about-header-mark {
      flex-shrink: 0;
      align-self: flex-start;
      width: 88px;
      height: 88px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      padding: 10px;
    }

    .about-header-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 4px 16px rgba(var(--accent-rgb), 0.15));
    }

    .about-body {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .about-pillars {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }

    .about-pillar {
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      padding: 22px;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .about-pillar:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.06);
      border-color: rgba(var(--accent-rgb), 0.2);
    }

    .about-pillar .fc-icon {
      font-size: 22px;
      margin-bottom: 12px;
      color: var(--accent);
    }

    .about-pillar h3 {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }

    .about-pillar p {
      font-size: 13px;
      color: #777;
      line-height: 1.55;
    }

    .about-stats .analytics-kpis {
      margin-top: 0;
    }

    .about-showcase {
      padding: 22px 24px;
      text-align: center;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.04), transparent 60%), #0d0d0d;
    }

    .about-showcase-label {
      font-size: 10px;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      margin-bottom: 16px;
    }

    .about-showcase-gems {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .about-showcase-gems img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      border-radius: 10px;
      background: #0a0a0a;
      border: 1px solid #222;
      padding: 4px;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .about-showcase-gems img:hover {
      transform: translateY(-2px) scale(1.05);
      border-color: rgba(var(--accent-rgb), 0.3);
    }

    .about-cta {
      text-align: center;
      padding: 4px 0 0;
    }

    .about-cta p {
      color: #666;
      font-size: 14px;
      max-width: 520px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .about-cta a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }

    .about-cta a:hover {
      color: #fff;
    }

    .shop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
      padding-top: 6px;
      transition: opacity 0.28s ease;
      scroll-margin-top: 110px;
      overflow-anchor: none;
      /* site header + sticky toolbar "smart stop point" clearance */
    }

    .shop-grid.is-crossfade-enter {
      opacity: 0;
      pointer-events: none;
    }

    .shop-grid-snapshot {
      position: absolute;
      z-index: 2;
      opacity: 1;
      pointer-events: none;
      transition: opacity 0.28s ease;
    }

    .shop-grid-snapshot.is-leaving {
      opacity: 0;
    }

    @media (prefers-reduced-motion: reduce) {

      .shop-grid,
      .shop-grid-snapshot {
        transition: none;
      }
    }

    /* Single shop product: cap at half width (same as a two-column row) */
    @media (min-width: 496px) {

      #shop-products-container:has(> .shop-card:only-child),
      .shop-grid-snapshot:has(> .shop-card:only-child) {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    #gems-grid {
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }

    @media (min-width: 436px) {
      #gems-grid:has(> .gem-card:only-child) {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .shop-card {
      --shop-card-padding: 22px;
      position: relative;
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      box-shadow: black 2px 2px;
      padding: var(--shop-card-padding);
      display: flex;
      flex-direction: column;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      cursor: pointer;
    }

    .shop-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.06);
      border-color: rgba(var(--accent-rgb), 0.2);
    }

    .shop-card:focus-visible {
      outline: 2px solid rgba(var(--accent-rgb), 0.55);
      outline-offset: 3px;
      border-color: rgba(var(--accent-rgb), 0.35);
    }

    .shop-card-icon {
      position: relative;
      width: calc(100% + var(--shop-card-padding) + var(--shop-card-padding));
      aspect-ratio: 1 / 1;
      margin: calc(0px - var(--shop-card-padding)) calc(0px - var(--shop-card-padding)) 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 11px 11px 8px 8px;
      overflow: hidden;
    }

    .shop-card-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .shop-card-image-primary,
    .shop-card-image-hover {
      position: absolute;
      inset: 0;
      transform-origin: center center;
      transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
      transition-delay: 0s;
    }

    .shop-card-image-primary {
      opacity: 1;
      transform: scale(1);
    }

    .shop-card-image-hover {
      opacity: 0;
      transform: scale(1);
    }

    .shop-card:hover .shop-card-image-primary {
      opacity: 0;
      transform: scale(0.97);
      transition-delay: 180ms;
    }

    .shop-card:focus-visible .shop-card-image-primary {
      opacity: 0;
      transform: scale(0.97);
    }

    .shop-card:hover .shop-card-image-hover {
      opacity: 1;
      transform: scale(1.06);
      transition-delay: 180ms;
    }

    .shop-card:focus-visible .shop-card-image-hover {
      opacity: 1;
      transform: scale(1.06);
    }

    .shop-card-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--accent);
      background: rgba(var(--accent-rgb), 0.1);
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      border-radius: 10px;
      padding: 3px 10px;
      width: fit-content;
    }

    .shop-card h3 {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 6px;
    }

    .shop-card p {
      font-size: 13px;
      color: #666;
      line-height: 1.55;
      margin-bottom: 16px;
      flex: 1;
    }

    .shop-card-price {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 14px;
      align-self: center;
      text-shadow: 3px 3px 0 black;
    }

    .shop-card-price small {
      font-size: 12px;
      font-weight: 500;
      color: #888;
      margin-right: 5px;
      text-shadow: none;
      letter-spacing: 0.02em;
    }

    .shop-card-stock {
      font-size: 12px;
      font-weight: 600;
      color: #9ca3af;
      margin-bottom: 8px;
      align-self: center;
    }

    .shop-card-stock--low {
      color: #fbbf24;
    }

    .shop-card-stock--out {
      color: #ef4444;
    }

    .shop-card .btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      transform: none;
      filter: none;
      box-shadow: none;
    }

    #view-shop.shop-detail-mode .shop-body {
      display: block;
      min-height: 0;
    }

    #view-shop.shop-detail-mode .shop-sidebar,
    #view-shop.shop-detail-mode .shop-toolbar-compact,
    #view-shop.shop-detail-mode .shop-grid {
      display: none;
    }

    #view-shop:not(.shop-detail-mode) .shop-product-detail {
      display: none;
    }

    .shop-product-detail {
      animation: fadeIn 0.25s ease;
    }

    .shop-product-page {
      display: grid;
      gap: 18px;
    }

    .shop-product-back {
      padding-left: 0;
    }

    .shop-product-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
      gap: 24px;
      align-items: start;
    }

    .shop-product-gallery,
    .shop-product-info {
      min-width: 0;
    }

    .shop-product-image {
      position: relative;
      min-height: 420px;
      aspect-ratio: 1 / 1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border: 1px solid #1e1e1e;
      border-radius: 16px;
      background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.08), transparent 42%), #0d0d0d;
    }

    .shop-product-image-track {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: flex;
      overflow-x: hidden;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      border-radius: inherit;
    }

    .shop-product-image-track::-webkit-scrollbar {
      display: none;
    }

    .shop-product-image-track:focus-visible {
      outline: 2px solid rgba(var(--accent-rgb), 0.42);
      outline-offset: -6px;
    }

    .shop-product-image-slide {
      flex: 0 0 100%;
      min-width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      scroll-snap-align: center;
    }

    .shop-product-image-nav {
      position: absolute;
      top: 0;
      bottom: 0;
      z-index: 4;
      width: min(24%, 128px);
      height: 100%;
      display: flex;
      align-items: center;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: rgba(118, 118, 118, 0.92);
      cursor: pointer;
      font-family: inherit;
      font-size: 48px;
      font-weight: 300;
      line-height: 1;
      transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .shop-product-image-nav:hover,
    .shop-product-image-nav:focus-visible {
      color: rgba(150, 150, 150, 0.98);
      outline: none;
    }

    .shop-product-image-nav--prev:hover,
    .shop-product-image-nav--prev:focus-visible {
      background: linear-gradient(to right, rgba(0, 0, 0, 0.24), transparent);
    }

    .shop-product-image-nav--next:hover,
    .shop-product-image-nav--next:focus-visible {
      background: linear-gradient(to left, rgba(0, 0, 0, 0.24), transparent);
    }

    .shop-product-image-nav:disabled {
      opacity: 0.26;
      cursor: not-allowed;
    }

    .shop-product-image-nav--prev {
      left: 0;
      justify-content: flex-start;
      padding-left: 22px;
    }

    .shop-product-image-nav--next {
      right: 0;
      justify-content: flex-end;
      padding-right: 22px;
    }

    .shop-product-zoom-trigger {
      position: absolute;
      right: 18px;
      bottom: 16px;
      z-index: 5;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 9px;
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 999px;
      background: rgba(13, 13, 13, 0.58);
      color: #777;
      cursor: zoom-in;
      font-family: inherit;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .shop-product-zoom-trigger span {
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: #777;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.02em;
      line-height: 1.2;
      pointer-events: none;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .shop-product-zoom-trigger:hover span,
    .shop-product-zoom-trigger:focus-visible span {
      color: #aaa;
    }

    .shop-product-zoom-trigger:hover,
    .shop-product-zoom-trigger:focus-visible {
      border-color: rgba(255, 255, 255, 0.14);
      background: rgba(17, 17, 17, 0.78);
    }

    .shop-product-zoom-trigger:focus-visible {
      outline: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .shop-product-image-track {
        scroll-behavior: auto;
      }
    }

    .shop-product-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
      filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42));
    }

    .shop-product-image--zoomable {
      cursor: zoom-in;
    }

    .shop-product-image-fallback {
      color: var(--accent);
      font-size: 80px;
      line-height: 1;
    }

    .shop-product-thumbs {
      display: flex;
      gap: 10px;
      margin-top: 12px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .shop-product-thumb {
      flex: 0 0 auto;
      width: 74px;
      height: 74px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      border: 1px solid #242424;
      border-radius: 12px;
      background: #0d0d0d;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .shop-product-thumb.is-active {
      border-color: rgba(var(--accent-rgb), 0.45);
      box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.16);
    }

    .shop-product-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .shop-product-zoom-modal {
      position: fixed;
      inset: 0;
      z-index: 1002;
      display: flex;
      align-items: stretch;
      justify-content: center;
      padding: clamp(18px, 3vw, 34px);
      background: rgba(0, 0, 0, 0.84);
      backdrop-filter: blur(6px);
      animation: fadeIn 0.18s ease;
    }

    .shop-product-zoom-backdrop {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .shop-product-zoom-close {
      position: absolute;
      top: 18px;
      right: 24px;
      z-index: 4;
      width: 62px;
      height: 62px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 0 6px;
      border: 0;
      border-radius: 12px;
      background: transparent;
      color: #777;
      cursor: pointer;
      font-family: inherit;
      font-size: 58px;
      font-weight: 300;
      line-height: 1;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .shop-product-zoom-close:hover,
    .shop-product-zoom-close:focus-visible {
      background: rgba(255, 255, 255, 0.06);
      color: #bbb;
      outline: none;
    }

    .shop-product-zoom-shell {
      --shop-zoom-gap: clamp(42px, 5vw, 72px);
      position: relative;
      z-index: 1;
      width: min(1180px, calc(100% - var(--shop-zoom-gap) - var(--shop-zoom-gap)));
      height: 100%;
      display: grid;
      grid-template-columns: 136px minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr) auto;
      gap: 16px var(--shop-zoom-gap);
      align-items: center;
      align-self: center;
    }

    .shop-product-zoom-thumbs {
      grid-row: 1 / 3;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: min(78vh, 720px);
      overflow-x: hidden;
      overflow-y: auto;
      padding: 4px;
      align-self: center;
    }

    .shop-product-zoom-thumb {
      flex: 0 0 auto;
      width: 128px;
      height: 128px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px;
      border: 1px solid #242424;
      border-radius: 16px;
      background: #0d0d0d;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .shop-product-zoom-thumb:hover,
    .shop-product-zoom-thumb:focus-visible {
      border-color: rgba(255, 255, 255, 0.22);
      outline: none;
    }

    .shop-product-zoom-thumb.is-active {
      border-color: rgba(var(--accent-rgb), 0.5);
      box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18);
    }

    .shop-product-zoom-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      pointer-events: none;
      user-select: none;
    }

    .shop-product-zoom-stage {
      position: relative;
      grid-column: 2;
      width: 100%;
      height: min(82vh, 820px);
      min-height: 360px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .shop-product-zoom-frame {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(8px, 2vw, 28px);
    }

    .shop-product-zoom-image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 16px;
      user-select: none;
      -webkit-user-drag: none;
      filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.48));
    }

    .shop-product-zoom-nav {
      position: absolute;
      top: 0;
      bottom: 0;
      z-index: 2;
      width: var(--shop-zoom-gap);
      display: flex;
      align-items: center;
      padding: 0;
      border: 0;
      background: transparent;
      color: rgba(150, 150, 150, 0.78);
      cursor: pointer;
      font-family: inherit;
      transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    }

    .shop-product-zoom-nav span {
      font-size: 88px;
      font-weight: 300;
      line-height: 1;
      pointer-events: none;
      transition: transform 0.2s ease;
    }

    .shop-product-zoom-nav--prev {
      left: calc(-1 * var(--shop-zoom-gap));
      justify-content: center;
    }

    .shop-product-zoom-nav--next {
      right: calc(-1 * var(--shop-zoom-gap));
      justify-content: center;
    }

    .shop-product-zoom-nav--prev:hover,
    .shop-product-zoom-nav--prev:focus-visible {
      background: linear-gradient(to right, rgba(0, 0, 0, 0.28), transparent);
      color: rgba(190, 190, 190, 0.96);
      outline: none;
    }

    .shop-product-zoom-nav--next:hover,
    .shop-product-zoom-nav--next:focus-visible {
      background: linear-gradient(to left, rgba(0, 0, 0, 0.28), transparent);
      color: rgba(190, 190, 190, 0.96);
      outline: none;
    }

    .shop-product-zoom-nav--prev:hover span,
    .shop-product-zoom-nav--prev:focus-visible span {
      transform: translateX(-5px);
    }

    .shop-product-zoom-nav--next:hover span,
    .shop-product-zoom-nav--next:focus-visible span {
      transform: translateX(5px);
    }

    .shop-product-zoom-nav:disabled {
      opacity: 0.18;
      cursor: default;
    }

    .shop-product-zoom-count {
      grid-column: 2;
      justify-self: center;
      color: #777;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
    }

    @media (min-width: 561px) {
      .shop-product-gallery:has(> .shop-product-thumbs) {
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
      }

      .shop-product-gallery:has(> .shop-product-thumbs) .shop-product-image {
        grid-column: 2;
        grid-row: 1;
      }

      .shop-product-gallery:has(> .shop-product-thumbs) .shop-product-thumbs {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        margin-top: 0;
        max-height: min(70vh, 620px);
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 2px;
        padding-bottom: 0;
      }
    }

    .shop-product-info {
      position: relative;
      overflow: hidden;
      border: 1px solid #1e1e1e;
      border-radius: 16px;
      background: #0d0d0d;
      padding: 26px;
    }

    .shop-product-info::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 14% 0%, rgba(var(--accent-rgb), 0.1), transparent 36%);
    }

    .shop-product-info>* {
      position: relative;
      z-index: 1;
    }

    .shop-product-info-actions {
      position: absolute;
      top: 18px;
      right: 18px;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .shop-product-action {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      padding: 0;
      border: 1px solid #242424;
      border-radius: 10px;
      background: rgba(17, 17, 17, 0.72);
      cursor: pointer;
      font-family: inherit;
      transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .shop-product-action svg {
      flex-shrink: 0;
    }

    .shop-product-action--like {
      color: #f43f5e;
    }

    .shop-product-action--share {
      color: #34d399;
    }

    .shop-product-action--admin {
      color: #8a8a8a;
    }

    .shop-product-action:hover,
    .shop-product-action:focus-visible {
      background: #151515;
      outline: none;
    }

    .shop-product-action--like:hover,
    .shop-product-action--like:focus-visible {
      color: #fb7185;
      border-color: rgba(244, 63, 94, 0.35);
    }

    .shop-product-action--share:hover,
    .shop-product-action--share:focus-visible {
      color: #6ee7b7;
      border-color: rgba(52, 211, 153, 0.35);
    }

    .shop-product-action--admin:hover,
    .shop-product-action--admin:focus-visible {
      color: #d1d5db;
      border-color: rgba(209, 213, 219, 0.3);
    }

    .shop-product-action:active {
      transform: scale(0.96);
    }

    .shop-product-badge {
      position: static;
      display: inline-flex;
      margin-bottom: 16px;
      max-width: calc(100% - 92px);
    }

    .shop-product-info h1 {
      color: #fff;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.05;
      letter-spacing: -0.04em;
      margin-bottom: 12px;
    }

    .shop-product-description {
      color: #888;
      font-size: 14px;
      line-height: 1.65;
      margin-bottom: 20px;
    }

    .shop-product-price-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 16px;
      margin-bottom: 18px;
    }

    .shop-product-options {
      display: grid;
      gap: 18px;
      margin-bottom: 20px;
    }

    .shop-product-option {
      display: grid;
      gap: 10px;
      color: #aaa;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.7px;
    }

    .shop-product-option-label {
      display: block;
    }

    .shop-product-option-values {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .shop-product-option-pill {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 7px 14px;
      border: 1px solid #2a2a2a;
      border-radius: 20px;
      background: #0b0b0b;
      color: #ccc;
      cursor: pointer;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0;
      line-height: 1.2;
      text-transform: none;
      white-space: nowrap;
      transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    }

    .shop-product-option-pill:hover:not(:disabled):not(.is-selected),
    .shop-product-option-pill:focus-visible:not(:disabled):not(.is-selected) {
      border-color: #444;
      color: #fff;
      outline: none;
    }

    .shop-product-option-pill:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.28);
    }

    .shop-product-option-pill.is-selected {
      background: rgba(var(--accent-rgb), 0.12);
      border-color: rgba(var(--accent-rgb), 0.45);
      color: var(--accent);
      box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
    }

    .shop-product-option-pill.is-selected:hover,
    .shop-product-option-pill.is-selected:focus-visible {
      border-color: rgba(var(--accent-rgb), 0.6);
      color: var(--accent);
    }

    .shop-product-option-pill.is-out-of-stock:not(.is-selected) {
      color: #777;
      opacity: 0.72;
    }

    .shop-product-option-pill.is-out-of-stock::after,
    .shop-product-option-pill.is-unavailable::after {
      content: '';
      position: absolute;
      left: 10%;
      right: 10%;
      top: 50%;
      height: 1px;
      background: currentColor;
      opacity: 0.55;
      transform: rotate(-18deg);
      pointer-events: none;
    }

    .shop-product-option-pill.is-unavailable {
      color: #555;
      opacity: 0.5;
      cursor: not-allowed;
    }

    .shop-product-option-pill:disabled,
    .shop-product-option-pill.is-unavailable {
      pointer-events: none;
    }

    .shop-product-price-row .shop-card-price,
    .shop-product-price-row .shop-card-stock {
      align-self: auto;
      margin-bottom: 0;
    }

    .shop-product-price-row .shop-card-price {
      justify-self: start;
    }

    .shop-product-price-row .shop-card-stock {
      justify-self: end;
      text-align: right;
    }

    .shop-product-quantity {
      justify-self: center;
      display: inline-flex;
      align-items: center;
      overflow: hidden;
      border: 1px solid #2a2a2a;
      border-radius: 999px;
      background: #111;
      box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.04);
    }

    .shop-product-qty-btn {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      background: transparent;
      color: #ccc;
      cursor: pointer;
      font-family: inherit;
      font-size: 16px;
      line-height: 1;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .shop-product-qty-btn:hover:not(:disabled),
    .shop-product-qty-btn:focus-visible:not(:disabled) {
      background: rgba(var(--accent-rgb), 0.08);
      color: #fff;
      outline: none;
    }

    .shop-product-qty-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .shop-product-qty-input {
      width: 42px;
      height: 34px;
      border: 0;
      border-left: 1px solid #242424;
      border-right: 1px solid #242424;
      background: transparent;
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      -moz-appearance: textfield;
    }

    .shop-product-qty-input:focus-visible {
      outline: 1px solid rgba(var(--accent-rgb), 0.48);
      outline-offset: -1px;
    }

    .shop-product-qty-input::-webkit-outer-spin-button,
    .shop-product-qty-input::-webkit-inner-spin-button {
      margin: 0;
      -webkit-appearance: none;
    }

    .shop-product-add {
      width: 100%;
    }

    .shop-product-add:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      transform: none;
      filter: none;
      box-shadow: none;
    }

    .shop-product-tabs {
      margin-top: 20px;
      border: 1px solid #202020;
      border-radius: 12px;
      background: #111;
      overflow: hidden;
    }

    .shop-product-tablist {
      display: flex;
      border-bottom: 1px solid #202020;
    }

    .shop-product-tab {
      flex: 1;
      position: relative;
      padding: 12px 10px;
      border: 0;
      border-right: 1px solid #202020;
      background: transparent;
      color: #666;
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      cursor: pointer;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .shop-product-tab:last-child {
      border-right: 0;
    }

    .shop-product-tab.is-active {
      color: var(--accent);
      background: rgba(var(--accent-rgb), 0.06);
      box-shadow: inset 0 -2px 0 var(--accent);
    }

    .shop-product-tab:hover:not(.is-active),
    .shop-product-tab:focus-visible:not(.is-active) {
      color: #aaa;
      background: #151515;
      outline: none;
    }

    .shop-product-tabpanel {
      padding: 14px;
    }

    .shop-product-tabpanel:not(.is-active) {
      display: none;
    }

    .shop-product-assurance {
      display: grid;
      gap: 8px;
      margin-top: 0;
    }

    .shop-product-assurance div,
    .shop-product-spec {
      border: 1px solid #202020;
      border-radius: 12px;
      background: #0d0d0d;
      padding: 12px 14px;
    }

    .shop-product-assurance strong,
    .shop-product-spec span {
      display: block;
      color: #666;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 5px;
    }

    .shop-product-assurance span,
    .shop-product-spec strong {
      display: block;
      color: #ddd;
      font-size: 13px;
      line-height: 1.45;
    }

    .shop-product-specs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 0;
    }

    .shop-product-tabpanel .shop-product-specs {
      grid-template-columns: 1fr;
      gap: 0;
    }

    .shop-product-tabpanel .shop-product-spec {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      border: 0;
      border-radius: 0;
      border-bottom: 1px solid #1e1e1e;
      background: transparent;
      padding: 10px 0;
    }

    .shop-product-tabpanel .shop-product-spec:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .shop-product-tabpanel .shop-product-spec:first-child {
      padding-top: 0;
    }

    .shop-product-tabpanel .shop-product-spec span,
    .shop-product-tabpanel .shop-product-spec strong {
      display: block;
      margin-bottom: 0;
    }

    .shop-product-tabpanel .shop-product-spec span {
      flex: 0 0 auto;
    }

    .shop-product-tabpanel .shop-product-spec strong {
      text-align: right;
    }

    .shop-product-reviews-empty {
      color: #666;
      font-size: 13px;
      line-height: 1.55;
      text-align: center;
      padding: 6px 0;
    }

    .shop-product-message {
      min-height: 320px;
      border: 1px solid #1e1e1e;
      border-radius: 16px;
      background: #0d0d0d;
      padding: 32px;
      color: #888;
    }

    .shop-product-message h2 {
      color: #fff;
      font-size: 24px;
      letter-spacing: -0.03em;
      margin: 24px 0 8px;
    }

    .shop-product-message p {
      color: #888;
      font-size: 14px;
      line-height: 1.6;
    }

    @media (max-width: 880px) {
      .shop-product-layout {
        grid-template-columns: 1fr;
      }

      .shop-product-image {
        min-height: 0;
      }
    }

    @media (max-width: 560px) {
      .shop-product-info {
        padding: 20px;
      }

      .shop-product-info-actions {
        top: 14px;
        right: 14px;
      }

      .shop-product-image img {
        padding: 22px;
      }

      .shop-product-image-nav {
        width: min(27%, 98px);
        font-size: 40px;
      }

      .shop-product-image-nav--prev {
        padding-left: 14px;
      }

      .shop-product-image-nav--next {
        padding-right: 14px;
      }

      .shop-product-zoom-trigger span {
        font-size: 11px;
      }

      .shop-product-zoom-trigger {
        right: 12px;
        bottom: 12px;
      }

      .shop-product-zoom-modal {
        padding: 58px 10px 14px;
      }

      .shop-product-zoom-close {
        top: 6px;
        right: 10px;
        width: 52px;
        height: 52px;
        font-size: 50px;
      }

      .shop-product-zoom-shell {
        --shop-zoom-gap: 12px;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
      }

      .shop-product-zoom-thumbs {
        gap: 8px;
        max-height: calc(100vh - 116px);
      }

      .shop-product-zoom-thumb {
        width: 70px;
        height: 70px;
        padding: 4px;
        border-radius: 10px;
      }

      .shop-product-zoom-stage {
        height: min(74vh, calc(100vh - 116px));
        min-height: 260px;
      }

      .shop-product-zoom-frame {
        padding: 16px;
      }

      .shop-product-zoom-nav {
        width: 34%;
      }

      .shop-product-zoom-nav span {
        font-size: 64px;
      }

      .shop-product-zoom-nav--prev {
        left: 0;
        justify-content: flex-start;
        padding-left: 14px;
      }

      .shop-product-zoom-nav--next {
        right: 0;
        justify-content: flex-end;
        padding-right: 14px;
      }

      .shop-product-zoom-count {
        grid-column: 1 / 3;
      }

      .shop-product-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
      }

      .shop-product-message {
        padding: 24px;
      }
    }

    /* --- Shop Toolbar --- */
    .shop-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 20px;
      align-items: center;
      justify-content: space-between;
    }

    .shop-filters {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      flex: 1 1 auto;
    }

    .filter-pill {
      background: none;
      border: 1px solid #2a2a2a;
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 12px;
      font-weight: 600;
      color: #888;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .filter-pill:hover {
      border-color: #444;
      color: #ccc;
    }

    .filter-pill.is-active {
      background: rgba(var(--accent-rgb), 0.12);
      border-color: rgba(var(--accent-rgb), 0.3);
      color: var(--accent);
    }

    .filter-count {
      font-size: 10px;
      opacity: 0.6;
    }

    .gem-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
      min-width: 0;
    }

    .gem-toolbar-filters {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      position: relative;
    }

    .gem-toolbar-filters::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 56px;
      background: linear-gradient(to right, transparent, #111111 82%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .gem-toolbar-filters.has-overflow-end::after {
      opacity: 1;
    }

    .gem-toolbar-filters .shop-filters {
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .gem-toolbar-filters .shop-filters::-webkit-scrollbar {
      display: none;
    }

    .gem-toolbar-search {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .shop-search-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .shop-search-wrap .shop-search {
      width: 100%;
      padding-right: 30px;
    }

    .shop-search-clear {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      padding: 0;
      border: none;
      background: none;
      color: #666;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      border-radius: 4px;
      transition: color 0.2s, background 0.2s;
    }

    .shop-search-clear:hover {
      color: #ccc;
      background: rgba(255, 255, 255, 0.06);
    }

    .shop-search-clear[hidden] {
      display: none;
    }

    .gem-toolbar-search .shop-search-wrap {
      width: 220px;
    }

    .shop-actions {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .shop-search-container {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 0;
      gap: 8px;
    }

    .shop-search {
      background: #0d0d0d;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 13px;
      color: #e0e0e0;
      font-family: inherit;
      outline: none;
      width: 180px;
      transition: border-color 0.2s;
    }

    .shop-search:focus {
      border-color: var(--accent);
    }

    .shop-search::placeholder {
      color: #555;
    }

    .shop-sort {
      background-color: #0d0d0d;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      padding: 8px 32px 8px 12px;
      font-size: 12px;
      color: #ccc;
      font-family: inherit;
      outline: none;
      cursor: pointer;
      transition: border-color 0.2s;
      min-width: 180px;
      text-align: left;
      text-align-last: left;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
      background-repeat: no-repeat;
      background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
      background-size: 5px 5px, 5px 5px;
    }

    .shop-sort option {
      text-align: left;
    }

    .shop-sort:focus {
      border-color: var(--accent);
    }

    .shop-clear-btn {
      background: none;
      border: none;
      color: #d91414;
      font-size: 30px;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      font-family: inherit;
      transition: color 0.2s, background 0.2s;
    }

    .shop-clear-btn:hover {
      color: #f5a0a0;
      background: rgba(232, 138, 138, 0.12);
    }

    .shop-empty {
      text-align: center;
      padding: 48px 20px;
      color: #666;
      font-size: 14px;
    }

    /* --- Shop layout & sidebar filters --- */
    .shop-body {
      display: flex;
      gap: 24px;
      align-items: flex-start;
      min-height: calc(100vh - var(--shop-filter-header-offset, 88px) - var(--shop-filter-pad, 12px) * 2 - 80px);
      overflow-anchor: none;
    }

    .shop-sidebar {
      flex: 0 0 252px;
      width: 252px;
      align-self: flex-start;
      display: flex;
      flex-direction: column;
      overflow-anchor: none;
      position: sticky;
      top: calc(var(--shop-filter-header-offset) + var(--shop-filter-pad));
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      box-shadow: black 2px 2px;
      padding: 16px 11px;
      height: calc(100vh - var(--shop-filter-header-offset) - var(--shop-filter-pad) * 2);
      max-height: calc(100vh - var(--shop-filter-header-offset) - var(--shop-filter-pad) * 2);
      overflow: hidden;
    }

    .shop-filter-groups {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
      overflow-anchor: none;
    }

    .shop-sidebar-header {
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #1e1e1e;
      flex-shrink: 0;
    }

    .shop-sidebar-header-row {
      display: grid;
      grid-template-columns: 28px 1fr 28px;
      align-items: center;
      width: 100%;
      height: 28px;
    }

    .shop-sidebar-title {
      grid-column: 2;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      line-height: 1;
      color: #959595;
      text-align: center;
      pointer-events: none;
    }

    .shop-sidebar-header .shop-clear-btn {
      grid-column: 3;
      justify-self: end;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      min-width: 28px;
      min-height: 28px;
      font-size: 28px;
      line-height: 1;
      border-radius: 4px;
      overflow: hidden;
      flex-shrink: 0;
    }

    .shop-sidebar-header .shop-clear-btn.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .shop-sidebar-close {
      grid-column: 1;
      justify-self: start;
      display: none;
    }

    .shop-filters-toggle {
      display: none;
    }

    .shop-main {
      flex: 1;
      min-width: 0;
      position: relative;
    }

    .shop-toolbar-compact {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      position: sticky;
      /* Keep sticky top aligned with .shop-sidebar */
      top: calc(var(--shop-filter-header-offset) + var(--shop-filter-pad));
      z-index: 40;
      background: transparent;
      padding: 2px 4px;
      /* Space to grid sits outside the blur plate (was padding-bottom, which inflated bottom chrome). */
      margin-bottom: 12px;
      transition: background 0.18s ease;
    }

    .shop-toolbar-compact > * {
      position: relative;
      z-index: 1;
    }

    .shop-toolbar-compact.is-floating {
      /* Blur lives only on ::before so the top overhang is not clipped by self backdrop-filter. */
      background: transparent;
    }

    .shop-toolbar-compact.is-floating::before,
    .shop-toolbar-compact.is-floating::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      pointer-events: none;
    }

    .shop-toolbar-compact.is-floating::before {
      /* One plate: pad gap above sticky edge + toolbar body. Controls stay put. */
      top: calc(-1 * var(--shop-filter-pad));
      bottom: 0;
      background: #111111cf;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 8px;
      z-index: 0;
    }

    .shop-toolbar-compact.is-floating::after {
      top: 100%;
      height: 10px;
      background: linear-gradient(to bottom,
          rgba(17, 17, 17, 0.5),
          transparent);
      box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.55);
      z-index: 0;
    }

    .shop-toolbar-left {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }

    .shop-toolbar-right {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .shop-toolbar-compact .shop-search-wrap {
      width: 200px;
      max-width: 100%;
    }

    .shop-results-count {
      font-size: 15px;
      font-weight: 700;
      color: #666;
      white-space: nowrap;
    }

    .shop-filter-group {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
    }

    .shop-filter-group[data-filter-group="stones"] {
      flex: 1 1 auto;
      min-height: 0;
    }

    .shop-filter-group+.shop-filter-group {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid #1a1a1a;
    }

    .shop-filter-group-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #777;
      margin-bottom: 8px;
      flex-shrink: 0;
    }

    .shop-filter-options {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 0 0 auto;
      padding-right: 4px;
    }

    .shop-filter-group:not([data-filter-group="types"]) .shop-filter-options {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
    }

    .shop-sidebar,
    .shop-filter-options {
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
    }

    .shop-sidebar::-webkit-scrollbar,
    .shop-filter-options::-webkit-scrollbar {
      width: 5px;
    }

    .shop-sidebar::-webkit-scrollbar-track,
    .shop-filter-options::-webkit-scrollbar-track {
      background: transparent;
    }

    .shop-sidebar::-webkit-scrollbar-thumb,
    .shop-filter-options::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.14);
      border-radius: 999px;
    }

    .shop-sidebar::-webkit-scrollbar-thumb:hover,
    .shop-filter-options::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    .shop-filter-option {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 6px 2px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.15s ease;
      font-size: 13px;
      color: #bbb;
      user-select: none;
    }

    .shop-filter-option:hover:not(.is-disabled) {
      background: rgba(255, 255, 255, 0.03);
      color: #ddd;
    }

    .shop-filter-option.is-disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .shop-filter-option input {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: var(--accent);
      flex-shrink: 0;
      cursor: pointer;
    }

    .shop-filter-option.is-disabled input {
      cursor: not-allowed;
    }

    .shop-filter-label {
      flex: 1;
      min-width: 0;
      /* line-height: 1.35; */
      font-weight: 600;
      font-size: 14px;
      color: #d3d3d3;
    }

    .shop-filter-count {
      font-size: 13px;
      color: #555;
      flex-shrink: 0;
    }

    .shop-sidebar-overlay {
      display: none;
    }

    /* Gems Encyclopedia — beautiful rich cards & modal (seamless with existing theme) */
    .gem-card {
      position: relative;
      background: #0d0d0d;
      border: 1px solid #1e1e1e;
      border-radius: 14px;
      padding: 14px 14px 16px;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      cursor: pointer;
    }

    .gem-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.08);
      border-color: rgba(var(--accent-rgb), 0.22);
    }

    .gem-card .gem-img {
      width: 100%;
      height: 138px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #111;
      border-radius: 10px;
      margin-bottom: 10px;
      overflow: hidden;
    }

    .gem-card .gem-img img {
      max-width: 92%;
      max-height: 92%;
      object-fit: contain;
    }

    .gem-card h3 {
      font-size: 15px;
      color: #fff;
      margin: 0 0 2px;
      letter-spacing: -.2px;
    }

    .gem-card .gem-essence {
      font-size: 12px;
      color: #888;
      line-height: 1.35;
      margin-bottom: 8px;
      flex: 1;
    }

    .gem-card .gem-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      padding-top: 10px;
    }

    .gem-card .gem-tag {
      font-size: 11px;
      font-weight: 500;
      padding: 2px 6px;
      border-radius: 999px;
      background: rgba(var(--accent-rgb), 0.08);
      color: var(--accent);
      border: 1px solid rgba(var(--accent-rgb), 0.14);
      white-space: nowrap;
    }

    .gem-detail {
      max-width: 720px;
      width: 100%;
    }

    .gem-detail-hero {
      display: flex;
      gap: 22px;
      align-items: flex-start;
      margin-bottom: 30px;
    }

    .gem-detail-hero img {
      width: 168px;
      height: 168px;
      object-fit: contain;
      background: #111;
      border-radius: 14px;
      border: 1px solid #222;
      flex-shrink: 0;
    }

    .gem-detail-hero .meta h2 {
      margin: 4px 0 4px;
      font-size: 22px;
      letter-spacing: -.3px;
    }

    /* .price rule removed — encyclopedia is non-commercial */
    .gem-detail-section {
      margin-bottom: 25px;
      padding-top: 25px;
      border-top: 1px solid #222;
    }

    .gem-detail-hero+.gem-detail-section {
      padding-top: 0;
      border-top: none;
    }

    .gem-detail-section:last-child {
      margin-bottom: 0;
    }

    .gem-detail-section h4 {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #777;
      margin-bottom: 6px;
    }

    .gem-detail-section p {
      font-size: 14px;
      color: #ccc;
      line-height: 1.55;
    }

    .gem-specs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
      margin: 8px 0 4px;
    }

    .gem-spec {
      background: #111;
      border: 1px solid #222;
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 14px;
    }

    .gem-spec span {
      display: block;
      color: #666;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .6px;
    }

    .gem-detail-overlay {
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 0;
      padding: 0;
      overflow: hidden;
    }

    .gem-detail-backdrop {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .gem-detail-nav-zone,
    .gem-detail-stage {
      position: relative;
      z-index: 2;
    }

    .gem-detail-overlay.is-animating .gem-detail-backdrop {
      pointer-events: none;
    }

    .gem-detail-overlay.is-animating .gem-detail-track {
      overflow: hidden;
    }

    .gem-detail-nav-zone {
      flex: 1 1 72px;
      max-width: 180px;
      min-width: 52px;
      align-self: stretch;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      padding: 0;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.32);
      transition: color 0.2s ease;
      pointer-events: auto;
    }

    .gem-detail-nav-zone:hover:not(.is-inactive) {
      color: var(--accent);
    }

    .gem-detail-nav-zone.is-inactive {
      cursor: default;
    }

    .gem-detail-nav-zone.is-inactive .gem-detail-nav-chevron {
      opacity: 0.14;
    }

    .gem-detail-nav-chevron {
      font-size: 64px;
      line-height: 1;
      font-weight: 300;
      user-select: none;
      transition: transform 0.2s ease, opacity 0.2s ease;
      pointer-events: none;
    }

    .gem-detail-nav-zone--prev:hover:not(.is-inactive) .gem-detail-nav-chevron {
      transform: translateX(-5px);
    }

    .gem-detail-nav-zone--next:hover:not(.is-inactive) .gem-detail-nav-chevron {
      transform: translateX(5px);
    }

    .gem-detail-stage {
      position: relative;
      overflow: hidden;
      width: min(90vw, 720px);
      height: min(72vh, calc(100vh - 40px));
      max-height: min(72vh, calc(100vh - 40px));
      flex-shrink: 0;
      align-self: center;
      display: flex;
      flex-direction: column;
      border-radius: 14px;
      background: #141414;
      border: 1px solid #222;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
      padding: 24px 32px;
      isolation: isolate;
    }

    .gem-detail-track {
      position: relative;
      overflow: hidden;
      flex: 1;
      min-height: 0;
      width: 100%;
    }

    .gem-detail-close {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      padding: 0;
      background: none;
      border: none;
      border-radius: 8px;
      color: #666;
      font-size: 34px;
      line-height: 1;
      font-weight: 300;
      cursor: pointer;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .gem-detail-close:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.06);
    }

    .gem-detail-stage .gem-detail-panel {
      background: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 0;
      max-width: none;
      width: 100%;
    }

    .gem-detail-stage .gem-detail-panel:not(.gem-detail-panel--enter) {
      animation: none;
    }

    .gem-detail-panel--enter {
      animation: gemDetailEnter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes gemDetailEnter {
      from {
        opacity: 0;
        transform: translateX(28px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateX(0) scale(1);
      }
    }

    @media (max-width: 640px) {
      .gem-detail-nav-chevron {
        font-size: 48px;
      }

      .gem-detail-nav-zone {
        min-width: 44px;
        max-width: 72px;
      }
    }

    /* --- Basket Trigger in Shop --- */
    .shop-header-basket {
      flex-shrink: 0;
      align-self: flex-start;
    }

    .basket-trigger {
      background: #0d0d0d;
      border: 1px solid #2a2a2a;
      color: #ccc;
      cursor: pointer;
      padding: 8px 16px 8px 18px;
      border-radius: 12px;
      box-shadow: black 2px 2px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 16px;
      font-weight: 600;
      font-family: inherit;
      line-height: 1;
      transition: color 0.2s, background 0.2s, border-color 0.2s;
      white-space: nowrap;
    }

    .admin-cog-btn {
      background: none;
      border: none;
      padding: 4px 10px 4px 4px;
      color: #555;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      transition: color 0.2s;
    }

    .admin-cog-btn:hover {
      color: #ccc;
    }

    .basket-trigger:hover {
      color: #fff;
      background: #101010;
      border-color: #3a3a3a;
    }

    .basket-trigger-label {
      color: #959595;
      text-align: left;
      /* text-shadow: 1px 3px 5px black; */
    }

    .basket-trigger-icon {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #888;
      transition: color 0.2s;
    }

    .basket-trigger:hover .basket-trigger-icon {
      color: #fff;
    }

    .basket-badge {
      position: absolute;
      top: -8px;
      right: -10px;
      z-index: 1;
      background: var(--accent);
      color: #000;
      font-size: 10px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      line-height: 1;
      letter-spacing: -0.02em;
      -webkit-font-smoothing: antialiased;
      min-width: 18px;
      height: 18px;
      border-radius: 999px;
      border: 2px solid #0d0d0d;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      pointer-events: none;
    }

    /* --- Basket Drawer --- */
    .basket-overlay {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0, 0, 0, 0.55);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .basket-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .basket-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 400px;
      max-width: 100vw;
      background: #111;
      border-left: 1px solid #1e1e1e;
      z-index: 201;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
      box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    }

    .basket-drawer.open {
      transform: translateX(0);
    }

    .basket-drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid #1e1e1e;
    }

    .basket-drawer-header h2 {
      font-size: 18px;
      color: #fff;
      font-weight: 600;
    }

    .basket-drawer-close {
      background: none;
      border: none;
      color: #666;
      font-size: 20px;
      cursor: pointer;
      padding: 4px;
      transition: color 0.2s;
    }

    .basket-drawer-close:hover {
      color: #fff;
    }

    .basket-drawer-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px 24px;
    }

    .basket-drawer-empty {
      text-align: center;
      padding: 60px 24px;
      color: #666;
      font-size: 14px;
    }

    .basket-drawer-footer {
      padding: 16px 24px 24px;
      border-top: 1px solid #1e1e1e;
    }

    .basket-drawer-totals {
      margin-bottom: 14px;
    }

    .basket-drawer-total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
      color: #ccc;
      margin-bottom: 6px;
    }

    .basket-drawer-total-row--sub {
      font-size: 14px;
      color: #999;
    }

    .basket-drawer-total-row--sub strong {
      font-size: 14px;
      font-weight: 500;
      color: #ccc;
    }

    .basket-drawer-total-row:last-child {
      margin-top: 4px;
      margin-bottom: 0;
      padding-top: 8px;
      border-top: 1px solid #2a2a2a;
    }

    .basket-drawer-total-row strong {
      font-size: 20px;
      color: #fff;
    }

    .basket-drawer-footer .btn-primary {
      width: 100%;
    }

    .basket-drawer-footer .btn-primary:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    /* --- Basket Items --- */
    .basket-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .basket-item--unavailable {
      margin: 0 -8px;
      padding: 12px 8px;
      border-radius: 8px;
      background: rgba(239, 68, 68, 0.06);
    }

    .basket-item:last-child {
      border-bottom: none;
    }

    .basket-item-icon {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      overflow: hidden;
      font-size: 18px;
    }

    .basket-item-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .basket-item-info {
      flex: 1;
      min-width: 0;
    }

    .basket-item-name {
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .basket-item-options {
      font-size: 11px;
      color: #888;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .basket-item-price {
      font-size: 11px;
      color: #666;
      margin-top: 2px;
    }

    .basket-item-stock {
      font-size: 11px;
      color: #777;
      margin-top: 2px;
    }

    .basket-item-stock--low {
      color: #fbbf24;
    }

    .basket-item-stock--out {
      color: #ef4444;
    }

    .basket-item-qty {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .basket-qty-btn {
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: #ccc;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .basket-qty-btn:hover:not(:disabled) {
      background: #2a2a2a;
      border-color: #444;
    }

    .basket-qty-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }

    .basket-qty-value {
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      min-width: 20px;
      text-align: center;
    }

    .basket-item-subtotal {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      min-width: 50px;
      text-align: right;
      flex-shrink: 0;
    }

    .basket-item-remove {
      background: none;
      border: none;
      color: #555;
      font-size: 14px;
      cursor: pointer;
      padding: 4px;
      transition: color 0.2s;
      flex-shrink: 0;
    }

    .basket-item-remove:hover {
      color: #ef4444;
    }

    @media (max-width: 560px) {
      .basket-drawer {
        width: 100vw;
      }

      .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
      }

      .gem-toolbar {
        gap: 8px;
      }

      .gem-toolbar-search .shop-search-wrap {
        width: 148px;
        min-width: 120px;
      }

      .shop-actions {
        flex-wrap: wrap;
      }

      .shop-search {
        width: 100%;
      }

      .shop-search-container {
        justify-content: stretch;
      }

      .shop-search-container .shop-search {
        width: 100%;
      }

      .shop-search-container .shop-clear-btn {
        width: auto;
        align-self: center;
      }

      .shop-header-text {
        margin-bottom: 0;
        padding-right: 8px;
      }

      .about-header-mark {
        width: 64px;
        height: 64px;
        padding: 8px;
      }

      .about-showcase {
        padding: 18px 16px;
      }

      .about-showcase-gems img {
        width: 42px;
        height: 42px;
      }

      .shop-body {
        flex-direction: column;
        gap: 0;
      }

      .shop-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #0d0d0d;
        border: 1px solid #2a2a2a;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #ccc;
        cursor: pointer;
        font-family: inherit;
        transition: border-color 0.2s, color 0.2s;
      }

      .shop-filters-toggle:hover,
      .shop-filters-toggle.is-active {
        border-color: rgba(var(--accent-rgb), 0.35);
        color: var(--accent);
      }

      .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1200;
        width: min(320px, 88vw);
        height: auto;
        max-height: none;
        align-self: auto;
        border-radius: 0;
        border-left: none;
        border-top: none;
        border-bottom: none;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        padding-top: 20px;
        overflow-y: auto;
      }

      .shop-sidebar.open {
        transform: translateX(0);
      }

      .shop-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background: none;
        border: 1px solid #2a2a2a;
        border-radius: 6px;
        color: #888;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        font-family: inherit;
        grid-column: 1;
        justify-self: start;
      }

      .shop-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1190;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
      }

      .shop-sidebar-overlay.open {
        opacity: 1;
        pointer-events: auto;
      }

      .shop-toolbar-compact {
        flex-wrap: wrap;
        gap: 8px;
      }

      .shop-toolbar-left {
        flex-wrap: wrap;
        flex: 1 1 100%;
      }

      .shop-toolbar-compact .shop-search-wrap {
        width: 100%;
        min-width: 120px;
        flex: 1 1 120px;
      }

      .shop-toolbar-right {
        flex: 1 1 100%;
        justify-content: flex-end;
      }
    }
