/* BLOXWORK design system: the toy box look.
   Chunky panels with thick black borders and hard offset shadows,
   bright white cards on a near black page, one flat accent (electric
   cyan) used in blocks, never as a glow wash. A faint stud dot pattern
   nods to building blocks. The marketplace grid is the hero.
   Layout reserves space for images (fixed aspect ratios) so pages
   never jump while art or photos load. Every view opens at the top;
   the app never resets to Home on its own (place keeping in app.js). */
:root {
  --bg:#0a0e13; --ink:#f4f8fb; --mut:#9fb0bd;
  --acc:#00c2ff; --acc-deep:#0077b6; --acc-ink:#03222e;
  --card:#ffffff; --card-ink:#10161c; --card-mut:#4a5a66;
  --edge:#05070a; --line-d:#22303c;
  --err:#d92b1f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin:0; color:var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  min-height: 100vh;
}
/* faint stud dot pattern over the page, behind all content */
body::before {
  content:""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(rgba(0,194,255,.13) 1.7px, transparent 2.3px),
    radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 2px);
  background-size: 27px 27px, 27px 27px;
  background-position: 0 0, 13px 13px;
}
::selection { background: var(--acc); color: var(--acc-ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---------- top bar: bright white, thick black base ---------- */
.topbar {
  position: sticky; top:0; z-index: 40; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 16px; color:var(--card-ink);
  background:
    radial-gradient(rgba(5,7,10,.07) 1.6px, transparent 2.2px) 0 0 / 24px 24px,
    #ffffff;
  border-bottom: 3px solid var(--edge);
}
.logo { display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--card-ink); position:relative; z-index:1; }
.logo-mark { display:inline-flex; flex:0 0 auto; filter: drop-shadow(2px 2px 0 rgba(5,7,10,.28)); }
.logo-mark svg { width:36px; height:36px; display:block; }
.logo-word { font-weight:900; letter-spacing:.6px; font-size:21px; }
.logo-word b { color: var(--acc-deep); }
.logo-word.light { color:#fff; }
.footer .logo-word b { color: var(--acc); }
.topnav { display:flex; align-items:center; gap:16px; flex-wrap:wrap; position:relative; z-index:1; }
.topnav a { color:var(--card-ink); text-decoration:none; font-weight:700; font-size:14px; }
.topnav a:hover { color: var(--acc-deep); }
.topnav a.btn { color: var(--acc-ink); }

/* ---------- section navigation: one set of five sections ----------
   Desktop: the five sections ride on top as chunky text buttons
   beside the logo, the active one filled cyan. Phones: the same
   five sections ride at the bottom of the screen as an icon and
   word bar, each icon with its section name under it, the active
   cell filled cyan. app.js keeps the active state in sync across
   both bars (data-sec + .on). On phones the page is a dynamic
   viewport shell (see the media query below): the toolbar is the
   last row of the shell, in flow, so it stays locked to the
   visible bottom and never covers content. */
.topnav { gap: 10px; }
.tnav-btn {
  border:2.5px solid var(--edge); background:#fff; color:var(--card-ink);
  padding:7px 13px; border-radius:8px; font-weight:800; letter-spacing:.4px;
  text-transform:uppercase; font-size:13px;
  box-shadow: 3px 3px 0 var(--edge);
  transition: transform .1s ease, box-shadow .1s ease;
}
.topnav a.tnav-btn:hover { color: var(--card-ink); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--edge); }
.tnav-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--edge); }
.tnav-btn.on { background: var(--acc); color: var(--acc-ink); }
.topnav a.tnav-btn.on:hover { color: var(--acc-ink); }
.tnav-link { padding: 4px 2px; white-space: nowrap; }
.tabbar { display: none; }
/* .scrollcol wraps <main> and the footer. On desktop it renders as
   display:contents, so the page lays out exactly as if the wrapper
   were not there. On phones it becomes the scrolling middle row of
   the dynamic viewport shell (see the media query below). */
