/* =========================================================
   TruckWorldMotors — Master Design System
   Steel & Amber. Cinematic dark theme, restrained premium accent.
   ========================================================= */

:root {
  /* Palette — refined "Midnight Steel & Amber"
     Warmer, deeper base with a touch more blue-violet depth; lifted text
     contrast; richer gold accent with a copper secondary. */
  --bg-0: #0a0e1a;
  --bg-1: #0e1424;
  --bg-2: #131c30;
  --bg-3: #1a2540;
  --panel: rgba(19, 28, 48, 0.72);
  --panel-solid: #121a2c;
  --line: #24334f;
  --line-soft: #1b2740;
  --text: #f0f4fa;
  --text-dim: #aab6cd;
  --text-mute: #74829e;
  /* Primary accent — refined amber (richer, less neon) */
  --amber: #e6a92b;
  --amber-bright: #f5c04a;
  --amber-2: #c98a18;
  --copper: #c8763a;
  /* Secondary — steel blue for trust / shipping / verified */
  --steel: #5b7a99;
  --steel-2: #3f5d7e;
  --blue: #3b6ea8;
  --cyan: #2bb3c4;
  /* Semantic */
  --green: #2fae6b;
  --red: #d64545;
  --orange: #cf7a18;
  /* Gradients — amber kept tight, used sparingly */
  --gold-grad: linear-gradient(135deg, #e6a92b, #c98a18);
  --gold-grad-soft: linear-gradient(135deg, rgba(230,169,43,.14), rgba(201,138,24,.10));
  --steel-grad: linear-gradient(135deg, #5b7a99, #3f5d7e);
  --blue-grad: linear-gradient(135deg, #3b6ea8, #2bb3c4);
  --glass: linear-gradient(160deg, rgba(26,37,64,.55), rgba(14,20,36,.68));
  --glass-strong: linear-gradient(160deg, rgba(26,37,64,.88), rgba(14,20,36,.92));
  --shadow-lg: 0 30px 80px -22px rgba(0,0,0,.65);
  --shadow-glow: 0 0 40px rgba(230,169,43,.18);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --t: .35s cubic-bezier(.2,.7,.2,1);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
/* Ambient background — subtle steel + faint amber, not loud */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 12% 6%, rgba(91,122,153,.08), transparent 60%),
    radial-gradient(900px 600px at 88% 18%, rgba(230,169,43,.06), transparent 60%),
    radial-gradient(1200px 800px at 50% 100%, rgba(59,110,168,.06), transparent 60%),
    var(--bg-0);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='.012'/%3E%3C/svg%3E");
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.h-grad { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); padding: 5px 13px; border-radius: 999px;
  background: var(--gold-grad-soft); border: 1px solid rgba(224,165,38,.22);
}
.muted { color: var(--text-dim); }
.tiny { font-size: 12px; color: var(--text-mute); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin: 14px 0 12px; }
.section-head p { color: var(--text-dim); font-size: 17px; }
.grid { display: grid; gap: 24px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 800; font-size: 15px;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--gold-grad); color: #1a1305; box-shadow: 0 8px 28px -8px rgba(224,165,38,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(224,165,38,.6); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(224,165,38,.5); transform: translateY(-2px); }
.btn-blue { background: var(--steel-grad); color: #fff; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(91,122,153,.4); }
.btn-danger { background: linear-gradient(135deg,#d64545,#a52a2a); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 18px 38px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Panels / Cards ---------- */
.panel {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
}
.panel-pad { padding: 28px; }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  backdrop-filter: blur(10px);
}
.card:hover { transform: translateY(-6px); border-color: rgba(224,165,38,.35); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55), 0 0 26px rgba(224,165,38,.08); }

/* ---------- Badges / Pills / Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--bg-3); color: var(--text-dim);
}
.badge-amber { background: rgba(224,165,38,.12); color: var(--amber); border: 1px solid rgba(224,165,38,.28); }
.badge-green { background: rgba(47,174,107,.12); color: var(--green); border: 1px solid rgba(47,174,107,.28); }
.badge-blue { background: rgba(91,122,153,.16); color: #8fb0d0; border: 1px solid rgba(91,122,153,.3); }
.badge-red { background: rgba(214,69,69,.12); color: #e88080; border: 1px solid rgba(214,69,69,.28); }
.badge-cyan { background: rgba(43,179,196,.12); color: var(--cyan); border: 1px solid rgba(43,179,196,.28); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--bg-3); border: 1px solid var(--line);
  transition: var(--t); cursor: pointer; color: var(--text-dim);
}
.chip:hover, .chip.active { background: rgba(224,165,38,.12); border-color: rgba(224,165,38,.4); color: var(--amber); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-dim); }
.field label .req { color: var(--amber-bright); }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(7,11,20,.7); border: 1px solid var(--line); color: var(--text);
  transition: var(--t); font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,165,38,.14); }
.textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px);
  background: rgba(7,11,20,.82); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px; background: var(--gold-grad);
  display: grid; place-items: center; font-size: 21px; box-shadow: 0 6px 20px -6px rgba(224,165,38,.5);
  transform: rotate(-6deg); transition: var(--t);
}
.brand:hover .logo { transform: rotate(0deg) scale(1.05); }
.brand .name b { color: var(--amber); }
.brand .name .brand-motors { color: var(--text-dim); font-weight: 700; }
.brand .name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--text-mute); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px){ .nav-links { display: none; } }

/* ---------- Hero (compact — carousels live right below) ---------- */
.hero {
  position: relative; min-height: auto; display: flex; align-items: center; overflow: hidden;
  padding-bottom: 8px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/vehicles-real/dealership-hero-lot.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,.82) 0%, rgba(7,11,20,.6) 45%, rgba(7,11,20,.98) 100%),
              radial-gradient(80% 60% at 50% 30%, rgba(224,165,38,.10), transparent 60%);
}
@keyframes heroZoom { from { transform: scale(1.05);} to { transform: scale(1.14);} }
.hero-content { position: relative; z-index: 2; padding: 76px 0 64px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.03; margin: 16px 0; max-width: 900px; }
.hero p.lead { font-size: clamp(15px, 2vw, 20px); color: var(--text-dim); max-width: 620px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 32px; font-weight: 900; color: #fff; }
.hero-stat .lbl { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- 3D tilt cards ---------- */
.tilt { transform-style: preserve-3d; transition: transform .2s ease; will-change: transform; }
.tilt .tilt-inner { transform: translateZ(40px); }

/* ---------- Vehicle card ---------- */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.v-card { cursor: pointer; position: relative; }
.v-card .v-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.v-card .v-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.v-card:hover .v-media img { transform: scale(1.08); }
.v-card .v-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,9,18,.6)); }
.v-card .v-type-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.v-card .v-price-tag { position: absolute; top: 14px; right: 14px; z-index: 2; }
.v-card .v-price-tag .price { font-size: 20px; font-weight: 900; }
.v-card .v-price-tag .per { font-size: 11px; color: var(--amber); font-weight: 700; }
.v-card .v-body { padding: 20px; }
.v-card .v-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.v-card .v-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.v-card .v-specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.v-card .v-specs span { display: inline-flex; align-items: center; gap: 5px; }
.v-card .v-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 280px; flex: 1; max-width: 420px; }
.search-box .input { padding-left: 42px; }
.search-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }

