/******************************************************************************
 * Script:        style.css   (frontend file used by mythiclayers.py's web app)
 * Version:       1.12
 * Created by:    Matthew Boucher
 * Email:         mrboucher99@gmail.com
 * Start date:    2026-09-04
 * Location:      frontend/style.css
 * Description:   All styling for the site: theme tokens, layout, cards, ad rail, order form, timelapse and verified pages.
 * Reads:         nothing
 * Writes:        nothing
 * Changelog (last 15):
 *   1.12  2026-09-06  Footer link style (Instagram).
 *   1.11  2026-09-05  Star rating colour on result cards.
 *   1.10  2026-09-05  Category subtab styles for the Verified page.
 *   1.09  2026-09-04  Orders page cards and the (ADMIN) marker.
 *   1.08  2026-09-04  Date-added note on cards.
 *   1.07  2026-09-04  Filters row aligned to the right, under the Search button.
 *   1.06  2026-09-04  Styles for the Filters toggle button.
 *   1.05  2026-09-04  Styles for the login page, the orders table and the nav auth links.
 *   1.04  2026-09-04  Veteran tag sits inside the nav, left of About; wraps above the links on phones.
   1.03  2026-09-04  Featured timelapse caption laid out as a row (info left, button right).
   1.02  2026-09-04  Main page: timelapse/how-it-works row pulled up under the hero (smaller top margin).
   1.01  2026-09-04  First versioned release with standard header.
 *****************************************************************************/
:root {
  --bg: #0b0d1c;
  --bg-2: #10132a;
  --surface: #161a36;
  --surface-2: #1d2244;
  --border: #2a3060;
  --border-strong: #3b4382;
  --text: #ecebf8;
  --muted: #9ea4cc;
  --gold: #e0b45a;
  --gold-2: #f3d27a;
  --gold-ink: #1a1400;
  --violet: #8b6cf6;
  --violet-2: #a68cff;
  --danger: #ff7b86;
  --shadow: 0 10px 30px rgba(3, 4, 16, .55);
  --ring: 0 0 0 3px rgba(224, 180, 90, .35);

  --makerworld: #35c46f;
  --printables: #ff8a4c;
  --crealitycloud: #4d8dff;
  --sketchfab: #2fc3e6;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f3fc;
  --bg-2: #ebe8f7;
  --surface: #ffffff;
  --surface-2: #f3f0fb;
  --border: #dcd7ee;
  --border-strong: #c4bde3;
  --text: #1b1738;
  --muted: #676a8f;
  --gold: #b8892c;
  --gold-2: #d4a545;
  --gold-ink: #ffffff;
  --violet: #6b4fd8;
  --violet-2: #8b6cf6;
  --danger: #c93a47;
  --shadow: 0 10px 30px rgba(50, 40, 110, .14);
  --ring: 0 0 0 3px rgba(184, 137, 44, .3);
  --makerworld: #1f9e56;
  --printables: #e2662a;
  --crealitycloud: #2f6fe0;
  --sketchfab: #1a9fbf;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font: 15px/1.5 var(--font-body);
  color: var(--text); background: var(--bg);
  position: relative;
}

/* Layered backdrop: soft violet/gold glows plus faint horizontal "print layer" lines. */
.layers-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(139, 108, 246, .28), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(224, 180, 90, .16), transparent 60%),
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(255, 255, 255, .025) 11px 12px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
:root[data-theme="light"] .layers-bg {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(139, 108, 246, .18), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(212, 165, 69, .16), transparent 60%),
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(40, 30, 90, .035) 11px 12px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { padding: 26px 0 18px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand-row .nav { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo { filter: drop-shadow(0 4px 12px rgba(139, 108, 246, .45)); }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .04em;
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 55%, var(--violet-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark em { font-style: normal; color: var(--violet-2); -webkit-text-fill-color: var(--violet-2); }
.tagline { margin: 10px 0 18px; color: var(--muted); max-width: 640px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--gold); cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle .sun { display: none; } .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

/* Search bar */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 6px 6px 6px 14px; box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--gold); box-shadow: var(--shadow), var(--ring); }
.search-icon { color: var(--muted); flex: none; }
#q {
  flex: 1; min-width: 0; font: 500 17px/1.2 var(--font-body); padding: 10px 6px;
  border: 0; outline: 0; background: transparent; color: var(--text);
}
#q::placeholder { color: var(--muted); opacity: .8; }
#q::-webkit-search-cancel-button { filter: invert(.6); }