.scrollcol { display: contents; }
@media (max-width: 900px) {
  .topnav .tnav-btn, .topnav .tnav-link { display: none; }
  /* Dynamic viewport shell: the body is a column exactly as tall as
     the area the browser is really showing. 100dvh tracks iOS
     Safari's bars as they show and hide; the 100vh line before it
     is the fallback for browsers without dvh units. The toolbar is
     the last row of the column, in plain flow, locked to the
     visible bottom by construction. (The old position:fixed bar
     anchored to the taller layout viewport and sank below Safari's
     own address bar on real iPhones, icons peeking out half cut.)
     Content scrolls inside .scrollcol above the toolbar, and the
     toolbar takes real space in the column, so the old body
     padding reserve at the bottom is gone: no double gap. */
  body {
    display: flex; flex-direction: column;
    height: 100vh; height: 100dvh;
    /* The base rule's min-height:100vh must not clamp the shell:
       100vh is the tall layout viewport, so it would hold the
       column open past the visible area and push the toolbar
       back under Safari's floating pill. The shell height (the
       dvh line here, or the visualViewport size app.js sets)
       rules on its own. */
    min-height: 0;
    overflow: hidden;
  }
  .topbar, .demo-banner { flex: 0 0 auto; }
  .scrollcol {
    display: block; flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .tabbar {
    display: flex; flex: 0 0 auto; position: relative; z-index: 60;
    border-top: 3px solid var(--edge);
    background:
      radial-gradient(rgba(5,7,10,.07) 1.6px, transparent 2.2px) 0 0 / 24px 24px,
      #ffffff;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 66px; padding: 6px 2px 5px;
    color: var(--card-ink); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease;
  }
  .tabbar a svg {
    width: 25px; height: 25px; stroke: var(--card-ink); flex: 0 0 auto;
    transition: transform .12s ease;
  }
  .tab-lab {
    font-size: 10.5px; font-weight: 800; letter-spacing: .4px; line-height: 1;
    text-transform: uppercase; white-space: nowrap;
  }
  .tabbar a.on { background: var(--acc); color: var(--acc-ink); }
  .tabbar a.on svg { stroke: var(--acc-ink); }
  .tabbar a:active { background: #cdeffb; }
  .tabbar a:active svg { transform: scale(.9); }
  .tabbar a.on:active { background: var(--acc); }
}

/* ---------- messages inbox & settings ---------- */
.inbox-row { display: block; text-decoration: none; }
.inbox-row > span { display: block; }
.inbox-row .inbox-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.inbox-when { font-size: 12.5px; color: var(--card-mut); font-weight: 700; white-space: nowrap; }
.inbox-sub { font-size: 13.5px; color: var(--card-mut); margin-top: 2px; }
.inbox-preview { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2c3944; }
.order-card.opened { box-shadow: 0 0 0 4px var(--acc), 6px 6px 0 rgba(0,194,255,.20); }
.set-links { display: flex; flex-direction: column; gap: 9px; }
.set-links a { font-weight: 700; }

/* ---------- buttons: flat blocks, hard shadows, press down ---------- */
.btn {
  display:inline-block; border:2.5px solid var(--edge); background:#fff; color:var(--card-ink);
  padding:10px 18px; border-radius:8px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  cursor:pointer; text-decoration:none; font-size:14px;
  box-shadow: 4px 4px 0 var(--edge);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--edge); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--edge); }
