:root {
  --bg: #0a0f2c;
  --surface: #131a42;
  --surface2: #1b2358;
  --line: #29326b;
  --text: #e8ebff;
  --muted: #9aa3d0;
  --violet: #7c5cff;
  --teal: #14b8b6;
  --coral: #ff5d73;
  --orange: #ff8a3d;
  --sun: #ffb703;
  --mint: #22c55e;
  --ok: #4ade80;
  --err: #ff8fa3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text); line-height: 1.55; overflow-x: hidden;
  background: linear-gradient(180deg, #080c26 0%, #0f1438 55%, #140f34 100%);
  background-attachment: fixed; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
section { padding: 32px 0; }
h1, h2, h3 { line-height: 1.2; color: #fff; }
h2 { font-size: 1.4rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--coral), var(--violet)); }
.center-box h2::after { left: 50%; transform: translateX(-50%); }
::selection { background: var(--violet); color: #fff; }

/* nav */
.nav { background: linear-gradient(90deg, #0a1240, #2b2a8f 55%, #0b7a82); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { font-weight: 800; letter-spacing: .5px; font-size: 1.08rem; }
.logo span { background: linear-gradient(90deg, var(--sun), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 6px; align-items: center; font-size: .92rem; flex-wrap: wrap; }
.links a { padding: 6px 12px; border-radius: 999px; transition: background .2s; }
.links a:hover { background: rgba(255,255,255,.15); }
.badge { background: linear-gradient(135deg, var(--orange), var(--coral)); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: .8rem; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; text-align: left; padding: 76px 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(255,183,3,.3), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(124,92,255,.5), transparent 42%),
    radial-gradient(circle at 65% 95%, rgba(20,184,182,.45), transparent 45%),
    linear-gradient(135deg, #0b1245, #1f2d8a); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .45; animation: float 9s ease-in-out infinite; }
.hero::before { width: 220px; height: 220px; right: 8%; top: 12%; background: linear-gradient(135deg, var(--coral), var(--orange)); }
.hero::after { width: 140px; height: 140px; right: 24%; bottom: 8%; background: linear-gradient(135deg, var(--teal), var(--mint)); animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
.hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.eyebrow { display: inline-block; color: var(--sun); font-weight: 700; letter-spacing: 2px; font-size: .8rem; margin-bottom: 14px; background: rgba(255,183,3,.14); border: 1px solid rgba(255,183,3,.5); padding: 5px 14px; border-radius: 999px; }
.hero h1 { color: #fff; max-width: 680px; font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero p { max-width: 560px; margin-bottom: 28px; line-height: 1.6; opacity: .9; }
.hero-filter { display: flex; gap: 8px; background: var(--surface); padding: 10px; border-radius: 16px; max-width: 700px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.hero-filter select { width: 150px; flex: none; border: 0; background: #0d1236; }
.hero-filter input { flex: 1; border: 0; background: transparent; }
.hero-filter .btn { white-space: nowrap; }
.hero-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: .92rem; }
.hero-links a { color: #fff; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.hero-links a:hover { opacity: 1; color: var(--sun); border-color: var(--sun); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.search { display: flex; gap: 8px; max-width: 520px; }
.search input { flex: 1; }

/* forms */
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #0d1236; color: var(--text); }
input::placeholder, textarea::placeholder { color: #7f88bb; }
select option { background: #0d1236; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); border-color: transparent; }
input[type="file"] { padding: 9px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .9rem; color: #d6daff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* buttons */
.btn { display: inline-block; background: linear-gradient(135deg, var(--orange), var(--coral)); color: #fff; border: 0; padding: 12px 22px; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: .95rem; text-align: center; box-shadow: 0 8px 18px rgba(255,93,115,.3); transition: transform .18s, box-shadow .18s, filter .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255,93,115,.45); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn-dark { background: linear-gradient(135deg, #3a38b8, var(--violet)); box-shadow: 0 8px 18px rgba(124,92,255,.35); }
.btn-dark:hover { box-shadow: 0 12px 24px rgba(124,92,255,.5); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--violet); box-shadow: none; }
.btn-outline:hover { background: rgba(124,92,255,.18); box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: 18px; overflow: hidden; display: block; position: relative; box-shadow: 0 8px 26px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; animation: rise .5s both; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 2; background: linear-gradient(90deg, var(--orange), var(--coral), var(--violet)); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(124,92,255,.35); }
.card-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; background: linear-gradient(135deg, #1f2766, #3a1f5e); }
.grid .card:nth-child(3n+2) .card-img { background: linear-gradient(135deg, #0f4a52, #1f2766); }
.grid .card:nth-child(3n+3) .card-img { background: linear-gradient(135deg, #5e3a1f, #5e1f3a); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 14px; }
.card-body h3 { font-size: 1rem; margin: 7px 0; }
.price { font-weight: 800; color: var(--sun); }
.muted { color: var(--muted); font-size: .88rem; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* tags */
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #262e7a; color: #c7ccff; text-transform: uppercase; }
.tag.gold { background: #5a3d0a; color: #ffd27a; }
.tag.green { background: #0b4a2c; color: #7ef0b1; }
.tag.red { background: #5a1426; color: #ff9db0; }

/* categories, chips */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cat { background: var(--surface); border-radius: 18px; padding: 20px 14px; text-align: center; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(124,92,255,.35); }
.cat .ic { display: block; width: 62px; height: 62px; line-height: 62px; margin: 0 auto 10px; border-radius: 50%; font-size: 1.8rem; background: #232b6b; }
.cats .cat:nth-child(2) .ic { background: #5e3a1f; }
.cats .cat:nth-child(3) .ic { background: #0f4a52; }
.cats .cat:nth-child(4) .ic { background: #5e1f3a; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; transition: transform .15s, border-color .15s; }
.chip:hover { transform: translateY(-2px); border-color: var(--violet); }
.chip.on { background: linear-gradient(135deg, #3a38b8, var(--violet)); border-color: transparent; color: #fff; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border-radius: 16px; padding: 16px; font-weight: 600; border-left: 5px solid var(--violet); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.features .feature:nth-child(2) { border-left-color: var(--orange); }
.features .feature:nth-child(3) { border-left-color: var(--teal); }
.features .feature:nth-child(4) { border-left-color: var(--coral); }

/* detail pages */
.detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.detail-img { background: linear-gradient(135deg, #1f2766, #3a1f5e); border-radius: 18px; min-height: 280px; display: flex; align-items: center; justify-content: center; font-size: 5rem; overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.box { background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: 0 8px 26px rgba(0,0,0,.4); }
.facts { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; font-size: .92rem; color: #cfd5ff; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }

/* flash */
.flash { padding: 11px 14px; border-radius: 10px; margin: 14px 0; font-size: .92rem; }
.flash.ok { background: #0b3a24; color: #8af3b8; }
.flash.err { background: #4a1220; color: var(--err); }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface2); color: #c7ccff; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(124,92,255,.08); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border-radius: 16px; padding: 16px; border-top: 5px solid var(--violet); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.stat b { display: block; font-size: 1.5rem; color: #fff; }
.stats .stat:nth-child(2) { border-top-color: var(--orange); }
.stats .stat:nth-child(3) { border-top-color: var(--coral); }
.stats .stat:nth-child(4) { border-top-color: var(--teal); }
.stats .stat:nth-child(5) { border-top-color: var(--sun); }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.actions { display: flex; gap: 6px; }

/* pay / login boxes */
.center-box { max-width: 420px; margin: 48px auto; text-align: center; }
.spinner { width: 48px; height: 48px; border: 5px solid var(--line); border-top-color: var(--orange); border-radius: 50%; margin: 18px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.footer { background: linear-gradient(120deg, #060a22, #151b5e 60%, #07494f); color: #cfd5e6; padding: 28px 0; margin-top: 40px; font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--sun); }
.footer-base { margin-top: 16px; justify-content: space-between; align-items: center; }
.admin-spot { display: inline-block; width: 28px; height: 28px; cursor: default; opacity: 0; }

@media (max-width: 720px) {
  .detail { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .links { gap: 2px; font-size: .85rem; }
  .hero { padding: 52px 0; }
  .hero-filter { flex-direction: column; }
  .hero-filter select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .card { animation: none; }
}
@media print {
  .nav, .footer, .no-print { display: none; }
  body { background: #fff; color: #000; }
  .box, .table-wrap { box-shadow: none; background: #fff; color: #000; }
  th, td { color: #000; }
}
/* ===== logo + colourful menu ===== */
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform .3s; }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }

.links { gap: 8px; }
.nl { font-weight: 600; padding: 8px 15px !important; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s, box-shadow .18s, background .2s; }
.nl:hover { transform: translateY(-2px); color: #fff; }

.nl-home  { background: rgba(124,92,255,.22); border-color: rgba(167,139,250,.8); }
.nl-props { background: rgba(20,184,182,.22); border-color: rgba(45,212,191,.8); }
.nl-shop  { background: rgba(255,138,61,.22); border-color: rgba(255,170,100,.85); }
.nl-cart  { background: rgba(255,93,115,.22); border-color: rgba(255,130,150,.85); }

.nl-home:hover,  .nl-home.active  { background: linear-gradient(135deg, #7c5cff, #a78bfa); box-shadow: 0 6px 16px rgba(124,92,255,.55); }
.nl-props:hover, .nl-props.active { background: linear-gradient(135deg, #0ea5a4, #34d399); box-shadow: 0 6px 16px rgba(20,184,182,.55); }
.nl-shop:hover,  .nl-shop.active  { background: linear-gradient(135deg, #ff8a3d, #ffb703); box-shadow: 0 6px 16px rgba(255,138,61,.55); }
.nl-cart:hover,  .nl-cart.active  { background: linear-gradient(135deg, #ff5d73, #ff8a3d); box-shadow: 0 6px 16px rgba(255,93,115,.55); }
.nl.active { color: #fff; }
.nl .badge { background: #fff; color: #b4233a; margin-left: 4px; }

@media (max-width: 720px) {
  .nav .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; justify-content: center; }
  .links { justify-content: center; gap: 6px; }
  .nl { padding: 7px 12px !important; font-size: .82rem; }
}/* ===== Shop by category tiles ===== */
.cats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }

.cat {
  --c1: #7c5cff; --c2: #3a38b8;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 172px; padding: 26px 16px 22px;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(155deg, var(--c1), var(--c2));
  color: #fff; font-size: 1.04rem; font-weight: 700; text-align: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  transition: transform .22s, box-shadow .22s;
}
.cats .cat:nth-child(1) { --c1: #7c5cff; --c2: #3a38b8; }
.cats .cat:nth-child(2) { --c1: #ff8a3d; --c2: #e0457b; }
.cats .cat:nth-child(3) { --c1: #14b8b6; --c2: #2563eb; }
.cats .cat:nth-child(4) { --c1: #ec4899; --c2: #7c3aed; }
.cats .cat:nth-child(5) { --c1: #22c55e; --c2: #0e7490; }

.cat::before {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  right: -45px; top: -45px; background: rgba(255,255,255,.13);
}
.cat::after {
  content: "Browse \2192"; margin-top: 12px; padding: 5px 15px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.2);
  transition: background .2s, color .2s;
}
.cats .cat .ic,
.cats .cat:nth-child(n) .ic {
  position: relative; z-index: 1;
  width: 70px; height: 70px; line-height: 70px; margin: 0 0 10px;
  border-radius: 20px; font-size: 2rem;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.cat:hover { transform: translateY(-7px) scale(1.02); box-shadow: 0 20px 38px rgba(0,0,0,.5); }
.cat:hover::after { background: #fff; color: #1b2358; }

@media (max-width: 720px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { min-height: 150px; padding: 20px 10px 16px; font-size: .95rem; }
}