
/* =========================================================
   Skrod Research Labs — styles.css
   Organized into clear sections for easy scanning
   ========================================================= */


/* =========================================================
   1) THEME VARIABLES
   ========================================================= */
:root{
  --bg: #050914;

  --cardA: rgba(255,255,255,.07);
  --cardB: rgba(255,255,255,.05);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.60);

  --accent: #3bd6ff;
  --accent2: #1aa0ff;

  --danger: #ff5b7a;
  --ok: #49f5b2;

  --border: rgba(120,200,255,.22);
  --stroke: rgba(255,255,255,.14);

  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}


/* =========================================================
   2) BASE / RESETS
   ========================================================= */
*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 50% 0%, rgba(59,214,255,.18), transparent 55%),
    radial-gradient(900px 500px at 85% 0%, rgba(26,160,255,.12), transparent 60%),
    radial-gradient(900px 500px at 15% 10%, rgba(26,160,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}

a{
  color: var(--accent);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

/* IMPORTANT:
   Keep images from overflowing containers,
   but DO NOT force them to be 100% width. */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

hr{
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
}

main{ padding: 18px 0 28px; }


/* =========================================================
   3) LAYOUT HELPERS
   ========================================================= */
.container{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px){
  .grid{ grid-template-columns: 1fr 1fr; }
}

.inline{ display:inline; margin:0; }


/* =========================================================
   4) HEADER / NAV
   ========================================================= */
.site-header{
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(5,9,20,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand img{
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  color: rgba(255,255,255,.88);
  font-weight: 600;
}
.nav a:hover{
  color: var(--accent);
  text-decoration: none;
}

/* Buttons that look like links (logout form button, etc.) */
.linklike{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  color: rgba(255,255,255,.88);
  font: inherit;
}
.linklike:hover{
  color: var(--accent);
  text-decoration: underline;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-name{
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(255,255,255,.92);
}

.brand-tagline{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ── Hamburger button (hidden on desktop) ── */
.hamburger{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.hamburger span{
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile header actions (cart + hamburger) — hidden on desktop */
.mobile-header-actions{
  display: none;
  align-items: center;
  gap: 12px;
}

/* Desktop: cart inside nav is visible, mobile cart is hidden */
.cart-link-desktop{ display: inline-flex; }

@media (max-width: 768px){
  .hamburger{ display: flex; }
  .mobile-header-actions{ display: flex; }
  .cart-link-desktop{ display: none !important; }

  .nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,9,20,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 16px 20px;
    flex-direction: column;
    gap: 0;
    z-index: 105;
  }
  .nav.nav-open{
    display: flex;
  }
  .nav a, .nav .linklike{
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 1rem;
  }
  .nav a:last-child, .nav .inline:last-of-type{
    border-bottom: none;
  }
  .nav .inline{
    margin: 0;
  }

  .header-inner{
    position: relative;
  }
  .brand{
    min-width: auto;
  }
}


/* =========================================================
   5) CARDS / PANELS
   ========================================================= */
.card{
  background: linear-gradient(180deg, var(--cardA), var(--cardB));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card + .card{ margin-top: 14px; }


/* =========================================================
   6) BADGES / ALERTS
   ========================================================= */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}

.badge.low{
  border-color: rgba(255,91,122,.55);
  color: rgba(255,200,210,.95);
}

.alert{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.alert.error{ border-color: rgba(255,91,122,.55); }
.alert.success{ border-color: rgba(73,245,178,.55); }

.ok{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(73,245,178,.35);
  background: rgba(73,245,178,.12);
}
.err{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,92,92,.35);
  background: rgba(255,92,92,.12);
}
/* Status variants (keeps your dark theme badge base) */
.badge--pending{
  border-color: rgba(255, 196, 61, .55);
  background: rgba(255, 196, 61, .12);
  color: rgba(255, 232, 180, .95);
}

.badge--approved{
  border-color: rgba(73, 245, 178, .55);
  background: rgba(73, 245, 178, .12);
  color: rgba(200, 255, 235, .95);
}

.badge--disabled{
  border-color: rgba(170, 180, 200, .45);
  background: rgba(170, 180, 200, .10);
  color: rgba(230, 235, 245, .90);
}

.badge--banned{
  border-color: rgba(255, 92, 92, .55);
  background: rgba(255, 92, 92, .12);
  color: rgba(255, 210, 210, .95);
}

.vacation-banner{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(255, 183, 77, .14);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-size: 13px;
}
.vacation-banner strong{ font-weight: 900; margin-right: 8px; }

.vacation-banner[data-phase="upcoming"]{
  background: rgba(59,214,255,.14); /* bluish for upcoming */
}

.checks{
  margin-top: 10px;
  display: grid;
  gap: 8px;                 /* tighter */
}

.check-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;                /* tighter */
  padding: 8px 10px;        /* tighter */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.check-text{
  line-height: 1.25;        /* tighter */
  font-size: 13px;          /* optional, helps compact */
  color: rgba(255,255,255,.9);
}
.check-row input[type="checkbox"]{
  margin-top: 1px;          /* aligns with first line of text */
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: rgba(73,245,178,.85); /* optional, looks nice on modern browsers */
}

.check-text a{
  color: rgba(120,220,255,.95);
  text-decoration: none;
  font-weight: 800;
}
.check-text a:hover{
  text-decoration: underline;
}


/* =========================================================
   7) FORMS / INPUTS / BUTTONS
   ========================================================= */
input, select, textarea, button{ font: inherit; }

label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
}

input, select, textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(59,214,255,.60);
  box-shadow: 0 0 0 3px rgba(59,214,255,.12);
}

button{
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59,214,255,.35);
  background: linear-gradient(180deg, rgba(59,214,255,.20), rgba(26,160,255,.12));
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight: 800;
}
button:hover{
  border-color: rgba(59,214,255,.65);
  box-shadow: 0 10px 30px rgba(59,214,255,.10);
}
button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Optional secondary button */
.secondary{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.secondary:hover{
  border-color: rgba(59,214,255,.45);
}


/* =========================================================
   8) TABLES (ADMIN PAGES)
   ========================================================= */
table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
th, td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  vertical-align: top;
}
th{
  text-align:left;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.05);
}
tr:hover td{
  background: rgba(255,255,255,.03);
}

/* =========================================================
   ADMIN TABLE FIXES (prevent global form styles breaking tables)
   ========================================================= */

.admin-page table{
  table-layout: auto;        /* keeps columns stable */
}

.admin-page th{ vertical-align: middle; }

.admin-page td{
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
/* Inputs/selects inside admin tables respect cell width */
.admin-page td input,
.admin-page td select{
  max-width: 100%;
  box-sizing: border-box;
}

/* keep short columns on one line */
.admin-orders-table td.col-id,
.admin-orders-table td.col-date,
.admin-orders-table td.col-user,
.admin-orders-table td.col-customer,
.admin-orders-table td.col-total,
.admin-orders-table td.col-pay{
  white-space: nowrap;
}

/* Undo global "width:100%" inside tables */
.admin-page table input,
.admin-page table select{
  width: auto;
  max-width: 100%;
}

/* Undo global button margin that pushes buttons down in table rows */
.admin-page table button{
  margin-top: 0;
  padding: 7px 12px;          /* a bit tighter for rows */
}

/* Make the tracking box a reasonable size */
.admin-page input[name="tracking_number"]{
  width: 160px;
}

/* Make status dropdown not huge */
.admin-page select[name="status"]{
  width: 150px;
}
/* Status/Tracking row should never collapse */
.admin-page .admin-rowform{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;   /* keeps it one line */
  min-width: 0;
}

/* Tracking must be allowed to grow */
.admin-page .admin-tracking{
  flex: 1 1 260px;    /* grows + has a real minimum */
  min-width: 260px;
  width: auto;
}

/* Keep select + pill from stretching weirdly */
.admin-page .admin-status{
  flex: 0 0 170px;
}

/* allow Status column to wrap normally */
.admin-orders-table td.col-status{
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.admin-page .admin-update-btn{
  margin-top: 0;
  white-space: nowrap;
  padding: 7px 12px;
}

.admin-page td small,
.admin-page td strong{
  display: block;
}



/* ================================
   ADMIN — Orders table polish
   ================================ */

/* zebra striping */
.admin-page table tbody tr:nth-child(odd) td{
  background: rgba(255,255,255,.02);
}
.admin-page table tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.045);
}
.admin-page table tbody tr:hover td{
  background: rgba(59,214,255,.06);
}

/* status pills */
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}
.status-pill::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

/* status variants */
.status-awaiting-payment{
  border-color: rgba(255, 209, 102, .45);
  background: rgba(255, 209, 102, .10);
}
.status-awaiting-payment::before{ background: rgba(255, 209, 102, .95); }

.status-payment-received{
  border-color: rgba(73,245,178,.45);
  background: rgba(73,245,178,.10);
}
.status-payment-received::before{ background: rgba(73,245,178,.95); }

.status-processing{
  border-color: rgba(59,214,255,.45);
  background: rgba(59,214,255,.10);
}
.status-processing::before{ background: rgba(59,214,255,.95); }

.status-shipped{
  border-color: rgba(160, 132, 255, .45);
  background: rgba(160, 132, 255, .12);
}
.status-shipped::before{ background: rgba(160, 132, 255, .95); }

.status-completed{
  border-color: rgba(73,245,178,.55);
  background: rgba(73,245,178,.14);
}
.status-completed::before{ background: rgba(73,245,178,.95); }

.status-cancelled,
.status-refunded{
  border-color: rgba(255,91,122,.55);
  background: rgba(255,91,122,.12);
}
.status-cancelled::before,
.status-refunded::before{ background: rgba(255,91,122,.95); }

/* make the select + pill look aligned */
.admin-page .status-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

/* Give the fixed-layout table real column widths */


.admin-orders-table th.col-id{ width: 60px; }
.admin-orders-table th.col-date{ width: 150px; }
.admin-orders-table th.col-user{ width: 180px; }
.admin-orders-table th.col-customer{ width: 150px; }
.admin-orders-table th.col-total{ width: 80px; }
.admin-orders-table th.col-pay{ width: 90px; }
.admin-orders-table th.col-status{ width: auto; } /* fills remaining space */

/* Admin Orders — nicer header row + table behavior (no giant void) */
.admin-orders-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
}
.admin-title{ margin:0; }
.admin-sub{
  margin-top:6px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.admin-sub a{ color: var(--accent); font-weight:700; }
.admin-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.admin-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  font-weight:800;
  text-decoration: none;
}
.admin-link:hover{
  border-color: rgba(59,214,255,.55);
  text-decoration:none;
}

/* override the "min-width:1400px" problem on the Orders page only */
.admin-orders-table--nice{
  min-width: 900px; /* compact but still scrolls on very small screens */
}
@media (max-width: 1200px){
  .admin-orders-table--nice{ min-width: 800px; }
}

/* Admin header row */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 14px;
}

