    :root {
      --bg: #070808;
      --surface: #111212;
      --surface-2: #171818;
      --line: #252727;
      --muted: #82858c;
      --text: #f7f7f5;
      --blue: #0867dc;
      --violet: #38bdf8;
      --teal: #28d4a2;
      --green: #00e087;
      --red: #ff4d61;
      --amber: #f4a62a;
      --radius: 8px;
      --shadow: 0 18px 60px rgba(0, 0, 0, .32);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    body.auth-modal-open {
      overflow: hidden;
    }

    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }

    .shell {
      width: min(1092px, calc(100% - 40px));
      margin: 0 auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(10, 10, 10, .94);
      border-bottom: 1px solid #1d1f1f;
      backdrop-filter: blur(14px);
    }

    .nav {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: max-content;
      font-weight: 800;
      font-size: 20px;
    }

    .brand-logo {
      width: 30px;
      height: 30px;
      border-radius: 6px;
      object-fit: cover;
      border: 1px solid #2c2f31;
      background: #111;
      flex-shrink: 0;
    }

    .mark {
      width: 40px;
      height: 30px;
      position: relative;
      display: inline-block;
    }

    .mark::before,
    .mark::after {
      content: "";
      position: absolute;
      background: #fff;
      border-radius: 2px;
      transform: skewX(-28deg);
    }

    .mark::before {
      width: 31px;
      height: 10px;
      left: 7px;
      top: 3px;
    }

    .mark::after {
      width: 36px;
      height: 10px;
      left: 2px;
      bottom: 2px;
    }

    .mark span {
      position: absolute;
      width: 15px;
      height: 8px;
      top: 0;
      left: 0;
      border-radius: 0 0 8px 8px;
      background: var(--teal);
      transform: rotate(37deg);
    }

    .navlinks {
      display: flex;
      align-items: center;
      gap: 28px;
      color: #a1a1a4;
      font-weight: 650;
      font-size: 14px;
    }

    .navlinks a {
      transition: color .2s ease;
    }

    .navlinks a:hover,
    .navlinks a.active {
      color: #fff;
    }

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

    .pill,
    .icon-btn,
    .primary,
    .ghost {
      border: 0;
      border-radius: 6px;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-weight: 800;
      white-space: nowrap;
    }

    .pill {
      padding: 0 14px;
      background: var(--violet);
      color: #08080b;
    }

    .user-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      border-radius: 12px;
      background: #151616;
      border: 1px solid #222525;
      padding: 6px 12px 6px 6px;
      font-weight: 800;
      font-size: 14px;
      color: #ffffff;
      cursor: pointer;
      font-family: inherit;
    }

    .account-menu {
      position: relative;
      width: 180px;
    }

    .account-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 180px;
      padding: 8px;
      border-radius: 12px;
      border: 1px solid #222525;
      background: #151616;
      box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
      z-index: 35;
    }

    .user-chip {
      width: 100%;
      justify-content: flex-start;
    }

    .account-dropdown-item {
      width: 100%;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: #f5f7f7;
      font-weight: 700;
      padding: 0 12px;
      cursor: pointer;
    }

    .account-dropdown-item[hidden] {
      display: none !important;
    }

    .account-dropdown-item:hover {
      background: #1e2121;
      border-color: #2a2d2d;
    }

    .user-chip.logged-out {
      padding: 6px 12px;
    }

    .avatar {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }

    .avatar-fallback {
      background: radial-gradient(circle at 35% 30%, #ffdc62 0 23%, #e33e3f 24% 45%, #255cc9 46% 72%, #171717 73%);
      border: 2px solid #343535;
    }

    .avatar-image {
      display: none;
      object-fit: cover;
      border: 2px solid #343535;
      background: #101010;
    }

    .auth-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(4, 6, 8, .74);
      backdrop-filter: blur(10px);
    }

    .auth-modal-backdrop[hidden] {
      display: none !important;
    }

    .auth-modal {
      width: min(560px, calc(100% - 32px));
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, .08);
      background: linear-gradient(180deg, rgba(20, 23, 27, .98) 0%, rgba(12, 14, 16, .98) 100%);
      box-shadow: 0 36px 80px rgba(0, 0, 0, .45);
      padding: 26px;
    }

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

    .auth-modal-header h2 {
      margin: 0;
      font-size: 24px;
      line-height: 1.1;
    }

    .auth-modal-close {
      width: 40px;
      height: 40px;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 12px;
      background: rgba(255, 255, 255, .04);
      color: var(--text);
      font-weight: 800;
    }

    .auth-modal-copy {
      margin: 0 0 24px;
      color: #c1c5cb;
      line-height: 1.7;
      font-size: 15px;
    }

    .auth-discord-button {
      width: 100%;
      min-height: 60px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      border: 0;
      border-radius: 14px;
      padding: 14px 18px;
      background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
      color: #fff;
      font-weight: 800;
      font-size: 16px;
      box-shadow: 0 18px 34px rgba(88, 101, 242, .28);
    }

    .auth-discord-icon {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: rgba(255, 255, 255, .14);
      flex: 0 0 auto;
    }

    .auth-discord-icon svg {
      width: 22px;
      height: 22px;
    }

    @media (max-width: 640px) {
      .auth-modal {
        padding: 22px;
      }

      .auth-modal-header h2 {
        font-size: 22px;
      }

      .auth-discord-button {
        min-height: 56px;
        font-size: 15px;
      }
    }

    .cart-button {
      position: relative;
      width: 40px;
      height: 38px;
      background: #141616;
      border: 1px solid #242626;
      color: #fff;
      transition: border-color .16s ease, background .16s ease;
    }

    .cart-button:hover {
      border-color: #3a5579;
      background: #18202a;
    }

    .cart-button svg {
      width: 20px;
      height: 20px;
    }

    .cart-count {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 18px;
      height: 18px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
    }

    body.cart-open {
      overflow: hidden;
    }

    .cart-backdrop {
      position: fixed;
      inset: 0;
      z-index: 78;
      background: rgba(2, 4, 8, .56);
      backdrop-filter: blur(3px);
    }

    .cart-backdrop[hidden] {
      display: none !important;
    }

    .cart-drawer {
      position: fixed;
      top: 0;
      right: 0;
      width: min(460px, 94vw);
      height: 100dvh;
      background: linear-gradient(180deg, #111416 0%, #0c0f10 100%);
      border-left: 1px solid #222729;
      box-shadow: -20px 0 56px rgba(0, 0, 0, .45);
      z-index: 79;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      transform: translateX(102%);
      transition: transform .22s ease;
    }

    .cart-drawer.open {
      transform: translateX(0);
    }

    .cart-drawer-head {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 18px;
      border-bottom: 1px solid #1f2426;
    }

    .cart-drawer-head h2 {
      margin: 0;
      font-size: 24px;
    }

    .cart-close {
      width: 38px;
      height: 38px;
      border: 1px solid #2b3033;
      border-radius: 8px;
      background: #161a1d;
      color: #f4f6f8;
      font-weight: 900;
    }

    .cart-items {
      overflow: auto;
      padding: 14px 14px 4px;
      display: grid;
      align-content: start;
      gap: 12px;
    }

    .cart-empty {
      border: 1px dashed #2a3136;
      border-radius: 8px;
      background: #131719;
      color: #aeb3b9;
      min-height: 160px;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 18px;
    }

    .cart-line-item {
      display: grid;
      grid-template-columns: 70px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
      border: 1px solid #252c31;
      border-radius: 8px;
      background: #121719;
      padding: 10px;
    }

    .cart-line-art {
      width: 70px;
      height: 70px;
      border-radius: 8px;
      background: linear-gradient(135deg, #012d1e, #075c4e);
      overflow: hidden;
      border: 1px solid #2d373d;
    }

    .cart-line-art img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    .cart-line-main {
      min-width: 0;
    }

    .cart-line-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }

    .cart-line-title {
      margin: 0;
      font-size: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cart-line-price {
      color: var(--green);
      font-weight: 900;
      font-size: 14px;
      white-space: nowrap;
    }

    .cart-line-meta {
      margin: 0;
      color: #9da5af;
      font-size: 12px;
      line-height: 1.4;
      word-break: break-word;
    }

    .cart-line-subscription {
      margin: 6px 0 0;
      padding: 5px 10px;
      background: rgba(138, 99, 255, 0.08);
      border: 1px solid rgba(138, 99, 255, 0.2);
      border-radius: 5px;
      color: var(--violet);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .cart-remove {
      width: 34px;
      height: 34px;
      border: 1px solid #3b2a30;
      border-radius: 7px;
      background: rgba(255, 77, 97, .12);
      color: #ff5f74;
      font-size: 16px;
      line-height: 1;
      font-weight: 900;
    }

    .cart-summary {
      border-top: 1px solid #1f2426;
      padding: 14px;
      display: grid;
      gap: 14px;
      background: #0f1315;
    }

    .cart-total-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #d3d8dd;
      font-size: 16px;
    }

    .cart-total-row strong {
      color: #fff;
      font-size: 20px;
    }

    .cart-total-price-stack {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .cart-total-original {
      color: #8f98a2;
      text-decoration: line-through;
      font-size: 15px;
      font-weight: 700;
    }

    .cart-total-discounted {
      color: #9cf0c8;
      font-size: 21px;
      font-weight: 900;
    }

    .cart-discount-feedback {
      border: 1px solid #3b2a30;
      background: rgba(255, 77, 97, .12);
      color: #ffc6cf;
      border-radius: 8px;
      padding: 10px 11px;
      font-size: 13px;
      line-height: 1.4;
    }

    .cart-applied-discount[hidden] {
      display: none;
    }

    .cart-applied-discount {
      border: 1px solid rgba(0, 224, 135, .36);
      background: rgba(0, 224, 135, .11);
      border-radius: 9px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .cart-applied-discount small {
      display: block;
      color: #9cd7be;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .04em;
      margin-bottom: 4px;
      font-weight: 800;
    }

    .cart-applied-discount strong {
      color: #dcffee;
      font-size: 15px;
    }

    .cart-applied-discount button {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: 7px;
      background: rgba(0, 0, 0, .2);
      color: #f3fffa;
      font-size: 16px;
      line-height: 1;
    }

    .cart-discount h3 {
      margin: 0 0 6px;
      font-size: 16px;
    }

    .cart-discount p {
      margin: 0 0 8px;
      color: #a8b0ba;
      font-size: 13px;
      line-height: 1.45;
    }

    .cart-discount-label {
      display: block;
      color: #cad0d6;
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .cart-discount-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 42px;
      gap: 8px;
    }

    .cart-discount-row input {
      min-height: 40px;
    }

    .cart-discount-row button {
      min-height: 40px;
      border: 1px solid #2f3a41;
      border-radius: 6px;
      background: #182026;
      color: #f0f4fa;
      font-size: 18px;
      font-weight: 900;
      padding: 0;
    }

    .cart-checkout-button {
      width: 100%;
      min-height: 48px;
    }

    main { min-height: calc(100vh - 120px); }
    .page { display: none; }
    .page.active { display: block; }

    .hero-home {
      min-height: calc(100vh - 64px);
      display: grid;
      align-items: center;
      position: relative;
      overflow: hidden;
      --hero-image-bottom-fade: 0px;
    }

    .hero-home::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: var(--hero-image-bottom-fade);
      background: linear-gradient(180deg, rgba(7,8,8,0) 0%, rgba(7,8,8,.84) 68%, rgba(7,8,8,1) 100%);
      pointer-events: none;
      z-index: 1;
      opacity: 0;
    }

    .hero-frontpage-image {
      position: absolute;
      right: -16vw;
      top: 4%;
      width: min(1380px, 82vw);
      max-height: 94vh;
      height: auto;
      object-fit: contain;
      object-position: center right;
      border: 0;
      border-radius: 0;
      z-index: 0;
      will-change: transform;
    }

    .hero-frontpage-image.is-default-frontpage {
      transform: scaleX(-1);
    }

    .hero-home.has-frontpage-image::after {
      opacity: 1;
    }

    .hero-copy {
      position: relative;
      z-index: 2;
      width: min(560px, 100%);
      padding: 90px 0 130px;
      margin-left: 5%;
    }

    .hero-copy h1 {
      font-size: clamp(52px, 8vw, 92px);
      line-height: .95;
      margin-bottom: 22px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--teal);
      font-weight: 900;
      letter-spacing: 0;
      text-transform: uppercase;
      font-size: 12px;
      margin-bottom: 18px;
    }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      font-size: clamp(42px, 7vw, 88px);
      line-height: .96;
      letter-spacing: 0;
      margin-bottom: 20px;
    }

    .hero-copy p {
      font-size: 18.5px;
      line-height: 1.65;
      max-width: 500px;
      margin-bottom: 34px;
      color: #c9cbd0;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
    }

    .primary,
    .ghost {
      padding: 0 24px;
      min-height: 52px;
      font-size: 15px;
    }

    .primary {
      background: var(--violet);
      color: #08080b;
    }

    .ghost {
      color: #fff;
      background: #141616;
      border: 1px solid #292b2b;
    }

    .blue-band {
      background: linear-gradient(135deg, var(--violet), #0653b3);
      padding: 66px 0 64px;
      text-align: center;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .blue-band h1,
    .blue-band h2 {
      font-size: clamp(34px, 4vw, 42px);
      margin: 0 0 14px;
    }

    .blue-band p {
      color: rgba(255, 255, 255, .86);
      margin: 0;
      font-size: 18px;
    }

    .section {
      padding: 48px 0;
    }

    .section-title {
      font-size: 24px;
      margin-bottom: 28px;
      letter-spacing: 0;
    }

    .categories {
      display: grid;
      grid-template-columns: repeat(2, minmax(220px, 1fr));
      max-width: 540px;
      gap: 16px;
      margin-bottom: 50px;
    }

    .category-card,
    .product-card,
    .panel,
    .checkout-box,
    .stat,
    .management-table,
    .admin-editor {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .category-card {
      min-height: 106px;
      padding: 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      width: 100%;
      text-align: left;
      color: inherit;
      text-decoration: none;
      cursor: pointer;
    }

    .category-filter-card.active {
      border-color: var(--violet);
      box-shadow: 0 0 0 1px rgba(56, 189, 248, .2), var(--shadow);
      background: rgba(56, 189, 248, .05);
    }

    .category-icon {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border-radius: 7px;
      background: var(--violet);
      color: white;
      font-size: 26px;
    }

    .category-icon-image {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: transparent;
    }

    .category-card strong { display: block; margin-bottom: 8px; }
    .category-card span { color: var(--muted); font-size: 14px; }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(240px, 1fr));
      gap: 22px;
    }

    .store-layout {
      display: grid;
      grid-template-columns: 320px minmax(0, 1fr);
      gap: 28px;
      align-items: start;
    }

    .store-sidebar .section-title,
    .store-content .section-title {
      margin-top: 0;
    }

    .store-sidebar .categories {
      grid-template-columns: 1fr;
      max-width: none;
      margin-bottom: 0;
    }

    .tag-filter-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: -6px;
    }

    .tag-filter-chip {
      border: 1px solid #2f3338;
      background: #14171b;
      color: #c8d0db;
      border-radius: 6px;
      min-height: 26px;
      padding: 0 12px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color .18s ease, color .18s ease, background .18s ease;
    }

    .tag-filter-chip:hover {
      border-color: rgba(56, 189, 248, .3);
      color: #e4ecf7;
    }

    .tag-filter-chip.active {
      background: rgba(56, 189, 248, .12);
      border-color: var(--violet);
      color: #e9f2ff;
    }

    .tag-filter-empty {
      color: var(--muted);
      font-size: 14px;
    }

    .store-content .product-grid {
      grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .store-content .product-grid.is-empty {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 300px;
    }

    .store-content .product-grid.is-empty .product-card {
      width: min(100%, 420px);
      max-width: 420px;
      margin: 0 auto;
    }

    .product-card {
      overflow: hidden;
      max-width: 350px;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

    .product-card:hover {
      transform: translateY(-2px);
      border-color: #2e3234;
      box-shadow: 0 22px 58px rgba(0, 0, 0, .4);
    }

    .product-art {
      min-height: 218px;
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(144deg, rgba(0, 0, 0, .12), transparent 55%),
        linear-gradient(135deg, #012d1e 0%, #075c4e 100%);
    }

    .product-art-image {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: 1;
    }

    .product-art:has(.product-art-image)::before,
    .product-art:has(.product-art-image)::after {
      display: none;
    }

    .product-art::before,
    .product-art::after {
      content: "";
      position: absolute;
      background: rgba(255, 255, 255, .1);
      transform: skewX(-22deg);
    }

    .product-art::before {
      width: 75px;
      height: 310px;
      right: 52px;
      top: 32px;
    }

    .product-art::after {
      width: 145px;
      height: 70px;
      right: -48px;
      bottom: 18px;
      transform: rotate(-20deg) skewX(-22deg);
      background: rgba(255, 255, 255, .12);
    }

    .mini-mark {
      position: absolute;
      left: 58px;
      top: 91px;
      display: flex;
      align-items: center;
      gap: 14px;
      font-weight: 900;
      font-size: 32px;
      letter-spacing: 0;
    }

    .mini-mark .mark {
      transform: scale(1.6);
      transform-origin: center;
    }

    .mini-mark b span,
    .labs { color: var(--teal); }

    .badge-row {
      position: absolute;
      inset: 12px 12px auto;
      display: flex;
      justify-content: flex-start;
      gap: 12px;
      z-index: 2;
    }

    .badge-row-right {
      justify-content: flex-end;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      min-height: 28px;
      padding: 0 14px;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      background: #18201e;
      color: #fff;
    }

    .badge.sale { background: var(--red); }
    .badge.discount { background: rgba(244, 166, 42, .18); color: #ffb735; }

    .product-category-corner {
      min-height: 26px;
      padding: 0 12px;
      border-radius: 6px;
      background: #232a36;
      border: 1px solid #3a495f;
      color: #d7e6ff;
      letter-spacing: .02em;
      text-transform: uppercase;
    }

    .product-info {
      padding: 22px 18px 20px;
    }

    .product-info h3 {
      font-size: 16px;
      margin-bottom: 10px;
    }

    .product-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }

    .product-tag {
      min-height: 26px;
      padding: 0 12px;
      font-size: 11px;
      border-radius: 6px;
      background: #2a2d31;
      border: 1px solid #3a3e43;
      color: #d2d6dc;
      text-transform: uppercase;
    }

    .price-line {
      border-top: 1px solid #242525;
      padding-top: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .price {
      color: var(--green);
      font-size: 20px;
      font-weight: 900;
    }

    .was {
      color: #6e7074;
      text-decoration: line-through;
      font-size: 14px;
      margin-left: 6px;
      font-weight: 500;
    }

    .link {
      color: var(--violet);
      font-weight: 850;
    }

    .add-card-action {
      border: 1px solid #2b2f33;
      border-radius: 6px;
      min-height: 34px;
      padding: 0 12px;
      background: #141616;
      color: #eef1f4;
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
      transition: background .15s ease, color .15s ease, border-color .15s ease;
    }

    .add-card-action:hover {
      background: var(--violet);
      border-color: var(--violet);
      color: #08080b;
    }

    .add-card-action:disabled,
    .add-button:disabled {
      cursor: not-allowed;
      opacity: .75;
      background: #202427;
      border-color: #33383c;
      color: #b8bec5;
    }

    .add-card-action.is-owned,
    .add-button.is-owned {
      background: rgba(0, 224, 135, .15);
      border-color: rgba(0, 224, 135, .45);
      color: #9cf0c8;
      opacity: 1;
    }

    .add-card-action.is-in-cart,
    .add-button.is-in-cart {
      background: rgba(8, 111, 231, .16);
      border-color: rgba(8, 111, 231, .4);
      color: #b5d7ff;
      opacity: 1;
    }

    .add-card-action.is-login-required,
    .add-button.is-login-required {
      background: rgba(255, 165, 0, .12);
      border-color: rgba(255, 165, 0, .4);
      color: #ffd580;
      opacity: 1;
    }

    .empty-filter-state {
      min-height: 132px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 10px;
    }

    .empty-filter-state h3 {
      margin: 0;
    }

    .search-all-filters {
      margin: 0;
      min-height: 34px;
      padding: 0 14px;
      border-radius: 6px;
      border: 1px solid var(--violet);
      background: var(--violet);
      color: #08080b;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }

    .crumbs {
      display: flex;
      gap: 12px;
      align-items: center;
      color: var(--muted);
      font-size: 14px;
      margin: 58px 0 34px;
    }

    .crumbs a { color: #bfc2c6; }

    .product-layout {
      display: grid;
      grid-template-columns: minmax(320px, 522px) minmax(320px, 1fr);
      gap: 48px;
      align-items: start;
    }

    .product-hero-art {
      min-height: 522px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
    }

    .product-detail h1 {
      font-size: 34px;
      margin: 12px 0 14px;
    }

    .product-detail .price {
      font-size: 40px;
      margin-bottom: 26px;
      display: inline-block;
    }

    .add-button {
      min-height: 49px;
      padding: 0 28px;
      border: 1px solid #2b2f33;
      border-radius: 6px;
      background: #141616;
      color: #eef1f4;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
      transition: background .18s ease, color .18s ease, border-color .18s ease;
    }

    .add-button:hover {
      background: var(--violet);
      border-color: var(--violet);
      color: #08080b;
    }

    .included {
      padding: 28px 24px;
    }

    .included h3,
    .panel h3 { font-size: 16px; margin-bottom: 28px; }

    .included-item {
      display: flex;
      gap: 12px;
      color: #fff;
      align-items: center;
    }

    .included-item small {
      display: block;
      color: var(--muted);
      margin-top: 4px;
    }

    .description {
      margin: 48px 0 112px;
      padding: 36px 32px;
    }

    .description p {
      color: #bbbfc4;
      margin-bottom: 0;
    }

    .split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 26px;
      align-items: start;
    }

    .cart-list,
    .summary-list {
      display: grid;
      gap: 14px;
    }

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

    .thumb {
      width: 84px;
      aspect-ratio: 1;
      border-radius: 7px;
      background: linear-gradient(135deg, #012d1e, #075c4e);
      position: relative;
      overflow: hidden;
    }

    .cart-row h3 { margin-bottom: 6px; font-size: 16px; }
    .cart-row p { color: var(--muted); margin: 0; font-size: 14px; }

    .qty {
      display: inline-grid;
      grid-template-columns: 34px 42px 34px;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
      min-height: 34px;
      background: #0d0e0e;
    }

    .qty button {
      height: 34px;
      border: 0;
      background: #171818;
      color: #fff;
      font-weight: 900;
    }

    .qty span { text-align: center; font-weight: 850; }

    .checkout-box {
      padding: 24px;
      position: sticky;
      top: 88px;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      color: #c9cbd0;
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }

    .summary-row.total {
      border: 0;
      color: #fff;
      font-size: 22px;
      font-weight: 900;
      padding-top: 18px;
    }

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

    label {
      display: grid;
      gap: 8px;
      color: #c8cbd1;
      font-size: 13px;
      font-weight: 800;
    }

    input,
    select,
    textarea {
      width: 100%;
      border: 1px solid var(--line);
      background: #0d0e0e;
      color: #fff;
      min-height: 42px;
      border-radius: 6px;
      padding: 0 12px;
      outline: 0;
    }

    textarea {
      min-height: 96px;
      padding-top: 12px;
      resize: vertical;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--violet);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, .16);
    }

    .success {
      min-height: calc(100vh - 184px);
      display: grid;
      place-items: center;
      text-align: center;
      padding: 72px 0;
    }

    .success-mark {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background: rgba(0, 224, 135, .12);
      border: 1px solid rgba(0, 224, 135, .4);
      display: grid;
      place-items: center;
      color: var(--green);
      font-size: 38px;
      margin: 0 auto 22px;
    }

    .success h1 { font-size: 42px; margin-bottom: 10px; }
    .success p { color: #c9cbd0; margin-bottom: 26px; }

    .admin-layout {
      display: grid;
      grid-template-columns: 230px minmax(0, 1fr);
      gap: 26px;
      padding: 38px 0 82px;
    }

    .admin-sidebar {
      position: sticky;
      top: 88px;
      align-self: start;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #0d0e0e;
      padding: 10px;
    }

    .admin-sidebar a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 42px;
      border-radius: 6px;
      padding: 0 12px;
      color: #aeb1b6;
      font-weight: 800;
      font-size: 14px;
    }

    .admin-sidebar a.active,
    .admin-sidebar a:hover {
      background: #181a1a;
      color: #fff;
    }

    .admin-head {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      margin-bottom: 24px;
    }

    .admin-head h1 {
      font-size: 34px;
      margin: 0 0 8px;
    }

    .admin-head p { color: var(--muted); margin: 0; }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat {
      padding: 18px;
    }

    .stat small {
      display: block;
      color: var(--muted);
      margin-bottom: 10px;
      font-weight: 800;
    }

    .stat strong {
      display: block;
      font-size: 26px;
    }

    .admin-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 20px;
    }

    .management-table {
      overflow: hidden;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th,
    td {
      text-align: left;
      padding: 16px;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
      vertical-align: middle;
    }

    th {
      color: #a9adb4;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0;
      background: #151616;
    }

    tr:last-child td { border-bottom: 0; }
    td strong { display: block; margin-bottom: 4px; }
    td small { color: var(--muted); }

    .status {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      color: var(--green);
      background: rgba(0, 224, 135, .11);
    }

    .status.warn {
      color: #ffbe4d;
      background: rgba(244, 166, 42, .12);
    }

    .status.inactive {
      color: #ff4444;
      background: rgba(255, 68, 68, .12);
    }

    .admin-editor {
      padding: 18px;
    }

    .editor-stack {
      display: grid;
      gap: 13px;
    }

    .tool-row {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 8px;
    }

    .small-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 32px;
      border-radius: 6px;
      border: 1px solid var(--line);
      background: #1a1c1c;
      color: #fff;
      font-weight: 600;
      font-size: 13px;
      padding: 0 12px;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
      transition: background .15s ease, border-color .15s ease;
    }

    .small-btn:hover {
      background: #252828;
      border-color: #444;
    }

    .small-btn.danger {
      color: #ff6b7a;
      background: rgba(255, 77, 97, .1);
      border-color: rgba(255, 77, 97, .3);
    }

    .small-btn.danger:hover {
      background: rgba(255, 77, 97, .2);
      border-color: rgba(255, 77, 97, .5);
    }

    body.admin-mode .topbar {
      display: none;
    }

    body.admin-mode main {
      min-height: 100vh;
    }

    .admin-page {
      background: #070808;
      min-height: 100vh;
      color: #fff;
    }

    .admin-shell {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      min-height: 100vh;
    }

    .admin-rail {
      border-right: 1px solid #232424;
      background: #090a0a;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      position: sticky;
      top: 0;
    }

    .admin-logo {
      height: 60px;
      border-bottom: 1px solid #232424;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 16px;
      font-weight: 900;
    }

    .admin-logo-img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
      flex-shrink: 0;
    }

    .rail-scroll {
      padding: 16px 8px;
      flex: 1;
    }

    .rail-group {
      margin-bottom: 20px;
    }

    .rail-title {
      color: #70747c;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 0 12px;
      margin-bottom: 8px;
    }

    .rail-link {
      min-height: 36px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-radius: 5px;
      padding: 0 12px;
      color: #c3c7ce;
      font-size: 14px;
      font-weight: 750;
    }

    .rail-link.active,
    .rail-link:hover {
      color: #fff;
      background: rgba(56, 189, 248, .18);
    }

    .rail-icon {
      width: 17px;
      color: #8d929a;
      text-align: center;
      flex: 0 0 17px;
    }

    .rail-bottom {
      border-top: 1px solid #232424;
      padding: 12px 8px;
    }

    .admin-main {
      min-width: 0;
    }

    .admin-top {
      height: 60px;
      border-bottom: 1px solid #232424;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 24px;
      background: #080909;
    }

    .admin-top #adminAccountSlot {
      margin-left: auto;
      display: flex;
      align-items: center;
    }

    .admin-top .account-menu {
      position: relative;
    }

    .admin-top .account-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 200;
    }

    .admin-content {
      padding: 24px 24px 48px;
    }

    .store-tabs {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 56px;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #141515;
      margin-bottom: 38px;
      overflow-x: auto;
    }

    .store-tabs a {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border-radius: 6px;
      padding: 0 16px;
      color: #c8ccd3;
      font-weight: 850;
      white-space: nowrap;
    }

    .store-tabs a.active,
    .store-tabs a:hover {
      background: var(--violet);
      color: #fff;
    }

    .admin-titlebar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 26px;
    }

    .admin-titlebar.center {
      justify-content: center;
      text-align: center;
      position: relative;
    }

    .admin-titlebar h1,
    .admin-center-head h1 {
      font-size: 30px;
      margin: 0 0 10px;
      letter-spacing: 0;
    }

    .admin-titlebar p,
    .admin-center-head p {
      color: #b6bbc4;
      margin: 0;
      font-size: 16px;
    }

    .admin-center-head {
      text-align: center;
      margin-bottom: 38px;
    }

    .admin-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .admin-btn {
      min-height: 42px;
      border-radius: 6px;
      border: 1px solid var(--line);
      background: #151616;
      color: #fff;
      font-weight: 900;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      white-space: nowrap;
    }

    .admin-btn.primary {
      background: var(--violet);
      color: #08080b;
      border-color: var(--violet);
    }

    .admin-btn.danger {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
    }

    .admin-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(170px, 1fr));
      gap: 18px;
      margin-bottom: 24px;
    }

    .admin-metrics.wide {
      grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

    .metric-card,
    .admin-card,
    .admin-form-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .secret-field {
      position: relative;
      display: flex;
      align-items: center;
    }

    .secret-field input {
      flex: 1;
      padding-right: 40px;
    }

    .eye-btn {
      position: absolute;
      right: 8px;
      background: none;
      border: none;
      cursor: pointer;
      opacity: 0.5;
      font-size: 16px;
      padding: 0;
      line-height: 1;
      color: var(--text);
      transition: opacity .15s;
    }

    .eye-btn:hover {
      opacity: 1;
    }

    .setup-steps {
      margin: 12px 0 0;
      padding: 0 0 0 20px;
      color: var(--muted);
      line-height: 1.8;
      font-size: 13px;
    }

    .setup-steps li {
      margin-bottom: 6px;
    }

    .setup-steps strong {
      color: var(--text);
    }

    .setup-code {
      display: inline-block;
      margin-top: 6px;
      padding: 6px 12px;
      background: #0d0e0e;
      border: 1px solid var(--line);
      border-radius: 6px;
      font-family: monospace;
      font-size: 13px;
      color: #7dd3fc;
      word-break: break-all;
    }

    .ui-key {
      display: inline-block;
      padding: 2px 8px;
      background: #1a1b1b;
      border: 1px solid #3a3b3b;
      border-bottom-width: 2px;
      border-radius: 5px;
      font-family: inherit;
      font-size: 12px;
      font-weight: 600;
      color: #e2e4e8;
      white-space: nowrap;
    }

    .metric-card {
      min-height: 90px;
      padding: 22px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .metric-icon {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      font-size: 24px;
      background: rgba(56, 189, 248, .16);
      color: var(--violet);
    }

    .metric-card.green .metric-icon { background: rgba(0, 224, 135, .14); color: var(--green); }
    .metric-card.amber .metric-icon { background: rgba(244, 166, 42, .16); color: var(--amber); }
    .metric-card.red .metric-icon { background: rgba(255, 77, 97, .16); color: var(--red); }

    .metric-value {
      text-align: center;
      flex: 1;
    }

    .metric-value strong {
      display: block;
      font-size: 30px;
      line-height: 1;
    }

    .metric-value span {
      display: block;
      color: var(--muted);
      margin-top: 7px;
      font-size: 14px;
    }

    .admin-two-col {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 20px;
    }

    .admin-two-col.left-form {
      grid-template-columns: 360px minmax(0, 1fr);
    }

    .admin-edit-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 250px;
      gap: 20px;
    }

    .admin-card,
    .admin-form-card {
      padding: 24px;
    }

    .admin-card h2,
    .admin-form-card h2,
    .admin-card h3,
    .admin-form-card h3 {
      font-size: 16px;
      margin: 0;
    }

    .admin-card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding-bottom: 20px;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }

    .empty-state {
      min-height: 390px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
    }

    .empty-state strong {
      display: block;
      color: #c3c7ce;
      margin: 12px 0 8px;
      font-size: 16px;
    }

    .mini-product {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 12px;
      align-items: center;
      padding: 14px 0;
      border-top: 1px solid var(--line);
    }

    .mini-product-thumb {
      width: 34px;
      height: 34px;
      border-radius: 5px;
      background: linear-gradient(135deg, #012d1e, #075c4e);
    }

    .admin-table-wrap {
      overflow: auto;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--surface);
      padding: 24px;
    }

    .admin-table {
      min-width: 760px;
      background: #111212;
    }

    .admin-table th {
      background: #0d0e0e;
    }

    .product-cell {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 190px;
    }

    .product-cell .mini-product-thumb {
      width: 42px;
      height: 42px;
    }

    .count-pill {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 6px;
      background: rgba(56, 189, 248, .2);
      color: var(--violet);
      font-weight: 900;
      white-space: nowrap;
    }

    .form-stack {
      display: grid;
      gap: 20px;
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .hint {
      color: #6f737b;
      font-size: 13px;
      margin-top: 7px;
    }

    .upload-box {
      width: 100%;
      max-width: 270px;
      aspect-ratio: 1;
      border: 2px dashed #2a2d2d;
      border-radius: 7px;
      display: grid;
      place-items: center;
      text-align: center;
      color: #777b83;
      margin-top: 12px;
    }

    /* Deliverable option cards */
    .deliverable-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 16px;
    }

    .deliverable-option {
      position: relative;
      cursor: pointer;
    }

    .deliverable-option input[type="radio"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

    .deliverable-option-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 20px 14px;
      border-radius: 10px;
      border: 2px solid var(--line);
      background: var(--surface);
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }

    .deliverable-option input[type="radio"]:checked + .deliverable-option-content {
      border-color: var(--violet);
      background: rgba(56, 189, 248, 0.06);
      box-shadow: 0 0 0 1px var(--violet);
    }

    .deliverable-option-content:hover {
      border-color: #444;
      background: rgba(255, 255, 255, 0.02);
    }

    .deliverable-option input[type="radio"]:checked + .deliverable-option-content:hover {
      border-color: var(--violet);
      background: rgba(56, 189, 248, 0.08);
    }

    .deliverable-option-icon {
      font-size: 22px;
      color: #9ca0a8;
      transition: color 0.2s;
    }

    .deliverable-option input[type="radio"]:checked + .deliverable-option-content .deliverable-option-icon {
      color: var(--violet);
    }

    .deliverable-option-label {
      font-size: 14px;
      font-weight: 600;
      color: #c3c7ce;
    }

    .deliverable-option input[type="radio"]:checked + .deliverable-option-content .deliverable-option-label {
      color: #fff;
    }

    /* File dropzone */
    .file-dropzone {
      position: relative;
      width: 100%;
      min-height: 140px;
      border: 2px dashed #2e3135;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      margin-top: 12px;
    }

    .file-dropzone:hover,
    .file-dropzone.dragover {
      border-color: var(--violet);
      background: rgba(56, 189, 248, 0.04);
    }

    .file-dropzone-input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    .file-dropzone-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      pointer-events: none;
    }

    .file-dropzone-icon {
      font-size: 32px;
      color: #555960;
      transition: color 0.2s;
    }

    .file-dropzone:hover .file-dropzone-icon,
    .file-dropzone.dragover .file-dropzone-icon {
      color: var(--violet);
    }

    .file-dropzone-text {
      font-size: 14px;
      color: #9ca0a8;
    }

    .file-dropzone-text strong {
      color: var(--violet);
    }

    .file-dropzone-hint {
      font-size: 12px;
      color: #5a5e66;
    }

    .file-dropzone-selected {
      display: flex;
      align-items: center;
      gap: 10px;
      pointer-events: none;
    }

    .file-dropzone-selected .file-icon {
      font-size: 24px;
      color: var(--violet);
    }

    .file-dropzone-selected .file-name {
      font-size: 14px;
      font-weight: 600;
      color: #e1e4e9;
      word-break: break-all;
    }

    .file-dropzone-selected .file-size {
      font-size: 12px;
      color: #6f737b;
    }

    /* File upload progress */
    .file-upload-progress {
      margin-top: 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 14px 16px;
    }

    .file-upload-progress-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
    }

    .file-upload-progress-icon {
      font-size: 18px;
      color: var(--violet);
      flex-shrink: 0;
    }

    .file-upload-progress-icon .fa-circle-check {
      color: var(--green);
    }

    .file-upload-progress-icon .fa-circle-xmark {
      color: var(--red);
    }

    .file-upload-progress-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
    }

    .file-upload-progress-name {
      font-size: 13px;
      font-weight: 600;
      color: #e1e4e9;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .file-upload-progress-status {
      font-size: 12px;
      color: var(--muted);
    }

    .file-upload-progress-status.success {
      color: var(--green);
    }

    .file-upload-progress-status.error {
      color: var(--red);
    }

    .file-upload-progress-bar-track {
      width: 100%;
      height: 6px;
      background: #1e2024;
      border-radius: 3px;
      overflow: hidden;
    }

    .file-upload-progress-bar-fill {
      height: 100%;
      width: 0%;
      background: var(--violet);
      border-radius: 3px;
      transition: width 0.2s ease;
    }

    .file-upload-progress-bar-fill.success {
      background: var(--green);
    }

    .file-upload-progress-bar-fill.error {
      background: var(--red);
    }

    .admin-product-preview {
      width: 245px;
      height: 138px;
      border-radius: 6px;
      overflow: hidden;
      margin: 26px 0 16px;
    }

    .deliverable-row {
      min-height: 58px;
      border-radius: 6px;
      background: #202121;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 10px 12px;
      margin-bottom: 18px;
    }

    .side-stack {
      display: grid;
      gap: 20px;
      align-content: start;
    }

    .settings-layout {
      display: grid;
      grid-template-columns: 225px minmax(0, 1fr);
      gap: 22px;
    }

    .settings-nav {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 12px;
      align-self: start;
    }

    .settings-nav a {
      min-height: 44px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      color: #c3c7ce;
      font-weight: 850;
    }

    .settings-nav a.active,
    .settings-nav a:hover {
      background: rgba(56, 189, 248, .18);
      color: var(--violet);
    }

    .switch-line {
      min-height: 66px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #0d0e0e;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      gap: 18px;
    }

    .toggle {
      display: inline-block;
      width: 44px;
      height: 24px;
      border-radius: 999px;
      background: #2a2b2b;
      position: relative;
      flex: 0 0 auto;
      cursor: pointer;
      transition: background .2s;
      user-select: none;
    }

    .toggle.active {
      background: var(--violet);
    }

    .toggle::after {
      content: "";
      position: absolute;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #fff;
      left: 3px;
      top: 3px;
      transition: left .2s;
    }

    .toggle.active::after {
      left: calc(100% - 21px);
    }

    .footer {
      border-top: 1px solid var(--line);
      color: #6d7076;
      font-size: 14px;
      min-height: 56px;
      display: flex;
      align-items: center;
    }

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

    .footer b { color: #fff; }
    .footer .labs { font-weight: 900; }

    .product-page main {
      padding: 26px 0 72px;
    }

    .product-page .product-layout {
      margin-bottom: 42px;
    }

    .product-page .description {
      margin: 0;
    }

    @media (max-width: 900px) {
      .nav { height: auto; padding: 14px 0; flex-wrap: wrap; }
      .navlinks { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
      .hero-copy { transform: none; }
      .product-grid,
      .product-layout,
      .split,
      .admin-layout,
      .admin-grid {
        grid-template-columns: 1fr;
      }
      .store-layout {
        grid-template-columns: 1fr;
      }
      .stats { grid-template-columns: repeat(2, 1fr); }
      .product-card { max-width: none; }
      .checkout-box,
      .admin-sidebar {
        position: static;
      }
      .hero-home::after { opacity: .28; }
      .hero-frontpage-image {
        width: min(900px, 118vw);
        right: -24vw;
        top: 8%;
        max-height: 72vh;
        opacity: .5;
      }

      .cart-drawer {
        width: min(430px, 100vw);
      }
    }

    @media (max-width: 620px) {
      .shell { width: min(100% - 24px, 1092px); }
      .brand { font-size: 17px; }
      .actions { width: 100%; justify-content: space-between; }
      .user-chip span { display: none; }
      .cart-button {
        width: 38px;
        min-width: 38px;
      }
      .blue-band { padding: 46px 0; }
      .categories,
      .form-grid,
      .stats {
        grid-template-columns: 1fr;
      }
      .product-hero-art { min-height: 340px; }
      .mini-mark {
        left: 38px;
        top: 120px;
        font-size: 24px;
      }
      .cart-row {
        grid-template-columns: 68px 1fr;
      }
      .cart-row > .qty { grid-column: 1 / -1; width: 112px; }

      .cart-line-item {
        grid-template-columns: 62px minmax(0, 1fr) auto;
      }

      .cart-line-art {
        width: 62px;
        height: 62px;
      }

      .cart-drawer-head h2 {
        font-size: 22px;
      }

      .cart-summary {
        gap: 12px;
      }

      th:nth-child(3),
      td:nth-child(3) {
        display: none;
      }
    }

    

    /* Sale Announcement Styles */
    .sale-announcement {
      background: rgba(255, 77, 97, .12);
      border-bottom: 1px solid rgba(255, 77, 97, .3);
      padding: 12px 0;
    }

    .sale-announcement[hidden] {
      display: none !important;
    }

    .sale-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 14px;
      color: #ffb5c0;
    }

    .sale-banner i {
      color: var(--red);
      font-size: 16px;
    }

    /* Sale Badge on Product Cards */
    .product-card .sale-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: var(--red);
      color: #fff;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      z-index: 3;
    }

    /* Sale Badge on Product Page */
    .product-hero-art .sale-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: var(--red);
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      z-index: 3;
    }

    /* Payment Type — Price Interval Suffix */
    .price-interval {
      font-size: 0.6em;
      font-weight: 500;
      color: var(--muted);
      letter-spacing: 0.02em;
    }

    /* Subscription Badge on Product Page */
    .subscription-badge {
      display: inline-flex;
      align-items: center;
      font-size: 12px;
      font-weight: 600;
      color: var(--violet);
      background: rgba(138, 99, 255, 0.08);
      border: 1px solid rgba(138, 99, 255, 0.25);
      padding: 5px 12px;
      border-radius: 6px;
    }

    /* -- First-Run Setup Modal ------------------------------------------------ */

    body.setup-modal-open {
      overflow: hidden;
    }

    .setup-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 95;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(4, 6, 8, .80);
      backdrop-filter: blur(12px);
    }

    .setup-modal-backdrop[hidden] {
      display: none !important;
    }

    .setup-modal {
      width: min(580px, calc(100% - 32px));
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, .09);
      background: linear-gradient(180deg, rgba(18, 21, 26, .99) 0%, rgba(10, 12, 14, .99) 100%);
      box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
      padding: 30px;
    }

    .setup-modal-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 16px;
    }

    .setup-modal-icon {
      font-size: 28px;
      line-height: 1;
      flex: 0 0 auto;
    }

    .setup-modal-header h2 {
      margin: 0;
      font-size: 22px;
      line-height: 1.2;
    }

    .setup-modal-lead {
      margin: 0 0 18px;
      color: #c8ccd2;
      font-size: 14.5px;
      line-height: 1.65;
    }

    .setup-modal-notice {
      border: 1px solid rgba(56, 189, 248, .30);
      background: rgba(56, 189, 248, .07);
      border-radius: 10px;
      padding: 14px 16px;
      margin-bottom: 22px;
    }

    .setup-modal-notice p {
      margin: 0;
      color: #c5c8d4;
      font-size: 14px;
      line-height: 1.65;
    }

    .setup-modal-notice strong {
      color: #e8e6ff;
    }

    .setup-license-field {
      margin-bottom: 20px;
    }

    .setup-label {
      display: block;
      color: #b0b5bf;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 8px;
    }

    .setup-license-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 44px;
      gap: 8px;
    }

    .setup-license-row input {
      min-height: 44px;
      font-size: 14px;
    }

    .setup-submit-btn {
      min-height: 44px;
      width: 44px;
      border: 1px solid #2f3a41;
      border-radius: 6px;
      background: #182026;
      color: #f0f4fa;
      font-size: 22px;
      font-weight: 900;
      display: grid;
      place-items: center;
      transition: background .15s ease, border-color .15s ease;
    }

    .setup-submit-btn:hover:not(:disabled) {
      background: var(--violet);
      border-color: var(--violet);
      color: #08080b;
    }

    .setup-submit-btn:disabled {
      opacity: .55;
      cursor: not-allowed;
    }

    .setup-feedback {
      margin: 8px 0 0;
      font-size: 13px;
      line-height: 1.45;
    }

    .setup-feedback--error  { color: var(--red); }
    .setup-feedback--success { color: var(--green); }

    .setup-feedback[hidden] {
      display: none !important;
    }

    .setup-modal-note {
      margin: 0 0 22px;
      color: #919599;
      font-size: 13.5px;
      line-height: 1.6;
    }

    .setup-admin-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 50px;
      border-radius: 10px;
      background: var(--violet);
      color: #08080b;
      font-weight: 800;
      font-size: 15px;
      text-decoration: none;
      transition: opacity .15s ease;
    }

    .setup-admin-btn:hover {
      opacity: .88;
    }

    @media (max-width: 520px) {
      .setup-modal {
        padding: 22px;
      }

      .setup-modal-header h2 {
        font-size: 19px;
      }
    }

    /* -- Admin Setup Status Card ----------------------------------------------- */

    .setup-status-list {
      padding: 4px 0 2px;
      display: grid;
      gap: 0;
    }

    .setup-status-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      gap: 10px;
    }

    .setup-status-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .setup-status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex: 0 0 auto;
      background: #3a3f45;
      transition: background .2s ease, box-shadow .2s ease;
    }

    .setup-status-dot.dot-ok {
      background: var(--green);
      box-shadow: 0 0 6px rgba(0, 224, 135, .45);
    }

    .setup-status-dot.dot-fail {
      background: var(--red);
      box-shadow: 0 0 6px rgba(255, 77, 97, .4);
    }

    .setup-status-label {
      font-size: 14px;
      font-weight: 700;
      color: #d0d4da;
    }

    .setup-status-divider {
      height: 1px;
      background: var(--line);
      margin: 0 16px;
    }

    .setup-status-link {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 7px;
      border: 1px solid #2b3035;
      background: #141819;
      color: #8a9099;
      font-size: 12px;
      text-decoration: none;
      flex: 0 0 auto;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }

    .setup-status-link:hover {
      background: #1e2529;
      border-color: #3a4a57;
      color: #c8d8e8;
    }

    .setup-notice-link {
      color: #a89fff;
      font-weight: 700;
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: color .15s ease;
    }

    .setup-notice-link:hover {
      color: #d0cbff;
    }

    /* -- Admin Rail Footer (Setup Status) ------------------------------------- */

    .rail-foot {
      border-top: 1px solid var(--line);
      padding: 14px 12px 16px;
      margin-top: auto;
    }

    .rail-setup-status {
      display: grid;
      gap: 2px;
      margin-top: 4px;
    }

    .rail-setup-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 4px;
      border-radius: 6px;
    }

    .rail-setup-label {
      flex: 1;
      font-size: 13px;
      font-weight: 600;
      color: #b0b5bf;
    }

    .rail-setup-link {
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 5px;
      border: 1px solid #2b3035;
      background: #141819;
      color: #6a7280;
      font-size: 10px;
      text-decoration: none;
      flex: 0 0 auto;
      transition: background .15s ease, color .15s ease;
    }

    .rail-setup-link:hover {
      background: #1e2529;
      color: #c8d8e8;
    }

    .admin-rail {
      display: flex;
      flex-direction: column;
    }

    .rail-scroll {
      flex: 1;
      overflow-y: auto;
    }

    /* ── Branding Upload Zones ──────────────────────────────────────── */

    .branding-upload-zone {
      position: relative;
      width: 100%;
      min-height: 120px;
      border: 2px dashed #2a2e34;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color .2s ease, background .2s ease;
      overflow: hidden;
    }

    .branding-upload-zone:hover,
    .branding-upload-zone.dragover {
      border-color: var(--violet);
      background: rgba(56, 189, 248, 0.04);
    }

    .branding-upload-input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      z-index: 2;
    }

    .branding-upload-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 20px;
      pointer-events: none;
    }

    .branding-upload-icon {
      font-size: 28px;
      color: #555960;
      transition: color .2s ease;
    }

    .branding-upload-zone:hover .branding-upload-icon {
      color: var(--violet);
    }

    .branding-upload-text {
      font-size: 13px;
      color: #9ca0a8;
    }

    .branding-upload-preview {
      max-width: 100%;
      max-height: 100px;
      object-fit: contain;
      border-radius: 6px;
      pointer-events: none;
      z-index: 1;
    }

    .branding-upload-progress {
      margin-top: 10px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 14px;
    }

    .branding-upload-progress-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .branding-upload-progress-icon {
      font-size: 16px;
      color: var(--violet);
      flex-shrink: 0;
    }

    .branding-upload-progress-status {
      font-size: 12px;
      color: var(--muted);
    }

    .branding-upload-progress-status.success {
      color: var(--green);
    }

    .branding-upload-progress-track {
      width: 100%;
      height: 5px;
      background: #1e2024;
      border-radius: 3px;
      overflow: hidden;
    }

    .branding-upload-progress-fill {
      height: 100%;
      width: 0%;
      background: var(--violet);
      border-radius: 3px;
      transition: width 0.25s ease;
    }

    .branding-upload-progress-fill.success {
      background: var(--green);
    }

    /* ── Branding Hero Type Options ────────────────────────────────── */

    .branding-hero-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .branding-hero-option {
      display: block;
      cursor: pointer;
    }

    .branding-hero-option input[type="radio"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
      pointer-events: none;
    }

    .branding-hero-option-card {
      border: 2px solid #2a2e34;
      border-radius: 14px;
      overflow: hidden;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
      background: rgba(255,255,255,.01);
    }

    .branding-hero-option input[type="radio"]:checked + .branding-hero-option-card {
      border-color: var(--violet);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, .12), 0 4px 20px rgba(56, 189, 248, .08);
      background: rgba(56, 189, 248, .03);
    }

    .branding-hero-option-card:hover {
      border-color: #3e4450;
      background: rgba(255,255,255,.02);
    }

    .branding-hero-option input[type="radio"]:checked + .branding-hero-option-card:hover {
      border-color: var(--violet);
    }

    .branding-hero-option-visual {
      padding: 20px 16px 14px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .branding-hero-option-mockup {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 8px;
      background: #12141a;
      border: 1px solid #1e2228;
      overflow: hidden;
      position: relative;
    }

    /* Hero mockup */
    .hero-mockup {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding: 12px;
      gap: 10px;
    }

    .mockup-left {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .mockup-text-block {
      height: 8px;
      width: 80%;
      background: #2a2f38;
      border-radius: 4px;
    }

    .mockup-text-block.short {
      width: 55%;
    }

    .mockup-btn-block {
      height: 10px;
      width: 40%;
      background: var(--violet);
      border-radius: 4px;
      margin-top: 4px;
      opacity: .7;
    }

    .mockup-right {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
    }

    .mockup-image-block {
      width: 80%;
      height: 70%;
      background: linear-gradient(135deg, #1e2736, #2a3444);
      border-radius: 6px;
      border: 1px solid #2a3040;
    }

    /* Fullpage mockup */
    .fullpage-mockup {
      position: relative;
    }

    .mockup-fullpage-image {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #1a2030, #2a3848);
      opacity: .6;
    }

    .mockup-overlay {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      gap: 6px;
      padding: 14px;
    }

    .fullpage-mockup .mockup-text-block {
      width: 60%;
    }

    .fullpage-mockup .mockup-text-block.short {
      width: 40%;
    }

    .fullpage-mockup .mockup-btn-block {
      width: 30%;
    }

    .branding-hero-option-info {
      padding: 14px 16px 16px;
      border-top: 1px solid #1e2228;
    }

    .branding-hero-option-info strong {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: #e1e4e9;
      margin-bottom: 4px;
    }

    .branding-hero-option-info span {
      display: block;
      font-size: 12px;
      color: #7a7f8a;
      line-height: 1.5;
    }

    @media (max-width: 600px) {
      .branding-hero-options {
        grid-template-columns: 1fr;
      }
    }
