/* ==========================================================================
   BeyondConnect — storefront, account & admin dashboard styles
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --accent: #f59e0b;
  --sale: #e11d48;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.2rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---- Header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 1.25rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none !important; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); font-size: 1.1rem; }
.search-form { position: relative; flex: 1; max-width: 560px; }
.search-form input { width: 100%; padding: .7rem 7.5rem .7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font: inherit; }
.search-form input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.search-form .btn { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 1.1rem; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; z-index: 60; }
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; color: var(--text); font-size: .92rem; }
.suggest a:hover { background: var(--primary-soft); text-decoration: none; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav a, .nav .link-button { padding: .5rem .8rem; border-radius: 999px; color: var(--text); font-weight: 500; font-size: .93rem; }
.nav a:hover, .nav .link-button:hover { background: var(--primary-soft); text-decoration: none; }
.cart-link { position: relative; font-weight: 600 !important; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--sale); color: #fff; font-size: .72rem; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px; padding: .4rem .6rem; font-size: 1.1rem; cursor: pointer; }
.category-bar { background: #fff; border-bottom: 1px solid var(--border); }
.category-bar .container { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: none; }
.category-bar a { white-space: nowrap; padding: .3rem .8rem; border-radius: 999px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.category-bar a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }

/* ---- Messages ---------------------------------------------------------- */
.messages { margin-top: 1rem; display: grid; gap: .5rem; }
.message { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid; font-size: .94rem; background: #fff; }
.message.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.message.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.message.warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.message.info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.message .close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; line-height: 1; }

