:root {
      --bg: #0d0d12;
      --surface: #16161d;
      --surface-2: #1e1e28;
      --surface-3: #282836;
      --border: #353548;
      --border-hover: #4a4a66;
      --primary: #abda11;
      --primary-hover: #88aa0d;
      --secondary: #bbff44;
      --accent: #06b6d4;
      --foreground: #f1f5f9;
      --muted: #94a3b8;
      --gold: #fbbf24;
      --destructive: #f43f5e;
      --success: #10b981;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body {
      height: 100%;
      overflow: hidden;
    }
    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--foreground);
      line-height: 1.5;
    }

    /* SCROLLBAR STYLING */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: var(--surface);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--surface-3);
      border-radius: 12px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--primary);
    }

    /* LEFT DRAWER - Collapsed 80px, Expanded on hover */
    .left-drawer {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      width: 80px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      z-index: 200;
      transition: width 0.3s ease;
      overflow: visible;
      display: flex;
      flex-direction: column;
    }

    .left-drawer:hover {
      width: 280px;
    }

    .drawer-logo {
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--border);
      min-height: 64px;
    }

    .logo-icon {
      width: 48px;
      height: 48px;
      min-width: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      overflow: hidden;
      filter: drop-shadow(0 0 14px rgba(39, 168, 242, 0.35));
    }

    .logo-icon img {
      width: 48px;
      height: 48px;
      display: block;
      object-fit: cover;
    }

    .logo-text {
      display: flex;
      flex-direction: column;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .left-drawer:hover .logo-text {
      opacity: 1;
      visibility: visible;
      transition-delay: 0.3s;
    }

    .logo-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .login-text {
      white-space: nowrap;
    }

    .logo-tagline {
      font-size: 10px;
      color: var(--muted);
      white-space: nowrap;
    }

    .drawer-about {
      padding: 16px 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      transition-delay: 0.35s;
    }

    .left-drawer:hover .drawer-about {
      opacity: 1;
      visibility: visible;
    }

    .drawer-about-text {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 5;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .drawer-nav {
      flex: 1;
      padding: 16px 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .drawer-nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      color: var(--muted);
      text-decoration: none;
      font-size: 13px;
      transition: all 0.15s ease;
      cursor: pointer;
      white-space: nowrap;
    }

    .drawer-nav-item:hover {
      background: var(--surface-2);
      color: var(--foreground);
    }

    .drawer-nav-item.active {
      background: linear-gradient(90deg, rgba(68, 170, 255, 0.15), transparent);
      color: var(--secondary);
      border-left: 3px solid var(--primary);
    }

    .drawer-nav-item svg {
      width: 20px;
      height: 20px;
      min-width: 20px;
    }

    .drawer-nav-text {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .left-drawer:hover .drawer-nav-text {
      opacity: 1;
      visibility: visible;
      transition-delay: 0.3s;
    }

    .drawer-login {
      padding: 16px;
      border-top: 1px solid var(--border);
    }

    .login-btn {
      width: 48px;
      height: 48px;
      padding: 0;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: none;
      border-radius: 10px;
      color: white;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding-left: 12px;
      transition: all 0.2s ease;
      overflow: visible;
    }

    .login-btn svg {
      flex-shrink: 0;
    }

    .left-drawer:hover .login-btn {
      width: 100%;
      padding-left: 12px;
      gap: 8px;
      justify-content: flex-start;
    }

    .left-drawer:hover .login-btn .login-text {
      opacity: 1;
      visibility: visible;
      transition-delay: 0.3s;
    }

    .login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(68, 170, 255, 0.4);
    }

    .login-text {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      white-space: nowrap;
    }

    .left-drawer:hover .login-text {
      opacity: 1;
      visibility: visible;
      transition-delay: 0.3s;
    }

    .user-info {
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      background: var(--surface-2);
      border-radius: 10px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .left-drawer:hover .user-info {
      opacity: 1;
      visibility: visible;
      transition-delay: 0.3s;
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
    }

    .user-name {
      font-size: 13px;
      font-weight: 500;
    }

    /* MAIN CONTENT */
    .main-content {
      margin-left: 80px;
    }

    /* SEARCH BAR ROW */
    .search-row {
      grid-column: 1 / -1;
      padding: 12px 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }

    .search-row .search-container {
      flex: 1;
      max-width: 640px;
      position: relative;
    }

    .search-row .search-input {
      width: 100%;
      padding: 12px 20px 12px 48px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--foreground);
      font-size: 14px;
      transition: all 0.2s ease;
    }

    .search-row .search-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(68, 170, 255, 0.2);
    }

    .search-row .search-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary);
    }

    /* STORE SECTION - account for cart drawer */
    section#store {
      margin-right: 80px;
    }

    /* MAIN LAYOUT - 4 columns */
    .main-layout {
      position: relative;
      display: grid;
      grid-template-columns: minmax(180px, 220px) minmax(180px, 280px) minmax(0, 1fr) 280px;
      grid-template-rows: auto 1fr;
      height: calc(100vh - 57px);
      overflow: hidden;
    }

    /* SIDEBAR LEFT - Series + Packs */
    .sidebar-left {
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 24px 0;
      overflow-y: auto;
      height: 100%;
      min-width: 180px;
      z-index: 110; /* above asset drawer */
    }

    .sidebar-section {
      margin-bottom: 28px;
    }

    .sidebar-title {
      padding: 0 20px 14px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .sidebar-title::before {
      content: '';
      width: 3px;
      height: 12px;
      background: linear-gradient(180deg, var(--primary), var(--accent));
      border-radius: 6px;
    }

    .series-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      color: var(--muted);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.15s ease;
      border-left: 3px solid transparent;
    }

    .series-item:hover {
      background: var(--surface-2);
      color: var(--foreground);
    }

    .series-item.active {
      background: linear-gradient(90deg, rgba(68, 170, 255, 0.15), transparent);
      color: var(--secondary);
      border-left-color: var(--primary);
    }

    .series-count {
      font-size: 11px;
      font-weight: 600;
      padding: 3px 8px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 10px;
      color: white;
    }

    .pack-list {
      padding-left: 20px;
      border-left: 1px solid var(--border);
      margin-left: 20px;
    }

    .pack-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 20px;
      color: var(--muted);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .pack-item:hover {
      background: var(--surface-2);
      color: var(--foreground);
    }

    .pack-item.selected {
      background: rgba(68, 170, 255, 0.1);
      color: var(--secondary);
    }

    .pack-count {
      font-size: 10px;
      font-weight: 600;
      padding: 2px 6px;
      background: var(--surface-3);
      border-radius: 8px;
      color: var(--muted);
    }

    .pack-item.selected .pack-count {
      background: rgba(68, 170, 255, 0.2);
      color: var(--secondary);
    }

    .secret-unlock {
      margin: 20px;
      padding: 18px;
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
      border: 1px solid rgba(251, 191, 36, 0.2);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .secret-unlock {
      position: relative;
    }

    .secret-unlock::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 12px;
      padding: 1px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(251, 191, 36, 0.6) 25%,
        rgba(251, 191, 36, 0.8) 50%,
        rgba(251, 191, 36, 0.6) 75%,
        transparent 100%
      );
      background-size: 200% 100%;
      animation: secretBorderShine 2s linear infinite;
      -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

    @keyframes secretBorderShine {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .secret-unlock:hover {
      border-color: rgba(251, 191, 36, 0.4);
      transform: translateY(-2px);
    }

    .secret-content {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
    }

    .secret-icon {
      color: var(--gold);
    }

    .secret-text {
      font-size: 12px;
      font-weight: 600;
      color: var(--gold);
    }

    /* COLUMN 2 - Asset Grid */
    .asset-column {
      padding: 20px 24px;
      overflow-y: auto;
      height: 100%;
      display: flex;
      flex-direction: column;
      min-width: 180px;
      container-type: size;
    }

    @container (max-width: 209px) {
      .asset-grid {
        grid-template-columns: 1fr;
      }
    }

    .content-header {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
      position: relative;
      flex-shrink: 0;
    }

    .content-header::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 120px;
      height: 2px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
    }

    .content-title {
      display: flex;
      align-items: baseline;
      gap: 14px;
    }

    .content-title h1 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 26px;
      font-weight: 700;
    }

    .content-title .count {
      font-size: 11px;
      font-weight: 600;
      padding: 3px 8px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 10px;
      color: white;
      margin-left: auto;
    }

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

    .sort-select {
      display: none !important;
    }

    .sort-dropdown {
      position: relative;
    }

    .sort-dropdown-trigger {
      padding: 8px 12px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--foreground);
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 140px;
    }

    .sort-dropdown-trigger::after {
      content: '';
      margin-left: auto;
      border: 5px solid transparent;
      border-top-color: var(--muted);
      transition: transform 0.2s ease;
    }

    .sort-dropdown.open .sort-dropdown-trigger::after {
      transform: rotate(180deg);
    }

    .sort-dropdown-menu {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      z-index: 100;
      display: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .sort-dropdown.open .sort-dropdown-menu {
      display: block;
    }

    .sort-dropdown-item {
      padding: 8px 12px;
      color: var(--foreground);
      font-size: 13px;
      cursor: pointer;
      transition: background 0.15s ease;
    }

    .sort-dropdown-item:hover {
      background: var(--surface-3);
    }

    .sort-dropdown-item.selected {
      background: rgba(68, 170, 255, 0.1);
      color: var(--primary);
    }

    .asset-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      max-width: 400px;
    }

    .load-more-btn {
      grid-column: 1 / -1;
      background: var(--surface-2);
      border: 1px dashed var(--border);
      border-radius: 10px;
      color: var(--muted);
      font-size: 13px;
      font-family: 'Inter', sans-serif;
      padding: 14px 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .load-more-btn:hover {
      background: var(--surface-3);
      border-color: var(--primary);
      color: var(--primary);
    }

    .asset-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.25s ease;
      position: relative;
      min-width: 90px;
    }

    .asset-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(68, 170, 255, 0.15);
      animation: cardFloat 1s ease-in-out infinite;
    }

    @keyframes cardFloat {
      0%, 100% { transform: translateY(-2px); }
      50% { transform: translateY(-6px); }
    }

    .asset-card.selected {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary);
    }

    .asset-image {
      aspect-ratio: 4/3;
      background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
    }

    .asset-badge {
      position: absolute;
      top: 6px;
      left: 6px;
      padding: 3px 6px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 12px;
      font-size: 8px;
      font-weight: 600;
      color: white;
    }

    .asset-favorite {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      border-radius: 50%;
      border: none;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .asset-favorite:hover {
      color: var(--destructive);
    }

    .asset-info {
      padding: 10px;
    }

    .asset-name {
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .asset-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      color: var(--muted);
    }

    .rarity-tag {
      padding: 2px 5px;
      border-radius: 12px;
      font-size: 9px;
      font-weight: 600;
    }

    .rarity-common { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
    .rarity-uncommon { background: rgba(16, 185, 129, 0.2); color: #10b981; }
    .rarity-rare { background: rgba(68, 170, 255, 0.2); color: #66bbff; }
    .rarity-epic { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

    /* COLUMN 3 - 3D Viewer */
    .viewer-column {
      background: var(--surface);
      border-left: 1px solid var(--border);
      overflow-y: auto;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .viewer-section {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      position: relative;
      flex-shrink: 0;
    }

    .viewer-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
    }

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

    .viewer-title {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .viewer-title h2 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 18px;
      font-weight: 700;
    }

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

    .viewer-nav button {
      width: 32px;
      height: 32px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .viewer-nav button:hover {
      background: var(--surface-3);
      border-color: var(--primary);
      color: var(--secondary);
    }

    .viewer-3d-container {
      aspect-ratio: 16/9;
      background: linear-gradient(135deg, var(--surface-2), #1a1a2e);
      border-radius: 12px;
      position: relative;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .viewer-3d-container canvas {
      width: 100% !important;
      height: 100% !important;
      display: block;
      position: relative;
      z-index: 1;
    }

    .viewer-favorite {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 40px;
      height: 40px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border);
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      transition: all 0.2s ease;
      z-index: 10;
      overflow: hidden;
    }

    .viewer-favorite svg {
      transition: all 0.2s ease;
    }

    .viewer-favorite:hover {
      background: rgba(244, 63, 94, 0.3);
      border-color: var(--destructive);
      color: var(--destructive);
      transform: scale(1.1);
    }

    .viewer-favorite:hover svg {
      fill: rgba(244, 63, 94, 0.3);
    }

    .viewer-favorite.active {
      background: rgba(244, 63, 94, 0.2);
      border-color: var(--destructive);
      color: var(--destructive);
      animation: heartPop 0.6s ease, heartPump 1.5s ease-in-out infinite;
    }

    .viewer-favorite.active svg {
      fill: var(--destructive);
      animation: none;
    }

    .viewer-favorite.inactive {
      animation: heartShine 2s ease-in-out infinite;
    }

    .viewer-favorite.inactive svg {
      animation: shineMove 2s ease-in-out infinite;
    }

    @keyframes heartPop {
      0% { transform: scale(1); }
      25% { transform: scale(1.3); }
      50% { transform: scale(0.9); }
      75% { transform: scale(1.15); }
      100% { transform: scale(1); }
    }

    @keyframes heartPump {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }

    @keyframes heartShine {
      0%, 100% { box-shadow: inset 0 0 0 0 rgba(244, 63, 94, 0); }
      50% { box-shadow: inset 0 0 8px 2px rgba(244, 63, 94, 0.5); }
    }

    @keyframes shineMove {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    .viewer-cart-btn {
      position: absolute;
      top: 60px;
      right: 12px;
      width: 40px;
      height: 40px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border);
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      transition: all 0.2s ease;
      z-index: 10;
      overflow: hidden;
    }

    .viewer-cart-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 60%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
      );
      transform: skewX(-25deg);
      animation: cartShine 2.5s ease-in-out infinite;
    }

    .viewer-cart-btn:hover {
      background: rgba(68, 170, 255, 0.3);
      border-color: var(--primary);
      color: var(--primary);
      transform: scale(1.1);
    }

    .viewer-cart-btn.active {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-color: var(--primary);
      color: white;
      animation: cartPop 0.4s ease;
    }

    @keyframes cartPop {
      0% { transform: scale(1); }
      50% { transform: scale(1.2); }
      100% { transform: scale(1); }
    }

    .viewer-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: var(--muted);
    }

    .viewer-placeholder-icon {
      font-size: 48px;
      opacity: 0.5;
    }

    .viewer-placeholder-text {
      font-size: 14px;
    }

    .viewer-loading {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      background: rgba(10, 10, 15, 0.85);
      z-index: 5;
    }

    .viewer-loading-bar {
      width: 200px;
      height: 4px;
      background: var(--surface-3);
      border-radius: 2px;
      overflow: hidden;
    }

    .viewer-loading-progress {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 2px;
      transition: width 0.15s ease;
    }

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

.viewer-controls-overlay {
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      display: flex;
      flex-direction: column;
      z-index: 10;
      pointer-events: auto;
    }

    .viewer-controls-top {
      padding: 0 4px;
    }

    .viewer-controls-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .viewer-controls-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .viewer-controls-right {
      display: flex;
      flex-direction: row;
      gap: 6px;
    }

    .timeline-scrubber {
      width: 100%;
      height: 4px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.2);
      appearance: none;
      cursor: pointer;
    }

    .timeline-scrubber::-webkit-slider-thumb {
      appearance: none;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      cursor: pointer;
    }

    .timeline-time {
      display: none;
      justify-content: space-between;
      font-size: 10px;
      color: var(--muted);
      min-width: 60px;
    }

    .viewer-playback-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 8px;
    }

    .viewer-playback-controls .viewer-control-btn {
      padding: 0;
      width: 100%;
      height: 32px;
      border-radius: 6px;
      justify-content: center;
    }

    .viewer-controls-right {
      display: flex;
      flex-direction: row;
      gap: 6px;
    }

    .viewer-control-btn {
      padding: 6px 10px;
      background: transparent;
      border: none;
      border-radius: 6px;
      color: white;
      font-size: 10px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .viewer-control-btn:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    .viewer-control-btn.paused {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: white;
    }

    .animation-timeline {
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(12px);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
      width: 200px;
    }

    .timeline-scrubber {
      width: 100%;
      height: 4px;
      border-radius: 4px;
      background: var(--surface-3);
      appearance: none;
      cursor: pointer;
    }

    .timeline-scrubber::-webkit-slider-thumb {
      appearance: none;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      cursor: pointer;
    }

    .timeline-time {
      display: none;
      justify-content: space-between;
      margin-top: 6px;
      font-size: 10px;
      color: var(--muted);
    }

    .viewer-playback-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(12px);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px;
    }

    .viewer-playback-controls .viewer-control-btn {
      padding: 0;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      justify-content: center;
    }

    .viewer-tags {
      display: flex;
      gap: 6px;
      margin-top: 10px;
    }

    .viewer-tag {
      padding: 4px 10px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 10px;
      color: var(--muted);
    }

    .viewer-actions {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }

    .viewer-action-btn {
      flex: 1;
      padding: 12px 14px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .viewer-action-btn.primary {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: none;
      color: white;
      box-shadow: 0 4px 14px rgba(68, 170, 255, 0.3);
      position: relative;
      overflow: hidden;
    }

    .viewer-action-btn.primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 60%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
      );
      transform: skewX(-25deg);
      animation: cartShine 2.5s ease-in-out infinite;
    }

    .viewer-action-btn.primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(68, 170, 255, 0.4);
    }

    @keyframes cartShine {
      0% { left: -100%; }
      50%, 100% { left: 150%; }
    }

    .viewer-action-btn.secondary {
      background: var(--surface-2);
      border: 1px solid var(--border);
      color: var(--foreground);
    }

    .viewer-action-btn.secondary:hover {
      background: var(--surface-3);
      border-color: var(--primary);
    }

    /* Download Section */
    .download-section {
      padding: 16px;
      border-bottom: 1px solid var(--border);
    }

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

    .download-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

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

    .download-item {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .download-format {
      font-size: 12px;
      font-weight: 600;
      color: var(--primary);
    }

    .download-size {
      font-size: 10px;
      color: var(--muted);
    }

    .download-btn {
      margin-top: 8px;
      padding: 8px 12px;
      background: var(--surface-3);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--muted);
      font-size: 11px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
    }

    .download-btn:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    .download-btn.purchased {
      background: linear-gradient(135deg, var(--success), #059669);
      border-color: var(--success);
      color: white;
    }

    /* Recently Viewed */
    .recently-viewed {
      padding: 12px 16px;
      background: var(--surface);
      border-top: 1px solid var(--border);
    }

    .recently-viewed-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .recently-viewed-title {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--primary);
    }

    .recently-viewed-items {
      display: flex;
      gap: 12px;
      overflow-x: auto;
    }

    .recently-item {
      min-width: 48px;
      height: 48px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.15s ease;
    }

    .recently-item:hover {
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    /* COLUMN 4 - Animations & Cart */
    .viewer-sidebar-column {
      background: var(--surface);
      border-left: 1px solid var(--border);
      overflow-y: auto;
      overflow-x: hidden;
      height: 100%;
      display: flex;
      flex-direction: column;
      min-width: 240px;
    }

    .viewer-sidebar-section {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .viewer-sidebar-section:last-child {
      border-bottom: none;
    }

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

    .section-title {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--primary);
    }

    .animations-grid,
    .shapekeys-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }

    .animation-cell,
    .shapekey-cell {
      height: 40px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .animation-cell:hover,
    .shapekey-cell:hover {
      background: var(--surface-3);
      border-color: var(--primary);
      color: var(--secondary);
    }

    .animation-cell.active {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-color: var(--primary);
      color: white;
      box-shadow: 0 0 12px rgba(68, 170, 255, 0.3);
    }

    .shapekey-cell.active {
      background: linear-gradient(135deg, var(--accent), var(--primary));
      border-color: var(--accent);
      color: white;
      box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
    }

    .shapekey-value-control {
      padding: 12px 0 0;
      border-top: 1px solid var(--border);
      margin-top: 12px;
    }

    .shapekey-value-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .shapekey-value-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    .shapekey-value {
      font-size: 11px;
      font-weight: 600;
      color: var(--accent);
    }

    .shapekey-scrubber {
      width: 100%;
      height: 6px;
      border-radius: 6px;
      background: var(--surface-2);
      appearance: none;
      cursor: pointer;
    }

    .shapekey-scrubber::-webkit-slider-thumb {
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--primary));
      cursor: pointer;
    }
    .speed-control {
      padding: 12px 0 0;
      border-top: 1px solid var(--border);
      margin-top: 12px;
    }

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

    .speed-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    .speed-value {
      font-size: 11px;
      font-weight: 600;
      color: var(--accent);
    }

    .speed-scrubber {
      width: 100%;
      height: 6px;
      border-radius: 6px;
      background: var(--surface-2);
      appearance: none;
      cursor: pointer;
    }

    .speed-scrubber::-webkit-slider-thumb {
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      cursor: pointer;
    }

    .playback-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 0 0;
      border-top: 1px solid var(--border);
      margin-top: 12px;
    }

    .playback-btn {
      width: 32px;
      height: 32px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
    }

    .playback-btn:hover {
      background: var(--surface-3);
      border-color: var(--primary);
      color: var(--foreground);
    }

    .playback-btn.paused {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-color: var(--primary);
      color: white;
    }

    /* Cart */
    .cart-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .cart-title {
      font-size: 15px;
      font-weight: 600;
    }

    .cart-count {
      font-size: 11px;
      font-weight: 600;
      padding: 3px 8px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 10px;
      color: white;
    }
    }

    .cart-items-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 14px;
    }

    .cart-item-mini {
      width: 34px;
      height: 34px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .cart-item-mini:hover {
      background: rgba(244, 63, 94, 0.15);
      border-color: var(--destructive);
      color: var(--destructive);
      cursor: pointer;
    }

    .cart-item-mini:hover::after {
      content: 'ÁE;
    }

    .cart-pack {
      margin-bottom: 10px;
      padding: 12px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      position: relative;
      overflow: hidden;
    }
    .cart-pack-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      padding-left: 8px;
    }

    .cart-pack-name {
      font-size: 12px;
      font-weight: 600;
    }

    .cart-pack-price {
      font-size: 12px;
      color: var(--success);
      font-weight: 600;
    }

    .cart-pack-name-wrap {
      display: flex;
      flex-direction: column;
      gap: 2px;
      align-items: flex-start;
    }

    .pack-badge {
      display: inline-block;
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 600;
    }

    .pack-badge.partial {
      background: rgba(68, 170, 255, 0.15);
      color: var(--secondary);
    }

    .pack-badge.complete {
      background: rgba(16, 185, 129, 0.15);
      color: var(--success);
    }

    .cart-pack-items {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }
    .cart-pack-item {
      width: 26px;
      height: 26px;
      background: var(--surface-3);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }

    .cart-pack-item.empty {
      border: 1px dashed var(--border);
      background: transparent;
    }

    .pack-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 8px;
      padding-left: 10px;
      font-size: 10px;
      color: var(--muted);
    }

    .cart-pack.complete::before {
      background: linear-gradient(180deg, var(--success), #059669);
    }

    .get-pack-btn {
      width: 100%;
      margin-top: 8px;
      padding: 10px;
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
      border: 1px dashed rgba(251, 191, 36, 0.3);
      border-radius: 8px;
      color: var(--gold);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .get-pack-btn:hover {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
      border-color: var(--gold);
    }

    .get-pack-btn.complete {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: var(--success);
    }

    .cart-subtotal {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      border-top: 1px solid var(--border);
      margin-top: 12px;
    }

    .cart-subtotal-label {
      font-size: 13px;
      color: var(--muted);
    }

    .cart-subtotal-value {
      font-size: 16px;
      font-weight: 700;
    }

    .cart-header-clear {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 2px 4px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
      margin-left: 4px;
    }

    .cart-header-clear:hover {
      color: #ef4444;
      background: rgba(239, 68, 68, 0.1);
    }

    .checkout-btn {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: none;
      border-radius: 12px;
      color: white;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 16px rgba(68, 170, 255, 0.3);
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .checkout-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 60%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
      );
      transform: skewX(-25deg);
      animation: checkoutShine 3.5s ease-in-out infinite;
    }

    .checkout-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 24px rgba(68, 170, 255, 0.4);
    }

    @keyframes checkoutShine {
      0% { left: -100%; }
      50%, 100% { left: 150%; }
    }

    /* SECTION LABELS */

    .cart-footer {
      position: sticky;
      bottom: 0;
      background: var(--surface);
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }
    .section-label {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--primary);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* FAQ SECTION */
    .faq-section {
      padding: 60px 40px;
      max-width: 800px;
      margin: 0 auto;
    }

    .faq-categories {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .faq-category {
      padding: 8px 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      font-size: 12px;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .faq-category:hover {
      border-color: var(--primary);
      color: var(--secondary);
    }

    .faq-category.active {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-color: var(--primary);
      color: white;
    }

    .faq-accordion {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .faq-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }

    .faq-question {
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.15s ease;
    }

    .faq-question:hover {
      background: var(--surface-2);
    }

    .faq-question svg {
      color: var(--muted);
      transition: transform 0.2s ease;
    }

    .faq-item.open .faq-question svg {
      transform: rotate(180deg);
    }

    .faq-answer {
      display: none;
      padding: 0 20px 16px;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
    }

    .faq-item.open .faq-answer {
      display: block;
    }

    /* CONTACT SECTION */
    .contact-section {
      padding: 60px 40px;
      max-width: 900px;
      margin: 0 auto;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
    }

    .form-input {
      padding: 12px 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--foreground);
      font-size: 14px;
      transition: all 0.2s ease;
    }

    .form-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(68, 170, 255, 0.2);
    }

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    .form-submit {
      padding: 14px 24px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: none;
      border-radius: 10px;
      color: white;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .form-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(68, 170, 255, 0.4);
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .contact-info-item {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .contact-info-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--primary);
    }

    .contact-info-value {
      font-size: 14px;
      color: var(--foreground);
    }

    .social-links {
      display: flex;
      gap: 12px;
    }

    .social-link {
      width: 40px;
      height: 40px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .social-link:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    /* CHECKOUT MODAL */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .checkout-modal {
      width: 480px;
      max-width: 90vw;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      transform: translateY(20px);
      transition: transform 0.3s ease;
    }

    .modal-overlay.active .checkout-modal {
      transform: translateY(0);
    }

    .modal-header {
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 18px;
      font-weight: 700;
    }

    .modal-close {
      width: 32px;
      height: 32px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      transition: all 0.15s ease;
    }

    .modal-close:hover {
      background: var(--destructive);
      border-color: var(--destructive);
      color: white;
    }

    /* SMALL SCREEN BLOCKER MODAL */
    .small-screen-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--bg);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .small-screen-modal-card {
      text-align: center;
      max-width: 360px;
    }

    .small-screen-icon {
      margin-bottom: 24px;
      color: var(--muted);
    }

    .small-screen-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--text);
      margin: 0 0 12px;
    }

    .small-screen-text {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
      margin: 0;
    }

    .small-screen-text strong {
      color: var(--text);
    }

    .checkout-steps {
      display: flex;
      padding: 20px 24px;
      gap: 8px;
      border-bottom: 1px solid var(--border);
    }

    .checkout-step {
      flex: 1;
      padding: 12px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      text-align: center;
      font-size: 12px;
      color: var(--muted);
    }

    .checkout-step.active {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-color: var(--primary);
      color: white;
    }

    .checkout-step.completed {
      background: rgba(16, 185, 129, 0.1);
      border-color: var(--success);
      color: var(--success);
    }

    .checkout-body {
      padding: 24px;
    }

    .checkout-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .checkout-summary {
      background: var(--surface-2);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 20px;
    }

    .summary-item {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    .summary-item:last-child {
      border-bottom: none;
    }

    .summary-total {
      display: flex;
      justify-content: space-between;
      padding-top: 12px;
      margin-top: 8px;
      border-top: 1px solid var(--border);
      font-weight: 700;
    }

    .checkout-actions {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .checkout-btn-primary {
      flex: 1;
      padding: 14px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border: none;
      border-radius: 10px;
      color: white;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .checkout-btn-secondary {
      padding: 14px 20px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--muted);
      font-size: 14px;
      cursor: pointer;
    }

    /* Clear cart button in cart drawer footer */
    .clear-cart-btn {
      width: 100%;
      padding: 10px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--muted);
      font-size: 13px;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      transition: border-color 0.2s, color 0.2s;
      margin-top: 8px;
    }

    .clear-cart-btn:hover {
      border-color: var(--destructive);
      color: var(--destructive);
    }

    /* Payment logos */
    .payment-methods {
      display: flex;
      gap: 12px;
      margin-top: 16px;
    }

    .payment-method {
      flex: 1;
      padding: 16px;
      background: var(--surface-2);
      border: 2px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.15s ease;
    }

    .payment-method:hover {
      border-color: var(--primary);
    }

    .payment-method.selected {
      border-color: var(--primary);
      background: rgba(68, 170, 255, 0.1);
    }

    .payment-logo {
      font-size: 18px;
      font-weight: 700;
    }

    .payment-label {
      font-size: 12px;
      color: var(--muted);
    }

    /* Confirmation */
    .confirmation-content {
      text-align: center;
      padding: 20px 0;
    }

    .confirmation-icon {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, var(--success), #059669);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .confirmation-icon svg {
      width: 40px;
      height: 40px;
      color: white;
    }

    .purchase-id {
      background: var(--surface-2);
      border-radius: 12px;
      padding: 16px;
      margin: 20px 0;
    }

    .purchase-id-label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 4px;
    }

    .purchase-id-value {
      font-family: 'Space Grotesk', monospace;
      font-size: 24px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: 0.1em;
    }

    .confirmation-note {
      font-size: 12px;
      color: var(--muted);
    }

    /* CART DRAWER */
    .cart-drawer {
      position: fixed;
      right: -400px;
      top: 0;
      bottom: 0;
      width: 400px;
      background: var(--surface);
      border-left: 1px solid var(--border);
      z-index: 300;
      transition: right 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .cart-drawer-items {
      flex: 1 1 0;
      min-height: 0;
      overflow-y: auto;
      padding: 20px;
    }

    .cart-drawer-footer {
      background: var(--surface);
      padding: 20px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }

    .cart-drawer.open {
      right: 0;
    }

    .cart-drawer-header {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .cart-drawer-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 18px;
      font-weight: 700;
    }

    .cart-drawer-close {
      width: 32px;
      height: 32px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
    }

    .cart-drawer-items {
      flex: 1 1 0;
      min-height: 0;
      overflow-y: auto;
      padding: 20px;
    }

    .cart-item {
      display: flex;
      gap: 12px;
      padding: 12px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 12px;
    }

    .cart-item-thumb {
      width: 48px;
      height: 48px;
      background: var(--surface-3);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .cart-item-info {
      flex: 1;
    }

    .cart-item-name {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .cart-item-meta {
      font-size: 11px;
      color: var(--muted);
    }

    .cart-item-price {
      font-size: 14px;
      font-weight: 600;
      color: var(--success);
    }

    .cart-item-remove {
      width: 24px;
      height: 24px;
      background: transparent;
      border: none;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cart-item-remove:hover {
      color: var(--destructive);
    }

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

    /* ADMIN SECTION */
    .admin-section {
      padding: 60px 40px;
      max-width: 1200px;
      margin: 0 auto;
    }

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

    .admin-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 28px;
      font-weight: 700;
    }

    .admin-tabs {
      display: flex;
      gap: 8px;
    }

    .admin-tab {
      padding: 10px 20px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 13px;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .admin-tab:hover {
      border-color: var(--primary);
      color: var(--secondary);
    }

    .admin-tab.active {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-color: var(--primary);
      color: white;
    }

    .admin-table {
      width: 100%;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
    }

    .admin-table-header {
      display: grid;
      grid-template-columns: 1fr 1fr 2fr 100px 120px;
      padding: 16px 20px;
      background: var(--surface-2);
      border-bottom: 1px solid var(--border);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    .admin-table-row {
      display: grid;
      grid-template-columns: 1fr 1fr 2fr 100px 120px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      align-items: center;
    }

    .admin-table-row:last-child {
      border-bottom: none;
    }

    .admin-table-row:hover {
      background: var(--surface-2);
    }

    .admin-table-cell {
      font-size: 13px;
    }

    .admin-table-cell.muted {
      color: var(--muted);
    }

    .admin-action-btn {
      padding: 6px 12px;
      background: var(--surface-3);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--muted);
      font-size: 11px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .admin-action-btn:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    /* Toast notification */
    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 20px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      transition: transform 0.3s ease;
      z-index: 600;
    }

    .toast.show {
      transform: translateX(-50%) translateY(0);
    }

    .toast-icon {
      color: var(--gold);
    }

    /* CART RIGHT DRAWER */
    .cart-right-drawer {
      position: fixed;
      right: 0;
      top: 0;
      bottom: 0;
      width: 80px;
      background: var(--surface);
      border-left: 1px solid var(--border);
      z-index: 200;
      transition: width 0.3s ease;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .cart-right-drawer:hover {
      width: 320px;
    }

    /* Collapsed strip */
    .cart-drawer-collapsed {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 12px 0;
      width: 80px;
      min-height: 100%;
    }

    .cart-collapsed-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      margin-top: auto;
      color: white;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 10px;
      padding: 10px 6px;
      width: 52px;
    }

    .cart-collapsed-footer svg {
      stroke: white;
      display: block;
    }

    .cart-collapsed-count {
      font-size: 10px;
      font-weight: 600;
      background: var(--foreground);
      color: var(--bg);
      border-radius: 10px;
      padding: 2px 6px;
      min-width: 20px;
      text-align: center;
    }

    .cart-collapsed-items {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      overflow: hidden;
      padding-top: 20px;
      padding-bottom: 20px;
      flex: 1;
      min-height: 0;
    }

    .cart-collapsed-item {
      font-size: 24px;
      line-height: 1;
      cursor: default;
    }

    /* Expanded panel */
    .cart-drawer-expanded {
      display: none;
      flex-direction: column;
      width: 320px;
      height: 100%;
      padding: 0;
    }

    .cart-right-drawer:hover .cart-drawer-expanded {
      display: flex;
    }

    .cart-right-drawer:hover .cart-drawer-collapsed {
      display: none;
    }

    .cart-drawer-header {
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: space-between;
      padding: 16px;
      border-bottom: 1px solid var(--border);
    }

    .cart-header-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 8px;
      flex-shrink: 0;
    }

    .cart-header-icon svg {
      stroke: white;
      flex-shrink: 0;
    }

    .cart-drawer-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 14px;
      font-weight: 600;
    }

    .cart-drawer-count {
      font-size: 11px;
      background: var(--primary);
      color: var(--bg);
      border-radius: 10px;
      padding: 2px 8px;
      font-weight: 600;
    }

    .cart-drawer-body {
      flex: 1;
      overflow-y: auto;
      padding: 12px 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .cart-drawer-empty {
      text-align: center;
      padding: 32px 0;
      color: var(--muted);
      font-size: 13px;
    }

    /* Pack groups in expanded cart */
    .cart-pack-group {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px;
    }

    .cart-pack-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .cart-pack-name {
      font-size: 12px;
      font-weight: 600;
      font-family: 'Space Grotesk', sans-serif;
    }

    .cart-pack-badge {
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 6px;
      font-weight: 500;
    }

    .cart-pack-badge.partial {
      background: var(--surface-3);
      color: var(--muted);
    }

    .cart-pack-badge.complete {
      background: var(--success);
      color: var(--bg);
    }

    .cart-pack-price {
      font-size: 12px;
      font-weight: 600;
      color: var(--primary);
    }

    .cart-pack-items {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-bottom: 8px;
    }

    .cart-pack-item {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface-2);
      border-radius: 4px;
      font-size: 16px;
      cursor: default;
    }

    .cart-pack-item.empty {
      background: transparent;
      border: 1px dashed var(--border);
      color: var(--muted);
      font-size: 12px;
    }

    .cart-pack-savings {
      font-size: 10px;
      color: var(--success);
      margin-bottom: 8px;
    }

    .get-pack-btn {
      width: 100%;
      padding: 6px 12px;
      background: var(--primary);
      color: var(--bg);
      border: none;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      font-family: 'Space Grotesk', sans-serif;
      transition: background 0.2s;
    }

    .get-pack-btn:hover {
      background: var(--primary-hover);
    }

    .get-pack-btn.complete {
      background: var(--surface-3);
      color: var(--muted);
      cursor: default;
    }

    /* Individual cart items */
    .cart-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    .cart-item:last-child {
      border-bottom: none;
    }

    .cart-item-thumb {
      font-size: 20px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface-2);
      border-radius: 6px;
    }

    .cart-item-info {
      flex: 1;
      min-width: 0;
    }

    .cart-item-name {
      font-size: 12px;
      font-weight: 600;
      font-family: 'Space Grotesk', sans-serif;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cart-item-meta {
      font-size: 10px;
      color: var(--muted);
    }

    .cart-item-price {
      font-size: 12px;
      font-weight: 600;
      color: var(--foreground);
      margin-right: 4px;
    }

    .cart-item-remove {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      border-radius: 4px;
      transition: color 0.2s, background 0.2s;
    }

    .cart-item-remove:hover {
      color: var(--destructive);
      background: rgba(244, 63, 94, 0.1);
    }

    /* Footer */
    .cart-drawer-footer {
      padding: 16px;
      border-top: 1px solid var(--border);
    }

    .cart-subtotal {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .cart-subtotal-label {
      font-size: 12px;
      color: var(--muted);
    }

    .cart-subtotal-value {
      font-size: 16px;
      font-weight: 700;
      font-family: 'Space Grotesk', sans-serif;
      color: var(--foreground);
    }

    /* Asset card add button */
    .asset-add-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      background: var(--surface-3);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--foreground);
      font-size: 11px;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .asset-add-btn:hover {
      background: var(--primary);
      color: var(--bg);
      border-color: var(--primary);
    }

    .asset-add-btn.in-cart {
      background: var(--primary);
      color: var(--bg);
      border-color: var(--primary);
    }

    /* ============================================================
       ASSET DRAWER — Below 1350px
       ============================================================ */

    /* Asset drawer tab hidden on desktop — only shown in tablet drawer mode */
    .asset-drawer-tab {
      display: none;
    }

    @media (max-width: 1349px) {
      /* 3-column grid: sidebar-left | viewer-column | viewer-sidebar-column */
      .main-layout {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) 280px;
      }

      /* Asset column drawer — hidden behind sidebar-left by default */
      section.asset-column {
        position: absolute;
        top: 57px; /* below search row */
        left: var(--drawer-left, 300px); /* set by JS based on sidebar-left computed width */
        width: 280px;
        height: calc(100vh - 57px);
        z-index: 100;
        background: var(--surface);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        overflow: visible; /* allow tab to extrude from right edge */
        /* Collapsed: slides fully behind sidebar-left (translateX -280px puts it off-screen left) */
        transform: translateX(-280px);
        transition: transform 0.25s ease;
      }

      section.asset-column.open {
        transform: translateX(0); /* visible, overlays sidebar-left and viewer */
      }

      /* Tab button — inside drawer, extrudes from right edge */
      .asset-drawer-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 22px;
        height: 80px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 0 10px 10px 0;
        cursor: pointer;
        position: absolute;
        top: calc(10%);
        right: -22px; /* extrudes 22px to the right of drawer's right edge */
        z-index: 120; /* above sidebar-left (110) */
        box-shadow: 2px 0 8px rgba(0,0,0,0.4);
        transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
      }

      .asset-drawer-tab:hover {
        background: var(--surface-3);
        border-color: var(--primary);
        box-shadow: 2px 0 12px rgba(68,170,255,0.3);
      }

      .asset-drawer-tab .tab-arrow {
        width: 14px;
        height: 14px;
        color: var(--muted);
        transition: color 0.15s ease;
        flex-shrink: 0;
      }

      .asset-drawer-tab:hover .tab-arrow {
        color: var(--primary);
      }

      /* Arrow toggle — tab is inside asset-column, use descendant selector */
      .asset-drawer-tab .tab-expand { display: block; }
      .asset-drawer-tab .tab-collapse { display: none; }
      section.asset-column.open .asset-drawer-tab .tab-expand { display: none; }
      section.asset-column.open .asset-drawer-tab .tab-collapse { display: block; }
    }
