/* ========================================================================== 
   FORGE FABRICATION — WEBSITE DESIGN SYSTEM
   Dark, industrial, futuristic visual language with Forge Blue accents.
   All shared and page-specific visual styling lives in this file.
   ========================================================================== */

/* ============================== 1. RESET ================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(25, 143, 255, .08), transparent 28rem),
    linear-gradient(180deg, #070a0e 0%, #090d12 100%);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ============================ 2. VARIABLES ================================ */
:root {
  --black: #05070a;
  --white: #ffffff;
  --blue: #168cff;
  --blue-bright: #49a9ff;
  --blue-dark: #0870d5;
  --cyan: #56d6ff;

  --text: #f5f8fb;
  --text-soft: #d7dee7;
  --muted: #95a1af;
  --ink: #0c1117;

  --surface: #0d131a;
  --surface-2: #111922;
  --surface-3: #17212c;
  --surface-light: #edf3f8;
  --surface-dark: #080b0f;

  --line: rgba(191, 213, 233, .14);
  --line-strong: rgba(115, 183, 243, .28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow: 0 22px 60px rgba(0, 0, 0, .30);
  --glow: 0 0 0 1px rgba(22, 140, 255, .12), 0 18px 45px rgba(0, 0, 0, .28);
  --content: 1220px;
}

/* ============================== 3. LAYOUT ================================= */
.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 64px 0;
}

.section--compact {
  padding: 38px 0;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.005)),
    var(--surface);
  border-block: 1px solid rgba(255,255,255,.035);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.eyebrow2 {
  color: var(--blue-bright);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 8px;
}

.eyebrow2 {
  margin: 10px 0;
  font-size: .82rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  color: var(--text);
}

h1 {
  font-size: clamp(2.55rem, 5.6vw, 5rem);
  letter-spacing: -.05em;
}

h2 {
  font-size: clamp(1.85rem, 3.7vw, 3.15rem);
  letter-spacing: -.035em;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -.015em;
}

p {
  color: var(--text-soft);
}

.lead {
  max-width: 760px;
  color: #bdc8d5;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.lead-bold {
  color: #e5edf5;
  font-weight: 800;
}

.muted {
  color: var(--muted) !important;
}

.stack > * + * {
  margin-top: 14px;
}

/* Subtle technical grid texture used across major sections. */
.page-hero::after,
.section--soft::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 88%);
}

.page-hero > *,
.section--soft > * {
  position: relative;
  z-index: 1;
}

/* ============================= 4. HEADER ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 7, 10, .82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 7, 10, .94);
  box-shadow: 0 12px 36px rgba(0,0,0,.26);
}

.nav-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 214px;
  height: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: block;
  color: #d8e0e8;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 720;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(22,140,255,.11);
}

.nav-group {
  position: relative;
}

.nav-group > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 5px;
  color: #7f8b98;
  font-size: .68em;
  transition: transform .18s ease;
}

.nav-group:hover > a::after,
.nav-group:focus-within > a::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -8px;
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  background: rgba(13, 19, 26, .98);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 55px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

/* Invisible hover bridge prevents the dropdown from disappearing while moving the cursor. */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 8px;
}

.dropdown a {
  color: #cbd5df;
  padding: 10px 11px;
  border-radius: 8px;
}

.dropdown a:hover,
.dropdown a[aria-current="page"] {
  color: #fff;
  background: rgba(22,140,255,.15);
}

.nav-group > a.profile::after {
  content: none;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta {
  margin-left: 3px;
  padding: 10px 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), #0b6dd1) !important;
  box-shadow: 0 8px 22px rgba(22,140,255,.18);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue)) !important;
}

.mobile-toggle {
  display: none;
  min-height: 40px;
  padding: 8px 12px;
  color: #fff;
  background: #111922;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
}

.profile {
  position: relative;
  display: grid !important;
  place-items: center;
  padding: 3px !important;
  border-radius: 50% !important;
}

.profile img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.profile:hover img {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(22,140,255,.12);
}

.profile-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 1;
}

/* ============================== 5. BUTTONS ================================ */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button-row--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #086bc7);
  box-shadow: 0 10px 28px rgba(22,140,255,.16);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 12px 32px rgba(22,140,255,.24);
}

.btn--secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #086bc7);
  box-shadow: 0 10px 28px rgba(22,140,255,.16);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 12px 32px rgba(22,140,255,.24);
}

.btn--dark {
  color: #fff;
  background: #05070a;
}

/* ============================ 6. TOOLTIPS ================================= */
.tooltip {
  position: relative;
  top: -5px;
  display: inline-block;
  margin-left: 1px;
  color: var(--blue-bright);
  cursor: help;
  font-size: .72em;
  font-weight: 800;
}

.tooltip-text {
  position: absolute;
  bottom: 145%;
  left: 50%;
  z-index: 1100;
  width: 235px;
  padding: 10px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(5px);
  color: #eaf3fb;
  background: #111922;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================== 7. HERO =================================== */
.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.hero-content {
  max-width: 790px;
  padding: 72px 0;
}

.hero .eyebrow {
  text-shadow: 0 0 24px rgba(22,140,255,.35);
}

.hero .lead {
  margin-top: 3px;
  color: #c0cad4;
  font-size: 1rem;
}

.hero .lead-bold {
  max-width: 680px;
  margin-top: 10px;
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badge {
  padding: 7px 11px;
  color: #c8d4df;
  background: rgba(10,17,24,.48);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-image {
  width: min(520px, 68%);
  margin: 20px 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,5,8,.98) 0%, rgba(3,6,9,.91) 39%, rgba(4,8,12,.60) 72%, rgba(4,8,12,.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.45));
}

/* ============================== 8. CARDS ================================== */
.grid {
  display: grid;
  gap: 16px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  overflow: visible;
  background: linear-gradient(180deg, rgba(19,28,38,.96), rgba(12,18,25,.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin-bottom: 7px;
}

.card p {
  color: #aab6c2;
}

.card-media {
  width: 100%;
  height: 205px;
  object-fit: cover;
  background: #080b0f;
  border-bottom: 1px solid var(--line);
}

.card-link {
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(73,169,255,.38);
  box-shadow: var(--glow);
}

.icon-box {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--blue-bright);
  background: rgba(22,140,255,.10);
  border: 1px solid rgba(22,140,255,.20);
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 900;
}

.assembly-card {
  position: relative;
  grid-column: span 2;
  min-height: 330px;
}

.assembly-card .card-media {
  height: 100%;
  min-height: 330px;
  border: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3,6,9,.94), rgba(3,6,9,.10) 70%);
}

.assembly-card .card-body {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 3;
  padding: 0;
}

.card-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(70%, 360px);
  height: auto;
  transform: translate(-50%, -50%);
}

/* ========================== 9. PROCESS / STEPS ============================ */
.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  min-height: 150px;
  padding: 20px 18px 20px 64px;
  background: linear-gradient(145deg, #111922, #0c1219);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 20px;
  left: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #075fae);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22,140,255,.08);
  font-size: .82rem;
  font-weight: 900;
}

.step p {
  margin-top: 6px;
  color: #9eabb8;
}

/* =========================== 10. FEATURE BAND ============================= */
.feature-band {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 470px;
  background: #090d12;
  border-block: 1px solid var(--line);
}

.feature-copy {
  display: flex;
  align-items: center;
  padding: 58px max(34px, calc((100vw - var(--content)) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 10% 30%, rgba(22,140,255,.10), transparent 22rem),
    linear-gradient(135deg, #0a0f15, #0d141c);
}

.feature-image {
  min-height: 390px;
  background:
    linear-gradient(90deg, rgba(9,13,18,.35), rgba(9,13,18,.06)),
    url('../images/quote_.png') center / cover;
}

.feature-band .bold {
  margin-top: -7px;
  font-weight: 850;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.checklist li {
  color: #b8c4cf;
}

.checklist li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--blue-bright);
  font-weight: 900;
}

/* ============================= 11. TABLES ================================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,.14);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #0f161e;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #eef6ff;
  background: #121d28;
  font-size: .82rem;
}

td {
  color: #b4bfca;
}

tr:last-child td {
  border-bottom: 0;
}

/* ============================= 12. FORMS ================================= */
.form-shell {
  max-width: 930px;
  margin-inline: auto;
  padding: 28px;
  background: linear-gradient(180deg, #111922, #0b1118);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form-grid--spaced {
  margin-top: 18px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  color: #dce5ee;
  font-size: .86rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: #edf4fa;
  background: #080d12;
  border: 1px solid #293542;
  border-radius: 9px;
}

input::placeholder,
textarea::placeholder {
  color: #647281;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(22,140,255,.13);
  border-color: var(--blue);
}

.form-note {
  padding: 12px 14px;
  color: #c4d7e7;
  background: rgba(22,140,255,.08);
  border: 1px solid rgba(22,140,255,.18);
  border-left: 3px solid var(--blue);
  border-radius: 9px;
}

.placeholder-control {
  opacity: .8;
}

/* =========================== 13. PLACEHOLDERS ============================= */
.project-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 0px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(22,140,255,.06), transparent),
    #0d141c;
  border: 1px dashed rgba(115,183,243,.40);
  border-radius: var(--radius);
  text-align: center;
}