.admin-topbar h2 {
  margin: 0 0 6px 0;
}

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

/* Make the header links look like your new pills */
/* .admin-link defined above */

/* ---------- Admin tables ---------- */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.admin-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}

.admin-table tbody tr:hover td {
  background: rgba(255,255,255,.03);
}

/* Make “Customer” column readable */
.admin-customer strong {
  display: block;
  font-size: 15px;
}

.admin-customer small {
  display: block;
  opacity: .85;
}

/* Keep some columns compact */
.col-id, .col-total, .col-pay {
  white-space: nowrap;
}

/* Status cell form spacing */
.admin-rowform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.admin-rowform select,
.admin-rowform input {
  width: 100%;
}

/* =========================================================
   9) FOOTER
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(5,9,20,.85);
  padding: 18px 0;
}
.footer-inner{
  text-align:center;
  color: var(--muted);
  font-size:.9rem;
}
.footer-links{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.footer-links span{ opacity:.5; }
.footer-note{ max-width: 860px; margin: 0 auto 10px; }
.footer-copy{ opacity:.7; }


/* =========================================================
   10) SHOP — TOP ROW HELPERS (optional classes)
   ========================================================= */
/* =========================================================
   11) SHOP — SIDEBAR LAYOUT + PRODUCT CARD GRID
   ========================================================= */