.btn-red { background: var(--acc); color: var(--acc-ink); }
.btn-ghost { background: transparent; color:#fff; border-color:#fff; box-shadow: 4px 4px 0 rgba(0,0,0,.55); }
.card .btn-ghost, .order-card .btn-ghost, .profile-head .btn-ghost,
.step .btn-ghost, .notice .btn-ghost {
  color: var(--card-ink); border-color: var(--edge); box-shadow: 3px 3px 0 var(--edge);
}
.fee-block .btn-ghost { color: var(--acc-ink); border-color: var(--edge); background: rgba(255,255,255,.35); box-shadow: 4px 4px 0 var(--edge); }
.btn-small { padding:6px 12px; font-size:12.5px; border-radius:7px; }
.btn[disabled] { opacity:.55; cursor:default; }

.demo-banner { position:relative; z-index:1; background:#ffd23e; border-bottom:3px solid var(--edge); color:#221a00; padding:9px 16px; font-size:14px; font-weight:600; text-align:center; }

/* ---------- layout & panels: bright blocks, black edges ---------- */
.app { position:relative; z-index:1; max-width:1120px; margin:0 auto; padding:20px 16px 52px; min-height:60vh; }
.loading-card, .card {
  background: var(--card); color: var(--card-ink);
  border:2.5px solid var(--edge); border-radius:10px; padding:18px;
  box-shadow: 7px 7px 0 rgba(0,194,255,.22);
}
.error-card { background:#fff5f4; color:var(--card-ink); border:3px solid var(--err); border-radius:10px; padding:18px; box-shadow: 7px 7px 0 rgba(5,7,10,.8); }
.back-row { margin:2px 0 12px; }
.back-btn {
  display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:8px 14px;
  border:2.5px solid var(--edge); background:#fff; color:var(--card-ink); border-radius:8px;
  font-weight:800; cursor:pointer; font-size:15px; box-shadow: 4px 4px 0 var(--edge);
}
.back-btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--edge); }
.slim-line { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:4px 0 10px; font-size:15px; color:var(--mut); }
.slogan-inline { font-weight:800; color:#fff; border-left:4px solid var(--acc); padding-left:10px; }
.fee-badge {
  background: var(--acc); color: var(--acc-ink); border:2px solid var(--edge); border-radius:999px;
  padding:4px 12px; font-weight:800; font-size:13px; box-shadow: 3px 3px 0 var(--edge);
}
h1 { font-size:34px; font-weight:900; letter-spacing:-.4px; text-transform:uppercase; margin:6px 0 10px; line-height:1.08; color:inherit; }
h2 { font-size:22px; font-weight:850; margin:24px 0 10px; color:inherit; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; }
.controls { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.controls input[type="search"], .controls select, .home-search input[type="search"], .field input, .field textarea, .field select {
  width:100%; padding:11px 12px; border:2px solid var(--edge); border-radius:8px; font-size:15px;
  background:#fff; color:var(--card-ink);
}
.controls input[type="search"]:focus, .controls select:focus, .home-search input[type="search"]:focus, .field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--acc-deep); box-shadow: 3px 3px 0 var(--acc); outline:none;
}
.controls input[type="search"] { flex:1 1 260px; width:auto; }
.controls select { flex:0 1 200px; width:auto; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 14px; }
.chip {
  border:2px solid #33424f; background:#131a21; color:#e9f3f9; border-radius:999px;
  padding:7px 14px; font-weight:700; cursor:pointer; font-size:14px;
}
.chip:hover { border-color:#5b7183; }
.chip.on { background: var(--acc); border-color: var(--edge); color: var(--acc-ink); font-weight:800; box-shadow: 3px 3px 0 var(--edge); }

/* ---------- dev cards: the marketplace grid is the hero ---------- */
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap:16px; }

/* ---------- latest work gallery: profile page only ---------- */
.work-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:14px; }
.work-item {
  margin:0; background: var(--card); color: var(--card-ink);
  border:2.5px solid var(--edge); border-radius:10px; overflow:hidden;
  box-shadow: 5px 5px 0 rgba(0,194,255,.22);
}
.work-frame { aspect-ratio: 4 / 3; background:#0d141b; }
.work-frame img { width:100%; height:100%; object-fit:cover; display:block; }
.work-item figcaption { padding:9px 12px; font-size:14px; line-height:1.45; }
.work-item .work-remove { margin:0 12px 12px; }
@media (max-width: 560px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap:10px; } }

/* ---------- admin: big number cards, plain tables ----------
   The stat grid reuses the chunky card panel; the number is the
   hero, the label sits quiet under it. Tables ride inside cards
   and scroll sideways inside their own box on narrow screens, so
   the page itself never overflows at phone width. */
