  *, *::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; }
  .theme-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }

  .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: 960px; margin: 0 auto; padding: 2rem 2.5rem 3rem; flex: 1; }
  .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
  .page-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
  .page-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; }
  .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 1rem; transition: color 0.15s; }
  .back-link:hover { color: #fff; }
  .back-link i { font-size: 16px; }
  body.light .back-link { color: rgba(0,0,0,0.55); }
  body.light .back-link:hover { color: #111; }

  .orders-filter-bar { display: flex; gap: 10px; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
  .filter-search { position: relative; flex: 1; min-width: 200px; }
  .filter-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; color: rgba(255,255,255,0.6); }
  .filter-search input { width: 100%; padding: 10px 12px 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; }
  .filter-search input:focus { border-color: #CC1F1F; }
  .filter-search input::placeholder { color: rgba(255,255,255,0.25); }
  .filter-select { padding: 10px 32px 10px 12px; font-size: 13px; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 6px; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); outline: none; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
  .filter-select:focus { border-color: #CC1F1F; }
  .filter-select option { background: #1A1A1A; color: #fff; }
  .date-filter { display: flex; align-items: center; gap: 6px; }
  .date-filter input { padding: 9px 10px; font-size: 13px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 6px; background: rgba(255,255,255,0.04); color: #fff; outline: none; color-scheme: dark; }
  .date-filter input:focus { border-color: #CC1F1F; }
  .date-filter span { color: rgba(255,255,255,0.35); font-size: 13px; }

  body.light .filter-search input { background: #fff; border-color: #DDD; color: #111; }
  body.light .filter-search i { color: #999; }
  body.light .filter-search input::placeholder { color: rgba(0,0,0,0.35); }
  body.light .filter-select { background: #fff; border-color: #DDD; color: #333; }
  body.light .filter-select option { background: #fff; color: #111; }
  body.light .date-filter input { background: #fff; border-color: #DDD; color: #111; color-scheme: light; }
  body.light .date-filter span { color: #999; }

  .order-card { background: #111; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
  .order-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; }
  .order-header:hover { background: rgba(255,255,255,0.02); }
  .order-num { font-size: 15px; font-weight: 700; }
  .order-date { font-size: 13px; color: rgba(255,255,255,0.62); }
  .order-status { padding: 4px 12px; font-size: 11px; font-weight: 700; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
  .status-pending { background: rgba(245,158,11,0.15); color: #F59E0B; }
  .status-paid { background: rgba(34,197,94,0.15); color: #22C55E; }
  .status-shipped { background: rgba(59,130,246,0.15); color: #3B82F6; }
  .status-delivered { background: rgba(34,197,94,0.15); color: #22C55E; }
  .status-cancelled { background: rgba(239,68,68,0.15); color: #EF4444; }
  .status-failed { background: rgba(239,68,68,0.15); color: #EF4444; }
  .status-expired { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
  .status-refunded { background: rgba(168,85,247,0.15); color: #A855F7; }
  .status-disputed { background: rgba(245,158,11,0.2); color: #F59E0B; }
  .status-dispute_lost { background: rgba(239,68,68,0.2); color: #EF4444; }
  .cancel-btn { padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: transparent; color: #EF4444; border: 1px solid rgba(239,68,68,0.35); border-radius: 6px; cursor: pointer; margin-top: 16px; margin-right: 8px; transition: background 0.15s, border-color 0.15s; }
  .cancel-btn:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.6); }
  .cancel-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .resume-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: #CC1F1F; color: #fff; border: 1px solid #CC1F1F; border-radius: 6px; cursor: pointer; margin-top: 16px; margin-right: 8px; transition: background 0.15s; }
  .resume-btn:hover { background: #B01A1A; }
  .resume-btn i { font-size: 15px; }
  .reorder-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: transparent; color: #CC1F1F; border: 1px solid rgba(204,31,31,0.4); border-radius: 6px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
  .reorder-btn:hover { background: rgba(204,31,31,0.08); border-color: #CC1F1F; }
  .reorder-btn i { font-size: 15px; }
  .order-total { font-size: 16px; font-weight: 800; }
  .order-body { padding: 16px 20px; display: none; }
  .order-body.open { display: block; }
  .order-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .order-item:last-child { border-bottom: none; }
  .order-item-title { font-size: 14px; font-weight: 600; }
  .order-item-meta { font-size: 12px; color: rgba(255,255,255,0.62); }
  .order-item-price { font-size: 14px; font-weight: 700; margin-left: auto; }
  .order-tracking { margin-top: 12px; padding: 12px 16px; background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15); border-radius: 8px; font-size: 13px; }
  .order-tracking a { color: #3B82F6; }
  .order-po { margin-top: 12px; padding: 12px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.75); }
  .order-chevron { font-size: 18px; color: rgba(255,255,255,0.6); }
  .order-loading { text-align: center; padding: 20px; color: rgba(255,255,255,0.6); }
  .order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
  .order-actions .invoice-btn { margin-left: auto; }
  .invoice-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; 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; text-decoration: none; transition: all 0.15s; }
  .invoice-btn:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

  .empty-state { text-align: center; padding: 80px 20px; }
  .empty-state i { font-size: 64px; color: rgba(255,255,255,0.08); margin-bottom: 16px; }
  .empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
  .empty-state p { font-size: 14px; color: rgba(255,255,255,0.62); }

  .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; }
    .bottombar { padding: 12px 1.25rem; }
    .orders-filter-bar { flex-direction: column; align-items: stretch; }
  }

  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 .page-sub { color: #777; }
  body.light .order-card { background: #fff; border-color: #E8E8E8; }
  body.light .order-header { border-bottom-color: #EEE; }
  body.light .order-header:hover { background: #FAFAFA; }
  body.light .order-num { color: #111; }
  body.light .order-date { color: #999; }
  body.light .order-total { color: #111; }
  body.light .order-item-title { color: #111; }
  body.light .order-item-meta { color: #999; }
  body.light .order-item-price { color: #111; }
  body.light .order-item { border-bottom-color: #F0F0F0; }
  body.light .empty-state i { color: rgba(0,0,0,0.08); }
  body.light .empty-state h3 { color: #111; }
  body.light .empty-state p { color: #888; }
  body.light .bottombar { background: #fff; border-top-color: #E8E8E8; }
  body.light .bottombar-left { color: #999; }
  body.light .bottombar-right a { 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); }
  body.light .order-chevron { color: #BBB; }
  body.light .order-loading { color: #999; }
  body.light .order-tracking { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.2); }
  body.light .order-po { background: #F5F5F5; border-color: #E8E8E8; color: #555; }
  body.light .order-actions { border-top-color: #F0F0F0; }
  body.light .invoice-btn { color: #666; border-color: #DDD; }
  body.light .invoice-btn:hover { color: #111; border-color: #BBB; }
  body.light .reorder-btn { border-color: rgba(204,31,31,0.3); }
  body.light .reorder-btn:hover { background: rgba(204,31,31,0.06); border-color: #CC1F1F; }