/* ---------- Financing / shipping band ---------- */
.band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--glass); backdrop-filter: blur(14px);
}
.band-item { padding: 32px 28px; border-right: 1px solid var(--line); }
.band-item:last-child { border-right: none; }
.band-item .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(91,122,153,.14); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; border: 1px solid rgba(91,122,153,.28); }
.band-item h4 { font-size: 18px; margin-bottom: 6px; }
.band-item p { font-size: 14px; color: var(--text-dim); }
@media (max-width: 720px){ .band-item { border-right: none; border-bottom: 1px solid var(--line); } .band-item:last-child{ border-bottom: none; } }

/* ---------- Delivery / testimonial cards ---------- */
.delivery-card .d-media { aspect-ratio: 16/9; overflow: hidden; }
.delivery-card .d-media img { width: 100%; height: 100%; object-fit: cover; }
.delivery-card .d-body { padding: 22px; }
.delivery-card .d-quote { font-style: italic; color: var(--text); margin: 10px 0 14px; font-size: 15px; }
.stars { color: var(--amber); letter-spacing: 2px; }

/* ---------- Shipping partner strip ---------- */
.partner-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.partner-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--steel-grad); display: grid; place-items: center; font-size: 26px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-dim); }
.auth-foot a { color: var(--amber); font-weight: 700; }