.stat-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:14px; margin:12px 0 4px; }
.stat-card { padding:14px 16px; }
.stat-num { font-size:32px; font-weight:900; line-height:1.05; }
.stat-lab { color: var(--card-mut); font-size:13.5px; font-weight:700; margin-top:4px; }
.admin-scroll { overflow-x:auto; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap:10px; } .stat-num { font-size:26px; } }
.dev-card {
  border:2.5px solid var(--edge); border-radius:10px; overflow:hidden;
  background: var(--card); color: var(--card-ink);
  display:flex; flex-direction:column;
  box-shadow: 7px 7px 0 rgba(0,194,255,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dev-card:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 rgba(0,194,255,.45); }
.dev-banner { position:relative; aspect-ratio: 4 / 1; background:#0d141b; overflow:hidden; border-bottom:2.5px solid var(--edge); }
.dev-banner img.cover { width:100%; height:100%; object-fit:cover; display:block; }
.dev-banner .banner-fallback { width:100%; height:100%; background: repeating-linear-gradient(45deg, #0d161d 0 18px, #14303f 18px 36px); }
.dev-body { padding:12px 14px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.dev-idrow { display:flex; align-items:center; gap:10px; }
.avatar { width:52px; height:52px; border-radius:50%; object-fit:cover; border:2.5px solid var(--edge); background:#dfe9ef; flex:0 0 auto; aspect-ratio:1; }
.avatar-fallback { width:52px; height:52px; border-radius:50%; border:2.5px solid var(--edge); object-fit:contain; background:#e8f6fd; padding:3px; flex:0 0 auto; }
.dev-name { font-weight:800; font-size:17px; text-decoration:none; color:var(--card-ink); }
.dev-name:hover { text-decoration:underline; }
.headline { color: var(--card-mut); font-size:14px; }
.app > .headline, .slim-line .headline { color: var(--mut); }
.meta-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; font-size:13px; color: var(--card-mut); }
.trust { background: var(--acc); color: var(--acc-ink); border:2px solid var(--edge); border-radius:6px; padding:2px 8px; font-weight:800; }
.stars { color: var(--acc-deep); font-weight:700; }
.price { font-weight:900; font-size:16px; color:var(--card-ink); min-width:0; }
.card-foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; row-gap:6px; }
.card-foot .trust { margin-left:auto; flex:0 0 auto; white-space:nowrap; }
.bio-snippet { font-size:14px; color:#33424e; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ---------- PRO crest & pill ---------- */
.pro-crest { display:inline-block; flex:0 0 auto; filter: drop-shadow(3px 3px 0 rgba(5,7,10,.35)); }
.pro-crest svg { display:block; }
.pro-crest-card { position:absolute; left:8px; top:8px; z-index:2; }
.pro-crest-card svg { width:30px; height:35px; }
.pro-crest-md svg { width:38px; height:45px; }
.pro-crest-lg svg { width:46px; height:54px; }
.pro-pill {
  display:inline-block; background: var(--acc); color: var(--acc-ink); border:2px solid var(--edge);
  border-radius:6px; padding:1px 7px; font-weight:900; font-size:11.5px; letter-spacing:.8px; vertical-align:middle;
}
.verified-pill {
  display:inline-block; background:#0d7a3f; color:#ffffff; border:2px solid var(--edge);
  border-radius:6px; padding:1px 7px; font-weight:900; font-size:11.5px; letter-spacing:.4px; vertical-align:middle;
}
.pro-panel { display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.pro-panel h2 { margin:0 0 6px; }
.pro-panel p { margin:0 0 10px; line-height:1.55; color:#2c3944; max-width:640px; }

/* ---------- BLOXWORK PRO: the big red button and its card ----------
   David's pick: red on purpose, big and impossible to miss, even
   though the site accent is cyan. The card is an in app overlay,
   never a native dialog; it floats above the bottom toolbar and
   fits a 390px phone with room to spare. */
.pro-big-btn {
  display:block; width:100%; padding:18px 16px;
  background:#d92b1f; color:#fff; font-size:23px; font-weight:900; letter-spacing:1.5px;
  border:3px solid var(--edge); border-radius:12px; cursor:pointer;
  box-shadow: 7px 7px 0 var(--edge);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pro-big-btn:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--edge); }
.pro-big-btn:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--edge); }
.pro-overlay {
  position:fixed; inset:0; z-index:90; background:rgba(5,7,10,.72);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.pro-card {
  background:var(--card); color:var(--card-ink); border:3px solid var(--edge); border-radius:12px;
  box-shadow: 9px 9px 0 rgba(0,194,255,.35);
  width:100%; max-width:430px; max-height:calc(100dvh - 110px); overflow-y:auto; padding:22px;
}
.pro-card-head { display:flex; align-items:center; gap:12px; }
.pro-feats { list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:11px; font-size:15.5px; line-height:1.45; }
.pro-feats li { position:relative; padding-left:20px; }
.pro-feats li::before { content:""; position:absolute; left:0; top:6px; width:9px; height:9px; background:var(--acc); border:2px solid var(--edge); }
.pro-price { font-size:20px; font-weight:900; margin:16px 0 0; }
.pro-id-line { margin:16px 0 0; line-height:1.55; color:#2c3944; }
.pro-card-btns { display:flex; gap:10px; margin-top:18px; }
.pro-card-btns .btn { flex:1; padding:14px; font-size:16px; }
.pro-card .btn-ghost { color:var(--card-ink); border-color:var(--edge); box-shadow: 3px 3px 0 var(--edge); }

/* ---------- featured ---------- */
.featured-empty {
  border:2.5px dashed #5b7183; border-radius:10px; padding:18px 20px; color:var(--mut); font-size:15px;
}
.founding-line { color:var(--mut); font-size:15px; margin:10px 2px 0; }

/* ---------- home showcase: search strip, category tiles, just joined, sell band ---------- */
.home-search { display:flex; gap:10px; margin:12px 0 0; }
.home-search input[type="search"] { flex:1 1 auto; width:auto; min-width:0; }
.home-search .btn { flex:0 0 auto; }
.cat-tiles { display:grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap:14px; margin-top:14px; }
.cat-tile {
  background:var(--card); color:var(--card-ink); border:2.5px solid var(--edge); border-radius:10px;
  padding:16px 10px 13px; display:flex; flex-direction:column; align-items:center; gap:10px;
  font-weight:800; font-size:15.5px; cursor:pointer; box-shadow: 5px 5px 0 rgba(0,194,255,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cat-tile:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 rgba(0,194,255,.45); }
.cat-tile img { height:64px; width:auto; max-width:100%; object-fit:contain; }
@media (max-width: 640px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }
.joined-row { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap:16px; margin-top:14px; }
@media (max-width: 640px) {
  .joined-row { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 10px; }
  .joined-row .dev-card { flex:0 0 78%; scroll-snap-align:start; }
}
.sell-band {
  margin-top:30px; background:var(--card); color:var(--card-ink); border:3px solid var(--edge);
  border-radius:12px; padding:22px; display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap; box-shadow: 7px 7px 0 rgba(0,194,255,.25);
}
.sell-band p { color:#2c3944; max-width:640px; }

/* ---------- fee block: the loudest block on the page ---------- */
.fee-block {
  border:3px solid var(--edge); border-radius:12px; padding:24px 22px; margin-top:30px;
  background: linear-gradient(160deg, #17c8ff, #0090d8);
  color: var(--acc-ink);
  box-shadow: 9px 9px 0 var(--edge);
}
.fee-block h2 { margin:0 0 8px; font-size:27px; font-weight:900; text-transform:uppercase; letter-spacing:-.3px; }
.fee-block .fee-lead { font-size:16.5px; line-height:1.6; color:#04303f; max-width:760px; margin:0 0 14px; }
.fee-block .fee-vs { font-size:15px; line-height:1.6; color:#04303f; max-width:820px; margin:14px 0 0; }
.fee-block .fee-vs strong { color:#02161d; }

/* ---------- forms & tables ---------- */
table.pkgs { width:100%; border-collapse:collapse; }
table.pkgs th, table.pkgs td { border:2px solid #c3d2dc; padding:10px; text-align:left; vertical-align:top; font-size:14px; }
table.pkgs th { background:#10161c; color:#fff; border-color:#10161c; }
.field { display:block; margin:12px 0; font-weight:600; font-size:14px; }
.field textarea { min-height:110px; }
/* Categories dropdown: a closed box showing the picks (or a plain
   placeholder), opening a list of the nine categories in the
   app's chunky language. Rows are full width tap targets with a
   clear picked state; the list scrolls inside itself and lives
   inside the scrolling column, so it can never run under the
   phone bottom toolbar. The picked names ride a hidden input, so
   nothing about the saved value changes. */
.catdd { position:relative; margin-top:6px; }
.catdd-box {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:11px 12px; border:2px solid var(--edge); border-radius:8px;
  background:#fff; color:var(--card-ink); font:inherit; font-size:15px; font-weight:600;
  cursor:pointer; text-align:left; box-shadow:3px 3px 0 rgba(0,194,255,.22);
}
.catdd-box:focus { border-color:var(--acc-deep); box-shadow:3px 3px 0 var(--acc); outline:none; }
.catdd-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catdd-label.is-empty { color:var(--card-mut); font-weight:500; }
.catdd-arrow {
  flex:0 0 auto; width:0; height:0;
  border-left:6px solid transparent; border-right:6px solid transparent; border-top:7px solid var(--card-ink);
}
.catdd-list {
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:80;
  background:#fff; border:2.5px solid var(--edge); border-radius:10px;
  box-shadow:6px 6px 0 rgba(0,194,255,.22);
  max-height:320px; overflow-y:auto; padding:6px;
}
.catdd-row {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; min-height:46px; padding:11px 10px; border:0; border-radius:7px;
  background:transparent; color:var(--card-ink); font:inherit; font-size:15px; font-weight:600;
  cursor:pointer; text-align:left;
}
.catdd-row:hover { background:#e6f7ff; }
.catdd-row.on { background:var(--acc); color:var(--acc-ink); font-weight:800; }
.catdd-check { visibility:hidden; font-weight:900; flex:0 0 auto; }
.catdd-row.on .catdd-check { visibility:visible; }
.check { display:flex; gap:10px; align-items:flex-start; margin:12px 0; font-size:14px; }
.check input { width:20px; height:20px; margin-top:2px; flex:0 0 auto; accent-color: var(--acc-deep); }
.form-error { color: var(--err); font-weight:700; min-height:20px; }
.notice { background:#e6f7ff; border:2px solid var(--edge); border-radius:8px; padding:12px 14px; font-size:14px; color:#0b2b38; }
/* Stripe card form: Stripe's own frame sits inside a chunky panel
   in the site family. The box keeps a fixed height from the first
   paint, so the page never jumps while Stripe.js loads. */
.card-el { border:2.5px solid var(--edge); border-radius:10px; background:#fff; padding:14px 12px; min-height:48px; box-sizing:border-box; box-shadow:4px 4px 0 rgba(0,194,255,.22); }
.card-note { font-size:13px; font-weight:500; color: var(--card-mut); margin:8px 0 0; }
.paybox { margin-top:12px; border:2.5px solid var(--edge); border-radius:10px; background:#e6f7ff; padding:12px; }
.paybox .card-el { box-shadow:none; }
.paynote { margin:0 0 10px; font-weight:600; color:#0b2b38; }
.fee-table { width:100%; border-collapse:collapse; font-size:14.5px; }
.fee-table th, .fee-table td { border:2px solid #c3d2dc; padding:10px 11px; text-align:left; }
.fee-table th { background:#10161c; color:#fff; border-color:#10161c; }
.fee-block .fee-table th, .fee-block .fee-table td { border-color: rgba(5,7,10,.55); background: rgba(255,255,255,.14); color:#03222e; }
.fee-block .fee-table th { background: rgba(5,7,10,.16); color:#02161d; }
.steps { display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:14px; }
.step {
  border:2.5px solid var(--edge); border-radius:10px; padding:16px;
  background: var(--card); color: var(--card-ink);
  box-shadow: 6px 6px 0 rgba(0,194,255,.22);
}
.step .n { font-size:26px; font-weight:900; color: var(--acc-deep); }
.step p { color: var(--card-mut); line-height:1.55; }
.order-card {
  border:2.5px solid var(--edge); border-radius:10px; padding:16px; margin:12px 0;
  background: var(--card); color: var(--card-ink);
  box-shadow: 6px 6px 0 rgba(0,194,255,.20);
}
.order-card p { color:#2c3944; line-height:1.55; }
.status { font-weight:800; text-transform:uppercase; font-size:12px; letter-spacing:.4px; color: var(--acc-deep); }
/* My Orders: the two sections stand from the first paint and this
   placeholder holds a card's worth of space under each heading, so
   the lists land without moving the page. */
.orders-loading { min-height:148px; margin:12px 0; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
input, select, textarea { color-scheme: light; }

/* ---------- order chat: chunky panel inside the order card ----------
   Fixed height message box, so polling never makes the page jump.
   The panel sits inside the white order card and follows the same
   thick border and hard shadow family as everything else. */
.chat { margin-top:14px; border:2.5px solid var(--edge); border-radius:10px; background:#eef7fc; padding:12px; }
.chat-head { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; margin-bottom:10px; }
.chat-head strong { font-size:15px; }
.chat-head span { font-size:12.5px; color:var(--card-mut); font-weight:600; }
.chat-msgs { height:190px; overflow-y:auto; border:2px solid var(--edge); border-radius:8px; background:#fff; padding:10px; display:flex; flex-direction:column; gap:8px; }
.chat-empty { color:var(--card-mut); font-size:13.5px; margin:auto 0; text-align:center; }
.chat-msg { max-width:82%; border:2px solid var(--edge); border-radius:10px; padding:7px 10px; background:#fff; align-self:flex-start; }
.chat-msg.mine { background:var(--acc); color:var(--acc-ink); align-self:flex-end; }
.chat-msg p { margin:2px 0 0; color:inherit; line-height:1.45; font-size:14px; overflow-wrap:break-word; }
.chat-meta { display:flex; gap:8px; align-items:baseline; font-size:11.5px; }
.chat-meta span { opacity:.75; font-weight:600; }
.chat-notice { background:#fff1ef; border:2px solid var(--err); border-radius:8px; padding:10px 12px; font-size:13.5px; font-weight:600; color:#5c130d; margin:10px 0 0; }
.chat-open, .chat-form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.chat-open input, .chat-form textarea { padding:10px; border:1.5px solid #bbb; border-radius:10px; font:inherit; font-size:14px; }
.chat-open input { flex:1; min-width:170px; }
.chat-open select { padding:10px; border:1.5px solid #bbb; border-radius:10px; font:inherit; font-size:14px; }
.chat-lab { font-weight:700; font-size:13.5px; display:flex; gap:8px; align-items:center; }
.chat-form textarea { flex:1; min-width:200px; min-height:44px; resize:vertical; }
.chat-as { font-size:12.5px; font-weight:700; color:var(--acc-deep); width:100%; }

/* ---------- footer ---------- */
.footer { position:relative; z-index:1; background:#07090c; color:#ddd; margin-top:34px; border-top:3px solid var(--acc); }
.footer-inner { max-width:1120px; margin:0 auto; padding:26px 16px; display:flex; gap:34px; flex-wrap:wrap; }
.foot-brand { display:flex; align-items:center; gap:11px; }
.foot-links { display:flex; flex-direction:column; gap:7px; }
.foot-links a { color:#ddd; text-decoration:none; font-size:14px; }
.foot-links a:hover { color: var(--acc); }
.foot-links strong { color:#fff; margin-bottom:4px; }
.foot-note { font-size:14px; color:#bbb; line-height:1.55; }
.foot-legal { max-width:1120px; margin:0 auto; padding:0 16px 22px; font-size:13px; color:#999; }

/* ---------- legal & profile ---------- */
.legal-doc h2 { font-size:17px; margin:18px 0 6px; text-transform:none; }
.legal-doc p { line-height:1.65; color:#e6eef4; }
.legal-doc .headline { color: var(--mut); }
.profile-head { border:2.5px solid var(--edge); border-radius:10px; overflow:hidden; background: var(--card); color: var(--card-ink); box-shadow: 7px 7px 0 rgba(0,194,255,.22); }
.profile-banner { aspect-ratio: 5 / 1; background:#0d141b; overflow:hidden; border-bottom:2.5px solid var(--edge); }
.profile-banner img { width:100%; height:100%; object-fit:cover; display:block; }
.profile-banner .banner-fallback { width:100%; height:100%; background: repeating-linear-gradient(45deg, #0d161d 0 18px, #14303f 18px 36px); }
.profile-main { padding:16px; }
.big-avatar { width:92px; height:92px; border-radius:50%; object-fit:cover; border:3px solid var(--edge); background:#dfe9ef; aspect-ratio:1; }

@media (max-width: 640px) {
  h1 { font-size:26px; }
  h2 { font-size:20px; }
  .fee-block { padding:18px 14px; }
  .fee-block h2 { font-size:22px; }
  .fee-table { font-size:13px; }
  .fee-table th, .fee-table td { padding:8px 6px; }
  .topnav a:not(.btn) { display:none; }
  .topnav a.btn { display:inline-block; }
  .chat-msg { max-width:94%; }
  .chat-msgs { height:170px; }
  .chat-form textarea { min-width:150px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