.project-placeholder > div {
  max-width: 620px;
}

.project-placeholder img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ============================ 14. PRICING ================================= */
.price-card {
  position: relative;
  padding: 26px;
}

.price-card.featured {
  border-color: rgba(73,169,255,.55);
  box-shadow: 0 0 0 1px rgba(22,140,255,.11), 0 20px 55px rgba(0,0,0,.18);
}

.price-tag {
  display: inline-block;
  margin: 12px 0;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}

/* ============================ 15. FOOTER ================================== */
.site-footer {
  padding: 44px 0 22px;
  color: #fff;
  background: #040608;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 28px;
}

.footer-logo {
  width: 210px;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 280px;
}

.site-footer h3 {
  margin-bottom: 9px;
  color: #f6f9fc;
  font-size: .88rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 3px;
}

.site-footer a {
  color: #8794a2;
  text-decoration: none;
  font-size: .88rem;
  transition: color .18s ease;
}

.site-footer a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 17px;
  color: #667381;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .8rem;
}

/* ========================== 16. PAGE HERO ================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 52px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(22,140,255,.14), transparent 22rem),
    linear-gradient(120deg, #070a0e, #0d141c 58%, #0b1118);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  margin-top: 14px;
  color: #aebbc8;
}

.page-hero .btn--secondary {
  color: #e8f0f8;
  background: rgba(255,255,255,.055);
}

/* ========================== 17. CALLOUT ================================== */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 30%, rgba(22,140,255,.13), transparent 18rem),
    linear-gradient(135deg, #0d151e, #090d12);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
}

.callout p {
  max-width: 720px;
  margin-top: 7px;
  color: #9eabb8;
}

/* ====================== 18. SERVICE DETAIL PAGES ========================= */
.service-hero-media {
  width: 100%;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ======================== 19. MATERIAL FINDER ============================= */
.materials-hero .lead,
.finishes-hero .lead {
  max-width: 900px;
}

.material-intro,
.finish-intro {
  padding-bottom: 26px;
}

.material-notice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.material-notice > div,
.engineering-note,
.finish-notice {
  padding: 18px;
  background: #0f171f;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 11px;
}

.material-notice strong {
  font-size: 1rem;
}

.material-notice p,
.engineering-note p,
.finish-notice p {
  margin-top: 5px;
  color: #9ba8b5;
  line-height: 1.55;
}

.material-toolbar,
.finish-toolbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) 220px;
  gap: 12px;
  align-items: end;
  margin: 22px 0 8px;
  padding: 12px;
  background: #0c131a;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
}