/* ---- Hero -------------------------------------------------------------- */
.hero { margin-top: 1.5rem; border-radius: 24px; padding: clamp(2rem, 6vw, 4.5rem); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .22), transparent 40%), linear-gradient(135deg, #4338ca 0%, #7c3aed 55%, #db2777 100%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16ch; }
.hero p { max-width: 52ch; opacity: .92; font-size: 1.05rem; }
.hero-search { display: flex; gap: .5rem; max-width: 560px; margin-top: 1.5rem; background: #fff; padding: .4rem; border-radius: 999px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; padding: .7rem 1rem; font: inherit; background: transparent; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-tags { margin-top: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .88rem; }
.hero-tags a { color: #fff; background: rgba(255, 255, 255, .18); padding: .25rem .75rem; border-radius: 999px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.perk { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: center; }
.perk .ico { font-size: 1.6rem; }
.perk strong { display: block; font-size: .95rem; }
.perk span { color: var(--muted); font-size: .85rem; }

/* ---- Sections & grids -------------------------------------------------- */
.section { margin-top: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---- Cards & product cards -------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.4rem; }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h, 240) 80% 90%), hsl(calc(var(--h, 240) + 45) 80% 78%)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-icon { font-size: 3.4rem; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
.badge { position: absolute; top: .7rem; left: .7rem; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; }
.badge-sale { background: var(--sale); }
.badge-out { left: auto; right: .7rem; background: #475569; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-cat { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.card-body h3 { margin: 0; font-size: 1rem; }
.card-body h3 a { color: var(--text); }
.card-desc { margin: 0; color: var(--muted); font-size: .86rem; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin: .35rem 0 .6rem; }
.price-now { font-size: 1.25rem; font-weight: 800; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .92rem; }
.save-tag { color: var(--sale); font-weight: 700; font-size: .82rem; }

/* ---- Listing page ------------------------------------------------------ */
.page-head { margin: 1.8rem 0 1rem; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.toolbar form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.select, .input, select, textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel] {
  font: inherit; color: inherit;
}
.input, .select, textarea.input { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }
.select { width: auto; padding: .5rem .8rem; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.empty { text-align: center; padding: 3.5rem 1rem; }
.empty .big { font-size: 3rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .45rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: .9rem; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }

/* ---- Product detail ---------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.2rem; margin-top: 1.8rem; align-items: start; }
.detail-media { border-radius: 20px; overflow: hidden; aspect-ratio: 1; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h, 240) 80% 90%), hsl(calc(var(--h, 240) + 45) 80% 78%)); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .ph-icon { font-size: 8rem; }
.breadcrumb { font-size: .87rem; color: var(--muted); margin-bottom: .6rem; }
.price-big { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: 1rem 0; }
.price-big .price-now { font-size: 2.2rem; }
.price-big .price-old { font-size: 1.15rem; }
.pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill-sale { background: #ffe4e6; color: var(--sale); }
.pill-ok { background: #dcfce7; color: #166534; }
.pill-low { background: #fef3c7; color: #92400e; }
.pill-out { background: #e2e8f0; color: #475569; }
.buy-row { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; align-items: center; }
.buy-row .select { padding: .7rem .9rem; border-radius: 999px; border: 1.5px solid var(--border); }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; color: var(--muted); font-size: .92rem; }

/* ---- Cart & checkout --------------------------------------------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 84px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 1.8rem;
  background: linear-gradient(135deg, hsl(var(--h, 240) 80% 90%), hsl(calc(var(--h, 240) + 45) 80% 78%)); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-form { display: flex; gap: .4rem; align-items: center; margin-top: .4rem; }
.qty-form input { width: 70px; padding: .4rem .5rem; border: 1.5px solid var(--border); border-radius: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; }
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin: .4rem 0 1rem; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #7c3aed); border-radius: 999px; }
.radio-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.radio-list label { display: flex; gap: .6rem; align-items: center; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

/* ---- Forms & auth ------------------------------------------------------ */
.auth-wrap { display: grid; place-items: center; padding: 2.5rem 0; }
.auth-card { width: min(460px, 100%); padding: 2rem; }
.auth-card.wide { width: min(560px, 100%); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field .help { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.field .help ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.field-error, .errorlist { color: var(--danger); font-size: .84rem; margin: .3rem 0 0; padding: 0; list-style: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; }

/* ---- Customer dashboard & tables --------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1.1rem 1.2rem; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 1.7rem; font-weight: 800; margin-top: .2rem; }
.stat .sub { color: var(--muted); font-size: .82rem; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .7rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.status { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #ede9fe; color: #5b21b6; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.dash-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.side-nav { position: sticky; top: 90px; padding: .8rem; display: grid; gap: .2rem; }
.side-nav a { padding: .65rem .9rem; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .93rem; }
.side-nav a:hover { background: var(--bg); text-decoration: none; }
.side-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.side-nav hr { border: 0; border-top: 1px solid var(--border); margin: .5rem 0; width: 100%; }
.card-title { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--border); }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.05rem; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }

/* ---- Admin dashboard charts ------------------------------------------- */
.bars { display: flex; align-items: flex-end; gap: .7rem; height: 190px; padding: 1.2rem 1.3rem .4rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: .35rem; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, #818cf8, var(--primary)); border-radius: 8px 8px 3px 3px; min-height: 4px; }
.bar-val { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bar-label { font-size: .75rem; color: var(--muted); padding-bottom: .9rem; }
.status-row { display: grid; grid-template-columns: 100px 1fr 36px; align-items: center; gap: .8rem; padding: .45rem 1.3rem; font-size: .9rem; }
.meter { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.3rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
.list-plain li:last-child { border-bottom: 0; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { margin-top: 4rem; background: #0f172a; color: #cbd5e1; padding: 2.5rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.copyright { border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1rem; color: #94a3b8; font-size: .85rem; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .detail, .two-col, .dash-grid, .cols-2, .footer-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
  .side-nav hr { display: none; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .nav.open { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line > :last-child { grid-column: 2; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card-desc { display: none; }
}
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }


/* ==========================================================================
   Dark mode
   ========================================================================== */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: transparent; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 1.05rem; line-height: 1; cursor: pointer; color: var(--text);
}
.theme-toggle:hover { background: var(--primary-soft); }
@media (max-width: 760px) { .theme-toggle { width: auto; padding: 0 .9rem; align-self: flex-start; } }

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-soft: rgba(99, 102, 241, .18);
  --bg: #0b1020;
  --surface: #141b2f;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #27304a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

/* Links (low specificity so buttons and nav keep their own colours) */
:where([data-theme="dark"]) a { color: #a5b4fc; }

/* Surfaces that were hard-coded white */
[data-theme="dark"] .site-header { background: rgba(11, 16, 32, .9); }
[data-theme="dark"] .category-bar,
[data-theme="dark"] .perk,
[data-theme="dark"] .chip,
[data-theme="dark"] .suggest,
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span,
[data-theme="dark"] .message { background: var(--surface); }
[data-theme="dark"] .search-form input:focus { background: var(--surface); }
[data-theme="dark"] .chip.active { background: var(--primary); }
[data-theme="dark"] .pagination .current { background: var(--primary); color: #fff; }
[data-theme="dark"] .suggest a:hover { background: var(--primary-soft); }

/* Form controls */
[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .qty-form input { background: var(--surface); color: var(--text); border-color: var(--border); }

/* Buttons */
[data-theme="dark"] .btn-outline { color: #a5b4fc; border-color: #818cf8; }
[data-theme="dark"] .btn-ghost:hover { background: var(--surface); }
[data-theme="dark"] .btn-danger { color: #fca5a5; border-color: rgba(220, 38, 38, .4); }
[data-theme="dark"] .btn-danger:hover { background: rgba(220, 38, 38, .15); }

/* Tables and alerts */
[data-theme="dark"] .table tbody tr:hover { background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .alert-error { background: rgba(220, 38, 38, .15); border-color: rgba(220, 38, 38, .4); color: #fca5a5; }
[data-theme="dark"] .message.success { background: rgba(22, 163, 74, .15); border-color: rgba(22, 163, 74, .4); color: #86efac; }
[data-theme="dark"] .message.error   { background: rgba(220, 38, 38, .15); border-color: rgba(220, 38, 38, .4); color: #fca5a5; }
[data-theme="dark"] .message.warning { background: rgba(217, 119, 6, .15); border-color: rgba(217, 119, 6, .4); color: #fcd34d; }
[data-theme="dark"] .message.info    { background: rgba(59, 130, 246, .15); border-color: rgba(59, 130, 246, .4); color: #93c5fd; }

/* The green WhatsApp box on the order confirmation page uses an inline light colour */
[data-theme="dark"] .card[style*="#f0fdf4"] { background: rgba(22, 163, 74, .15) !important; border-color: rgba(22, 163, 74, .4) !important; }