  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0A0A0A; min-height: 100vh; color: #fff; display: flex; flex-direction: column; }

  .topnav { display: flex; align-items: center; justify-content: space-between; padding: 0 2.5rem; height: 60px; background: #000; border-bottom: 3px solid #CC1F1F; position: sticky; top: 0; z-index: 100; }
  .topnav-left { display: flex; align-items: center; gap: 2.5rem; }
  .logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; text-transform: uppercase; text-decoration: none; }
  .logo span { color: #CC1F1F; }
  .nav-links { display: flex; gap: 6px; }
  .nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); text-decoration: none; border-radius: 6px; transition: color 0.15s, background 0.15s; }
  .nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
  .nav-link.active { color: #fff; background: rgba(204,31,31,0.15); }
  .nav-link i { font-size: 17px; }
  .topnav-right { display: flex; align-items: center; gap: 8px; }
  .nav-icon-btn { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; border: none; background: none; }
  .nav-icon-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
  .nav-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; font-weight: 700; background: #CC1F1F; color: #fff; border-radius: 99px; display: none; align-items: center; justify-content: center; padding: 0 4px; }
  .theme-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; border: none; background: none; }

  .dropdown-wrap { position: relative; }
  .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 200;
    overflow: hidden;
  }
  .dropdown.open { display: block; }
  .dropdown-header { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.62); }

  .notif-panel { min-width: 340px; right: 0; }
  .notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.1s; cursor: pointer; }
  .notif-item:hover { background: rgba(255,255,255,0.03); }
  .notif-item:last-child { border-bottom: none; }
  .notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
  .notif-dot.red { background: #CC1F1F; }
  .notif-dot.green { background: #22C55E; }
  .notif-dot.blue { background: #3B82F6; }
  .notif-dot.amber { background: #F59E0B; }
  .notif-body { flex: 1; }
  .notif-body p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.4; margin-bottom: 2px; }
  .notif-body p strong { color: #fff; }
  .notif-body time { font-size: 11px; color: rgba(255,255,255,0.25); }
  .notif-empty { padding: 24px 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.6); }
  .notif-footer { padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
  .notif-footer a { font-size: 12px; font-weight: 600; color: #CC1F1F; text-decoration: none; cursor: pointer; }
  .notif-footer a:hover { text-decoration: underline; }

  body.light .dropdown { background: #fff; border-color: #E0E0E0; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
  body.light .dropdown-header { color: #999; border-bottom-color: #EEE; }
  body.light .notif-body p { color: rgba(0,0,0,0.65); }
  body.light .notif-body p strong { color: #111; }
  body.light .notif-body time { color: rgba(0,0,0,0.35); }
  body.light .notif-empty { color: rgba(0,0,0,0.5); }
  body.light .notif-footer { border-top-color: #EEE; }

  .main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 2rem 2.5rem 3rem; flex: 1; }

  .back-to-store { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 14px; transition: color 0.15s; }
  .back-to-store:hover { color: #fff; }
  .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .page-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }

  /* Stat cards */
  .stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 2rem; }
  .stat-card { background: #111; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 20px; }
  .stat-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.62); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
  .stat-val { font-size: 28px; font-weight: 800; letter-spacing: -1px; }

  /* Tabs */
  .admin-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
  .admin-tab { padding: 12px 24px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.65); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; transition: all 0.15s; }
  .admin-tab:hover { color: rgba(255,255,255,0.7); }
  .admin-tab.active { color: #fff; border-bottom-color: #CC1F1F; }
  .admin-panel { display: none; }
  .admin-panel.active { display: block; }

  /* Table */
  .data-table { width: 100%; border-collapse: collapse; }
  .data-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.62); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .data-table td { padding: 14px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
  .data-table tr:hover td { background: rgba(255,255,255,0.02); }

  .badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 4px; text-transform: uppercase; }
  .badge-active { background: rgba(34,197,94,0.15); color: #22C55E; }
  .badge-draft { background: rgba(245,158,11,0.15); color: #F59E0B; }
  .badge-archived { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); }

  .action-btn { padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.15s; }
  .action-btn:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
  .action-btn.primary { background: #CC1F1F; border-color: #CC1F1F; color: #fff; }
  .action-btn.primary:hover { background: #B01A1A; }

  .toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .toolbar input { flex: 1; padding: 10px 14px 10px 40px; font-size: 14px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 6px; background: rgba(255,255,255,0.04); color: #fff; outline: none; }
  .toolbar input:focus { border-color: #CC1F1F; }
  .toolbar input::placeholder { color: rgba(255,255,255,0.25); }
  .toolbar-select { padding: 10px 14px; font-size: 14px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 6px; background: rgba(255,255,255,0.04); color: #fff; outline: none; }
  .toolbar-select option { background: #1A1A1A; color: #fff; }
  .import-status { margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,0.5); }
  .import-select { width: 100%; padding: 8px; font-size: 13px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #fff; }
  .import-select option { background: #1A1A1A; color: #fff; }
  .muted-text { color: rgba(255,255,255,0.62); }
  .muted-text-light { color: rgba(255,255,255,0.6); }

  /* Modal */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300; display: none; align-items: center; justify-content: center; }
  .modal-overlay.open { display: flex; }
  .modal { background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; width: 600px; max-width: 95vw; max-height: 90vh; overflow-y: auto; }
  .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .modal-header h3 { font-size: 18px; font-weight: 700; }
  .modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: rgba(255,255,255,0.65); background: none; border: none; cursor: pointer; border-radius: 6px; }
  .modal-close:hover { color: #fff; background: rgba(255,255,255,0.05); }
  .modal-body { padding: 24px; }
  .modal-body label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 6px; margin-top: 14px; }
  .modal-body label:first-child { margin-top: 0; }
  .modal-body input, .modal-body select, .modal-body textarea { width: 100%; padding: 10px 14px; font-size: 14px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 8px; background: rgba(255,255,255,0.04); color: #fff; outline: none; font-family: inherit; }
  .modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus { border-color: #CC1F1F; }
  .modal-body select option { background: #1A1A1A; color: #fff; }
  .modal-body textarea { min-height: 100px; resize: vertical; }
  .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); }

  .bottombar { background: #000; border-top: 1px solid rgba(255,255,255,0.08); padding: 12px 2.5rem; display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
  .bottombar-left { font-size: 11px; color: rgba(255,255,255,0.6); }
  .bottombar-right { display: flex; gap: 20px; }
  .bottombar-right a { font-size: 11px; color: rgba(255,255,255,0.6); text-decoration: none; }

  @media (max-width: 768px) {
    .topnav { padding: 0 1.25rem; }
    .nav-links { display: none; }
    .main { padding: 1.5rem 1.25rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .data-table { font-size: 13px; }
    .bottombar { padding: 12px 1.25rem; }
  }

  body.light { background: #F5F5F5; color: #111; }
  body.light .topnav { background: #fff; }
  body.light .logo { color: #111; }
  body.light .nav-link { color: rgba(0,0,0,0.5); }
  body.light .nav-link:hover { color: #111; background: rgba(0,0,0,0.04); }
  body.light .nav-link.active { color: #CC1F1F; background: rgba(204,31,31,0.08); }
  body.light .page-header h1 { color: #111; }
  body.light .back-to-store { color: rgba(0,0,0,0.55); }
  body.light .back-to-store:hover { color: #111; }
  body.light .stat-card { background: #fff; border-color: #E8E8E8; }
  body.light .stat-label { color: #999; }
  body.light .stat-val { color: #111; }
  body.light .admin-tabs { border-bottom-color: #E8E8E8; }
  body.light .admin-tab { color: #999; }
  body.light .admin-tab:hover { color: #555; }
  body.light .admin-tab.active { color: #111; border-bottom-color: #CC1F1F; }
  body.light .data-table th { color: #999; border-bottom-color: #E8E8E8; }
  body.light .data-table td { color: #333; border-bottom-color: #F0F0F0; }
  body.light .data-table tr:hover td { background: #FAFAFA; }
  body.light .action-btn { color: #666; border-color: #DDD; }
  body.light .action-btn:hover { color: #111; border-color: #BBB; }
  body.light .toolbar input { background: #fff; border-color: #DDD; color: #111; }
  body.light .toolbar input::placeholder { color: rgba(0,0,0,0.35); }
  body.light .toolbar-select { background: #fff; border-color: #DDD; color: #333; }
  body.light .toolbar-select option { background: #fff; color: #111; }
  body.light .import-status { color: #666; }
  body.light #taxStateFilter, body.light #overrideZip, body.light #overrideState, body.light #overrideCity, body.light #overrideRate, body.light #taxReportFrom, body.light #taxReportTo { background: #fff; border-color: #DDD; color: #111; }
  body.light .import-select { background: #fff; border-color: #DDD; color: #333; }
  body.light .import-select option { background: #fff; color: #111; }
  body.light .muted-text { color: #999; }
  body.light .muted-text-light { color: #BBB; }
  body.light .data-table td[class*="muted"] { color: #999; }
  body.light .modal { background: #fff; border-color: #E8E8E8; }
  body.light .modal-header { border-bottom-color: #EEE; }
  body.light .modal-header h3 { color: #111; }
  body.light .modal-close { color: #999; }
  body.light .modal-body label { color: #888; }
  body.light .modal-body input, body.light .modal-body select, body.light .modal-body textarea { background: #fff; border-color: #DDD; color: #111; }
  body.light .modal-footer { border-top-color: #EEE; }
  body.light .bottombar { background: #fff; border-top-color: #E8E8E8; }
  body.light .bottombar-left { color: #999; }
  body.light .theme-btn { color: rgba(0,0,0,0.4); }
  body.light .nav-icon-btn { color: rgba(0,0,0,0.4); }

  .inline-price { cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.15s; min-width: 70px; display: inline-block; }
  .inline-price:hover { background: rgba(204,31,31,0.15); }
  .inline-price.price-tbd { color: rgba(255,255,255,0.6); font-style: italic; }
  body.light .inline-price.price-tbd { color: #999; }
  .inline-price-input { width: 90px; padding: 4px 8px; font-size: 14px; border: 1.5px solid #CC1F1F; border-radius: 4px; background: rgba(255,255,255,0.08); color: #fff; outline: none; font-family: inherit; }
  body.light .inline-price-input { background: #fff; color: #111; }

  .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
  .pagination button { padding: 6px 14px; font-size: 13px; font-weight: 600; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: none; color: rgba(255,255,255,0.5); cursor: pointer; }
  .pagination button:hover:not(:disabled) { color: #fff; border-color: rgba(255,255,255,0.6); }
  .pagination button:disabled { opacity: 0.3; cursor: default; }
  .pagination button.active { background: #CC1F1F; border-color: #CC1F1F; color: #fff; }
  .pagination span { font-size: 13px; color: rgba(255,255,255,0.65); }
  body.light .pagination button { border-color: #DDD; color: #666; }
  body.light .pagination button:hover:not(:disabled) { color: #111; border-color: #BBB; }
  body.light .pagination span { color: #999; }