.process-tabs,
.finish-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #070c11;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.material-tab,
.finish-tab {
  padding: 9px 13px;
  color: #91a0ae;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}

.material-tab span {
  margin-left: 3px;
  opacity: .6;
  font-size: .74em;
}

.material-tab.active,
.finish-tab.active {
  color: #fff;
  background: rgba(22,140,255,.17);
  box-shadow: inset 0 0 0 1px rgba(22,140,255,.18);
}

.material-search,
.material-filter,
.finish-search,
.finish-filter {
  display: grid;
  gap: 5px;
  color: #82909e;
  font-size: .70rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.material-search input,
.material-filter select,
.finish-search input,
.finish-filter select {
  min-height: 40px;
  padding: 0 11px;
  text-transform: none;
  letter-spacing: 0;
}

.material-count,
.finish-count {
  margin: 7px 0 18px;
  color: #788694;
  font-size: .84rem;
}

.material-process-panel {
  display: none;
}

.material-process-panel.active {
  display: block;
}

.process-heading {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 24px;
  align-items: end;
  margin: 12px 0 18px;
}

.process-heading h2 {
  font-size: 1.9rem;
}

.process-heading > p {
  color: #94a2b0;
  line-height: 1.55;
}

.materials-grid,
.finish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.material-card,
.finish-card {
  padding: 18px;
  background: linear-gradient(155deg, #111a23, #0d141c);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.material-card:hover,
.finish-card:hover {
  transform: translateY(-2px);
  border-color: rgba(73,169,255,.32);
  box-shadow: 0 14px 32px rgba(0,0,0,.20);
}

.material-card__top,
.finish-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.material-card h3,
.finish-card h3 {
  margin-top: 3px;
  font-size: 1.18rem;
}

.material-type,
.finish-process,
.availability,
.finish-level {
  display: inline-block;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.material-type,
.finish-process {
  color: var(--blue-bright);
}

.availability,
.finish-level {
  padding: 5px 7px;
  color: #9ec3e7;
  background: rgba(22,140,255,.09);
  border: 1px solid rgba(22,140,255,.14);
  border-radius: 999px;
  white-space: nowrap;
}

.material-summary,
.finish-look {
  margin: 10px 0 12px;
  color: #98a5b2;
  line-height: 1.5;
}

.material-summary strong,
.finish-look strong {
  color: #dce5ee;
}

.rating-grid,
.finish-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.finish-quick {
  grid-template-columns: 1fr 1fr;
}

.rating-grid > div,
.finish-quick > div {
  padding: 8px;
  background: #091016;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}

.rating-grid span,
.finish-quick span {
  display: block;
  color: #758391;
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rating-grid b,
.finish-quick b {
  color: #f1f6fb;
  font-size: .96rem;
}

.rating-grid small {
  display: block;
  margin-top: 1px;
  color: var(--blue);
  letter-spacing: .08em;
}

.material-card details,
.finish-card details {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.material-card summary,
.finish-card summary {
  list-style: none;
  color: var(--blue-bright);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
}

.material-card summary::-webkit-details-marker,
.finish-card summary::-webkit-details-marker {
  display: none;
}

.material-card summary::after,
.finish-card summary::after {
  content: "+";
  float: right;
  font-size: 1.05rem;
}

.material-card details[open] summary::after,
.finish-card details[open] summary::after {
  content: "−";
}

.material-details,
.finish-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 13px;
}

.material-details h4,
.finish-details h4 {
  margin-bottom: 3px;
  color: #dbe5ee;
  font-size: .76rem;
}

.material-details p,
.finish-details p {
  color: #8f9daa;
  font-size: .84rem;
  line-height: 1.5;
}

.spec-note {
  grid-column: 1 / -1;
  padding: 9px;
  color: #82909e;
  background: #091016;
  border-radius: 8px;
  font-size: .76rem;
}

.rating-explainer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.rating-explainer div {
  padding: 12px;
  background: #0d151d;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.rating-explainer b {
  display: block;
  color: var(--blue-bright);
  font-size: 1.02rem;
}

.rating-explainer span {
  color: #7e8b98;
  font-size: .75rem;
}

.engineering-note {
  margin-top: 14px;
}

.material-card.is-hidden,
.finish-card.is-hidden {
  display: none;
}

/* ========================== 20. FINISH FINDER ============================= */
.finish-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.finish-tier {
  padding: 17px;
  background: #0f171f;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.finish-tier span {
  color: var(--blue-bright);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.finish-tier h3 {
  margin: 4px 0 6px;
}

.finish-tier p {
  color: #8f9daa;
  line-height: 1.5;
}

/* ========================== 21. GALLERY MODAL ============================= */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(2, 4, 6, .84);
  backdrop-filter: blur(14px);
  transition: opacity .22s ease, visibility .22s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal-content {
  position: relative;
  width: min(1180px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  transform: translateY(14px) scale(.985);
  background: #0d141c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0,0,0,.58);
  transition: transform .22s ease;
}

.project-modal.active .project-modal-content {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #070b0f;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.project-modal-close:hover {
  transform: rotate(90deg);
  background: var(--blue-dark);
}

.project-modal-header {
  margin-bottom: 22px;
  padding-right: 52px;
}

.project-modal-header h2 {
  margin-bottom: 6px;
  font-size: 2rem;
}

.project-modal-header > p:last-child {
  max-width: 700px;
  color: #94a2b0;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-modal-card {
  overflow: hidden;
  background: #111922;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.project-modal-card img,
.project-modal-card video {
  width: 100%;
  height: 225px;
  object-fit: cover;
  background: #05070a;
}

.project-modal-card-body {
  padding: 13px;
}

.project-modal-card-body h3 {
  margin-bottom: 4px;
}

.project-modal-card-body p {
  color: #8b98a5;
  font-size: .84rem;
}

/* ============================= 22. RESPONSIVE ============================= */
@media (max-width: 1080px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 12px 20px 20px;
    background: rgba(4, 7, 10, .98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .site-nav a {
    padding: 10px;
  }

  .nav-group > a::after {
    display: none;
  }

  .dropdown {
    position: static;
    min-width: 0;
    margin: 0 0 5px 10px;
    padding: 2px 0 2px 9px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(22,140,255,.22);
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown::before {
    display: none;
  }

  .dropdown a {
    color: #9caab7;
    font-weight: 650;
  }

  .multi-select {
    position: relative;
    width: 100%;
}

.multi-select-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: #fff;
    border: 1px solid #ccc;
}

.multi-select-options[hidden] {
    display: none !important;
}

.multi-select-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin: 0;
}

  .nav-cta {
    margin: 5px 0;
    text-align: center;
  }

  .profile {
    width: max-content;
  }

  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 330px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .material-toolbar,
  .finish-toolbar {
    grid-template-columns: 1fr;
  }

  .process-tabs,
  .finish-tabs {
    width: 100%;
  }

  .material-tab,
  .finish-tab {
    flex: 1;
  }

  .materials-grid,
  .finish-grid {
    grid-template-columns: 1fr;
  }

  .process-heading,
  .material-notice {
    grid-template-columns: 1fr;
  }

  .rating-explainer,
  .finish-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 26px), var(--content));
  }

  .section {
    padding: 46px 0;
  }

  .section--compact {
    padding: 30px 0;
  }

  .brand img {
    width: 185px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding: 58px 0;
  }

  .hero-image {
    width: 82%;
  }

  .feature-copy {
    padding: 45px 22px;
  }

  .feature-image {
    min-height: 270px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .callout {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .page-hero {
    padding: 56px 0 40px;
  }

  .service-hero-media {
    min-height: 275px;
  }

  .assembly-card {
    grid-column: auto;
  }

  .rating-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .material-details,
  .finish-details,
  .rating-explainer,
  .finish-tiers {
    grid-template-columns: 1fr;
  }

  .material-card,
  .finish-card {
    padding: 15px;
  }

  .material-card__top,
  .finish-card__top {
    display: block;
  }

  .availability,
  .finish-level {
    margin-top: 7px;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-content {
    width: 100%;
    padding: 20px;
  }

  .project-modal-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-card img,
  .project-modal-card video {
    height: 205px;
  }
}

/* ====================== QUOTE PAGE INTERACTIVE CONTROLS ====================== */
.page-quote .quote-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: #edf4fa;
  background: #080d12;
  border: 1px solid #293542;
  border-radius: 9px;
  font: inherit;
}

.page-quote .quote-control:focus {
  outline: 3px solid rgba(22,140,255,.13);
  border-color: var(--blue);
}

.page-quote .quote-multi-select {
  position: relative;
  min-width: 0;
}

.page-quote .quote-multi-select__button,
.page-quote .quote-action-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.page-quote .quote-multi-select__button::after {
  content: "▾";
  margin-left: 12px;
  color: var(--muted);
}

.page-quote .quote-multi-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  overflow: hidden;
  background: #0c131a;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
}

.page-quote .quote-multi-select__menu[hidden] {
  display: none !important;
}

.page-quote .quote-check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.page-quote .quote-check-option:hover {
  background: rgba(22,140,255,.10);
}

.page-quote .quote-check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: var(--blue);
}

.page-quote .quote-color-picker {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #080d12;
  border: 1px solid #293542;
  border-radius: 9px;
}

.page-quote .quote-color-picker[hidden] {
  display: none !important;
}

.page-quote .quote-color-picker input[type="color"] {
  width: 54px;
  height: 42px;
  padding: 2px;
  cursor: pointer;
}

.page-quote .quote-color-output {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: .84rem;
}

.page-quote .quote-color-swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #168cff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
}

.page-quote .quote-tolerance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 78px;
  gap: 7px;
  align-items: center;
}

.page-quote .quote-tolerance__symbol {
  color: var(--blue-bright);
  font-size: 1.25rem;
  font-weight: 850;
}

.page-quote .quote-tolerance input,
.page-quote .quote-tolerance select {
  min-width: 0;
}

.page-quote .quote-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2,5,8,.78);
  backdrop-filter: blur(8px);
}

.page-quote .quote-modal.open {
  display: grid;
}

.page-quote .quote-modal__panel {
  width: min(780px, 100%);
  max-height: min(780px, 92vh);
  overflow-y: auto;
  padding: 24px;
  background: linear-gradient(180deg, #111922, #0b1118);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}

.page-quote .quote-modal__header,
.page-quote .quote-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-quote .quote-modal__header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-quote .quote-modal__close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  background: #080d12;
  border: 1px solid #293542;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.6rem;
}

.page-quote .quote-modal__intro {
  margin: 14px 0 22px;
}

.page-quote .orientation-workspace {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
  align-items: stretch;
}

.page-quote .orientation-scene {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(22,140,255,.12), transparent 17rem), #080d12;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.page-quote .orientation-cube {
  position: relative;
  width: 210px;
  height: 150px;
  margin-top: -30px;
}

.page-quote .orientation-face {
  position: absolute;
  color: #dcecff;
  background: rgba(22,140,255,.14);
  border: 1px solid rgba(86,214,255,.38);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.page-quote .orientation-face:hover,
.page-quote .orientation-face.active {
  background: rgba(22,140,255,.35);
  border-color: var(--blue-bright);
}

.page-quote .orientation-face--front {
  left: 35px;
  bottom: 0;
  width: 130px;
  height: 100px;
}

.page-quote .orientation-face--top {
  left: 54px;
  top: 1px;
  width: 130px;
  height: 72px;
  transform: skewX(-28deg);
  transform-origin: bottom left;
}

.page-quote .orientation-face--side {
  right: 0;
  bottom: 23px;
  width: 46px;
  height: 100px;
  transform: skewY(-28deg);
  transform-origin: bottom left;
}

.page-quote .orientation-plate {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #73869a;
  background: linear-gradient(135deg, #151f29, #0a1016);
  border: 1px solid #344657;
  transform: perspective(380px) rotateX(60deg);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.page-quote .orientation-choices {
  display: grid;
  gap: 9px;
}

.page-quote .quote-orientation-choice {
  padding: 12px;
  color: #dce5ee;
  background: #080d12;
  border: 1px solid #293542;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}

.page-quote .quote-orientation-choice:hover,
.page-quote .quote-orientation-choice.active {
  border-color: var(--blue);
  background: rgba(22,140,255,.10);
}

.page-quote .quote-modal__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* =====================================================================
   DASHBOARD
   ===================================================================== */


/* =====================================================================
   DASHBOARD PAGE
   ===================================================================== */

.dashboard-page {
    background:
        radial-gradient(
            circle at top left,
            rgba(18, 125, 255, 0.08),
            transparent 28rem
        ),
        #070b10;

    color: #fff;
}


/* =====================================================================
   DASHBOARD HERO
   ===================================================================== */

.dashboard-hero {
    background:
        linear-gradient(
            135deg,
            rgba(7, 11, 16, 0.96),
            rgba(11, 19, 28, 0.92)
        );

    border-bottom: 1px solid var(--line);
}

.dashboard-hero .lead {
    max-width: 760px;
}


/* =====================================================================
   DASHBOARD MAIN SECTION
   ===================================================================== */

.dashboard-section {
    padding-top: 34px;
    padding-bottom: 56px;
}


/* =====================================================================
   DASHBOARD TWO-COLUMN LAYOUT
   ===================================================================== */

.dashboard-layout {
    display: grid;

    grid-template-columns:
        290px
        minmax(0, 1fr);

    gap: 24px;

    align-items: start;
}


/* =====================================================================
   DASHBOARD SIDEBAR
   ===================================================================== */

.dashboard-sidebar {
    position: sticky;

    top: 102px;

    display: grid;

    gap: 18px;
}


/* =====================================================================
   PROFILE CARD
   ===================================================================== */

.dashboard-profile-card {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 27, 38, 0.98),
            rgba(10, 16, 24, 0.98)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.28);
}


/* =====================================================================
   PROFILE IMAGE
   ===================================================================== */

.dashboard-profile-image {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 50%;

    border: 2px solid rgba(22, 140, 255, 0.5);

    background: #101820;
}

.dashboard-profile-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =====================================================================
   PROFILE INFORMATION
   ===================================================================== */

.dashboard-profile-info {
    min-width: 0;
}

.dashboard-profile-info h2 {
    margin: 0 0 4px;

    font-size: 1rem;

    color: #fff;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.dashboard-profile-info p {
    margin: 0;

    color: var(--muted);

    font-size: 0.82rem;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =====================================================================
   ACCOUNT ROLE BADGE
   ===================================================================== */

.dashboard-account-role {
    display: inline-block;

    margin-top: 9px;

    padding: 5px 9px;

    background:
        rgba(22, 140, 255, 0.12);

    border:
        1px solid rgba(22, 140, 255, 0.28);

    border-radius: 999px;

    color: var(--blue);

    font-size: 0.68rem;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}


/* =====================================================================
   DASHBOARD SIDEBAR NAVIGATION
   ===================================================================== */

.dashboard-menu {
    display: grid;

    gap: 5px;

    padding: 8px;

    background: #0d131b;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 14px;
}

.dashboard-menu-link {
    display: flex;

    align-items: center;

    min-height: 44px;

    padding: 0 14px;

    color: #aeb8c4;

    text-decoration: none;

    border-radius: 9px;

    font-weight: 700;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.dashboard-menu-link:hover {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.045);

    transform:
        translateX(2px);
}

.dashboard-menu-link.active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(22, 140, 255, 0.20),
            rgba(22, 140, 255, 0.06)
        );

    border-left:
        3px solid var(--blue);
}


/* =====================================================================
   SIDEBAR QUICK ACTION
   ===================================================================== */

.dashboard-sidebar-action {
    padding: 20px;

    background:
        radial-gradient(
            circle at top right,
            rgba(22, 140, 255, 0.15),
            transparent 14rem
        ),
        #0e151e;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;
}

.dashboard-sidebar-action h3 {
    margin:
        6px
        0
        8px;

    color: #fff;
}

.dashboard-sidebar-action p:not(.eyebrow) {
    margin-bottom: 16px;

    color: var(--muted);

    line-height: 1.55;
}


/* =====================================================================
   DASHBOARD MAIN CONTENT
   ===================================================================== */

.dashboard-main {
    display: grid;

    gap: 22px;

    min-width: 0;
}


/* =====================================================================
   DASHBOARD PANEL
   ===================================================================== */

.dashboard-panel {
    padding: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 31, 0.98),
            rgba(9, 14, 21, 0.98)
        );

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 16px;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.22);
}


/* =====================================================================
   DASHBOARD PANEL HEADER
   ===================================================================== */

.dashboard-panel-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 18px;

    margin-bottom: 20px;
}

