/* ================= Shell ================= */
.demo-banner {
  background: repeating-linear-gradient(135deg, #FFF3E6 0 14px, #FFEBD6 14px 28px); color: #7C3A00; font-size: 12.5px; font-weight: 600;
  text-align: center; padding: 6px 12px; border-bottom: 1px solid #F8D9B5;
}
.demo-banner a { color: #7C3A00; text-decoration: underline; margin-left: 8px; }
.topbar { background: var(--navy); color: #C9D5E6; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 12px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar .tb-right span { display: inline-flex; gap: 6px; align-items: center; }
.persona-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 600; transition: background var(--t);
}
.persona-pill:hover { background: rgba(255,255,255,.16); }
.persona-pill .pp-label { color: #9FB2CC; font-weight: 500; }
.persona-pill .avatar { width: 24px; height: 24px; font-size: 10.5px; }
.persona-dd .dd-menu { min-width: 340px; }
.persona-dd .dd-head { padding: 8px 10px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 400; }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--navy); flex-shrink: 0; }
.wordmark .wm-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.wordmark .wm-mark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 5px; background: var(--orange); }
.wordmark .wm-mark b { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.02em; position: relative; top: -4px; }
.wordmark .wm-text { font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.wordmark .wm-text span { color: var(--orange); }
.wordmark .wm-sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.search-box { flex: 1; max-width: 640px; position: relative; }
.search-box input {
  width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line-2); padding: 0 120px 0 46px; background: var(--bg); font-size: 15px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.search-box input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(245,124,0,.12); }
.search-box .sb-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box button[type=submit] { position: absolute; right: 4px; top: 4px; height: 38px; border-radius: 999px; padding: 0 18px; }
.hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-actions .ha-label { font-size: 11px; color: var(--muted); font-weight: 600; display: block; }
.hdr-account { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px; color: var(--navy); text-decoration: none !important; }
.hdr-account:hover { background: var(--bg); }
.hdr-account .ha-name { font-size: 13.5px; font-weight: 650; line-height: 1.15; }
.burger { display: none; }

.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.main-nav .container { display: flex; align-items: center; gap: 2px; height: 48px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; color: var(--navy); font-weight: 600; font-size: 14px; border-bottom: 2.5px solid transparent; text-decoration: none !important; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; }
.nav-link:hover, .nav-link.active { border-bottom-color: var(--orange); }
.nav-link .badge { padding: 0 7px; font-size: 11px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mega-wrap { position: relative; }
.mega {
  position: absolute; left: 0; top: 100%; width: min(1100px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-lg); padding: 24px; display: none; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; z-index: 500;
}
.mega-wrap:hover .mega, .mega-wrap.open .mega { display: grid; animation: fadeIn 140ms ease both; }
.mega h4 { margin: 0 0 8px; font-size: 14px; }
.mega h4 a { color: var(--navy); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 3px 0; font-size: 13.5px; color: var(--muted); }
.mega li a:hover { color: var(--orange); text-decoration: none; }
.mega .mega-cta { grid-column: span 1; background: var(--orange-light); border-radius: 12px; padding: 16px; }

.site-footer { background: var(--navy); color: #AFC0D6; margin-top: 40px; font-size: 14px; }
.site-footer .container { padding-top: 44px; padding-bottom: 24px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #D7E1EE; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.site-footer .wordmark { color: #fff; }

/* Mobile nav drawer */
.mnav { padding: 16px; overflow: auto; }
.mnav a, .mnav button.mlink { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }

@media (max-width: 1024px) {
  .topbar .tb-right .hide-md { display: none; }
  .hdr-account .ha-text { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .main-nav { display: none; }
  .hdr-in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search-box { order: 5; flex-basis: 100%; max-width: none; }
  .search-box input { height: 42px; padding-right: 92px; }
  .search-box button[type=submit] { height: 34px; padding: 0 14px; }
  .wordmark .wm-sub { display: none; }
  .wordmark .wm-text { font-size: 16px; }
}
@media (max-width: 640px) {
  .demo-banner { font-size: 11.5px; padding: 5px 10px; }
  .demo-banner a + a { display: none; }
  .hdr-account { display: none; }
  .hdr-in { gap: 6px; }
  .topbar-in { height: auto; padding: 6px var(--gutter); }
  .topbar .tb-right { gap: 10px; }
  .topbar .tb-right .hide-sm { display: none; }
  .persona-pill .pp-label { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .wordmark .wm-mark { width: 34px; height: 34px; }
}

/* ================= Home ================= */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(245,124,0,.25), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 18px; color: #C9D5E6; max-width: 560px; }
.hero .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.demo-searches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.demo-searches .ds-label { font-size: 12.5px; color: #9FB2CC; font-weight: 600; margin-right: 4px; }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; height: 30px; }
.hero .chip:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.hero-art { position: relative; height: 360px; }
.hero-art .ha-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px; width: 31%; }
.hero-art .ha-card .ptile { margin-bottom: 10px; }
.hero-art .ha-1 { left: 0; top: 50px; transform: rotate(-4deg); }
.hero-art .ha-2 { right: 0; top: 0; transform: rotate(3deg); }
.hero-art .ha-3 { left: 34.5%; top: 110px; transform: rotate(-1deg); z-index: 2; }
.hero-art .ha-mini { font-size: 13px; font-weight: 650; color: var(--navy); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; } .hero-art { display: none; } }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.trust-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.trust-item b { display: block; color: var(--navy); font-size: 14.5px; }
.trust-item span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .trust .container { grid-template-columns: 1fr 1fr; } }

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); text-decoration: none !important; transition: all var(--t); }
.cat-tile:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile .ct-img { width: 64px; flex-shrink: 0; }
.cat-tile b { display: block; font-size: 15px; }
.cat-tile span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1024px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-tiles { grid-template-columns: 1fr; } }