button { font-family: inherit; font-size: 15px; cursor: pointer; border-radius: 10px; }
.btn-primary {
  padding: 11px 22px; border: 0; font-weight: 600; color: var(--gold-ink);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 6px 18px rgba(224, 180, 90, .28);
  transition: transform .08s, filter .08s;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost {
  padding: 9px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-ghost:disabled { opacity: .4; cursor: default; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; margin-top: 14px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.sources legend { display: none; }
.sources label {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  cursor: pointer; user-select: none; font-size: 13px; color: var(--muted); transition: border-color .12s, color .12s;
}
.sources label:has(input:checked) { color: var(--text); border-color: var(--border-strong); }
.sources input { accent-color: var(--gold); margin: 0; }
.control-group { display: flex; gap: 14px; }
.select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.select select {
  font-family: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}

/* Status chips */
.status { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; font-size: 13px; }
.chip {
  padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip b { color: var(--text); font-weight: 600; }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.err { border-color: var(--danger); color: var(--danger); }
.chip.err b { color: var(--danger); }

/* Results */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-bottom: 8px; }
.card {
  display: flex; flex-direction: column; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  position: relative; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--src, var(--violet)); opacity: .9;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card.makerworld { --src: var(--makerworld); }
.card.printables { --src: var(--printables); }
.card.crealitycloud { --src: var(--crealitycloud); }
.card.sketchfab { --src: var(--sketchfab); }
.thumb-wrap { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.card:hover .thumb { transform: scale(1.04); }
.thumb.missing { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.paid-flag {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.body { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.title {
  font-weight: 600; line-height: 1.3; font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.author { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stats { display: inline-flex; gap: 10px; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--src, var(--violet)); background: color-mix(in srgb, var(--src, var(--violet)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--src, var(--violet)) 40%, transparent);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--src, var(--violet)); }
.badge.makerworld { --src: var(--makerworld); }
.badge.printables { --src: var(--printables); }
.badge.crealitycloud { --src: var(--crealitycloud); }
.badge.sketchfab { --src: var(--sketchfab); }

/* Empty / hero states */
.hero, .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 56px 20px; }
.hero-glyph { font-size: 34px; color: var(--gold); margin-bottom: 8px; }
.hero h2 { font-family: var(--font-display); font-weight: 600; color: var(--text); margin: 0 0 8px; font-size: 24px; letter-spacing: .03em; }
.hero p { margin: 0 auto; max-width: 480px; }
.empty.error { color: var(--danger); }

/* Pager + footer */
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 26px 0 10px; }
.page-label { color: var(--muted); font-size: 14px; min-width: 70px; text-align: center; }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: var(--muted); font-size: 12px; padding: 26px 22px 36px; }
.site-footer .dot { opacity: .5; }

@media (max-width: 640px) {
  .wordmark { font-size: 21px; }
  .btn-primary { padding: 10px 14px; }
  .controls { justify-content: flex-start; }
}

/* Nav (shared) */
.nav { display: inline-flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--gold); }
.nav .theme-toggle { margin-left: 6px; }

/* Home page */
.home { padding-bottom: 20px; }
.home-hero { text-align: center; padding: 28px 0 10px; }
.home-hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); letter-spacing: .03em; margin: 6px 0 14px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 55%, var(--violet-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 720px; margin: 0 auto 26px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.home-search { max-width: 720px; margin: 0 auto; text-align: left; }
.hero-links { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.hero-links a { color: var(--gold); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); }
.hero-links a:hover { border-bottom-color: var(--gold); }

.home-section { margin: 52px auto 0; max-width: 960px; }
.home-section h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; font-size: 24px; margin: 0 0 18px; text-align: center;
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li {
  counter-increment: step; position: relative; padding: 18px 18px 18px 58px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--muted); line-height: 1.5;
}
.steps li b { color: var(--text); display: block; margin-bottom: 4px; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
}
.source-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.source-card {
  position: relative; overflow: hidden; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.source-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--src, var(--violet)); }
.source-card.makerworld { --src: var(--makerworld); }
.source-card.printables { --src: var(--printables); }
.source-card.crealitycloud { --src: var(--crealitycloud); }
.source-card.sketchfab { --src: var(--sketchfab); }
.source-card h3 { margin: 12px 0 6px; font-size: 16px; }
.source-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cta { text-align: center; padding-bottom: 10px; }
.btn-link { display: inline-block; text-decoration: none; padding: 12px 26px; }

/* Layout with right-hand ad rail */
.wrap.layout { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; padding-right: 16px; }
.layout > main { min-width: 0; width: 100%; max-width: 1240px; margin: 0 auto; }
.ad-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; justify-self: end; width: 240px; }
.ad-rail-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.ad {
  display: block; text-decoration: none; color: inherit; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ad::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ad-accent, var(--gold)); z-index: 1; }