.dashboard-panel-header h2 {
    margin-top: 3px;

    font-size: 1.55rem;

    color: #fff;
}


/* =====================================================================
   DASHBOARD TEXT LINK
   ===================================================================== */

.dashboard-text-link {
    color: var(--blue);

    text-decoration: none;

    font-weight: 800;

    font-size: 0.9rem;
}

.dashboard-text-link:hover {
    text-decoration: underline;
}


/* =====================================================================
   DASHBOARD STAT CARDS
   ===================================================================== */

.dashboard-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.dashboard-stat-card {
    position: relative;

    overflow: hidden;

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            #121a24,
            #0c1219
        );

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            transparent
        );
}

.dashboard-stat-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(22, 140, 255, 0.3);

    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.18);
}


/* =====================================================================
   STAT TEXT
   ===================================================================== */

.dashboard-stat-label {
    display: block;

    color: #8e9cab;

    font-size: 0.72rem;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.dashboard-stat-value {
    display: block;

    margin:
        8px
        0
        3px;

    color: #fff;

    font-size: 2rem;

    line-height: 1;
}

.dashboard-stat-description {
    color: var(--muted);

    font-size: 0.8rem;
}


/* =====================================================================
   DASHBOARD TABLE WRAPPER
   ===================================================================== */

.dashboard-table-wrap {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    background: #0a1017;
}


/* =====================================================================
   DASHBOARD TABLE
   ===================================================================== */

.dashboard-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 760px;
}

.dashboard-table thead {
    background:
        linear-gradient(
            90deg,
            #121a24,
            #0f161f
        );
}

.dashboard-table th {
    padding: 13px 15px;

    text-align: left;

    color: #94a3b3;

    font-size: 0.72rem;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.055em;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-table td {
    padding: 15px;

    color: #d8e0e8;

    font-size: 0.9rem;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:not(.dashboard-empty-row):hover {
    background:
        rgba(22, 140, 255, 0.04);
}


/* =====================================================================
   DASHBOARD EMPTY STATE
   ===================================================================== */

.dashboard-empty-state {
    display: grid;

    justify-items: center;

    gap: 8px;

    padding:
        34px
        18px;

    text-align: center;
}

.dashboard-empty-state h3 {
    color: #fff;
}

.dashboard-empty-state p {
    max-width: 480px;

    margin-bottom: 8px;

    color: var(--muted);
}


/* =====================================================================
   PROJECT GRID
   ===================================================================== */

.dashboard-project-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* =====================================================================
   DASHBOARD EMPTY CARD
   ===================================================================== */

.dashboard-empty-card {
    padding: 22px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px dashed rgba(255, 255, 255, 0.12);

    border-radius: 12px;
}

.dashboard-empty-card h3 {
    margin-bottom: 6px;

    color: #fff;
}

.dashboard-empty-card p {
    color: var(--muted);

    line-height: 1.55;
}


/* =====================================================================
   DASHBOARD INFORMATION CARD
   ===================================================================== */

.dashboard-info-card {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 14px;

    padding: 18px;

    background:
        rgba(22, 140, 255, 0.05);

    border:
        1px solid rgba(22, 140, 255, 0.15);

    border-radius: 12px;
}

.dashboard-info-card h3 {
    margin-bottom: 5px;

    color: #fff;
}

.dashboard-info-card p {
    color: var(--muted);

    line-height: 1.55;
}


/* =====================================================================
   DASHBOARD FILE LIST
   ===================================================================== */

.dashboard-file-list {
    display: grid;

    gap: 10px;
}


/* =====================================================================
   ACCOUNT INFORMATION GRID
   ===================================================================== */

.dashboard-account-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.dashboard-account-item {
    padding: 17px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}

.dashboard-account-item span {
    display: block;

    margin-bottom: 5px;

    color: #8493a2;

    font-size: 0.72rem;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.055em;
}

.dashboard-account-item strong {
    color: #fff;

    font-size: 0.95rem;
}


/* =====================================================================
   ACCOUNT ACTIONS
   ===================================================================== */

.dashboard-account-actions .button-row {
    margin-top: 4px;
}


/* =====================================================================
   DASHBOARD BUTTON ADJUSTMENTS
   ===================================================================== */

.dashboard-page .btn--secondary {
    color: #fff;

    border-color:
        rgba(255, 255, 255, 0.15);

    background:
        rgba(255, 255, 255, 0.035);
}

.dashboard-page .btn--secondary:hover {
    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(22, 140, 255, 0.45);
}


/* =====================================================================
   DASHBOARD SCROLLBAR
   ===================================================================== */

.dashboard-table-wrap::-webkit-scrollbar {
    height: 9px;
}

.dashboard-table-wrap::-webkit-scrollbar-track {
    background: #0b1118;
}

.dashboard-table-wrap::-webkit-scrollbar-thumb {
    background: #263443;

    border-radius: 999px;
}

.dashboard-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}


/* =====================================================================
   TABLET RESPONSIVE
   ===================================================================== */

@media (max-width: 1100px) {

    .dashboard-layout {
        grid-template-columns:
            240px
            minmax(0, 1fr);
    }


    .dashboard-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================================
   SMALL TABLET / MOBILE RESPONSIVE
   ===================================================================== */

@media (max-width: 850px) {

    .dashboard-layout {
        grid-template-columns: 1fr;
    }


    .dashboard-sidebar {
        position: static;
    }


    .dashboard-menu {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }


    .dashboard-menu-link {
        justify-content: center;

        padding:
            0
            8px;

        font-size: 0.78rem;
    }


    .dashboard-menu-link.active {
        border-left: none;

        border-bottom:
            2px solid var(--blue);
    }


    .dashboard-sidebar-action {
        display: none;
    }

}

/* =====================================================================
   QUOTE DETAILS MODAL
   ===================================================================== */

.quote-modal {
    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    padding: 44px 24px;

    background:
        rgba(2, 6, 10, 0.86);

    backdrop-filter:
        blur(10px);

    opacity: 0;
    visibility: hidden;

    overflow-y: auto;

    z-index: 5000;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


/* ========================== MODAL OPEN ========================== */

.quote-modal.active {
    opacity: 1;
    visibility: visible;
}


/* =====================================================================
   MODAL CONTENT
   ===================================================================== */

.quote-modal-content {
    position: relative;

    width:
        min(1100px, 100%);

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            #101821,
            #090e14
        );

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 18px;

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.5);

    transform:
        translateY(15px);

    transition:
        transform 0.22s ease;
}


.quote-modal.active .quote-modal-content {
    transform:
        translateY(0);
}


/* =====================================================================
   CLOSE BUTTON
   ===================================================================== */

.quote-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    background:
        #0b1118;

    color:
        #fff;

    font-size:
        1.5rem;

    cursor:
        pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}