/* Full-width two-column layout: sidebar flush left + main content */
.shop-layout{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 80px);
}

/* ── Sidebar — flush to left edge ── */
.shop-sidebar{
  position: sticky;
  top: 60px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-sidebar-title{
  margin: 0;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  font-weight: 700;
}

.shop-sidebar-search{
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
}
.shop-sidebar-search::placeholder{ color: rgba(255,255,255,.35); }

.shop-sidebar-check{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  cursor: pointer;
  user-select: none;
}
.shop-sidebar-check span{
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  line-height: 1.2;
  white-space: nowrap;
}
.shop-sidebar-check input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.shop-sidebar-check input[type="checkbox"]:checked{
  background: #3bd6ff;
  border-color: #3bd6ff;
}
.shop-sidebar-check input[type="checkbox"]:checked::after{
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #050914;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Category links */
.shop-cat-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-cat-link{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  transition: background .15s;
}
.shop-cat-link:hover{
  background: rgba(255,255,255,.06);
}
.shop-cat-link.active{
  background: rgba(59,214,255,.10);
  color: #3bd6ff;
  font-weight: 700;
}
.shop-cat-count{
  font-size: .78rem;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}
.shop-cat-link.active .shop-cat-count{
  background: rgba(59,214,255,.15);
  color: #3bd6ff;
}

/* ── Mobile: collapse sidebar ── */
@media (max-width: 900px){
  .shop-layout{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .shop-sidebar{
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px;
  }
  .shop-main{
    padding: 16px 14px;
  }
  .shop-cat-list{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .shop-cat-link{
    padding: 6px 12px;
    font-size: .82rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
  }
  .shop-cat-link.active{
    border-color: rgba(59,214,255,.3);
  }
}

/* ── Main area ── */
.shop-main{
  padding: 20px 28px;
}
.shop-main-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.shop-main-title{
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.shop-result-count{
  color: var(--muted);
  font-size: .85rem;
}

/* ── Category sections (All Products view) ── */
.shop-category-section{
  margin-bottom: 32px;
}
.shop-section-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.shop-section-title{
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}
.shop-section-count{
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
}
.product-badge-inline{
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.product-badge-inline.in-stock{ color: #16a34a; background: rgba(22,163,74,.12); }
.product-badge-inline.low-stock{ color: #f59e0b; background: rgba(245,158,11,.12); }
.product-badge-inline.on-order{ color: #3bd6ff; background: rgba(59,214,255,.12); }
.product-badge-inline.out-of-stock{ color: #ef4444; background: rgba(239,68,68,.12); }

/* ── Product grid ── */
.shop-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
@media (min-width: 1400px){
  .shop-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .shop-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .shop-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .shop-grid{ grid-template-columns: 1fr; }
}

/* ── Product card — image-focused ── */
.product-tile{
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

/* Large image area (clickable) */
.product-tile-image{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
}
.product-tile-image img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .2s ease;
}
.product-tile:hover .product-tile-image img{
  transform: scale(1.04);
}

/* Stock badge overlay */
.product-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.product-badge.in-stock{
  background: rgba(16,185,129,.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.25);
}
.product-badge.low-stock{
  background: rgba(245,158,11,.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,.25);
}
.product-badge.out-of-stock{
  background: rgba(239,68,68,.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.2);
}
.product-badge.on-order{
  background: rgba(59,214,255,.10);
  color: #3bd6ff;
  border: 1px solid rgba(59,214,255,.2);
}

/* Card body (below image) */
.product-tile-body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-tile-name{
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-tile-sku{
  font-size: .78rem;
  color: var(--muted);
}
.product-tile-cat{
  font-size: .75rem;
  color: var(--muted);
  opacity: .7;
}

/* Price row */
.product-tile-price{
  margin-top: auto;
  font-size: 1rem;
  font-weight: 700;
}
.product-tile-price .sale-original{
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  font-size: .88rem;
  margin-right: 6px;
}
.product-tile-price .sale-price{
  color: #e53e3e;
}

/* Add-to-cart row */
.product-tile-actions{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.product-tile-actions select{
  flex: 1;
  min-width: 0;
  font-size: .82rem;
  padding: 6px 8px;
}
.product-tile-actions input[type=”number”]{
  width: 58px;
  padding: 6px 8px;
  font-size: .85rem;
}
.product-tile-actions button{
  margin-top: 0;
  padding: 7px 14px;
  font-size: .82rem;
  white-space: nowrap;
}

/* Sort bar above grid */
.shop-sort-bar{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.shop-sort-bar select{
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--text);
  font-size: .85rem;
}

/* Legacy compat (keep for modal references) */
.product-stock{
  color:var(--muted2);
  font-size:12px;
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal-backdrop.open{ display:flex; }

.modal{
  width: min(640px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(120,200,255,.28);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.modal-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal-title{ font-size: 18px; font-weight: 900; }
.modal-meta{ margin-top: 4px; color: var(--muted); font-size: 12px; }

.modal-close{
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}
.modal-close:hover{ border-color: rgba(59,214,255,.55); }

.modal-body{ padding: 14px; }
.modal-label{
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-text{
  margin-top: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.modal-actions{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.modal-actions button{ margin-top:0; }

.product-title-link{
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.product-title-link:hover{
  color: var(--accent);
  text-decoration: underline;
}

.modal-quickadd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.modal-price{
  font-size: 18px;
  font-weight: 900;
}
.modal-stock{
  color: var(--muted);
  font-size: 12px;
}
.modal-addform{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}
.modal-qtylabel{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.modal-qty{
  width: 84px;
}

#modalAddBtn{
  margin-top: 0; /* override global */
}

.cart-link{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  font-weight: 800;
}
.cart-link:hover{
  border-color: rgba(59,214,255,.55);
  text-decoration:none;
}

.cart-icon{ font-size: 16px; line-height: 1; }

.cart-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(59,214,255,.95);
  color: #06101a;
  transition: transform .18s ease, background-color .18s ease;
}

/* Toast (Added!) */
.toast{
  position: fixed;
  top: 64px;
  right: 18px;
  bottom: auto;     /* ✅ important */
  z-index: 10000;


  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,9,20,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);

  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 13px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

.toast-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(73,245,178,.95);
  box-shadow: 0 0 0 4px rgba(73,245,178,.12);
}

.toast small{
  color: rgba(255,255,255,.70);
  font-weight: 700;
}

.cart-badge.bump{
  transform: scale(1.25);
}

@media (max-width: 520px){
  .toast{ top: 92px; }
}

/* =========================================================
   Supplies I Use — customer grid
   ========================================================= */

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

@media (max-width: 1100px){
  .supplies-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px){
  .supplies-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .supplies-grid{ grid-template-columns: 1fr; }
}

.supply-card{
  display:flex;
  flex-direction:column;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: transform .12s ease, border-color .12s ease;
  color: inherit;
  text-decoration:none;
}

.supply-card:hover{
  transform: translateY(-1px);
  border-color: rgba(59,214,255,.45);
  text-decoration:none;
}

.supply-imgwrap{
  aspect-ratio: 1 / 1;           /* ✅ square */
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}

.supply-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.supply-body{
  padding: 12px;
  display:grid;
  gap: 6px;
}

.supply-name{
  font-weight: 900;
  line-height: 1.15;
}

.supply-desc{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.supply-domain{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

/* =========================================================
   12) SHOP — (OLDER) LIST STYLE SUPPORT (safe to keep)
   If you ever switch back to .product-grid/.product layout
   ========================================================= */
.product-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media(min-width: 860px){
  .product-grid{ grid-template-columns: 1fr 1fr; }
}
.product{
  display:flex;
  gap:12px;
  border: 1px solid rgba(120,200,255,.22);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.product-title,
.product-meta,
.tile-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
  margin-top:18px;
}

.tile{
  display:block;
  padding:16px;
  border-radius:16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration:none;
  color: inherit;
  position:relative;
  transition: transform .12s ease, border-color .12s ease;
}

.tile:hover{
  transform: translateY(-1px);
  border-color: rgba(0,200,255,0.45);
}

.tile-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:6px;
}

.tile-sub{
  opacity:.85;
  font-size:13px;
  line-height:1.35;
}

.tile-badge{
  position:absolute;
  top:14px;
  right:14px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,200,255,0.15);
  border: 1px solid rgba(0,200,255,0.25);
  font-weight:700;
  font-size:13px;
}

/* =========================================================
   13) Forgot Password
   ========================================================= */
.forgot-password{
  margin-top: 10px;
  text-align: right;
  font-size: 0.9rem;
}
.forgot-password a{
  color: var(--accent);
  text-decoration: none;
}
.forgot-password a:hover{
  text-decoration: underline;
}
/* =========================================================
   14) Home
   ========================================================= */
/* ---------- Home page ---------- */
.home-hero {
  text-align: center;
}

.home-hero-inner {
  padding: 18px 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.home-logo {
  width: min(240px, 70vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}

.home-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .2px;
}

.home-subtitle {
  margin: 0;
  opacity: .85;
  max-width: 56ch;
}

.home-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: inherit;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.btn.primary {
  background: rgba(0, 200, 255, .18);
  border-color: rgba(0, 200, 255, .35);
}

.btn.primary:hover {
  background: rgba(0, 200, 255, .24);
}

.btn.ghost {
  background: rgba(255,255,255,.03);
  opacity: .9;
}

.btn.small {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .92rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.orders-mini {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.orders-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.orders-mini-code {
  font-weight: 700;
}

.orders-mini-date {
  opacity: .75;
  font-size: .92rem;
  margin-top: 2px;
}

.orders-mini-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

a.orders-mini-row:hover {
  background: rgba(59,214,255,.08);
  border-color: rgba(59,214,255,.25);
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  font-size: .9rem;
}

/* Header logout button alignment */
.nav-logout {
  display: inline-flex;
  align-items: center;
}

.nav-logout button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  cursor: pointer;
}

.nav-logout button:hover {
  color: var(--accent);
  text-decoration: underline;
}

body.admin-page .container{ width: min(1100px, calc(100% - 28px)); }
body.admin-page .container.admin-wide{ width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

/* =========================================================
   Payments page
   ========================================================= */
.payments-hero { padding: 14px; }
.payments-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.payments-title { margin: 0; }
.payments-subtitle { margin: 6px 0 0 0; color: var(--muted); }

.badge-preferred {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

/* .payments-grid is defined below in checkout section */

.pay-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.02);
}

.pay-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  font-size: 18px;
}

.pay-head { flex: 1; min-width: 160px; }
.pay-name { font-weight: 900; line-height: 1.1; }
.pay-meta { font-size: .9rem; color: var(--muted); margin-top: 2px; }

.pay-body { margin-top: 10px; }

.payments-grid{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap:12px;
  margin-top:12px;
}

.payment-card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px;
}

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

.payment-method{
  font-weight: 900;
  letter-spacing: .2px;
}

.payment-handle{
  font-weight: 700;
  word-break: break-word;
}

.payment-note{
  margin-top: 6px;
  line-height: 1.35;
  word-break: break-word;
}

/* ── Shop Controls (sort, in-stock toggle) ── */
.shop-controls select:focus,
.shop-controls input:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

/* Smooth hide for filtered-out tiles */
.product-tile[style*="display: none"],
.product-tile[style*="display:none"] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
}
/* =========================================================
   ADMIN SIDEBAR
   ========================================================= */

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: rgba(10, 15, 25, .97);
  border-right: 1px solid rgba(255,255,255,.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand a { display: flex; align-items: center; gap: 8px; }
.sidebar-brand img { flex-shrink: 0; }

.sidebar-toggle {
  background: none; border: none; color: var(--muted, #888); font-size: 1.2rem; cursor: pointer; padding: 4px;
  display: none;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
}

.sidebar-group {
  padding: 4px 0;
}

.sidebar-group-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted, #666);
  padding: 10px 16px 4px;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.sidebar-link:hover {
  background: rgba(59, 214, 255, .08);
  color: #fff;
}

.sidebar-icon {
  width: 20px;
  text-align: center;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Admin content area — pushed right by sidebar */
.admin-content {
  margin-left: 220px;
  min-height: 100vh;
  padding-top: 8px;
  width: calc(100vw - 220px);
  max-width: calc(100vw - 220px);
  overflow-x: auto;
  box-sizing: border-box;
}

/* Hide old embedded admin nav actions — sidebar handles navigation now */
.admin-content .admin-actions { display: none; }
.admin-content .admin-topbar { flex-wrap: wrap; }
.admin-content .admin-topbar .admin-logout { display: none; }

/* Prevent horizontal scrollbar on body when sidebar is present */
body.admin-page { overflow-x: hidden; }

/* Mobile: sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.sidebar-overlay.open { display: block; }

.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 998;
  background: rgba(10,15,25,.9);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text, #fff);
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-content {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    padding-top: 50px; /* room for hamburger button */
    box-sizing: border-box;
  }
  body.admin-page .container.admin-wide {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .sidebar-toggle {
    display: block;
  }
  .sidebar-mobile-toggle {
    display: block;
  }
  /* Make admin tables scroll horizontally on mobile */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    min-width: 600px;
  }
  .admin-orders-table--nice {
    min-width: 700px;
  }
  /* Stack admin top bar elements on mobile */
  .admin-orders-top {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Dashboard cards — prevent overflow */
  .dash-actions-grid {
    grid-template-columns: 1fr;
  }
  /* Admin topbar — stack on mobile */
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }
  /* Subnav links (Pirate Ship CSV, etc.) */
  .admin-subnav {
    font-size: .75rem;
  }
  .admin-subnav .sep {
    display: none;
  }
  .admin-subnav a {
    display: block;
    padding: 2px 0;
  }
  /* Ensure h1/h2 don't overflow on small screens */
  .admin-content h1,
  .admin-content h2,
  .admin-title {
    font-size: 1.2rem;
    word-break: break-word;
  }
}

/* =========================================================
   ADMIN DASHBOARD — REDESIGN
   ========================================================= */

.dash-actions-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 20px;
}

.dash-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.dash-action-card:hover {
  border-color: rgba(59, 214, 255, .3);
  background: rgba(59, 214, 255, .04);
}

.dash-action-count {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  min-width: 48px;
  text-align: center;
}

.dash-action-info {
  flex: 1;
}
.dash-action-label {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 2px;
}
.dash-action-detail {
  font-size: .8rem;
  color: var(--muted, #888);
}

.dash-stats-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 20px;
}

.dash-stat-card {
  text-decoration: none;
  color: var(--text);
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  transition: border-color .15s;
}
.dash-stat-card:hover {
  border-color: rgba(255,255,255,.15);
}
.dash-stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted, #888);
  margin-bottom: 4px;
}
.dash-stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2px;
}
.dash-stat-sub {
  font-size: .8rem;
  color: var(--muted, #888);
}