.ad:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.ad-img { display: block; width: 100%; height: auto; background: var(--surface-2); }
.ad.image-only { background: transparent; border: 0; }
.ad.image-only::before { display: none; }
.ad.image-only .ad-img { border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.ad.icon { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.ad-icon { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex: none; background: #ffffff; }
.ad-name { font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--text); }
.ad.icon:hover .ad-name { color: var(--ad-accent, var(--gold)); }
.ad-body { padding: 10px 14px 13px; }
.ad-label { font-weight: 600; font-size: 14px; }
.ad-headline { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ad-cta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ad-accent, var(--gold)); }
@media (max-width: 960px) {
  .wrap.layout { grid-template-columns: minmax(0, 1fr); padding-right: 22px; }
  .ad-rail { position: static; width: auto; justify-self: stretch; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); justify-content: center; margin-top: 28px; }
  .ad-rail-label { grid-column: 1 / -1; }
}

/* Home hero with illustration on the left */
.home-hero.split {
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 36px; align-items: center;
  text-align: left; padding: 18px 0 10px; max-width: 1100px; margin: 0 auto;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 18px 34px rgba(5, 6, 26, .35)); }
.home-hero.split h1 { margin-top: 0; }
.home-hero.split .lede { margin-left: 0; margin-right: 0; }
.home-hero.split .home-search { margin: 0; }
.hero-text { min-width: 0; }
@media (max-width: 860px) {
  .home-hero.split { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-art img { max-width: 360px; }
  .home-hero.split .lede { margin: 0 auto 26px; }
  .home-hero.split .home-search { margin: 0 auto; }
}

/* Result card actions (View / Buy) */
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.btn-view, .btn-buy {
  flex: 1; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 9px;
  transition: filter .08s, transform .08s, border-color .12s;
}
.btn-view { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.btn-view:hover { border-color: var(--border-strong); }
.btn-buy { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 12px rgba(224, 180, 90, .25); }
.btn-buy:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Order page */
.order-page { max-width: 1000px; padding-bottom: 30px; }
.order-title { font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; font-size: 30px; margin: 10px 0 6px; }
.order-intro { color: var(--muted); max-width: 720px; margin: 0 0 22px; }
.order-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.order-model { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.order-model .thumb-wrap { aspect-ratio: 4 / 3; }
.order-model .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.order-model .meta { padding-top: 8px; }
.model-link { color: var(--gold); text-decoration: none; font-size: 12px; font-weight: 600; }
.order-hint { margin: 0; padding: 10px 14px 14px; color: var(--muted); font-size: 13px; }
.order-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 22px 20px; }
.order-form fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.order-form legend { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; font-size: 17px; padding: 0; margin-bottom: 10px; color: var(--gold); }
.order-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label, .field .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .opt { font-weight: 400; opacity: .8; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field select, .field textarea {
  font: 15px/1.4 var(--font-body); color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: var(--ring); }
.field textarea { resize: vertical; }
.choices { display: flex; gap: 18px; flex-wrap: wrap; }
.choices label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.choices input { accent-color: var(--gold); }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.form-actions .btn-link { padding: 9px 18px; }
.form-error { color: var(--danger); font-size: 14px; margin: 12px 0 0; }
.order-done { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.order-done h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; margin: 6px 0 10px; }
.order-done p { color: var(--muted); }
@media (max-width: 760px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-model { position: static; }
}

/* Order page: details pulled from the source site */
.specs { border-top: 1px solid var(--border); padding: 12px 14px 14px; }
.specs-title { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; font-size: 14px; margin: 0 0 8px; color: var(--gold); }
.specs-status { color: var(--muted); font-size: 13px; }
.specs-status.err { color: var(--danger); }
.specs-grid { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.specs-grid dt { color: var(--muted); }
.specs-grid dd { margin: 0; font-weight: 500; }
.specs-more { margin-top: 10px; font-size: 13px; }
.specs-more summary { cursor: pointer; color: var(--muted); font-weight: 500; }
.profile { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.profile:last-child { border-bottom: 0; }
.profile-name { font-weight: 600; }
.profile-bits { color: var(--muted); font-size: 12px; margin-top: 2px; }
.profile-fils { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fil { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.swatch { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.file-list { margin: 6px 0 0; padding-left: 18px; }
.file-list li { margin: 3px 0; }
.file-dims, .file-size { color: var(--muted); font-size: 12px; }
.specs-notes { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.specs-notes:empty { display: none; }
.field input[readonly] { color: var(--muted); background: var(--surface-2); }

/* Order page preview */
.order-model .thumb-wrap { aspect-ratio: 4 / 3; background: var(--surface-2); }
.order-model .preview { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--surface-2); }
.order-model .preview.cover { object-fit: cover; }

/* Estimated cost */
.estimate-field input[readonly] { color: var(--text); font-weight: 600; font-size: 17px; background: var(--surface-2); border-color: var(--gold); }
.estimate-note { color: var(--muted); font-size: 12px; }
.estimate-breakdown { margin-top: 6px; font-size: 13px; }
.estimate-breakdown summary { cursor: pointer; color: var(--gold); font-weight: 500; }
.est-section { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.est-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.est-row:last-child { border-bottom: 0; }
.est-prices .est-row span:last-child { color: var(--text); }
.est-prices .est-row:last-child { color: var(--gold); }
.est-prices .est-row:last-child span:last-child { color: var(--gold); font-size: 15px; }

/* Print-time chip on result thumbnails */
.time-chip {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(11, 13, 28, .78); color: #f3d27a; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); white-space: nowrap;
}
.no-time { font-size: 11px; color: var(--muted); }
.hidden-note { color: var(--muted); }

/* Colour chip on result thumbnails */
.color-chip {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(11, 13, 28, .78); color: #c9bfff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.specs-grid .swatch { margin-right: 4px; vertical-align: -1px; }
.fil-type { color: var(--muted); font-weight: 400; font-size: 12px; }

/* Verified build badge (owner's verified_builds.txt) */
.verified-badge {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #3ddc84, #1f9e56); color: #06130b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 255, 255, .85);
}
.verified-badge.inline { position: static; width: 18px; height: 18px; font-size: 11px; display: inline-grid; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.card.is-verified { border-color: #2f9e5a; }
.chip.legend { color: var(--text); }
.verified-explain { margin-top: 18px; font-size: 14px; }
.verified-line { margin: 0; padding: 10px 14px 0; font-size: 13px; color: var(--text); }

/* "Veteran owned & operated" tag in the main page header */
.veteran-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.veteran-star { color: var(--gold); font-size: 13px; line-height: 1; }
.nav .veteran-tag { margin-right: 8px; }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav .veteran-tag { width: 100%; justify-content: center; margin: 0 0 6px; }
}

/* Timelapse page */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.video-card.highlight { border-color: var(--gold); box-shadow: var(--ring); }
.video-wrap { background: #000; aspect-ratio: 16 / 9; }
.video-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.video-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.video-card .meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-top: 6px; }
.timelapse-chip {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 10px; padding: 5px 10px; border-radius: 999px; width: fit-content;
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--violet-2);
  background: color-mix(in srgb, var(--violet) 14%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
}
.timelapse-chip:hover { border-color: var(--violet-2); }

/* Featured timelapse on the main page */
.featured-video { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr); gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.featured-video .video-wrap { border-radius: 10px; overflow: hidden; }
.featured-caption { display: flex; flex-direction: column; gap: 6px; }
.featured-caption .title { font-family: var(--font-display); font-size: 20px; letter-spacing: .02em; -webkit-line-clamp: unset; display: block; }
.featured-meta { color: var(--muted); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.featured-all { margin-top: 10px; align-self: flex-start; }
.converting { width: 100%; height: 100%; display: grid; place-items: center; color: #c9c5e6; font-size: 14px; background: #111; }
@media (max-width: 760px) { .featured-video { grid-template-columns: 1fr; } }

/* Main page: latest timelapse and "How it works" side by side */
.home-duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; margin: 22px auto 0; max-width: 1180px; }
.home-duo:has(#featured-timelapse[hidden]) { grid-template-columns: 1fr; }
.duo-col h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; font-size: 22px; margin: 0 0 14px; text-align: left; }
.featured-video.stacked { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
.featured-video.stacked .title { font-size: 18px; }
.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.steps-row li { padding: 44px 12px 14px 12px; font-size: 12.5px; line-height: 1.45; }
.steps-row li b { font-size: 13.5px; margin-bottom: 6px; }
.steps-row li::before { left: 12px; top: 12px; width: 26px; height: 26px; font-size: 13px; }
@media (max-width: 1100px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-duo { grid-template-columns: 1fr; } .duo-col h2 { text-align: center; } }
@media (max-width: 480px) { .steps-row { grid-template-columns: 1fr; } }


/* Featured timelapse caption: info left, button right */
.featured-caption.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.featured-caption.row .featured-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 220px; }
.featured-caption.row .featured-all { margin-top: 0; align-self: center; flex: none; }

/* Login page and orders table */
.auth-links { display: inline-flex; gap: 6px; }
.login-page { max-width: 520px; padding-bottom: 40px; }
.login-card .order-form { padding-top: 14px; }
.orders-page { max-width: 1240px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table th, .orders-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.orders-table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table a { color: var(--gold); text-decoration: none; }
.orders-table .empty { padding: 30px; }

/* Filters toggle under the search box */
.filters-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.filters-hint { text-align: right; }
.btn-filters {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border); transition: border-color .12s, color .12s, background .12s;
}
.btn-filters .filters-check { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: var(--surface-2); color: transparent; border: 1px solid var(--border-strong); }
.btn-filters.on { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; box-shadow: 0 4px 12px rgba(224, 180, 90, .25); }
.btn-filters.on .filters-check { background: rgba(0, 0, 0, .18); color: var(--gold-ink); border-color: transparent; }
.btn-filters:hover { border-color: var(--gold); }
.filters-hint { font-size: 13px; color: var(--muted); }

/* Date added on result cards; the toggle buttons sit together */
.card .added { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filters-row .btn-filters + .btn-filters { margin-left: 0; }

/* Orders page cards and the (ADMIN) marker */
.admin-flag { display: inline-block; margin: 6px 0 4px; padding: 4px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .08em; font-size: 12px;
  color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.order-status { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(11, 13, 28, .78); color: #f3d27a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.order-customer { padding: 0 12px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; border-top: 1px dashed var(--border); padding-top: 10px; }
.order-customer a { color: var(--gold); text-decoration: none; }

/* Verified page category subtabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.tab:hover { border-color: var(--gold); color: var(--text); }
.tab.active { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }
.tab-count { font-weight: 500; opacity: .8; margin-left: 3px; }

.card .rating { color: var(--gold); font-weight: 600; }

/* Footer links */
.site-footer .footer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; font-weight: 600; }
.site-footer .footer-link:hover { text-decoration: underline; }
.site-footer .footer-link svg { flex: none; }

/* End of style.css  v1.12 */