.quote-modal-close:hover {
    background:
        var(--blue);

    border-color:
        var(--blue);
}


/* =====================================================================
   MODAL HEADER
   ===================================================================== */

.quote-modal-header {
    padding-right: 60px;

    margin-bottom: 24px;
}


.quote-modal-header h2 {
    margin-top: 4px;

    font-size:
        2rem;

    color:
        #fff;
}


.quote-modal-date {
    margin-top: 6px;

    color:
        var(--muted);
}


/* =====================================================================
   MODAL SECTION
   ===================================================================== */

.quote-modal-section {
    margin-top: 18px;

    padding: 22px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius:
        14px;
}


/* =====================================================================
   SECTION HEADER
   ===================================================================== */

.quote-modal-section-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 18px;
}


.quote-modal-section-header > div {
    display: flex;

    align-items: center;

    gap: 14px;
}


.quote-section-number {
    display: grid;

    place-items: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        rgba(22, 140, 255, 0.12);

    color:
        var(--blue);

    font-size:
        0.75rem;

    font-weight:
        900;
}


.quote-modal-section h3 {
    color:
        #fff;
}


/* =====================================================================
   ORIGINAL QUOTE DETAILS
   ===================================================================== */

.quote-details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        10px;
}


.quote-detail {
    padding:
        14px;

    background:
        #0b1219;

    border:
        1px solid rgba(255, 255, 255, 0.055);

    border-radius:
        10px;
}


.quote-detail span {
    display: block;

    margin-bottom:
        5px;

    color:
        #81909f;

    font-size:
        0.68rem;

    font-weight:
        900;

    text-transform:
        uppercase;

    letter-spacing:
        0.055em;
}


.quote-detail strong {
    color:
        #fff;

    font-size:
        0.92rem;
}


/* =====================================================================
   DESCRIPTION
   ===================================================================== */

.quote-description-box {
    padding:
        17px;

    background:
        #0a1118;

    border:
        1px solid rgba(255, 255, 255, 0.055);

    border-radius:
        10px;
}


.quote-description-box p {
    color:
        #c6d0da;

    line-height:
        1.7;

    white-space:
        pre-wrap;
}


/* =====================================================================
   REVISED SPECIFICATIONS
   ===================================================================== */

.quote-revised-specs {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        10px;

    margin-bottom:
        15px;
}


/* =====================================================================
   RESPONSE GRID
   ===================================================================== */

.quote-response-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        10px;

    margin-top:
        12px;
}


.quote-response-card {
    padding:
        15px;

    background:
        #0b1219;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius:
        10px;
}


.quote-response-card span {
    display: block;

    margin-bottom:
        6px;

    color:
        var(--muted);

    font-size:
        0.72rem;

    font-weight:
        800;
}


.quote-response-card strong {
    color:
        #fff;
}


/* =====================================================================
   PRICING
   ===================================================================== */

.quote-price-panel {
    margin-top:
        16px;

    padding:
        18px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 140, 255, 0.08),
            rgba(22, 140, 255, 0.025)
        );

    border:
        1px solid rgba(22, 140, 255, 0.18);

    border-radius:
        12px;
}


.quote-price-panel > div {
    display: flex;

    justify-content: space-between;

    gap:
        20px;

    padding:
        8px 0;

    color:
        #bac5cf;
}


.quote-price-panel strong {
    color:
        #fff;
}


.quote-price-total {
    margin-top:
        8px;

    padding-top:
        14px !important;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);
}


.quote-price-total span,
.quote-price-total strong {
    font-size:
        1.12rem;

    color:
        #fff;
}


/* =====================================================================
   APPROVAL PANEL
   ===================================================================== */

.quote-approval-panel {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap:
        18px;

    margin-top:
        16px;

    padding:
        16px;

    background:
        #0b1219;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius:
        10px;
}


.quote-approval-label {
    display: block;

    margin-bottom:
        5px;

    color:
        var(--muted);

    font-size:
        0.72rem;

    text-transform:
        uppercase;

    font-weight:
        900;
}


/* =====================================================================
   STATUS BADGE
   ===================================================================== */

.quote-status-badge {
    display: inline-block;

    padding:
        6px 10px;

    border-radius:
        999px;

    background:
        rgba(255, 183, 0, 0.12);

    border:
        1px solid rgba(255, 183, 0, 0.28);

    color:
        #ffc64d;

    text-transform:
        uppercase;

    font-size:
        0.72rem;

    letter-spacing:
        0.05em;
}


/* =====================================================================
   WAITING FOR REPLY
   ===================================================================== */

.quote-waiting-state {
    padding:
        22px;

    text-align:
        center;
}


.quote-waiting-state h3 {
    margin:
        6px 0 8px;
}


.quote-waiting-state p:last-child {
    max-width:
        650px;

    margin:
        0 auto;

    color:
        var(--muted);

    line-height:
        1.6;
}


/* =====================================================================
   PROJECT PROGRESS
   ===================================================================== */

.quote-progress {
    display: grid;

    gap:
        0;
}


.quote-progress-step {
    position: relative;

    display: grid;

    grid-template-columns:
        30px 1fr;

    gap:
        12px;

    min-height:
        67px;
}


.quote-progress-step:not(:last-child)::after {
    content: "";

    position: absolute;

    left:
        7px;

    top:
        20px;

    width:
        2px;

    height:
        calc(100% - 4px);

    background:
        #24313e;
}


.quote-progress-dot {
    position: relative;

    z-index: 1;

    width:
        16px;

    height:
        16px;

    margin-top:
        2px;

    border:
        3px solid #526171;

    border-radius:
        50%;

    background:
        #0b1219;
}


.quote-progress-step strong {
    display:
        block;

    color:
        #98a5b2;
}


.quote-progress-step p {
    margin-top:
        3px;

    color:
        var(--muted);

    font-size:
        0.85rem;
}


/* ========================== COMPLETED STEP ========================== */

.quote-progress-step.complete .quote-progress-dot {
    border-color:
        var(--blue);

    background:
        var(--blue);
}


.quote-progress-step.complete:not(:last-child)::after {
    background:
        var(--blue);
}


.quote-progress-step.complete strong {
    color:
        #fff;
}


/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 800px) {

    .quote-details-grid,
    .quote-revised-specs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .quote-response-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 520px) {

    .quote-modal {
        padding:
            12px;
    }


    .quote-modal-content {
        padding:
            20px;
    }


    .quote-details-grid,
    .quote-revised-specs,
    .quote-response-grid {
        grid-template-columns:
            1fr;
    }


    .quote-approval-panel {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}

/* =====================================================================
   ADMIN PROJECT STATUS
   ===================================================================== */

.admin-status-section {
    padding: 18px 20px;
}


/* ========================== HEADER ========================== */

.admin-status-header {
    margin-bottom: 16px;
}

.admin-status-header h3 {
    margin-top: 2px;
}


/* =====================================================================
   STATUS TRACKER
   ===================================================================== */

.admin-status-tracker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: #090f15;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;

    overflow: hidden;
}


/* =====================================================================
   STATUS ITEM
   ===================================================================== */

.admin-status-item {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;

    column-gap: 9px;
    row-gap: 4px;

    min-height: 75px;
    padding: 13px 16px;
}


/* Divider */

.admin-status-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}


/* =====================================================================
   STATUS LIGHT
   ===================================================================== */