.svc-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-banner { border-radius: 16px; padding: 26px; color: #fff; min-height: 230px; display: flex; flex-direction: column; position: relative; overflow: hidden; text-decoration: none !important; transition: transform var(--t), box-shadow var(--t); }
.svc-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-banner h3 { color: #fff; font-size: 21px; margin-top: 14px; }
.svc-banner p { color: rgba(255,255,255,.82); font-size: 14px; }
.svc-banner .sb-link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.svc-banner .sb-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.svc-banner .sb-deco { position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.07); }
.svc-wind { background: linear-gradient(135deg, #0E4C6E, #0F9D8F); }
.svc-deco { background: linear-gradient(135deg, #13305A, #7C3AED); }
.svc-hb { background: linear-gradient(135deg, #166534, #0F9D8F); }
@media (max-width: 900px) { .svc-banners { grid-template-columns: 1fr; } }

.expert-band { background: var(--orange); color: #fff; border-radius: 18px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.expert-band h2 { color: #fff; margin: 0 0 6px; }
.expert-band p { margin: 0; color: rgba(255,255,255,.9); }
.expert-band .btn { background: #fff; color: var(--navy); }
.expert-band .btn:hover { background: var(--navy); color: #fff; }
.entry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.entry-card { display: flex; gap: 16px; align-items: center; padding: 22px; }
.entry-card .ec-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 760px) { .entry-cards { grid-template-columns: 1fr; } }

/* ================= Listing ================= */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filters .f-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filters .f-group:first-child { padding-top: 0; }
.filters .f-title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: none; border: 0; padding: 0; width: 100%; }
.filters .f-body { max-height: 240px; overflow: auto; }
.filters .f-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .f-sizes button { min-width: 40px; height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 12.5px; font-weight: 600; }
.filters .f-sizes button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters .f-sizes button:disabled { opacity: .35; cursor: default; }
.filters .f-colours { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .f-colours button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.filters .f-colours button.active { box-shadow: 0 0 0 2px var(--orange); }
.filters .f-colours button:disabled { opacity: .25; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.active-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-chips .chip { height: 28px; font-size: 12.5px; background: var(--orange-light); border-color: #F8D2A6; color: #7C3A00; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.plist { display: flex; flex-direction: column; gap: 12px; }
.synonym-line { background: var(--teal-light); border: 1px solid #B5E3DD; color: #0B5A52; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.synonym-line em { font-style: normal; font-weight: 700; }
.range-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; background: var(--purple-light); border: 1px solid #DCCBFB; margin-bottom: 18px; }
.range-banner b { color: #4C1D95; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .listing > .filters { display: none; }
  .filter-toggle { display: inline-flex; }
  .drawer .filters { position: static; max-height: none; padding: 0; }
}
@media (max-width: 520px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pcard-body { padding: 10px; } .pcard .p-name { font-size: 13.5px; } .plist .pcard .ptile { width: 110px; } }

/* ================= Product page ================= */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp-gallery .ptile { border-radius: 16px; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pdp-thumbs .ptile { border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.pdp-thumbs .ptile.active { border-color: var(--orange); }
.ptile.v1 svg.sil { transform: scaleX(-1); }
.ptile.v2 svg.sil { transform: scale(1.35) translateY(6%); }
.ptile.v3 svg.sil { transform: rotate(-12deg) scale(.9); }
.pdp-gallery > .ptile svg.sil { transition: transform 220ms ease; }
.pdp-info h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.pdp-info .p-brandline { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pdp-section { padding: 16px 0; border-top: 1px solid var(--line); }
.pdp-section .ps-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pdp-actions .btn-primary { flex: 1; min-width: 180px; }
.data-source { margin-top: 14px; padding: 10px 12px; background: #F1F5F9; border-radius: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.std-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--blue-light); color: #1E3A8A; font-weight: 600; font-size: 12.5px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 22px; } }

/* ================= Cart & checkout ================= */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.summary { position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 18px; font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .ptile { width: 84px; }
.cart-line .cl-name { font-weight: 650; color: var(--navy); }
.cart-line .cl-meta { font-size: 13px; color: var(--muted); }
.cart-line .cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-btn { height: 46px; border-radius: 8px; border: 0; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; }
.pay-apple { background: #000; color: #fff; }
.pay-google { background: #fff; color: #3C4043; border: 1px solid #DADCE0; }
.pay-paypal { background: #FFC439; color: #003087; font-style: italic; font-weight: 800; }
.pay-paypal span { color: #009CDE; }
.stripe-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; background: #fff; }
.stripe-box .sb-foot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-line { grid-template-columns: 64px minmax(0,1fr); } .cart-line .ptile { width: 64px; } .cart-line .cl-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* ================= Order confirmation / journey ================= */
.journey-card { border: 1px solid #DCCBFB; background: linear-gradient(180deg, #FBF9FF, #fff); }
.journey-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.p4-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 12.5px; }
.success-hero { text-align: center; padding: 18px 0 8px; }
.success-hero .sh-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.success-hero .sh-ico.amber { background: var(--amber-light); color: var(--amber); }

/* ================= Services ================= */
.svc-hero { color: #fff; padding: 56px 0; }
.svc-hero h1 { color: #fff; }
.svc-hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 640px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.process .pr-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.process .pr-step::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ================= Portal ================= */
.portal-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.portal-hero h1 { color: #fff; font-size: 28px; margin-bottom: 4px; }
.portal-hero .ph-sub { color: #C9D5E6; }
.portal-hero .kv dt { color: #9FB2CC; }
.portal-hero .kv dd { color: #fff; }
.portal-hero .acct-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 18px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa { display: flex; flex-direction: column; gap: 10px; padding: 18px; color: var(--navy); text-decoration: none !important; }
.qa b { font-size: 15px; }
.qa span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .portal-hero { grid-template-columns: 1fr; } .quick-actions { grid-template-columns: 1fr 1fr; } }
.kit-items { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.kit-items .ki { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.kit-items .ki .ptile { width: 34px; border-radius: 6px; }

/* ================= School shop ================= */
.school-header { background: var(--school-navy); color: #fff; border-bottom: 5px solid var(--school-gold); }
.school-header .container { display: flex; align-items: center; gap: 16px; height: 86px; }
.school-header .sh-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; }
.school-header .sh-sub { font-size: 12.5px; color: rgba(255,255,255,.75); }
.school-header .sh-sub b { color: var(--school-gold); }
.school-header .icon-btn { color: #fff; }
.school-header .icon-btn:hover { background: rgba(255,255,255,.12); }
.school-header .count-dot { background: var(--school-gold); color: var(--school-navy); }
.school-nav { background: #fff; border-bottom: 1px solid var(--line); }
.school-nav .container { display: flex; gap: 2px; height: 46px; align-items: center; overflow-x: auto; }
.school-nav .nav-link { height: 46px; }
.school-nav .nav-link:hover, .school-nav .nav-link.active { border-bottom-color: var(--school-gold); }
.countdown-banner { background: linear-gradient(90deg, var(--school-navy), #2B4FB3); color: #fff; border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.countdown-banner h3 { color: #fff; margin: 0 0 4px; }
.countdown { display: flex; gap: 8px; }
.countdown .cd-unit { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; min-width: 64px; padding: 8px 6px; text-align: center; }
.countdown .cd-unit b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--school-gold); line-height: 1.1; }
.countdown .cd-unit span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.countdown-banner.closed { background: linear-gradient(90deg, #475569, #64748B); }
.countdown-banner.upcoming { background: linear-gradient(90deg, #7C4A03, #B45309); }
.school-welcome { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.btn-school { background: var(--school-navy); color: #fff; }
.btn-school:hover { background: #172E6E; }
.btn-gold { background: var(--school-gold); color: var(--school-navy); }
.btn-gold:hover { background: #DBA504; }
.personalise-box { border: 2px dashed var(--school-gold); background: #FFFBEB; border-radius: 14px; padding: 18px; }
.hoodie-preview { background: #F1F5F9; border-radius: 16px; padding: 18px; }
.closed-overlay { position: relative; }
.closed-overlay .ptile, .closed-overlay .pdp-gallery { filter: grayscale(1); opacity: .6; }
@media (max-width: 640px) { .school-header .container { height: 72px; } .school-header .sh-name { font-size: 16px; } .school-welcome { grid-template-columns: 1fr; } .countdown .cd-unit { min-width: 54px; } }

/* ================= Admin ================= */
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 31px); }
.admin-side { background: var(--navy); color: #C9D5E6; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-side .wordmark { color: #fff; padding: 4px 8px 18px; }
.admin-side .wordmark .wm-sub { color: #9FB2CC; }
.admin-side .as-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6F87A8; font-weight: 700; padding: 14px 10px 6px; }
.admin-side a.as-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #C9D5E6; font-weight: 550; font-size: 14px; text-decoration: none !important; transition: background var(--t), color var(--t); }
.admin-side a.as-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side a.as-link.active { background: rgba(245,124,0,.16); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.admin-side a.as-link .badge { margin-left: auto; padding: 0 7px; font-size: 11px; }
.admin-side .as-star { margin-left: auto; color: var(--orange); }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 300; }
.admin-top .at-search { flex: 1; max-width: 460px; position: relative; }
.admin-top .at-search input { width: 100%; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 12px 0 36px; }
.admin-top .at-search .i { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.admin-top .persona-pill { background: var(--navy); border-color: var(--navy); }
.admin-content { padding: 24px; flex: 1; }
.admin-content .page { padding: 0 0 40px; }
.admin-burger { display: none; }
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-burger { display: inline-flex; }
  .admin-content { padding: 16px; }
  .admin-top { padding: 0 12px; }
}
.drawer .admin-side { display: block; position: static; height: 100%; }

.hub-drop {
  border: 2px dashed var(--line-2); border-radius: 16px; padding: 44px 20px; text-align: center; background: #FBFCFE; cursor: pointer; transition: all var(--t);
}
.hub-drop:hover { border-color: var(--teal); background: var(--teal-light); }
.hub-drop .hd-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--teal-light); color: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.file-pill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-pill .fp-ico { width: 42px; height: 42px; border-radius: 10px; background: #E7F5EC; color: #15803D; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; }
.big-counter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.big-counter .bc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.big-counter .bc b { display: block; font-size: 34px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.big-counter .bc span { font-size: 13px; color: var(--muted); font-weight: 600; }
.big-counter .bc.arrow { background: var(--teal-light); border-color: #B5E3DD; }
@media (max-width: 900px) { .big-counter { grid-template-columns: 1fr 1fr; } }
.raw-name { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #7C4A03; background: #FFF7ED; padding: 2px 6px; border-radius: 5px; }
.clean-name { font-weight: 650; color: var(--navy); }
.dup-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.dup-pair .dp-card { border: 2px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; cursor: pointer; transition: all var(--t); }
.dup-pair .dp-card.selected { border-color: var(--teal); background: var(--teal-light); }
.dup-pair .dp-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--teal); font-weight: 700; font-size: 12px; }
@media (max-width: 760px) { .dup-pair { grid-template-columns: 1fr; } .dup-pair .dp-mid { flex-direction: row; } }
.publish-done { text-align: center; padding: 36px 20px; }
.publish-done .pd-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

.arch { display: grid; gap: 14px; }
.arch-row { display: grid; gap: 14px; }
.arch-box { border-radius: 14px; padding: 16px; text-align: center; font-weight: 650; border: 1.5px solid; }
.arch-box small { display: block; font-weight: 500; font-size: 12.5px; margin-top: 4px; opacity: .85; }
.arch-arrow { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.arch-exp { background: var(--orange-light); border-color: #F8D2A6; color: #7C3A00; }
.arch-core { background: var(--blue-light); border-color: #C7DAFC; color: #1E3A8A; }
.arch-ai { background: var(--teal-light); border-color: #B5E3DD; color: #0B5A52; }
.arch-conn { background: var(--purple-light); border-color: #DCCBFB; color: #4C1D95; }
.arch-ext { background: #fff; border-color: var(--line-2); color: var(--navy); }

.qr-poster { width: 320px; max-width: 100%; margin: 0 auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.qr-poster .qp-head { padding: 18px; color: #fff; }
.qr-poster .qp-head b { display: block; font-size: 18px; }
.qr-poster .qp-body { padding: 18px; }
.qr-poster svg { width: 180px; height: 180px; margin: 0 auto 10px; }

.wysiwyg-bar { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; background: #F8FAFC; flex-wrap: wrap; }
.wysiwyg-bar button { border: 0; background: none; padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--navy); }
.wysiwyg-bar button:hover { background: #E7ECF3; }
.wysiwyg { border: 1px solid var(--line-2); border-radius: 0 0 10px 10px; padding: 18px; min-height: 260px; background: #fff; outline: none; }
.wysiwyg:focus { border-color: var(--blue); }

.side-panel-body { padding: 22px; overflow: auto; flex: 1; }
.side-panel-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.trace { list-style: none; margin: 0; padding: 0; counter-reset: tr; }
.trace li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.trace li::before { counter-increment: tr; content: counter(tr); width: 24px; height: 24px; border-radius: 50%; background: #EEF2F7; color: var(--muted); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.trace li.hit::before { background: var(--green); color: #fff; content: '\2713'; }
.trace li.skip { color: var(--muted); }
.trace li.skip b { color: var(--muted); }

@media (max-width: 860px) { #loginGrid { grid-template-columns: minmax(0, 1fr) !important; } }
.account-dd .dd-menu { left: auto; right: 0; min-width: 280px; }
.account-dd .hdr-account { background: none; border: 0; text-align: left; }

/* ================= Gate page ================= */
.gate { max-width: 560px; margin: 40px auto; text-align: center; }
.gate .g-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--purple-light); color: var(--purple); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* ================= Checklist ================= */
.req-row td:first-child { font-weight: 800; color: var(--navy); }
.tick { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ================= Demo FAB & tour ================= */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 1500; }
.fab-btn { height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(245,124,0,.45); transition: transform var(--t); }
.fab-btn:hover { transform: translateY(-2px); }
.fab-panel { position: absolute; right: 0; bottom: 60px; width: 330px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: fadeIn 160ms ease both; }
.fab-panel .fp-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fab-panel .fp-sec:last-child { border-bottom: 0; }
.fab-panel .fp-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.fab-panel .persona-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fab-panel .persona-list button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 8px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.fab-panel .persona-list button.active { border-color: var(--orange); background: var(--orange-light); }
.fab-panel .persona-list button small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.fab-panel .jump { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 640px) { .fab { right: 12px; bottom: 12px; } .fab-btn { height: 44px; padding: 0 14px 0 12px; } }

.tour-hl { position: fixed; z-index: 1700; border-radius: 12px; box-shadow: 0 0 0 4px var(--orange), 0 0 0 9999px rgba(11,31,58,.55); pointer-events: none; transition: all 260ms ease; }
.tour-card { position: fixed; z-index: 1710; width: 360px; max-width: calc(100vw - 24px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px; animation: fadeIn 200ms ease both; }
.tour-card .tc-step { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.tour-card h3 { margin: 6px 0 6px; }
.tour-card p { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.tour-card .progress { margin-bottom: 14px; height: 5px; }
.tour-card .progress > span { background: var(--orange); }