/* ---------- Dashboard layout ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 70px); }
.dash-side { border-right: 1px solid var(--line); background: rgba(6,9,18,.6); padding: 24px 16px; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.dash-side a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--text-dim); font-weight: 600; font-size: 14px; margin-bottom: 4px; transition: var(--t); }
.dash-side a:hover { background: var(--bg-3); color: var(--text); }
.dash-side a.active { background: rgba(224,165,38,.12); color: var(--amber); border: 1px solid rgba(224,165,38,.25); }
.dash-side .side-head { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); margin: 18px 10px 8px; }
.dash-main { padding: 32px; max-width: 100%; overflow-x: hidden; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.dash-title h1 { font-size: 28px; }
.dash-title p { color: var(--text-dim); font-size: 14px; }
@media (max-width: 860px){ .dash { grid-template-columns: 1fr; } .dash-side { position: relative; height: auto; top: 0; } .dash-side a { display: inline-flex; } }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); font-weight: 700; background: rgba(6,9,18,.5); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(224,165,38,.04); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 20px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); display: flex; align-items: center; gap: 12px; min-width: 280px; animation: toastIn .3s ease; }
.toast.ok { border-color: rgba(34,197,94,.4); }
.toast.err { border-color: rgba(214,69,69,.4); }
.toast .ti { font-size: 20px; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Modal ---------- */
.modal-host { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(6,9,18,.75); backdrop-filter: blur(6px); }
.modal-host.open { display: grid; }
.modal { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
.modal-lg { max-width: 920px; }
@keyframes modalIn { from { transform: translateY(30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 26px; }
.modal-foot { padding: 20px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }
.modal-close { font-size: 24px; color: var(--text-mute); width: 36px; height: 36px; border-radius: 10px; }
.modal-close:hover { background: var(--bg-3); color: var(--text); }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
@media (max-width: 960px){ .detail-grid { grid-template-columns: 1fr; } }
.viewer-stage {
  aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 40%, #16223a, #0b1120);
  border: 1px solid var(--line);
}
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 84px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; }
.thumb.active { border-color: var(--amber); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--text-dim); }
.spec-row .v { font-weight: 700; }

/* ---------- Timeline (tracking) ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-3); border: 2px solid var(--line); }
.tl-item.done::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(34,197,94,.5); }
.tl-item.current::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px rgba(224,165,38,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 14px rgba(224,165,38,.6);} 50% { box-shadow: 0 0 22px rgba(224,165,38,.9);} }
.tl-item .tl-label { font-weight: 700; }
.tl-item .tl-time { font-size: 12px; color: var(--text-mute); }
.tl-item .tl-note { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* ---------- Stat tiles (dashboard) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-tile { padding: 22px; border-radius: var(--radius); }
.stat-tile .st-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.stat-tile .st-num { font-size: 32px; font-weight: 900; }
.stat-tile .st-lbl { font-size: 13px; color: var(--text-dim); }

/* ---------- Chat / messages ---------- */
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: 70vh; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 760px){ .chat-wrap { grid-template-columns: 1fr; } }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; background: rgba(6,9,18,.5); }
.chat-list-item { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.chat-list-item:hover, .chat-list-item.active { background: var(--bg-3); }
.chat-list-item .ci-name { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.chat-list-item .ci-prev { font-size: 12px; color: var(--text-mute); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); color: #1a1305; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chat-main { display: flex; flex-direction: column; }
.chat-stream { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg-bubble { max-width: 72%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg-bubble.from-user { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-bubble.from-admin { align-self: flex-end; background: var(--gold-grad); color: #1a1305; border-bottom-right-radius: 4px; font-weight: 600; }
.msg-time { font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input .input { flex: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 40px; background: rgba(6,9,18,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 16px; }
.footer a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: var(--t); }
.footer a:hover { color: var(--amber); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--text-mute); flex-wrap: wrap; gap: 10px; }

/* ---------- Utility & animations ---------- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in { opacity: 1; transform: none; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--amber); border-radius: 50%; animation: spin 1s linear infinite; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-mute); }
.empty .em-ico { font-size: 48px; margin-bottom: 14px; }
.scroll-x { overflow-x: auto; }

/* 3D showcase platform */
.platform-3d {
  position: relative; perspective: 1400px; padding: 60px 20px;
}
.platform-3d .ring {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 70%; height: 60px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(224,165,38,.18), transparent 70%);
  filter: blur(8px);
}

/* Misc */
.hr-soft { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}
.w-full{width:100%} .text-amber{color:var(--amber)} .text-green{color:var(--green)} .text-red{color:var(--red)} .text-blue{color:var(--blue)}