.admin-status-light {
    grid-row: 1 / 3;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #3c4854;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.025);
}


/* Active */

.admin-status-light.active {
    background: var(--blue);

    box-shadow:
        0 0 9px rgba(22, 140, 255, 0.8);
}


/* Pending */

.admin-status-light.pending {
    background: #ffc64d;

    box-shadow:
        0 0 8px rgba(255, 198, 77, 0.6);
}


/* Declined */

.admin-status-light.declined {
    background: #ff5f5f;

    box-shadow:
        0 0 8px rgba(255, 95, 95, 0.6);
}


/* =====================================================================
   TEXT
   ===================================================================== */

.admin-status-item strong {
    color: #fff;

    font-size: 0.82rem;
}

.admin-status-value {
    color: var(--muted);

    font-size: 0.72rem;
}


/* =====================================================================
   SMALL ACTION BUTTON
   ===================================================================== */

.admin-status-action {
    padding: 0;

    color: var(--blue);
    background: none;

    border: 0;

    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}

.admin-status-action:hover {
    text-decoration: underline;
}


/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 700px) {

    .admin-status-tracker {
        grid-template-columns: 1fr 1fr;
    }

    .admin-status-item {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.07);
    }

    .admin-status-item:nth-child(2) {
        border-right: 0;
    }

    .admin-status-item:nth-child(3),
    .admin-status-item:nth-child(4) {
        border-bottom: 0;
    }

}

/* =====================================================================
   QUOTE FILE LIST
   ===================================================================== */

.quote-file-list {
    display: grid;
    gap: 10px;
}


/* =====================================================================
   INDIVIDUAL FILE
   ===================================================================== */

.quote-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;

    padding: 13px 15px;

    background: #0b1219;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}


/* ========================= FILE INFORMATION ========================= */

.quote-file-info {
    min-width: 0;
}

.quote-file-info strong {
    display: block;

    color: #fff;

    font-size: 0.88rem;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-file-info span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 0.72rem;
}


/* ========================= FILE ACTIONS ============================= */

.quote-file-actions {
    display: flex;

    gap: 8px;

    flex-shrink: 0;
}

.quote-file-button {
    padding: 7px 11px;

    color: var(--blue);
    background: rgba(22, 140, 255, 0.08);

    border: 1px solid rgba(22, 140, 255, 0.2);
    border-radius: 7px;

    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;

    cursor: pointer;
}

.quote-file-button:hover {
    background: rgba(22, 140, 255, 0.16);
}


/* ========================= EMPTY STATE ============================== */

.quote-file-empty {
    color: var(--muted);

    font-size: 0.85rem;
}


/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 560px) {

    .quote-file-item {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =====================================================================
   REUSABLE ACTION OVERLAY
   ===================================================================== */

.action-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 6, 10, 0.82);
    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    z-index: 10000;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.action-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =====================================================================
   OVERLAY CARD
   ===================================================================== */

.action-overlay-card {
    width: min(420px, 100%);

    padding: 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #111922,
            #090f15
        );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45);
}


/* =====================================================================
   STATUS ICON
   ===================================================================== */

.action-overlay-icon {
    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: rgba(22, 140, 255, 0.14);

    border: 1px solid rgba(22, 140, 255, 0.35);

    color: var(--blue);

    font-size: 1.5rem;
    font-weight: 900;

    box-shadow:
        0 0 18px rgba(22, 140, 255, 0.18);
}


/* =====================================================================
   ERROR STATE
   ===================================================================== */

.action-overlay.error .action-overlay-icon {
    background: rgba(255, 95, 95, 0.12);

    border-color: rgba(255, 95, 95, 0.35);

    color: #ff5f5f;

    box-shadow:
        0 0 18px rgba(255, 95, 95, 0.15);
}


/* =====================================================================
   TEXT
   ===================================================================== */

.action-overlay-card h2 {
    margin-bottom: 8px;

    color: #fff;
}


.action-overlay-card p {
    margin-bottom: 20px;

    color: var(--muted);

    line-height: 1.6;
}

/* =====================================================================
   AUTHENTICATION PAGE
   ===================================================================== */


/* =====================================================================
   PAGE BACKGROUND
   ===================================================================== */

.auth-page {
    background: #070b10;
}


/* =====================================================================
   MAIN AUTH AREA
   ===================================================================== */

.auth-main {
    min-height: calc(100vh - 78px);

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(22, 140, 255, 0.12),
            transparent 28rem
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(38, 88, 145, 0.08),
            transparent 30rem
        ),
        linear-gradient(
            135deg,
            #070b10,
            #0a1118
        );
}


/* =====================================================================
   AUTH SECTION
   ===================================================================== */

.auth-section {
    padding: 56px 0 64px;
}


/* =====================================================================
   TWO-COLUMN AUTH LAYOUT
   ===================================================================== */

.auth-container {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(480px, 1fr);

    gap: 54px;

    align-items: center;
}


/* =====================================================================
   AUTH INTRO
   ===================================================================== */

.auth-intro {
    max-width: 560px;
}


.auth-intro h1 {
    margin-top: 8px;

    color: #fff;

    font-size: clamp(
        2.6rem,
        5vw,
        4.6rem
    );

    line-height: 0.98;
}


.auth-intro h1 span {
    display: block;

    color: var(--blue);
}


.auth-intro-text {
    max-width: 500px;

    margin-top: 20px;

    color: #a5b2bf;

    font-size: 1.03rem;

    line-height: 1.7;
}


/* =====================================================================
   AUTH BENEFITS
   ===================================================================== */

.auth-benefits {
    display: grid;

    gap: 12px;

    margin-top: 32px;
}


.auth-benefit {
    display: grid;

    grid-template-columns:
        42px
        1fr;

    gap: 14px;

    padding: 14px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}


.auth-benefit-icon {
    display: grid;

    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--blue);

    background:
        rgba(22, 140, 255, 0.09);

    border:
        1px solid rgba(22, 140, 255, 0.18);

    border-radius: 8px;

    font-size: 0.72rem;
    font-weight: 900;
}


.auth-benefit strong {
    display: block;

    margin-bottom: 3px;

    color: #fff;

    font-size: 0.9rem;
}


.auth-benefit p {
    color: var(--muted);

    font-size: 0.82rem;

    line-height: 1.45;
}


/* =====================================================================
   AUTH PANEL
   ===================================================================== */

.auth-panel {
    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 25, 34, 0.98),
            rgba(9, 14, 20, 0.98)
        );

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.38);
}


/* =====================================================================
   AUTH FORM SECTION
   ===================================================================== */

.auth-form-section {
    display: grid;

    gap: 15px;
}


.auth-form-heading {
    margin-bottom: 4px;
}


.auth-form-heading h2 {
    margin-top: 3px;

    color: #fff;

    font-size: 1.55rem;
}


.auth-form-heading > p:last-child {
    margin-top: 5px;

    color: var(--muted);

    font-size: 0.86rem;
}


/* =====================================================================
   AUTH FORM CONTROLS
   ===================================================================== */

.auth-panel .form-group {
    display: grid;

    gap: 7px;
}


.auth-panel .form-group label {
    color: #96a5b4;

    font-size: 0.74rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.045em;
}


.auth-panel .form-group input {
    width: 100%;
    min-height: 46px;

    padding: 0 13px;

    color: #fff;

    background: #090f15;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 9px;

    font-family: inherit;
    font-size: 0.93rem;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.auth-panel .form-group input::placeholder {
    color: #53616f;
}


.auth-panel .form-group input:focus {
    background: #0b1219;

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(22, 140, 255, 0.08);
}


/* =====================================================================
   NAME GRID
   ===================================================================== */

.auth-name-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* =====================================================================
   AUTH BUTTONS
   ===================================================================== */

.auth-submit-button {
    width: 100%;

    justify-content: center;

    margin-top: 3px;
}


/* =====================================================================
   AUTH DIVIDER
   ===================================================================== */

.auth-divider {
    position: relative;

    display: flex;

    justify-content: center;

    margin: 24px 0;
}


.auth-divider::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        rgba(255, 255, 255, 0.08);
}


.auth-divider span {
    position: relative;

    z-index: 1;

    padding: 0 12px;

    color: #667584;

    background: #0d141c;

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


/* =====================================================================
   AUTH SECONDARY BUTTON
   ===================================================================== */

.auth-panel .btn--secondary {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.12);
}


.auth-panel .btn--secondary:hover {
    background:
        rgba(22, 140, 255, 0.08);

    border-color:
        rgba(22, 140, 255, 0.4);
}

