  :root {
    --bg: #030a16;
    --card: #0a1426;
    --card-soft: #0d1830;
    --accent: #00d4ff;
    --accent2: #d2ff9a;
    --text: #ffffff;
    --text-muted: #8892b0;
    --danger: #ff3860;
    --success: #2ecc71;
    --radius: 14px;
    --transition: 0.22s ease;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-image:
      linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    min-height: 100vh;
    position: relative;
    animation: gridDrift 9s linear infinite;
  }
  @keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 32px 32px, 32px 32px; }
  }

  .aurora-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.32;
    z-index: 0;
    pointer-events: none;
  }
  .aurora-1 {
    width: 420px; height: 420px;
    top: -120px; left: -100px;
    background: var(--accent);
    animation: driftA 14s ease-in-out infinite alternate;
  }
  .aurora-2 {
    width: 380px; height: 380px;
    bottom: -140px; right: -120px;
    background: var(--accent2);
    animation: driftB 16s ease-in-out infinite alternate;
  }
  @keyframes driftA { from { transform: translate(0, 0); } to { transform: translate(90px, 60px); } }
  @keyframes driftB { from { transform: translate(0, 0); } to { transform: translate(-80px, -50px); } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }

  h1, h2, h3 { margin: 0 0 8px; }
  a { color: var(--accent); }

  .loading-screen {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s ease;
  }
  .loading-screen.is-hidden { opacity: 0; pointer-events: none; }
  .loading-ring {
    position: relative; width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
  }
  .loading-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ring-spin 2s linear infinite; }
  .loading-ring-bolt {
    font-size: 36px; z-index: 1; position: relative;
    animation: bolt-pulse 1.4s ease-in-out infinite;
  }
  @keyframes ring-spin {
    0%   { transform: rotate(0deg);   filter: drop-shadow(0 0 4px #00d4ff) drop-shadow(0 0 10px rgba(0,212,255,0.5)); }
    50%  { filter: drop-shadow(0 0 6px #d2ff9a) drop-shadow(0 0 14px rgba(210,255,154,0.5)); }
    100% { transform: rotate(360deg); filter: drop-shadow(0 0 4px #00d4ff) drop-shadow(0 0 10px rgba(0,212,255,0.5)); }
  }
  @keyframes bolt-pulse {
    0%, 100% { text-shadow: 0 0 8px #00d4ff, 0 0 20px rgba(0,212,255,0.6); transform: scale(0.92); }
    50%       { text-shadow: 0 0 14px #d2ff9a, 0 0 30px rgba(210,255,154,0.7); transform: scale(1.08); }
  }
  .loading-text { color: var(--accent); letter-spacing: 0.5px; margin-top: 18px; font-size: 13px; }
  @keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 8px var(--accent), 0 0 18px var(--accent); opacity: 0.7; }
    50% { text-shadow: 0 0 18px var(--accent), 0 0 36px var(--accent); opacity: 1; }
  }

  .site-header {
    text-align: center;
    padding: 48px 20px 28px;
    position: relative;
    z-index: 1;
  }
  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .logo {
    font-size: 30px; font-weight: 800; letter-spacing: 1px; color: var(--text);
    text-shadow: 0 0 12px var(--accent), 0 0 28px rgba(0, 212, 255, 0.4);
    animation: logoGlow 3.2s ease-in-out infinite;
  }
  @keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 12px var(--accent), 0 0 24px rgba(0, 212, 255, 0.35); }
    50% { text-shadow: 0 0 20px var(--accent), 0 0 42px rgba(0, 212, 255, 0.6); }
  }

  .admin-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; padding: 4px 10px;
    border-radius: 20px; white-space: nowrap;
  }
  .status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  }
  .status-online {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.35);
  }
  .status-online .status-dot {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: dotPulse 1.8s ease-in-out infinite;
  }
  .status-offline {
    background: rgba(255, 56, 96, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 56, 96, 0.25);
  }
  .status-offline .status-dot { background: var(--danger); }
  @keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px var(--success); }
    50% { box-shadow: 0 0 10px var(--success), 0 0 16px rgba(46,204,113,0.4); }
  }
  .offline-notice {
    font-size: 12px; color: var(--danger);
    background: rgba(255,56,96,0.07); border: 1px solid rgba(255,56,96,0.2);
    border-radius: 8px; padding: 6px 14px; display: inline-block; margin-top: 8px;
  }

  .tagline { color: var(--text-muted); margin-top: 6px; }
  .header-underline {
    width: 160px; height: 2px; margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    background-size: 200% 100%;
    animation: shimmerLine 3.5s linear infinite;
    border-radius: 2px;
  }
  @keyframes shimmerLine {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
  }

  .btn {
    border: none; border-radius: 10px; padding: 10px 18px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  }
  .btn:active { transform: scale(0.97); }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), #0090c8);
    color: #00131c;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
    position: relative; overflow: hidden;
  }
  .btn-primary::after {
    content: ''; position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
  }
  .btn-primary:hover::after { animation: btnShine 0.9s ease; }
  @keyframes btnShine { from { left: -75%; } to { left: 125%; } }
  .btn-primary:hover { box-shadow: 0 0 22px rgba(0, 212, 255, 0.7); }
  .btn-primary:disabled { background: #1c2740; color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
  .btn-danger { background: var(--danger); color: #fff; }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid #1f2c47; }
  .btn-ask { background: transparent; border: 1px solid var(--accent2); color: var(--accent2); }
  .btn-ask:hover { background: rgba(210, 255, 154, 0.1); box-shadow: 0 0 14px rgba(210, 255, 154, 0.35); }
  .btn-block { width: 100%; }
  .btn-sm { padding: 6px 12px; font-size: 12px; margin-right: 6px; }

  .input {
    width: 100%; background: var(--card-soft); border: 1px solid #1f2c47;
    border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 14px;
    outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  }
  .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15); }
  .form-group { margin-bottom: 14px; }
  .form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-muted); }
  .hint-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
  .error-text { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }

  .flash-sale {
    margin: 0 auto 36px; max-width: 1180px; padding: 20px;
    border: 1px solid rgba(210, 255, 154, 0.3); border-radius: var(--radius);
    background: radial-gradient(circle at top left, rgba(210, 255, 154, 0.08), transparent 60%);
    position: relative; z-index: 1;
  }
  .flash-sale-head {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: space-between; margin-bottom: 16px;
  }
  .flash-sale-head h2 { color: var(--accent2); text-shadow: 0 0 10px rgba(210, 255, 154, 0.5); }
  .countdown-wrap { color: var(--text-muted); font-size: 14px; }
  .countdown {
    font-family: 'Courier New', monospace; font-weight: 700; color: var(--accent2);
    background: rgba(210, 255, 154, 0.08); padding: 4px 10px; border-radius: 8px; margin-left: 6px;
  }

  .catalog { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; position: relative; z-index: 1; }
  .empty-msg { color: var(--text-muted); text-align: center; padding: 40px 0; }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
  @keyframes neon-pulse {
    0%   { border-color: #00d4ff; box-shadow: 0 0 6px #00d4ff, 0 0 14px rgba(0,212,255,0.4), inset 0 0 6px rgba(0,212,255,0.05); }
    50%  { border-color: #d2ff9a; box-shadow: 0 0 8px #d2ff9a, 0 0 20px rgba(210,255,154,0.45), inset 0 0 8px rgba(210,255,154,0.06); }
    100% { border-color: #00d4ff; box-shadow: 0 0 6px #00d4ff, 0 0 14px rgba(0,212,255,0.4), inset 0 0 6px rgba(0,212,255,0.05); }
  }
  .product-card {
    background: var(--card); border: 1px solid #142037; border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  }
  .product-card:hover { transform: translateY(-4px); animation: neon-pulse 3s ease-in-out infinite; }
  .product-card.is-out { opacity: 0.65; }

  /* Badge stok rendah di pojok card */
  .stock-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 99px;
    background: rgba(255,140,0,0.92); color: #fff;
    backdrop-filter: blur(4px);
  }
  .stock-badge.is-out { background: rgba(231,76,60,0.92); }
  .product-thumb { position: relative; }

  /* Skeleton loading */
  @keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
  }
  .skeleton-card {
    background: var(--card); border: 1px solid #142037; border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
  }
  .skeleton-img {
    width: 100%; aspect-ratio: 1/1;
    background: linear-gradient(90deg, #0d1830 25%, #142037 50%, #0d1830 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
  }
  .skeleton-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
  .skeleton-line {
    height: 10px; border-radius: 4px;
    background: linear-gradient(90deg, #0d1830 25%, #142037 50%, #0d1830 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
  }
  .skeleton-line.short { width: 55%; }
  .skeleton-line.xshort { width: 35%; }

  /* Empty state */
  .empty-catalog {
    grid-column: 1 / -1; padding: 3rem 1rem; text-align: center;
    color: var(--text-muted);
  }
  .empty-catalog-icon { font-size: 40px; margin-bottom: 12px; }
  .empty-catalog-title { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
  .empty-catalog-desc { font-size: 13px; margin-top: 6px; }

  /* WhatsApp social pill */
  .bb-whatsapp { background: #075e54; border: 1px solid rgba(37,211,102,0.4); }
  .product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #0d1830;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .product-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .product-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .product-cat {
    align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--accent); background: rgba(0, 212, 255, 0.1); padding: 3px 8px; border-radius: 6px;
  }
  .product-name { font-size: 16px; }
  .product-desc { color: var(--text-muted); font-size: 13px; flex: 1; }

  .variant-preview { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
  .variant-preview-item {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-muted);
    background: rgba(255,255,255,0.04); border-radius: 6px; padding: 4px 8px;
  }
  .variant-preview-item .vname { font-weight: 600; color: var(--text); }
  .variant-preview-item .vprice { color: var(--accent2); font-weight: 700; }
  .variant-preview-item .vprice-strike { text-decoration: line-through; color: var(--text-muted); font-size: 11px; margin-right: 4px; }
  .variant-preview-item .vbadge {
    font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
    background: var(--danger); color: #fff; margin-left: 4px;
  }
  .variant-preview-item .vstockbadge { font-size: 10px; padding: 2px 6px; border-radius: 4px; }
  .vstockbadge.ok { background: rgba(46, 204, 113, 0.15); color: var(--success); }
  .vstockbadge.out { background: rgba(255, 56, 96, 0.15); color: var(--danger); }

  .product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
  .price-from { font-size: 12px; color: var(--text-muted); }
  .price-from strong { color: var(--accent2); }
  .stock-badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; }
  .badge-success { background: rgba(46, 204, 113, 0.15); color: var(--success); }
  .badge-danger { background: rgba(255, 56, 96, 0.15); color: var(--danger); }
  .badge-muted { background: rgba(136, 146, 176, 0.15); color: var(--text-muted); padding: 3px 8px; border-radius: 6px; font-size: 11px; }
  .btn-buy { margin-top: 8px; }

  .modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(2, 6, 14, 0.78);
    align-items: center; justify-content: center; padding: 20px;
  }
  .modal-overlay.is-open { display: flex; }
  .modal-box {
    background: var(--card); border: 1px solid #1c2c4d; border-radius: var(--radius);
    padding: 26px; max-width: 440px; width: 100%; position: relative;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.12);
  }
  .modal-scroll { max-height: 86vh; overflow-y: auto; }
  .modal-sm { max-width: 340px; }
  .modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer;
  }
  .checkout-summary { color: var(--text-muted); margin-bottom: 16px; }

  .variant-step { margin-bottom: 18px; }
  .variant-step h4 { font-size: 14px; color: var(--text-muted); margin: 0 0 10px; }
  .variant-options { display: flex; flex-direction: column; gap: 8px; }
  .variant-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: 10px; border: 1.5px solid #1f2c47;
    cursor: pointer; transition: border-color var(--transition), background var(--transition);
  }
  .variant-option:hover:not(.disabled) { border-color: var(--accent); background: rgba(0, 212, 255, 0.05); }
  .variant-option.selected { border-color: var(--accent); background: rgba(0, 212, 255, 0.08); }
  .variant-option.disabled { opacity: 0.45; cursor: not-allowed; }
  .variant-option-left { display: flex; flex-direction: column; gap: 2px; }
  .variant-option-name { font-size: 14px; font-weight: 600; }
  .variant-option-stock { font-size: 11px; }
  .variant-option-stock.ok { color: var(--success); }
  .variant-option-stock.out { color: var(--danger); }
  .variant-option-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .variant-option-price { font-size: 15px; font-weight: 700; color: var(--accent2); }
  .variant-option-orig { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }
  .variant-option-disc { font-size: 10px; font-weight: 700; color: #fff; background: var(--danger); padding: 2px 6px; border-radius: 4px; }

  .payment-step { display: none; }
  .payment-step.is-visible { display: block; }
  .qris-box { text-align: center; margin: 14px 0; }
  .qris-box img { max-width: 220px; border-radius: 10px; border: 1px solid #1c2c4d; }
  .nominal-instruction {
    font-size: 13px; color: var(--accent2); margin-top: 10px;
    background: rgba(210, 255, 154, 0.08); border-radius: 8px; padding: 8px 12px;
  }
  .checkout-selected-variant {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0, 212, 255, 0.07); border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px;
  }
  .checkout-selected-variant .csv-name { font-weight: 600; }
  .checkout-selected-variant .csv-price { color: var(--accent2); font-weight: 700; }
  .back-btn { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 14px; }
  .back-btn:hover { color: var(--text); }
  .confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

  .site-footer { text-align: center; color: var(--text-muted); font-size: 13px; padding: 24px 0 40px; position: relative; z-index: 1; }

  .detail-modal-box {
    background: var(--card); border: 1px solid #1c2c4d; border-radius: var(--radius);
    max-width: 520px; width: 100%; position: relative;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
    max-height: 90vh; overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .detail-modal-box::-webkit-scrollbar { width: 5px; }
  .detail-modal-box::-webkit-scrollbar-track { background: transparent; }
  .detail-modal-box::-webkit-scrollbar-thumb { background: #1f2c47; border-radius: 10px; }
  .detail-img-wrap {
    width: 100%; aspect-ratio: 16/9;
    background: #0d1830;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0; position: relative;
  }
  .detail-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
  .detail-flash-badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #ff6b00, var(--danger));
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 20px;
    box-shadow: 0 0 14px rgba(255, 56, 96, 0.5);
    animation: flashPulse 1.4s ease-in-out infinite;
  }
  @keyframes flashPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,56,96,0.4); }
    50% { box-shadow: 0 0 22px rgba(255,56,96,0.8); }
  }
  .detail-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
  .detail-header { display: flex; flex-direction: column; gap: 4px; }
  .detail-cat {
    align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--accent); background: rgba(0, 212, 255, 0.1); padding: 3px 8px; border-radius: 6px;
  }
  .detail-title { font-size: 22px; font-weight: 800; margin: 4px 0 0; }
  .detail-section-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-muted); margin-bottom: 8px; font-weight: 700;
  }
  .detail-variants { display: flex; flex-direction: column; gap: 8px; }
  .detail-variant-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: 10px; border: 1.5px solid #1f2c47;
    background: rgba(255,255,255,0.02);
  }
  .detail-variant-item.detail-variant-selected { border: 1.5px solid var(--accent2); background: rgba(210,255,154,0.08); }
  .detail-variant-item.is-out { opacity: 0.45; cursor: default !important; }
  .detail-variant-item.has-promo { border-color: rgba(210,255,154,0.3); background: rgba(210,255,154,0.04); }
  .detail-variant-left { display: flex; flex-direction: column; gap: 3px; }
  .detail-variant-name { font-size: 14px; font-weight: 700; }
  .detail-variant-stock { font-size: 11px; }
  .detail-variant-stock.ok { color: var(--success); }
  .detail-variant-stock.out { color: var(--danger); }
  .detail-variant-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .detail-variant-price { font-size: 17px; font-weight: 800; color: var(--accent2); }
  .detail-variant-orig { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
  .detail-variant-disc { font-size: 11px; font-weight: 700; color: #fff; background: var(--danger); padding: 2px 7px; border-radius: 5px; }
  .detail-desc-box { background: rgba(255,255,255,0.03); border: 1px solid #1a2740; border-radius: 10px; padding: 14px; }
  .detail-desc-text { font-size: 13px; color: var(--text-muted); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
  .detail-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

  @media (max-width: 640px) {
    .detail-modal-box { max-height: 95vh; }
    .detail-img-wrap { aspect-ratio: 4/3; }
    .detail-title { font-size: 18px; }
  }

  .product-card { cursor: pointer; }
  .product-card .btn { position: relative; z-index: 2; }

  .catalog-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .catalog-toolbar .input { flex: 1; min-width: 120px; }
  .toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
  .bb-status {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; border-radius: 20px;
    padding: 5px 10px; white-space: nowrap; flex-shrink: 0;
  }
  .bb-status.status-online  { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.35); color: #2ecc71; }
  .bb-status.status-offline { background: rgba(231,76,60,0.12);  border: 1px solid rgba(231,76,60,0.35);  color: #e74c3c; }
  .bb-btn {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; border-radius: 20px;
    padding: 6px 12px; cursor: pointer; text-decoration: none;
    white-space: nowrap; transition: background 0.2s, transform 0.15s;
    flex-shrink: 0; border: none;
  }
  .bb-btn:hover { transform: scale(1.04); }
  .bb-garansi { background: rgba(255,193,7,0.12); border: 1px solid rgba(255,193,7,0.35) !important; color: #ffc107; }
  .bb-garansi:hover { background: rgba(255,193,7,0.22); }
  .bb-social-btn { background: linear-gradient(135deg, var(--accent), #0090c8); color: #00131c; font-weight: 700; }
  .bb-social-wrap { position: relative; flex-shrink: 0; }
  .bb-social-popup {
    position: absolute; top: calc(100% + 8px); right: 0;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none; opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 500;
  }
  .bb-social-wrap.is-open .bb-social-popup { pointer-events: auto; opacity: 1; transform: translateY(0); }
  .bb-social-pill {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #fff;
    text-decoration: none; white-space: nowrap;
    transition: transform 0.15s; box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  }
  .bb-social-pill:hover { transform: scale(1.04); }
  .bb-tiktok    { background: #111; border: 1px solid rgba(37,244,238,0.4); }
  .bb-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }

  .admin-tabs {
    display: flex; gap: 4px; padding: 0 24px; margin-top: 16px;
    max-width: 1100px; margin-left: auto; margin-right: auto;
    border-bottom: 1px solid #142037;
  }
  .admin-tab {
    background: none; border: none; color: var(--text-muted);
    font-size: 14px; font-weight: 600; padding: 10px 18px;
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    margin-bottom: -1px;
  }
  .admin-tab:hover { color: var(--text); }
  .admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

  .online-toggle-wrap { display: flex; align-items: center; gap: 8px; }
  .online-toggle-label { font-size: 13px; font-weight: 600; min-width: 80px; text-align: right; }
  .online-toggle-btn {
    width: 44px; height: 24px; border-radius: 12px; border: none; cursor: pointer;
    background: #1f2c47; position: relative; transition: background 0.25s ease; flex-shrink: 0;
  }
  .online-toggle-btn.is-on { background: var(--success); }
  .toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    transition: transform 0.25s ease;
  }
  .online-toggle-btn.is-on .toggle-thumb { transform: translateX(20px); }

  .order-status-badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
  .badge-pending { background: rgba(255,193,7,0.15); color: #ffc107; }
  .badge-selesai { background: rgba(0,212,255,0.12); color: var(--accent); }

  .rekap-filter-box { max-width: 1100px; margin: 20px auto 0; padding: 0 24px; }
  .rekap-summary-box {
    max-width: 1100px; margin: 14px auto 0; padding: 14px 24px;
    background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.25);
    border-radius: var(--radius); font-size: 15px;
  }

  .flash-setting-box { max-width: 1100px; margin: 20px auto 0; padding: 0 24px; }
  .flash-setting-head { font-size: 14px; font-weight: 700; color: var(--accent2); margin-bottom: 10px; }
  .flash-setting-body {
    background: var(--card); border: 1px solid rgba(210,255,154,0.25);
    border-radius: var(--radius); padding: 16px; max-width: 420px;
  }

  .wa-link { color: var(--success); text-decoration: none; font-size: 12px; }
  .wa-link:hover { text-decoration: underline; }

  .login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
  .login-card {
    background: var(--card); border: 1px solid #1c2c4d; border-radius: var(--radius);
    padding: 32px; max-width: 360px; width: 100%;
    box-shadow: 0 0 40px rgba(0,212,255,0.12); text-align: center;
  }
  .login-logo { font-size: 22px; font-weight: 800; text-shadow: 0 0 10px var(--accent); margin-bottom: 4px; }
  .login-sub { color: var(--text-muted); margin-bottom: 22px; font-size: 13px; }
  .login-card .form-group { text-align: left; }

  .is-hidden { display: none !important; }
  .admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid #142037;
  }
  .admin-pill {
    font-size: 11px; background: rgba(0,212,255,0.15); color: var(--accent);
    padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle;
  }
  .admin-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 24px auto 14px; padding: 0 24px;
  }
  .table-wrap { max-width: 1100px; margin: 0 auto 60px; padding: 0 24px; overflow-x: auto; }
  .admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
  .admin-table th, .admin-table td {
    padding: 12px 14px; text-align: left; border-bottom: 1px solid #142037; font-size: 14px; white-space: nowrap;
  }
  .admin-table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
  .admin-table tr:last-child td { border-bottom: none; }

  .variant-cell { display: flex; flex-direction: column; gap: 3px; }
  .variant-tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: rgba(0,212,255,0.1); color: var(--accent); white-space: nowrap; }

  .variant-section { border: 1px solid #1f2c47; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
  .variant-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 10px; }
  .variant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .variant-grid .form-group { margin-bottom: 0; }

  @media (max-width: 640px) {
    .logo { font-size: 24px; }
    .flash-sale-head { flex-direction: column; align-items: flex-start; }
    .admin-toolbar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .catalog-toolbar { flex-direction: column; }
    .catalog-toolbar .input, .catalog-toolbar select.input { max-width: 100%; }
    .variant-grid { grid-template-columns: 1fr; }
  }