/* =====================================================================
   UNIVERSAL SETTINGS OVERLAY
   ===================================================================== */

.settings-overlay {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(0, 0, 0, 0.72);

    backdrop-filter:
        blur(8px);
}


/* ============================ ACTIVE ============================ */

.settings-overlay.active {
    display: flex;
}


/* =====================================================================
   OVERLAY CARD
   ===================================================================== */

.settings-overlay-card {
    width: min(
        100%,
        600px
    );

    max-height: 90vh;

    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            #111922,
            #090e14
        );

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.09
        );

    border-radius: 16px;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.55);
}


/* =====================================================================
   HEADER
   ===================================================================== */

.settings-overlay-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    padding: 26px;

    border-bottom:
        1px solid rgba(
            255,
            255,
            255,
            0.07
        );
}


.settings-overlay-header h2 {
    margin-top: 4px;

    color: #fff;

    font-size: 1.5rem;
}


.settings-overlay-description {
    margin-top: 6px;

    color: var(--muted);

    font-size: 0.88rem;

    line-height: 1.5;
}


/* =====================================================================
   CLOSE BUTTON
   ===================================================================== */

.settings-overlay-close {
    display: grid;

    flex-shrink: 0;

    place-items: center;

    width: 36px;
    height: 36px;

    padding: 0;

    color: #9aa7b4;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 8px;

    cursor: pointer;

    font-size: 1.4rem;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}


.settings-overlay-close:hover {
    color: #fff;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    border-color:
        rgba(
            255,
            255,
            255,
            0.15
        );
}


/* =====================================================================
   BODY
   ===================================================================== */

.settings-overlay-body {
    display: grid;

    gap: 18px;

    padding: 26px;
}


/* =====================================================================
   FORM GRID
   ===================================================================== */

.settings-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.settings-form-full {
    grid-column: 1 / -1;
}


/* =====================================================================
   FOOTER
   ===================================================================== */

.settings-overlay-footer {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding: 20px 26px;

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            0.07
        );
}


/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 600px) {

    .settings-overlay {
        padding: 14px;
    }


    .settings-form-grid {
        grid-template-columns: 1fr;
    }


    .settings-overlay-header,
    .settings-overlay-body,
    .settings-overlay-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =====================================================================
   TABLET
   ===================================================================== */

@media (max-width: 980px) {

    .auth-container {
        grid-template-columns: 1fr;

        gap: 32px;
    }


    .auth-intro {
        max-width: 760px;
    }


    .auth-benefits {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 700px) {

    .auth-section {
        padding:
            34px
            0
            46px;
    }


    .auth-benefits {
        grid-template-columns: 1fr;
    }


    .auth-panel {
        padding: 22px;
    }


    .auth-name-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================================
   MOBILE RESPONSIVE
   ===================================================================== */

@media (max-width: 620px) {

    .dashboard-section {
        padding-top: 20px;
    }


    .dashboard-panel {
        padding: 18px;
    }


    .dashboard-panel-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .dashboard-panel-header .btn {
        width: 100%;

        text-align: center;
    }


    .dashboard-stat-grid {
        grid-template-columns:
            1fr
            1fr;
    }


    .dashboard-project-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-account-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-menu {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .dashboard-profile-card {
        padding: 16px;
    }

}

/* ============================ REPLY DISCOUNTS ============================ */

#reply-discounts-section {
    margin-top: 8px;
    padding-top: 8px;

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            0.08
        );
}


#reply-discounts-list {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-top: 6px;
}


.reply-discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.reply-discount-row span {
    color:
        rgba(
            255,
            255,
            255,
            0.7
        );
}


.reply-discount-row strong {
    color: var(--blue);

    font-weight: 600;
}

/* =====================================================================
   MARKETING EMAIL OPT-IN
   ===================================================================== */

.marketing-opt-in {
    margin-top: 18px;
    margin-bottom: 18px;
}


/* ======================== LABEL ======================== */

.marketing-opt-in label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.025);

    color: #aeb8c4;

    font-size: 0.88rem;
    line-height: 1.45;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


/* ======================== HOVER ======================== */

.marketing-opt-in label:hover {
    border-color: rgba(22, 140, 255, 0.35);

    background: rgba(22, 140, 255, 0.04);
}


/* ======================== CHECKBOX ======================== */

.marketing-opt-in input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;

    padding: 0 !important;
    margin: 2px 0 0 0;

    flex: 0 0 18px;

    border: 1px solid #536170;
    border-radius: 4px;

    background: #111820;

    position: relative;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


/* ======================== CHECKED ======================== */

.marketing-opt-in input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
}


/* ======================== CHECKMARK ======================== */

.marketing-opt-in input[type="checkbox"]:checked::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 4px;
    height: 8px;

    border: solid white;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


/* ======================== KEYBOARD FOCUS ======================== */

.marketing-opt-in input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}


/* ======================== MOBILE ======================== */

@media (max-width: 600px) {

    .marketing-opt-in label {
        padding: 12px;

        font-size: 0.84rem;

        gap: 9px;
    }

}

/* =====================================================================
   MOBILE / TOUCH TOOLTIP SUPPORT
   ===================================================================== */

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    /* Prevents weird text selection when tapping */
    user-select: none;
    -webkit-user-select: none;

    /* Improves touch behavior */
    touch-action: manipulation;
}


/* ======================== DESKTOP HOVER ======================== */

@media (hover: hover) and (pointer: fine) {

    .tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

}


/* ======================== TAP / ACTIVE STATE ======================== */

.tooltip.tooltip-open .tooltip-text {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* ======================== MOBILE ======================== */

@media (max-width: 768px) {

    .tooltip {
        /*
            Gives the icon a reasonable touch target without
            making the visible question mark huge.
        */
        min-width: 32px;
        min-height: 32px;
    }

    .tooltip-text {
        /*
            Make sure the tooltip is above nearby cards/content.
        */
        z-index: 1000;
    }

}

/* =====================================================================
   EXTRA-SMALL MOBILE
   ===================================================================== */

@media (max-width: 420px) {

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-menu {
        grid-template-columns: 1fr;
    }


    .dashboard-menu-link {
        justify-content: flex-start;
    }

}

@media (max-width: 700px) {
  .page-quote .orientation-workspace {
    grid-template-columns: 1fr;
  }

  .page-quote .quote-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }
}


/* ========================================================================== 
   2026 MOBILE + VISUAL REFINEMENT PASS
   Purpose: improve readability, touch usability, mobile flow, and dashboard
   density without changing application behavior or data flow.
   ========================================================================== */

/* ========================== CLEANER DESIGN SYSTEM ========================== */
:root {
  --surface: #0c1117;
  --surface-2: #11171f;
  --surface-3: #171e27;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --shadow: 0 14px 36px rgba(0, 0, 0, .24);
  --glow: 0 0 0 1px rgba(255, 255, 255, .055), 0 14px 32px rgba(0, 0, 0, .22);
}

body {
  background: #080b10;
  line-height: 1.65;
}

p,
li,
label,
input,
select,
textarea {
  line-height: 1.6;
}

p {
  color: #cbd3dc;
}

.lead {
  color: #c1cad4;
  line-height: 1.65;
}

.section-heading {
  max-width: 720px;
}

.section-heading p,
.card p,
.step p,
.callout p,
.feature-copy p {
  max-width: 68ch;
}

/* Remove decorative grid texture that made large sections visually busy. */
.page-hero::after,
.section--soft::after {
  display: none;
}

.section--soft {
  background: #0b1016;
  border-block-color: rgba(255, 255, 255, .055);
}

/* ============================== SURFACES ================================== */
.card,
.material-card,
.finish-card,
.form-shell,
.dashboard-panel,
.dashboard-profile-card,
.dashboard-menu,
.dashboard-sidebar-action,
.dashboard-stat-card,
.dashboard-info-card,
.dashboard-account-item,
.dashboard-empty-card {
  background-image: none !important;
  box-shadow: none;
}

.card,
.material-card,
.finish-card {
  background-color: #0f151d;
  border-color: rgba(255, 255, 255, .085);
}

.card-link:hover,
.material-card:hover,
.finish-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
}

.btn,
.nav-cta {
  border-radius: 8px;
}

.btn--primary,
.nav-cta {
  background: var(--blue) !important;
  box-shadow: none !important;
}

.btn--primary:hover,
.nav-cta:hover {
  background: var(--blue-bright) !important;
  box-shadow: none !important;
}

/* =============================== HEADER =================================== */
.site-header {
  background: rgba(8, 11, 16, .94);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(8, 11, 16, .98);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .20);
}

.profile {
  min-width: 44px;
  min-height: 44px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
}

.profile img {
  pointer-events: none;
}

.profile-overlay {
  pointer-events: none;
}

/* ============================== DASHBOARD ================================= */
.dashboard-page {
  background: #080b10;
}

.dashboard-hero {
  background: #0b1016;
  border-bottom-color: rgba(255, 255, 255, .07);
}

.dashboard-hero .page-hero,
.dashboard-page .page-hero {
  background-image: none !important;
}

.dashboard-section {
  padding-top: 28px;
  padding-bottom: 48px;
}

.dashboard-layout {
  gap: 18px;
}

.dashboard-sidebar {
  gap: 12px;
}

.dashboard-profile-card {
  padding: 16px;
  background-color: #0f151d;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 12px;
}

.dashboard-menu {
  padding: 6px;
  gap: 3px;
  background-color: #0f151d;
  border-radius: 12px;
}

.dashboard-menu-link {
  min-height: 42px;
  border-radius: 7px;
  color: #b6c0ca;
}

.dashboard-menu-link.active {
  background: rgba(22, 140, 255, .12);
  border-left-color: var(--blue);
}

.dashboard-sidebar-action {
  padding: 17px;
  background-color: #0f151d;
}

.dashboard-main {
  gap: 16px;
}

.dashboard-panel {
  padding: 20px;
  background-color: #0f151d;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 12px;
}

.dashboard-panel-header {
  margin-bottom: 16px;
}

.dashboard-panel-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.dashboard-stat-grid {
  gap: 10px;
}

.dashboard-stat-card {
  min-height: 0;
  padding: 16px;
  background-color: #0c1219;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 10px;
}

.dashboard-stat-card::before {
  display: none;
}

.dashboard-stat-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .13);
  box-shadow: none;
}

.dashboard-stat-label {
  color: #8f9ba8;
  font-size: .68rem;
  letter-spacing: .045em;
}

.dashboard-stat-value {
  margin: 8px 0 6px;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
}

.dashboard-stat-description {
  line-height: 1.45;
}

.dashboard-table-wrap {
  background: #0b1016;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 10px;
}

.dashboard-table thead {
  background: #111820;
}

.dashboard-table th {
  padding: 11px 13px;
  color: #9aa6b2;
  letter-spacing: .04em;
}

.dashboard-table td {
  padding: 13px;
}

.dashboard-info-card {
  background-color: #0c1219;
  border-color: rgba(255, 255, 255, .08);
}

.dashboard-account-item {
  background-color: #0c1219;
}

/* Simplify quote modal hierarchy so details scan more easily. */
.quote-modal {
  background: rgba(3, 5, 8, .88);
  backdrop-filter: blur(6px);
}

.quote-modal-content,
.quote-modal-section,
.quote-response-card,
.quote-detail,
.quote-description-box,
.quote-price-panel,
.quote-approval-panel {
  background-image: none !important;
}

.quote-modal-section {
  border-color: rgba(255, 255, 255, .08);
}

/* ============================ MOBILE / TABLET ============================= */
@media (max-width: 1080px) {
  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .brand img {
    width: min(190px, 48vw);
  }

  .mobile-toggle {
    min-width: 48px;
    min-height: 44px;
    padding: 8px 13px;
    border-color: rgba(255, 255, 255, .13);
    background: #11171f;
  }

  .site-nav {
    top: 64px;
    padding: 10px 16px 18px;
    background: #090d12;
    border-bottom-color: rgba(255, 255, 255, .08);
  }

  .site-nav ul {
    gap: 4px;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: .9rem;
    border-radius: 8px;
  }

  .dropdown {
    margin: 0 0 6px 12px;
    padding-left: 8px;
  }

  .dropdown a {
    min-height: 40px;
    padding-block: 8px;
    color: #aab5c0;
    font-size: .84rem;
  }

  .nav-cta {
    justify-content: center;
    margin-block: 5px;
  }

  /* Profile is a full-width, reliable tap target on touch navigation. */
  .profile {
    width: 100% !important;
    min-height: 48px;
    display: flex !important;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 10px !important;
    border-radius: 8px !important;
  }

  .profile img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .profile-overlay {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0;
    font-size: .78rem;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .section {
    padding: 38px 0;
  }

  .section--compact {
    padding: 26px 0;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3.1rem);
    letter-spacing: -.04em;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    letter-spacing: -.025em;
  }

  h3 {
    font-size: 1.08rem;
  }

  .eyebrow,
  .eyebrow2 {
    letter-spacing: .11em;
    line-height: 1.45;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 52px;
  }

  .hero .lead + .lead {
    margin-top: 4px;
  }

  .page-hero {
    padding: 44px 0 32px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .card-body,
  .feature-copy,
  .form-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .button-row {
    gap: 8px;
    margin-top: 18px;
  }

  .button-row .btn {
    flex: 1 1 160px;
  }

  .btn {
    min-height: 46px;
    padding: 10px 15px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px; /* prevents unwanted iOS form zoom */
  }

  textarea {
    min-height: 130px;
  }

  /* Prevent horizontal layout spill from long strings and controls. */
  .card,
  .form-shell,
  .material-card,
  .finish-card,
  .dashboard-panel,
  .quote-modal-content {
    min-width: 0;
  }

  .dashboard-section {
    padding-top: 16px;
    padding-bottom: 34px;
  }

  .dashboard-layout {
    gap: 12px;
  }

  .dashboard-sidebar {
    gap: 10px;
  }

  .dashboard-profile-card {
    padding: 13px;
  }

  .dashboard-profile-image {
    width: 48px;
    height: 48px;
  }

  /* Dashboard navigation becomes a compact horizontal control strip. */
  .dashboard-menu {
    display: flex;
    grid-template-columns: none !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    gap: 5px;
    padding: 5px;
  }

  .dashboard-menu::-webkit-scrollbar {
    display: none;
  }

  .dashboard-menu-link {
    flex: 0 0 auto;
    justify-content: center !important;
    min-height: 40px;
    padding: 0 13px !important;
    white-space: nowrap;
    font-size: .8rem;
    border-left: 0 !important;
    border-bottom: 0 !important;
  }

  .dashboard-menu-link.active {
    background: rgba(22, 140, 255, .14);
  }

  .dashboard-sidebar-action {
    display: none;
  }

  .dashboard-main {
    gap: 12px;
  }

  .dashboard-panel {
    padding: 16px;
    border-radius: 10px;
  }

  .dashboard-panel-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .dashboard-panel-header .btn {
    width: auto;
    min-width: min(100%, 160px);
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .dashboard-stat-card {
    padding: 13px;
  }

  .dashboard-stat-description {
    font-size: .74rem;
  }

  .dashboard-project-grid,
  .dashboard-account-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-table-wrap {
    margin-inline: -2px;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-table {
    min-width: 680px;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 11px 12px;
  }

  .dashboard-info-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  /* Modal gets nearly the full viewport with simpler spacing. */
  .quote-modal {
    padding: 12px;
  }

  .quote-modal-content {
    width: 100%;
    border-radius: 12px;
  }

  .quote-modal-header,
  .quote-modal-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quote-details-grid,
  .quote-response-grid {
    grid-template-columns: 1fr !important;
  }

  .quote-progress {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .quote-progress-step {
    min-width: 110px;
  }

  .tooltip-text {
    width: min(250px, 78vw);
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 22px), var(--content));
  }

  .brand img {
    width: min(166px, 46vw);
  }

  .mobile-toggle {
    padding-inline: 11px;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-stat-value {
    font-size: 1.45rem;
  }

  .dashboard-stat-description {
    display: none;
  }

  .button-row .btn {
    flex-basis: 100%;
  }
}


/* ============================ BETA TESTING BANNER ============================ */
.beta-banner {
  position: fixed;
    top: 70px;
    left: 0;
    z-index: 10;
  width: 100%;
  padding: 5px 16px;
  background: green;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
}

.beta-banner strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .beta-banner {
    padding: 5px 10px;
    font-size: 0.67rem;
  }
}

/* =====================================================================
   TOOLTIP TOUCH FIX - FINAL OVERRIDE
   ===================================================================== */

.tooltip {
  position: relative;
  z-index: 2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tooltip.tooltip-open {
  z-index: 5000;
}

.tooltip.tooltip-open .tooltip-text {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

@media (hover: none), (pointer: coarse) {
  .tooltip:hover .tooltip-text {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .tooltip.tooltip-open .tooltip-text {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
