@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --bg-0: #05080d;
  --bg-1: #0b1219;
  --bg-2: #121b24;
  --bg-3: #1a2633;
  --surface: #111923;
  --surface-2: #162230;
  --text: #ecf2f8;
  --text-soft: #9fb0c0;
  --line: rgba(163, 191, 214, 0.2);
  --line-2: rgba(95, 124, 146, 0.42);
  --aqua: #34d8c8;
  --aqua-soft: #7ae6d9;
  --amber: #f6be82;
  --lime: #c8ff70;
  --danger: #e55f5f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(145deg, #060b11 0%, #0b1219 52%, #0f1720 100%);
  color: var(--text);
  line-height: 1.75;
  color-scheme: dark;
}

a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--aqua-soft); }
img { max-width: 100%; display: block; }

.wrap { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  background: linear-gradient(180deg, rgba(13, 28, 37, 0.62), rgba(6, 15, 22, 0.42));
  border-bottom: 1px solid rgba(52, 216, 200, 0.32);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.05);
}
.site-header .wrap {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Landing header: keep navigation truly centered instead of relying on leftover space. */
.header-actions { margin-inline-start: auto; }
.site-header.no-brand .wrap { position: relative; }
.site-header.no-brand .main-nav {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  justify-content: center;
  white-space: nowrap;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(52, 216, 200, 0.16);
  border-radius: 999px;
  background: rgba(7, 15, 22, 0.34);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 10px 26px rgba(0, 0, 0, 0.16);
}
.site-header.no-brand .main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
}
.site-header.no-brand .main-nav a:hover {
  color: var(--text);
  background: rgba(52, 216, 200, 0.1);
}
.site-header.no-brand .header-actions {
  margin-inline-start: 0;
  margin-inline-end: auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 981px) {
  .site-header.no-brand .header-actions {
    position: absolute;
    left: 0;
    right: auto;
    margin: 0;
  }
}

.brand-center {
  margin-inline: auto;
  z-index: 1;
  gap: 16px;
}

.brand-center .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(52, 216, 200, 0.45), 0 0 30px rgba(52, 216, 200, 0.25);
}

.brand-center .brand-copy { line-height: 1.28; }
.brand-center .brand-copy strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-center .brand-copy small { font-size: 0.82rem; }

/* Landing hero: a single centered hierarchy — identity, badge, headline, actions. */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 560px;
}
.hero-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.hero-brand-mark {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(52, 216, 200, 0.55), 0 0 64px rgba(52, 216, 200, 0.34);
}
.hero-brand-copy { display: grid; line-height: 1.5; }
.hero-brand-copy small {
  color: rgba(232, 240, 247, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
}
.hero-eyebrow { margin: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(52, 216, 200, 0.35), 0 0 22px rgba(52, 216, 200, 0.18);
}
.brand-copy { display: grid; line-height: 1.3; }
.brand-copy strong { color: var(--text); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-copy small { color: var(--text-soft); font-size: 0.78rem; }

.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { white-space: nowrap; }
.header-contact {
  color: var(--amber);
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(246, 190, 130, 0.45);
  padding-bottom: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--aqua) 0%, #28b9ab 100%);
  color: #041015;
  box-shadow: 0 8px 20px rgba(52, 216, 200, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); color: #041015; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-wide { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  /* Content-sized by default — full-viewport height creates a dead void on tall screens. */
  min-height: 0;
  padding: 48px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(52, 216, 200, 0.16), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(246, 190, 130, 0.18), transparent 28%);
  pointer-events: none;
}
.hero-blueprint {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(160, 192, 216, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 192, 216, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}
/* Short landscape desktops: fill the first screen without leaving a tall-screen void. */
@media (min-width: 981px) and (max-height: 820px) {
  .hero {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    padding-block: 28px;
  }
  .hero-grid { width: 100%; }
  .hero-visual { min-height: 360px; }
}
.hero-text h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: 0;
  max-width: 680px;
  margin-inline: auto;
  text-wrap: balance;
}
.lead {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 20px;
}
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: .5px;
}
.eyebrow i {
  width: 38px;
  height: 1px;
  background: rgba(246, 190, 130, 0.75);
  display: block;
}
/* Hero eyebrow reads as a refined glass badge. */
.hero-text .eyebrow {
  padding: 7px 16px;
  border: 1px solid rgba(246, 190, 130, 0.35);
  border-radius: 999px;
  background: rgba(246, 190, 130, 0.07);
  backdrop-filter: blur(6px);
}
.hero-text .eyebrow i { display: none; }
/* The emotional hook word glows inside the hero title. */
.hero-text h1 .hl {
  font-style: normal;
  background: linear-gradient(120deg, var(--aqua), #8ff2e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(52, 216, 200, 0.3);
}
.hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.hero-actions .btn span { font-size: .9rem; }
.trust-line {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.86rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 255, 112, .9);
}

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-source-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
  mix-blend-mode: screen;
  border-radius: var(--radius);
}
.takeoff-panel {
  width: min(100%, 500px);
  background: linear-gradient(165deg, rgba(20, 33, 45, .96), rgba(13, 23, 32, .95));
  border: 1px solid rgba(122, 156, 185, .28);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  animation: panelFloat 8s ease-in-out infinite;
}
@keyframes panelFloat {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}
.panel-top, .panel-heading, .panel-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-mark, .panel-status { color: var(--text-soft); font-size: .66rem; }
.panel-status { color: var(--lime); }
.panel-heading { margin: 14px 0; }
.panel-heading small { color: var(--text-soft); }
.panel-heading h3 { margin: 3px 0 0; color: var(--text); font-size: 1.35rem; }
.panel-menu { color: var(--amber); font-weight: 800; letter-spacing: 3px; }
.blueprint-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(5, 10, 15, 0.55);
  position: relative;
}
.blueprint-box svg { width: 100%; height: 130px; fill: none; stroke: #9ad6d0; opacity: .72; }
.blueprint-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: var(--aqua-soft);
  font-size: .68rem;
}
.qty-list { margin-top: 10px; }
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(155, 182, 205, .16);
}
.qty-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--aqua);
  border: 1px solid rgba(52, 216, 200, .42);
  border-radius: 8px;
}
.qty-row b { display: block; color: var(--text); font-size: .84rem; }
.qty-row small { color: var(--text-soft); font-size: .68rem; }
.qty-row > strong { color: var(--aqua-soft); font-size: .85rem; }
.qty-row div { flex: 1; }

.panel-total {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--text-soft);
  font-size: .7rem;
}
.panel-total strong { color: var(--lime); font-size: 1.45rem; }
.panel-total small { font-size: .7rem; }
.panel-progress { margin-top: 10px; gap: 10px; color: var(--text-soft); font-size: .72rem; }
.panel-progress b { color: var(--text); }
.panel-progress i {
  height: 3px;
  background: rgba(125, 154, 177, 0.2);
  display: block;
  flex: 1;
}
.panel-progress em {
  height: 100%;
  width: 78%;
  display: block;
  background: linear-gradient(90deg, var(--aqua), var(--lime));
}

.metric {
  position: absolute;
  z-index: 3;
  background: rgba(238, 246, 255, .96);
  color: #0f1f2a;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(147, 177, 202, 0.4);
}
.metric strong { display: block; font-size: 1.25rem; }
.metric span { font-size: .7rem; color: #486174; }
.metric-top { top: 18px; right: 4px; }
.metric-bottom { left: 4px; bottom: 18px; }
.visual-caption {
  position: absolute;
  bottom: -2px;
  right: 0;
  color: var(--text-soft);
  font-size: .72rem;
}
.visual-caption span { color: var(--amber); margin-left: 8px; }

/* Proof strip */
.proof-strip {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(52, 216, 200, .08), transparent 55%),
    linear-gradient(90deg, #0a121a, #121f2c 50%, #0a121a);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.proof-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.proof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid rgba(155, 182, 205, .22);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
  text-align: center;
}
.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 216, 200, .45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}
.proof-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 11px;
  border: 1px solid rgba(52, 216, 200, .35);
  background: rgba(52, 216, 200, .1) center / 20px 20px no-repeat;
}
.proof-card--time .proof-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.proof-card--report .proof-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
}
.proof-card--isolate .proof-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
.proof-card--sign .proof-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8ff70' stroke-width='2'%3E%3Cpath d='M7 17L17 7M17 7H9M17 7v8'/%3E%3C/svg%3E");
  border-color: rgba(200, 255, 112, .45);
  background-color: rgba(200, 255, 112, .1);
}
.proof-card strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.proof-card > span:last-child {
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.55;
  max-width: 18ch;
}
.proof-card--sign {
  border-color: rgba(200, 255, 112, .35);
  background: linear-gradient(165deg, rgba(200, 255, 112, .12), rgba(255, 255, 255, .02));
}
.proof-card--sign strong { color: var(--lime); }

/* Generic section */
.section { padding: 88px 0; }
.section-kicker { margin-bottom: 16px; }
.section-kicker span { color: var(--text-soft); margin-right: auto; }

/* Banners */
.banner-section {
  background: linear-gradient(180deg, #0f171f 0%, #121b24 100%);
}
.banner-rail {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.banner-card {
  background: #172331;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 230px;
}
.banner-copy { padding: 20px; }
.banner-copy small { color: var(--amber); font-size: .66rem; }
.banner-copy h3 { margin: 10px 0 6px; color: var(--text); font-size: 1.2rem; }
.banner-copy p { color: var(--text-soft); font-size: .86rem; }
.banner-copy .text-link { color: var(--aqua-soft); font-weight: 700; }

/* About / how it works */
.about-section {
  background:
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(246, 190, 130, .06), transparent 55%),
    linear-gradient(175deg, #0e161f 0%, #121c26 100%);
  color: var(--text);
  position: relative;
  isolation: isolate;
}
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background: url('/images/texture-charcoal.png') center / cover no-repeat;
  pointer-events: none;
}
.workflow-board {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}
.workflow-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 2.8vw, 2.6rem);
  line-height: 1.15;
}
.workflow-intro p {
  margin: 0 0 18px;
  color: #b7c9d9;
  font-size: .95rem;
  line-height: 1.8;
  max-width: 38ch;
}
.workflow-steps {
  display: grid;
  gap: 14px;
}
.workflow-step {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid rgba(155, 182, 205, .22);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.workflow-step:hover {
  transform: translateX(-6px);
  border-color: rgba(52, 216, 200, .48);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}
.workflow-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.workflow-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--amber);
}
.workflow-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(52, 216, 200, .35);
  background: rgba(52, 216, 200, .1) center / 18px 18px no-repeat;
}
.workflow-icon--plan {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
}
.workflow-icon--calc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 10h2M12 10h2M16 10h0M8 14h2M12 14h2M16 14h0M8 18h8'/%3E%3C/svg%3E");
}
.workflow-icon--share {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8M16 6l-4-4-4 4M12 2v14'/%3E%3C/svg%3E");
}
.workflow-step h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
}
.workflow-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.65;
}
.about-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 58px;
}
.section-intro h2,
.workflow-intro h2,
.capability-heading h2,
.pricing-heading h2,
.badges-section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.1;
}
.section-intro p, .pricing-heading p { color: #4d667b; }
.text-link { color: var(--aqua); font-weight: 700; }

/* Features — capability board */
.feature-section {
  background:
    radial-gradient(ellipse 55% 40% at 15% 30%, rgba(52, 216, 200, .09), transparent 55%),
    linear-gradient(160deg, #070c12 0%, #0e1722 52%, #111c28 100%);
}
.capability-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 52ch;
}
.capability-heading h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.25;
}
.capability-heading p {
  max-width: none;
  margin: 0;
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.75;
}
.capability-board {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: stretch;
}
.capability-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px;
  border: 1px solid rgba(52, 216, 200, .32);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(52, 216, 200, .1), rgba(10, 16, 24, .96)),
    repeating-linear-gradient(-12deg, transparent 0 14px, rgba(52, 216, 200, .025) 14px 15px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 22px 48px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.capability-showcase::before,
.capability-showcase::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(52, 216, 200, .45);
  pointer-events: none;
  z-index: 2;
}
.capability-showcase::before {
  top: 12px;
  inset-inline-start: 12px;
  border-left: none;
  border-bottom: none;
}
.capability-showcase::after {
  bottom: 12px;
  inset-inline-end: 12px;
  border-right: none;
  border-top: none;
}
.capability-showcase-glow {
  position: absolute;
  inset: -25% auto auto -20%;
  width: 65%;
  height: 55%;
  background: radial-gradient(circle, rgba(52, 216, 200, .2), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.capability-showcase-ring {
  position: absolute;
  inset-block-start: -40px;
  inset-inline-end: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(246, 190, 130, .22);
  pointer-events: none;
}
.capability-showcase-head {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(155, 182, 205, .18);
}
.capability-showcase-head strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.65rem;
  line-height: 1.35;
}
.capability-showcase-head em {
  color: var(--lime);
  font-style: normal;
}
.capability-showcase-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.65;
}
.capability-chips {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  align-content: start;
}
.capability-chips li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(155, 182, 205, .2);
  background: rgba(0, 0, 0, .28);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.capability-chips li:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 216, 200, .5);
  background: rgba(52, 216, 200, .1);
}
.capability-chips span {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
}
.capability-chips small {
  font-size: .72rem;
  font-weight: 700;
  color: var(--amber);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(155, 182, 205, .22);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  overflow: hidden;
}
.capability-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  opacity: 0;
  transition: opacity .28s ease;
}
.capability-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 216, 200, .48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 16px 36px rgba(0, 0, 0, .32);
}
.capability-card:hover::after { opacity: 1; }
.capability-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.capability-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--amber);
}
.capability-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(52, 216, 200, .4);
  background: rgba(52, 216, 200, .1);
  color: var(--aqua-soft);
  transition: transform .28s ease, color .28s ease, background .28s ease;
}
.capability-icon svg { width: 18px; height: 18px; }
.capability-card:hover .capability-icon {
  transform: rotate(-6deg) scale(1.05);
  color: var(--lime);
  background: rgba(200, 255, 112, .12);
  border-color: rgba(200, 255, 112, .45);
}
.capability-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}
.capability-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: .84rem;
  line-height: 1.65;
}

/* Pricing — blueprint quote boards */
.pricing-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(52, 216, 200, .1), transparent 60%),
    linear-gradient(145deg, #05090e 0%, #0c141d 48%, #101c28 100%);
}
.pricing-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 52ch;
}
.pricing-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.25;
}
.pricing-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.75;
}
.pricing-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.quote-plan {
  --quote-accent: var(--aqua);
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 22px;
  border: 1px solid rgba(155, 182, 205, .28);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 30, 42, .96), rgba(10, 16, 24, .98)),
    repeating-linear-gradient(
      -12deg,
      transparent 0 14px,
      rgba(52, 216, 200, .025) 14px 15px
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.quote-plan::before,
.quote-plan::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(52, 216, 200, .45);
  pointer-events: none;
  z-index: 2;
}
.quote-plan::before {
  top: 12px;
  inset-inline-start: 12px;
  border-left: none;
  border-bottom: none;
}
.quote-plan::after {
  bottom: 12px;
  inset-inline-end: 12px;
  border-right: none;
  border-top: none;
}
.quote-plan-glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70%;
  height: 55%;
  background: radial-gradient(circle, rgba(52, 216, 200, .22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  opacity: .85;
}
.quote-plan:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 216, 200, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 28px 56px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(52, 216, 200, .2);
}
.quote-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.quote-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(52, 216, 200, .35);
  background: rgba(52, 216, 200, .1);
  color: var(--aqua-soft);
  font-size: .72rem;
  font-weight: 800;
}
.quote-chip--hot {
  border-color: rgba(200, 255, 112, .55);
  background: var(--lime);
  color: #15210d;
}
.quote-meta {
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
}
.quote-plan h3 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
}
.quote-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(155, 182, 205, .18);
  background: rgba(0, 0, 0, .28);
}
.quote-amount b {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
}
.quote-amount em {
  font-style: normal;
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 600;
}
.quote-amount--hot {
  border-color: rgba(200, 255, 112, .35);
  background: linear-gradient(135deg, rgba(200, 255, 112, .14), rgba(0, 0, 0, .35));
}
.quote-amount--hot b { color: var(--lime); }
.quote-save {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}
.quote-seats {
  margin: 0 0 10px;
  color: var(--aqua-soft);
  font-size: .84rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
}
.quote-copy {
  margin: 0 0 18px;
  color: #b7c9d9;
  font-size: .9rem;
  line-height: 1.75;
}
.pricing-seats-note {
  margin: 22px auto 0;
  max-width: 52ch;
  text-align: center;
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.7;
}
.pricing-seats-note strong { color: #e8f0f7; }
.team-seat-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.65;
}
.team-seat-note a {
  color: var(--aqua-soft);
  font-weight: 700;
  text-decoration: none;
}
.team-seat-note a:hover { text-decoration: underline; }
.quote-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}
.quote-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #d5e4f1;
  font-size: .88rem;
  line-height: 1.55;
}
.quote-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8c8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
      center / 14px 14px no-repeat,
    rgba(52, 216, 200, .12);
  border: 1px solid rgba(52, 216, 200, .35);
}
.quote-plan--year .quote-list li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315210d' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
      center / 14px 14px no-repeat,
    var(--lime);
  border-color: rgba(200, 255, 112, .7);
}
.quote-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  min-height: 46px;
  font-weight: 700;
}
.quote-plan--trial { --quote-accent: #7aa0b8; }
.quote-plan--six { --quote-accent: var(--aqua); }
.quote-plan--year {
  --quote-accent: var(--lime);
  border-color: rgba(200, 255, 112, .5);
  background:
    linear-gradient(165deg, rgba(200, 255, 112, .16), rgba(12, 22, 18, .96) 42%, rgba(10, 16, 24, .98)),
    repeating-linear-gradient(-12deg, transparent 0 14px, rgba(200, 255, 112, .03) 14px 15px);
  transform: translateY(-10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 24px 50px rgba(0, 0, 0, .42),
    0 0 40px rgba(200, 255, 112, .12);
}
.quote-plan--year:hover {
  transform: translateY(-14px);
  border-color: rgba(200, 255, 112, .65);
}
.quote-plan--year .quote-plan-glow {
  background: radial-gradient(circle, rgba(200, 255, 112, .28), transparent 70%);
}
.quote-plan--year h3 { color: var(--lime); }

/* Badges */
.badges-section {
  background: #edf2f8;
  color: #172431;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccd8e4;
  border-radius: 12px;
  background: #fff;
  color: #24394c;
  padding: 10px 14px;
}
.badge:hover { border-color: #84a8c9; }
.badge img,
.socials img { width: 34px; height: 34px; object-fit: contain; }

/* Footer */
.site-footer {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(52, 216, 200, .08), transparent 55%),
    linear-gradient(180deg, #060b11 0%, #0a121b 100%);
  border-top: 1px solid var(--line);
  padding: 44px 0 24px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 60%;
  background: radial-gradient(circle at 50% 100%, rgba(52, 216, 200, .12), transparent 65%);
  pointer-events: none;
}
.footer-shell { position: relative; z-index: 1; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px 72px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(155, 182, 205, .14);
}
.footer-brand-pane {
  min-width: 0;
  max-width: 34ch;
}
.footer-brand { margin: 0 0 14px; }
.footer-about {
  margin: 0;
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.8;
}
.footer-nav-pane {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, auto));
  gap: 28px 48px;
  min-width: 0;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.footer-title {
  margin: 0 0 6px;
  color: #f2f7fb;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.footer-nav-col > a {
  color: #9eb4c6;
  font-size: .9rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav-col > a:hover { color: var(--aqua-soft); }
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(155, 182, 205, .12);
  text-align: center;
}
.footer-trust-label {
  color: #8eb4cc;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.footer-trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(155, 182, 205, .16);
  background: rgba(255, 255, 255, .03);
  color: #d7e4ef;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-chip:hover {
  border-color: rgba(52, 216, 200, .4);
  color: #fff;
}
.footer-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 18px;
  text-align: center;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(155, 182, 205, .16);
  background: rgba(255, 255, 255, .03);
}
.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer-copy {
  margin: 0;
  width: 100%;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
}
.site-footer a:hover { color: var(--aqua-soft); }

/* Floating WhatsApp — public pages only (rendered with site footer) */
.wa-float {
  position: fixed;
  z-index: 60;
  inset-inline-start: 20px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover {
  color: #fff !important;
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
}
.wa-float-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .wa-float {
    inset-inline-start: 14px;
    bottom: 16px;
    padding: 11px 14px;
  }
  .wa-float span { font-size: .88rem; }
  .to-top {
    inset-inline-end: 14px;
    bottom: 16px;
  }
}

/* Back to top — opposite corner from WhatsApp */
.to-top {
  position: fixed;
  z-index: 60;
  inset-inline-end: 20px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(16, 36, 48, .92);
  color: var(--aqua-soft);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(52, 216, 200, .28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover {
  background: rgba(52, 216, 200, .18);
  color: #fff;
}
.to-top svg {
  width: 20px;
  height: 20px;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.03);
}

/* Auth / forms */
.auth-box {
  width: min(460px, calc(100% - 32px));
  margin: 58px auto;
  background: rgba(17, 25, 35, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.auth-shell { display: grid; justify-items: center; }
.auth-brand { margin: 46px auto 0; }
.auth-brand .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-brand .brand-copy strong { font-size: 1.5rem; }
.auth-brand .brand-copy small { font-size: .78rem; }
.auth-shell .auth-box { margin-top: 18px; }
.auth-box h1 { margin-top: 0; text-align: start; }
.auth-box > .muted,
.auth-box > p.muted { text-align: start; margin-top: 0; }
.auth-box .form-notice,
.auth-box .form-error,
.auth-box .form-success { text-align: start; }
label { display: block; font-weight: 700; margin: 12px 0 6px; color: var(--text); }
input[type=text],
input[type=password],
input[type=url],
input[type=number],
input[type=email],
input[type=tel],
input[type=file],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  line-height: 1.5;
}
/* A select sizes itself from its own internals and lands a couple of pixels away from a
   text box, so single-line controls are pinned to one shared height. */
input[type=text],
input[type=password],
input[type=url],
input[type=number],
input[type=email],
input[type=tel],
input[type=file],
select { height: 48px; padding-left: 40px; font-size: 0.85rem; }

/* Custom dropdown: replaces native select to prevent text clipping */
.cselect { position: relative; width: 100%; }
.cselect-native {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; overflow: hidden;
}
.cselect-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  cursor: pointer;
  text-align: right;
  transition: border-color .15s ease;
}
.cselect-btn:hover { border-color: rgba(52, 216, 200, .4); }
.cselect.open .cselect-btn { border-color: var(--aqua); }
.cselect-label { flex: 1; min-width: 0; }
.cselect-arrow { flex-shrink: 0; color: var(--text-soft); display: inline-flex; transition: transform .2s ease; }
.cselect.open .cselect-arrow { transform: rotate(180deg); }
.cselect-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 100;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  max-height: 260px;
  overflow-y: auto;
}
.cselect-option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .12s ease;
}
.cselect-option:hover { background: rgba(52, 216, 200, .1); }
.cselect-option.active { background: rgba(52, 216, 200, .15); color: var(--aqua-soft); font-weight: 600; }
.cselect.drop-up .cselect-list { top: auto; bottom: calc(100% + 4px); }
/* The file picker keeps its native button, so it is toned down to match the fields. */
input[type=file] { padding: 9px 12px; cursor: pointer; }
input[type=file]::file-selector-button {
  margin-inline-end: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}
/* Native spinners appear only on hover/focus and only on number fields, which makes
   otherwise identical boxes look different from one another. */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(52, 216, 200, .68);
  box-shadow: 0 0 0 3px rgba(52, 216, 200, .16);
}
textarea { min-height: 100px; }
/* Status pills. Admin lists say "نعم / لا" in a dozen places; colour makes them readable at a glance. */
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid;
}
.pill-on { color: var(--aqua-soft); border-color: rgba(52, 216, 200, .5); background: rgba(52, 216, 200, .12); }
.pill-off { color: var(--text-soft); border-color: var(--line); background: rgba(255, 255, 255, .04); }
.pill-warn { color: var(--amber); border-color: rgba(246, 190, 130, .5); background: rgba(246, 190, 130, .1); }
.pill-bad { color: #ff9b9b; border-color: rgba(229, 95, 95, .55); background: rgba(229, 95, 95, .12); }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-side {
  background: linear-gradient(180deg, #081018 0%, #0f1a26 100%);
  border-left: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  display: grid;
  gap: 2px;
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--line);
}
.admin-brand strong { font-size: 1.05rem; }
.admin-brand small { color: var(--text-soft); font-size: .76rem; }
.admin-nav { display: grid; }
/* Group headings, so nine links read as three short lists instead of one long one. */
.admin-nav .nav-label {
  color: var(--text-soft);
  font-size: .72rem;
  letter-spacing: .06em;
  padding: 16px 12px 4px;
}
.admin-side a {
  display: block;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 5px;
}
.admin-side a:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.admin-side a.active {
  color: var(--text);
  background: rgba(52, 216, 200, .12);
  box-shadow: inset -3px 0 0 var(--aqua);
}
.admin-side-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admin-side-foot .nav-external { color: var(--amber); font-size: .85rem; }
.admin-side-foot form { margin-top: 8px; }
.admin-side-foot .btn-ghost { color: #fff; border-color: var(--line-2); }
/* min-width:0 lets a wide table scroll inside the column instead of stretching the whole page. */
.admin-main { padding: 24px 20px 36px; background: #0d151f; min-width: 0; }
/* The admin column is narrower than the takeoff sheet, so its forms sit two across. */
.admin-main .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-main .grid-form .span-2 { grid-column: 1 / -1; }
.admin-main .card h3 { margin: 0 0 4px; }
.admin-main .card h3 + .muted { margin: 0 0 14px; }
.admin-main .card h3 + .grid-form { margin-top: 14px; }
.admin-main .card h4 { margin: 0 0 12px; color: var(--aqua-soft); font-size: .95rem; }
/* A checkbox reads as one line; the column layout of the other labels would stack it above its text. */
.grid-form label.switch {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  align-self: end;
}
.grid-form label.switch input { width: 18px; height: 18px; accent-color: var(--aqua); }
.stack-fields label.switch {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.stack-fields label.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--aqua);
  flex-shrink: 0;
}

/* One sheet with ruled sections. Separate floating boxes made a long form look like scattered
   fragments, so the sections are divided rather than detached. */
/* No overflow clipping here: it would break the sticky save bar inside. */
.sheet {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #121c28;
}
.sheet-section { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-section:last-of-type { border-bottom: none; }
.sheet-section > header { margin-bottom: 6px; }
.sheet-section h3 { margin: 0; font-size: 1rem; }
.sheet-section > header p { margin: 3px 0 0; font-size: .82rem; color: var(--text-soft); }

/* Label on the right, control on the left: the eye follows one column instead of hopping. */
.setting-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 6px 24px;
  padding: 14px 0;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.sheet-section > header + .setting-row { border-top: none; }
/* Marks the start of a new group inside one form without splitting the sheet. */
.setting-row.section-break { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 20px; }

/* Quick jump links above a long settings sheet. */
.sheet-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.sheet-toc-label {
  color: var(--text-soft);
  font-size: .74rem;
  letter-spacing: .04em;
  margin-inline-end: 4px;
}
.sheet-toc a {
  color: var(--aqua-soft);
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 216, 200, .18);
  background: rgba(52, 216, 200, .06);
}
.sheet-toc a:hover {
  color: var(--text);
  border-color: rgba(52, 216, 200, .35);
  background: rgba(52, 216, 200, .12);
}
/* Sub-headings inside one sheet-section (e.g. join flow groups). */
.sheet-subhead {
  margin: 18px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--aqua-soft);
  font-size: .86rem;
  font-weight: 700;
}
.sheet-section > header + .sheet-subhead {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.setting-row > .label strong { font-size: .9rem; font-weight: 600; }
.setting-row > .label small {
  display: block;
  margin-top: 4px;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.setting-row > .control { display: grid; gap: 10px; }
.setting-row .control input,
.setting-row .control select,
.setting-row .control textarea { width: 100%; }
.control-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.control-inline > label { display: grid; gap: 5px; flex: 1 1 140px; }
.control-inline > label > span { font-size: .74rem; color: var(--text-soft); }
.sheet input:not([type=file]), .sheet select { height: 44px; }
.narrow-sheet { max-width: 620px; }
.admin-security {
  width: 100%;
  max-width: none;
}
.admin-main .sheet-head {
  padding: 16px 18px 0;
}
.admin-main .sheet-head h2 { margin: 0 0 6px; font-size: 1.05rem; }
.admin-main .sheet-head .muted { margin: 0 0 10px; }

/* ========== Subscriber workspace: one visual system ========== */
.account-section {
  padding-block: 18px 48px;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(52, 216, 200, .06), transparent 55%),
    transparent;
}
.account-wrap {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}
.account-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
.account-content-focused {
  max-width: 680px;
  margin-inline: auto;
  width: 100%;
}

/* Page title: always a clean block under the tabs */
.account-content > .work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
  padding-bottom: 4px;
}
.account-content > .work-head > div {
  min-width: 0;
  flex: 1 1 220px;
}
.account-content > .work-head .section-kicker {
  display: inline-block;
  margin-bottom: 2px;
}
.account-content > .work-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  font-weight: 800;
}
.account-content > .work-head .muted {
  margin: 0;
  max-width: 40rem;
  line-height: 1.65;
  font-size: .9rem;
}

/* Focused settings pages: column centered on the canvas, content RTL-start inside */
.account-content-focused > .work-head {
  justify-content: flex-start;
}
.account-content-focused .sheet {
  border-radius: 18px;
}
.account-content-focused .save-bar {
  justify-content: flex-start;
}
.account-content-focused .security-layout {
  grid-template-columns: 1fr;
  gap: 14px;
}

.branding-sheet { width: 100%; }
.branding-form .save-bar { margin-top: 4px; }
.branding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}
.branding-grid > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.branding-grid > label > span {
  font-size: .82rem;
  color: var(--text-soft);
  font-weight: 600;
}
.branding-grid .span-2 { grid-column: 1 / -1; }
.branding-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.branding-logo > span {
  font-size: .82rem;
  color: var(--text-soft);
  font-weight: 600;
}
.branding-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.account-content .summary-grid {
  gap: 12px;
}
.account-content .card {
  border-radius: 16px;
}
.account-content .sheet {
  border-radius: 16px;
}
.account-content .work-layout {
  gap: 16px;
}
.account-content .side-form .grid-form,
.account-content .side-form .stack-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.account-content .side-form .grid-form .span-2 {
  grid-column: 1 / -1;
}
.account-content .side-form .sheet-head h2,
.account-content .side-form .sheet-section > h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.account-content .member-row {
  gap: 12px;
  padding: 14px 16px;
}
.account-content .issued-password {
  border-radius: 16px;
}
.year-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Office activity feed */
.activity-filters { margin: 0; }
.activity-sheet { padding-bottom: 8px; }
.activity-day + .activity-day {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.activity-day-title {
  margin: 0;
  padding: 12px 18px 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .02em;
}
.activity-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 18px;
}
.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--text-soft);
}
.activity-dot-auth { background: #7dd3fc; }
.activity-dot-security { background: #fbbf24; }
.activity-dot-team { background: #c4b5fd; }
.activity-dot-projects { background: var(--aqua, #34d8c8); }
.activity-dot-office { background: #86efac; }
.activity-dot-other { background: #94a3b8; }
.activity-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.activity-main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  line-height: 1.5;
  font-size: .92rem;
}
.activity-main strong { font-weight: 700; }
.activity-detail { color: var(--text-soft); }
.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: .8rem;
  white-space: nowrap;
}
.activity-pill {
  font-size: .72rem;
  padding: 2px 8px;
}

/* Library: compact wide form, list below — no tall side column */
.library-import {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
}
.library-import > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 600;
  font-size: .92rem;
}
.library-import > summary::-webkit-details-marker { display: none; }
.library-import[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.library-import > .muted { margin: 0 0 10px; font-size: .85rem; }
.library-import .row-actions { margin-bottom: 12px; }
.library-editor .sheet-section { padding-top: 10px; }
.library-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}
.library-form > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.library-form > label > span {
  font-size: .78rem;
  color: var(--text-soft);
  font-weight: 600;
}
.library-form input,
.library-form select {
  height: 40px;
  width: 100%;
  min-width: 0;
}
.library-form .span-all { grid-column: 1 / -1; }
.library-form .span-2 { grid-column: span 2; }
.library-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.library-form-actions .field-note {
  margin: 0;
  flex: 1 1 200px;
}
@media (max-width: 900px) {
  .library-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-form .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .library-form { grid-template-columns: 1fr; }
  .library-form .span-2,
  .library-form .span-all { grid-column: auto; }
}

@media (max-width: 700px) {
  .branding-grid { grid-template-columns: 1fr; }
  .branding-grid .span-2 { grid-column: auto; }
  .account-wrap { width: calc(100% - 28px); }
}
.path-value {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  font-size: .82rem;
  overflow-wrap: anywhere;
}
.sheet .thumb-inline {
  width: 132px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* Reads as the bottom edge of the sheet rather than a button floating over the fields. */
.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 15px 15px;
  background: #16212e;
}
.save-bar .muted { font-size: .82rem; }

/* The editor stays beside the list, so pressing "تعديل" never sends you hunting. */
.side-form { align-self: start; position: sticky; top: 18px; }
.item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Small labelled facts inside an entry, in place of the table columns they replaced. */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}
.fact-row > span { display: grid; font-size: .88rem; }
.fact-row small { color: var(--text-soft); font-size: .72rem; }

.tab-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 600;
}
.tab span {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 0 8px;
  font-size: .76rem;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active {
  color: var(--aqua-soft);
  border-color: rgba(52, 216, 200, .5);
  background: rgba(52, 216, 200, .12);
}

/* Account tabs: classic horizontal pills, one row — scroll without a visible bar. */
.account-tabs {
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.account-tabs-track {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.account-tabs-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.account-tabs.is-overflow .account-tabs-track {
  justify-content: flex-start;
}
.account-tabs.is-overflow-start::before,
.account-tabs.is-overflow-end::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 1;
}
.account-tabs.is-overflow-start::before {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}
.account-tabs.is-overflow-end::after {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}
.account-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.account-tab:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.account-tab.active {
  color: var(--aqua-soft);
  border-color: rgba(52, 216, 200, .5);
  background: rgba(52, 216, 200, .12);
}

/* Deleting an office is irreversible, so it is folded away instead of sitting beside routine buttons. */
.danger-zone { flex-basis: 100%; margin-top: 12px; }
.danger-zone summary {
  cursor: pointer;
  color: #ff9b9b;
  font-size: .84rem;
  font-weight: 600;
}
.danger-zone .delete-account { margin-top: 10px; }
.extend-form { display: flex; gap: 6px; align-items: center; }
.extend-form select { height: 42px; padding: 6px 10px; font-size: .84rem; }
/* Admin pages mix cards, grids and tables, so each block is spaced from whatever precedes it. */
.admin-main > * + .card,
.admin-main > * + .card-grid,
.admin-main > * + .sheet,
.admin-main > * + .work-layout,
.admin-main > * + .table { margin-top: 18px; }
.card {
  background: #121c28;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.card-grid { display: grid; gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* One line per pending item: dense enough to scan, with the action at the end of the line. */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font-size: 1rem; }
/* A collapsible card: the title is the whole toggle, content slides open under it. */
.toggle {
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.toggle:last-child { border-bottom: none; }
.toggle > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.toggle > summary::-webkit-details-marker { display: none; }
.toggle > summary:hover { background: rgba(255, 255, 255, .025); }
.toggle > summary::after {
  content: "‹";
  flex-shrink: 0;
  color: var(--text-soft);
  font-size: 1.1rem;
  transition: transform .18s ease;
}
.toggle[open] > summary::after { transform: rotate(-90deg); }
.toggle[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.toggle-body { padding: 10px 18px 14px; display: grid; gap: 10px; align-content: start; }
.toggle .row-thumb { flex-shrink: 0; }
.toggle .pill { flex-shrink: 0; }

.line-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.line-row:last-child { border-bottom: none; }
.line-main { flex: 1 1 200px; min-width: 0; }
.line-main strong { display: block; font-size: .93rem; }
.line-main small { color: var(--text-soft); font-size: .78rem; }
.line-price { flex-shrink: 0; font-size: .95rem; }
.line-price strong { color: var(--aqua-soft); }
.line-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.line-row .row-thumb {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.line-row .row-icon { width: 34px; height: 34px; object-fit: contain; }
/* In a long list, filled red buttons become the loudest thing on the page for no reason. */
.line-row .btn-danger,
.entry-row .btn-danger,
.toggle .btn-danger {
  background: transparent;
  border: 1px solid rgba(229, 95, 95, .45);
  color: #ff9b9b;
}
.line-row .btn-danger:hover,
.entry-row .btn-danger:hover,
.toggle .btn-danger:hover { background: rgba(229, 95, 95, .16); }
.line-row.row-editing { background: rgba(52, 216, 200, .07); }
.empty-state strong { display: block; margin-bottom: 4px; }
.empty-state p { margin: 0; }
.sheet-empty { padding: 14px 18px; color: var(--text-soft); font-size: .88rem; }

/* Entries that carry their own small form need room to breathe, but still read as one list. */
.entry-row { padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.entry-row:last-child { border-bottom: none; }
.entry-row .item-actions { border-top: none; padding-top: 12px; }
.entry-row .contact-form { margin-top: 12px; }

.side-form .sheet-section { padding: 12px 14px; }
.side-form .grid-form {
  grid-template-columns: 1fr;
}
.side-form .grid-form .span-2,
.side-form .grid-form .form-actions {
  grid-column: 1 / -1;
}
.side-form .save-bar { position: static; }
.side-form .save-bar .btn { width: 100%; }

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #111b27;
  border: 1px solid var(--line);
}
.table th, .table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(155, 182, 205, .15);
  border-inline-end: 1px solid rgba(155, 182, 205, .12);
  text-align: right;
  vertical-align: middle;
}
.table th:last-child, .table td:last-child { border-inline-end: none; }
.table th {
  background: #172534;
  color: #d9e8f6;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
}
.table tr:hover td { background: #152130; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table .row-actions {
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.takeoff-list { display: grid; gap: 22px; }
.takeoff-group { display: grid; gap: 14px; }
.takeoff-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 0;
}
.takeoff-group-head h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aqua-soft);
}
.takeoff-group-head span { color: var(--text-soft); font-weight: 600; }
.takeoff-item {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111b27;
}
.takeoff-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.takeoff-title-block { min-width: 0; flex: 1; }
.takeoff-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.takeoff-order {
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
}
.order-btn {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(155, 182, 205, .35);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.order-btn:hover:not(:disabled) {
  border-color: rgba(52, 216, 200, .55);
  background: rgba(52, 216, 200, .1);
  color: #fff;
}
.order-btn:disabled {
  opacity: .35;
  cursor: default;
}
.takeoff-item-title {
  display: block;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}
.takeoff-formula {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.75;
}
.takeoff-item.moving { opacity: .72; pointer-events: none; }
.takeoff-cat {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(155, 182, 205, .2);
  background: rgba(255, 255, 255, .04);
  font-size: .8rem;
  color: var(--text-soft);
}
.takeoff-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.takeoff-metrics > div {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(155, 182, 205, .12);
  background: rgba(255, 255, 255, .035);
  text-align: center;
}
.takeoff-metrics dt {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 600;
}
.takeoff-metrics dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.takeoff-metrics .progress-form {
  display: flex;
  justify-content: center;
}
.takeoff-total { color: var(--aqua-soft); }
.takeoff-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(155, 182, 205, .12);
}
.takeoff-actions form { margin: 0; }
.takeoff-actions .btn-small { padding: 8px 14px; }
.takeoff-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #16222f;
  font-weight: 700;
}
.takeoff-earned { background: rgba(52, 216, 200, .08); color: var(--aqua-soft); }
@media (max-width: 900px) {
  .takeoff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.row-actions-order {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
  padding-inline-end: 6px;
  margin-inline-end: 2px;
  border-inline-end: 1px solid rgba(155, 182, 205, .18);
}
.thumb { width: 42px; height: 42px; border-radius: 10px; background: #0a1016; }
.switch { display: flex; align-items: center; gap: 8px; }
.muted { color: var(--text-soft); }

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid, .about-grid, .workflow-board, .capability-board { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: 0; }
  .hero-visual { min-height: 380px; }
  /* The hero remains one centered hierarchy when the columns stack. */
  .hero-text .lead { margin-inline: auto; }
  .hero-text .hero-actions { justify-content: center; }
  .proof-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-card--sign { grid-column: 1 / -1; }
  .pricing-board { grid-template-columns: 1fr; }
  .quote-plan--year { transform: none; }
  .quote-plan--year:hover { transform: translateY(-6px); }

  .card-grid.two, .card-grid.three { grid-template-columns: 1fr; }
  .footer-top { justify-content: center; gap: 28px 40px; }
  .footer-nav-pane { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .admin-shell { grid-template-columns: 1fr; }
  /* Stacked above the content, the sidebar reads better as a compact grid than a tall column. */
  .admin-side { position: static; max-height: none; }
  .admin-nav { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 0 8px; }
  .admin-nav .nav-label { grid-column: 1 / -1; padding-top: 12px; }
  .admin-side-foot { display: flex; align-items: center; gap: 12px; }
  .admin-side-foot form { margin-top: 0; margin-right: auto; }
  .admin-side-foot .btn-wide { width: auto; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1220px); }
  .brand-copy small, .header-contact { display: none; }
  .site-header .wrap { min-height: 70px; gap: 10px; }
  .brand-copy strong { font-size: 1.02rem; }
  .brand-center .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand-center .brand-copy strong { font-size: 1.3rem; }
  .hero-brand-mark { width: 88px; height: 88px; border-radius: 24px; }
  .hero-intro { margin-bottom: 18px; gap: 12px; }
  /* Compact actions sized to their labels instead of stretching across the phone. */
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 8px; }
  .hero-actions .btn { width: auto; justify-content: center; padding: 8px 13px; font-size: 0.84rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 12px; font-size: .84rem; }
  .hero { padding: 62px 0 56px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .takeoff-panel { transform: none; padding: 16px; }
  .metric { padding: 9px 10px; }
  .metric-top { right: 6px; }
  .metric-bottom { left: 6px; }
  .banner-card { grid-template-columns: 1fr; }
  .proof-board { grid-template-columns: 1fr; }
  .workflow-step:hover { transform: translateY(-4px); }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand-pane { max-width: 42ch; }
  .footer-nav-pane { grid-template-columns: 1fr 1fr; gap: 22px 32px; justify-items: center; }
  .footer-nav-col { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Charcoal identity: textures, card segmentation, interactions
   ============================================================ */

.hero {
  background:
    linear-gradient(180deg, rgba(5, 8, 13, .82) 0%, rgba(7, 12, 18, .92) 100%),
    url('/images/texture-charcoal.png') center / cover no-repeat;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  border-radius: 28px;
  background: radial-gradient(circle at 65% 40%, rgba(52, 216, 200, .16), transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-source-image {
  opacity: .5;
  mix-blend-mode: normal;
  border: 1px solid var(--line);
  filter: saturate(1.05) contrast(1.05);
}
.takeoff-panel { position: relative; z-index: 2; }

.feature-section,
.pricing-section,
.site-footer {
  position: relative;
  isolation: isolate;
}
.feature-section::before,
.pricing-section::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background: url('/images/texture-charcoal.png') center / cover no-repeat;
  pointer-events: none;
}

/* Segmented card system shared across the whole project */
.card,
.badge,
.banner-card,
.quote-plan,
.capability-card,
.auth-box {
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.card::after,
.banner-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  opacity: 0;
  transition: opacity .28s ease;
}
.card:hover,
.banner-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 216, 200, .5);
  box-shadow: var(--shadow-lg);
}
.card:hover::after,
.banner-card:hover::after { opacity: 1; }

/* Features list uses capability-card styles above */
.feature-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  padding: 18px;
  align-items: flex-start;
}
.feature-row:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 216, 200, .45);
  background: linear-gradient(165deg, rgba(52, 216, 200, .1), rgba(255, 255, 255, .02));
}
.feature-icon { transition: transform .28s ease, color .28s ease; }
.feature-row:hover .feature-icon { transform: rotate(-8deg) scale(1.06); color: var(--lime); }

.badge {
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn-ghost:hover { border-color: rgba(52, 216, 200, .6); }

.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.socials a { transition: transform .24s ease, border-color .24s ease, background .24s ease; }
.socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 216, 200, .55);
  background: rgba(52, 216, 200, .1);
}

.admin-side a { transition: transform .2s ease, background .2s ease, color .2s ease; }
.admin-side a:hover { transform: translateX(-4px); }

@media (max-width: 980px) {
  .capability-heading { max-width: none; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-chips { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

/* Keep badges on charcoal identity */
.badges-section {
  background: linear-gradient(175deg, #0e161f 0%, #121c26 100%);
  color: var(--text);
  position: relative;
  isolation: isolate;
}
.badges-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background: url('/images/texture-charcoal.png') center / cover no-repeat;
  pointer-events: none;
}
.badges-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 46ch;
}
.badges-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.25;
}
.badges-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.75;
}
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.badges-section .badge {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border-color: var(--line);
  color: var(--text);
}
.badges-section .badge:hover { border-color: rgba(52, 216, 200, .5); }
.pricing-heading p { color: var(--text-soft); }

/* Floating metrics must never cover panel content */
.hero-visual { padding: 78px 0; }
.metric-top { top: 0; right: 6px; }
.metric-bottom { bottom: 0; left: 6px; }

@media (max-width: 640px) {
  .hero-visual { padding: 66px 0; }
  .metric-top { right: 0; }
  .metric-bottom { left: 0; }
}

/* The "most chosen" tag sits above the plan copy, never on top of it */
.annual-info { padding-top: 26px; }

/* Forms and inline messaging */
.wrap.narrow { width: min(620px, calc(100% - 40px)); }
.stack-form { display: flex; flex-direction: column; gap: 4px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.stack-form label span { font-size: .88rem; }
.stack-form .btn { margin-top: 18px; align-self: flex-start; }
.notice,
.form-error,
.form-success {
  border-radius: 12px;
  padding: 11px 14px;
  margin: 0 0 14px;
  font-size: .9rem;
  border: 1px solid;
}
.notice { border-color: rgba(246, 190, 130, .5); background: rgba(246, 190, 130, .1); color: var(--amber); }
.form-error { border-color: rgba(229, 95, 95, .55); background: rgba(229, 95, 95, .12); color: #ff9b9b; }
.form-success { border-color: rgba(52, 216, 200, .5); background: rgba(52, 216, 200, .1); color: var(--aqua-soft); }

/* ============================================================
   Idle sign-out warning
   ============================================================ */

.form-notice {
  border-radius: 12px;
  padding: 11px 14px;
  margin: 0 0 14px;
  font-size: .9rem;
  line-height: 1.55;
  text-align: start;
  border: 1px solid rgba(240, 180, 80, .5);
  background: rgba(240, 180, 80, .1);
  color: #f5cf8e;
}

.idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 10, 15, .72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.idle-overlay.show { opacity: 1; visibility: visible; }

.idle-modal {
  width: min(420px, 100%);
  background: linear-gradient(165deg, #17222e, #0e151d);
  border: 1px solid rgba(52, 216, 200, .3);
  border-radius: 20px;
  padding: 26px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: translateY(12px) scale(.97);
  transition: transform .25s ease;
}

.idle-overlay.show .idle-modal { transform: none; }

.idle-modal strong { display: block; font-size: 1.1rem; margin-bottom: 10px; }
.idle-modal p { color: var(--ink-dim); font-size: .92rem; line-height: 1.8; margin: 0 0 18px; }

.idle-count {
  color: var(--aqua-soft);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Confirm dialog: branded replacement for window.confirm ---------- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 10, 15, .72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}

.confirm-overlay.show { opacity: 1; visibility: visible; }

.confirm-modal {
  width: min(400px, 100%);
  background: linear-gradient(165deg, #17222e, #0e151d);
  border: 1px solid rgba(229, 95, 95, .35);
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: translateY(12px) scale(.97);
  transition: transform .22s ease;
}

.confirm-overlay.show .confirm-modal { transform: none; }

.confirm-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(229, 95, 95, .13);
  border: 1px solid rgba(229, 95, 95, .4);
  color: var(--danger);
  font-size: 1.3rem;
  font-weight: 800;
}

.confirm-title { display: block; font-size: 1.08rem; margin-bottom: 8px; }

.confirm-text { color: var(--ink-dim); font-size: .92rem; line-height: 1.8; margin: 0 0 20px; }

.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.confirm-ok {
  background: linear-gradient(135deg, #e55f5f, #c94a4a);
  color: #fff;
  border: 1px solid rgba(229, 95, 95, .55);
  box-shadow: 0 8px 22px rgba(229, 95, 95, .25);
}

.confirm-ok:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ============================================================
   Subscriber workspace
   ============================================================ */

.work-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.work-head h1 { margin: 6px 0 4px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.head-actions form { margin: 0; }
.btn-small { padding: 6px 12px; font-size: .82rem; }
.btn-tiny { padding: 4px 8px; font-size: .75rem; min-width: 0; }
.template-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") left 10px center no-repeat;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  padding: 6px 28px 6px 12px;
  direction: rtl;
}
.template-picker select:focus { outline: none; border-color: var(--aqua); }

.work-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.work-layout > * { min-width: 0; }
.work-layout-admin {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}
.work-layout-team {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

/* Single-column fields inside side panels — never share the page's 4-col grid. */
.stack-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-fields > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  width: 100%;
}
.stack-fields > label > span {
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 500;
}
.stack-fields input,
.stack-fields select,
.stack-fields textarea {
  width: 100%;
  min-width: 0;
}
.field-group-label {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  color: var(--aqua-soft);
  letter-spacing: .02em;
}
.field-group-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.member-row:last-child { border-bottom: none; }
.member-info { min-width: 0; flex: 1 1 180px; }
.member-info strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.member-info small { color: var(--text-soft); font-size: .8rem; }
.member-meta { color: var(--aqua-soft); }
.member-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.member-tools form { margin: 0; }

.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
}
.field-action > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}
.field-action > label > span {
  font-size: .75rem;
  color: var(--text-soft);
}
.field-action input,
.field-action select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 8px 10px;
  font-size: .85rem;
}
.field-action-pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.field-action-solo {
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
}
.project-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.project-card-head h3 { margin: 0 0 4px; font-size: 1rem; }
.project-card-head p { margin: 0; }

/* Share-card on the project page: the public link lives here. */
.share-card { margin-bottom: 18px; }
.share-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.share-head h3 { margin: 0 0 4px; font-size: 1rem; }
.share-head p { margin: 0; font-size: .84rem; }
.share-link-row { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.share-freeze-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-freeze-row p { margin: 0; font-size: .84rem; }
.share-freeze-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price-history { margin-top: 10px; }
.price-history ul { margin: 6px 0 0; padding-inline-start: 1.2rem; font-size: .84rem; }
.price-history li { margin-bottom: 4px; }
.vo-contract { margin: 0 0 12px; font-size: .9rem; }
.vo-create { margin-top: 12px; margin-bottom: 8px; }
.vo-block { margin-top: 12px; }
.vo-line-form { margin-top: 12px; }
.share-link-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: .8rem;
  direction: ltr;
  text-align: left;
}
/* Inline completion cell: a small quiet input that saves on change. */
.progress-form { margin: 0; }
.takeoff-metrics .progress-form input {
  width: 72px;
  height: 36px;
}
.progress-form input {
  width: 64px;
  height: 32px;
  padding: 0 8px;
  text-align: center;
  font-size: .82rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.progress-form input:focus { border-color: rgba(52, 216, 200, .5); }
.progress-cell strong { color: var(--aqua-soft); }
.earned-row td { background: rgba(52, 216, 200, .05); color: var(--aqua-soft); }
.logo-preview { margin-bottom: 12px; }
.logo-preview img {
  max-height: 72px;
  max-width: 200px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

/* Public client-facing quote page. */
.share-page {
  min-height: 100vh;
  padding: 40px 20px 60px;
  background: linear-gradient(145deg, #060b11 0%, #0b1219 52%, #0f1720 100%);
}
.share-shell { width: min(920px, 100%); margin: 0 auto; }
.share-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.share-logo { max-height: 60px; max-width: 160px; border-radius: 10px; background: #fff; padding: 6px; }
.share-office { display: block; font-size: 1.3rem; font-weight: 800; }
.share-doctype { display: block; color: var(--text-soft); font-size: .82rem; }
.share-contact { display: block; margin-top: 3px; color: var(--text-soft); font-size: .8rem; }
.share-contact a { color: var(--aqua); }
.share-project { padding: 22px 0 6px; }
.share-project h1 { margin: 0 0 6px; font-size: 1.6rem; }
.share-project .muted { margin: 0; font-size: .88rem; }
.share-sep { margin: 0 8px; opacity: .5; }
.share-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(52, 216, 200, .08);
  border: 1px solid rgba(52, 216, 200, .3);
}
.share-total span { color: var(--text-soft); font-size: .9rem; }
.share-total strong { font-size: 1.7rem; color: var(--aqua-soft); }
.share-total strong small { font-size: .9rem; font-weight: 400; }
.share-empty { padding: 30px 0; text-align: center; }
.share-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #111b27; }
.share-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.share-table th, .share-table td { padding: 11px 14px; text-align: right; font-size: .88rem; }
.share-table th {
  background: #172534;
  color: #d9e8f6;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.share-table td { border-bottom: 1px solid rgba(155, 182, 205, .1); }
.share-table tr:last-child td { border-bottom: none; }
.share-line-total { font-weight: 700; }
.share-section-row td {
  background: rgba(255, 255, 255, .04);
  font-weight: 700;
  color: var(--aqua-soft);
}
.share-subtotal-row td { background: rgba(255, 255, 255, .02); font-weight: 600; color: var(--text-soft); }
.share-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.share-cat {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121c28;
}
.share-cat span { color: var(--text-soft); font-size: .76rem; }
.share-cat strong { font-size: 1.05rem; }
.share-notes { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #121c28; }
.share-notes strong { display: block; margin-bottom: 6px; font-size: .9rem; }
.share-notes p { margin: 0; color: var(--text-soft); font-size: .88rem; white-space: pre-wrap; }
.share-vat {
  display: grid;
  gap: 6px;
  margin: 18px 0 -6px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f1822;
}
.share-vat div { display: flex; justify-content: space-between; gap: 14px; font-size: .86rem; color: var(--text-soft); }
.share-sign {
  margin-top: 26px;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding-top: 16px;
  border-top: 1px dashed rgba(155, 182, 205, .25);
}
.share-sign strong { font-size: 1rem; }
.share-sign .muted { font-size: .8rem; }
.share-footer { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; }
.share-footer span { color: var(--text-soft); font-size: .72rem; opacity: .7; }

/* Visual summary: a donut for the category split and ranked bars for the sections. */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.chart-card h3 { margin: 0 0 16px; font-size: .98rem; }
.donut-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.donut-wrap { position: relative; width: 168px; height: 168px; flex-shrink: 0; }
.donut { width: 100%; height: 100%; transform: rotate(0deg); }
.donut-ring { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 4.4; }
.donut-slice {
  fill: none;
  stroke-width: 4.4;
  stroke-linecap: butt;
  transition: stroke-width .2s ease;
}
.donut-slice:hover { stroke-width: 5.6; }
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1px;
}
.donut-center small { color: var(--text-soft); font-size: .68rem; }
.donut-center strong { font-size: 1.3rem; line-height: 1.1; }
.donut-center span { color: var(--text-soft); font-size: .7rem; }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: grid; gap: 8px; }
.donut-legend li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
}
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-label { color: var(--text); }
.legend-share { color: var(--text-soft); font-size: .78rem; min-width: 38px; text-align: left; }
.legend-total { color: var(--text); font-weight: 600; font-size: .82rem; }

/* The revenue figure reuses the donut-center look but stands alone, outside any donut. */
.revenue-figure { position: static; padding: 14px 0 18px; }
.revenue-figure strong { font-size: 2.2rem; color: var(--aqua-soft); }
.revenue-figure small { margin-top: 4px; }

.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 5px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bar-name { font-size: .88rem; font-weight: 600; }
.bar-value { font-size: .86rem; font-weight: 700; color: var(--aqua-soft); white-space: nowrap; }
.bar-value small { color: var(--text-soft); font-weight: 400; font-size: .7rem; }
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}
.bar-fill {
  height: 100%;  border-radius: 999px;
  background: linear-gradient(90deg, #28b9ab, var(--aqua));
  transition: width .5s ease;
}
.bar-count { color: var(--text-soft); font-size: .72rem; }

/* One project in focus on the dashboard, with the two other notable ones a click away. */
.spotlight {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.spotlight-main { display: grid; gap: 4px; color: var(--text); }
.spotlight-main strong { font-size: 1.1rem; }
.spotlight-main:hover strong { color: var(--aqua); }
.spotlight-facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text);
}
.spotlight-facts small { display: block; color: var(--text-soft); margin-bottom: 2px; }
.spotlight-row { display: flex; flex-wrap: wrap; gap: 8px; }
.spotlight-row .chip { color: var(--text-soft); }
.spotlight-row .chip:hover { color: var(--text); border-color: var(--line-2); }

/* A quiet capsule: magnifier, field, then a flush action that reads as part of the bar. */
.table-search { margin: 0; min-width: 0; flex: 1 1 auto; max-width: 100%; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .15s ease, background .15s ease;
}
.search-bar:focus-within {
  border-color: rgba(52, 216, 200, .5);
  background: rgba(255, 255, 255, .05);
}
.search-bar .search-icon { flex-shrink: 0; color: var(--text-soft); display: inline-flex; }
.search-bar input[type=search] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 2px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: .88rem;
}
.search-bar input[type=search]:focus { outline: none; }
.search-bar input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-go {
  flex-shrink: 0;
  height: 30px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: rgba(52, 216, 200, .14);
  color: var(--aqua-soft);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.search-go:hover { background: rgba(52, 216, 200, .24); }

/* A selected library category reads like a lit tab. */
.chip-on {
  color: var(--aqua-soft) !important;
  border-color: rgba(52, 216, 200, .5) !important;
  background: rgba(52, 216, 200, .12);
}

.project-card-head form { margin: 0; }
.empty-state { text-align: center; padding: 34px 22px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.summary-cell small,
.summary-total small { display: block; color: var(--text-soft); font-size: .76rem; margin-bottom: 6px; }
.summary-cell strong { font-size: 1.3rem; }
.summary-total {
  background: linear-gradient(160deg, rgba(52, 216, 200, .14), rgba(18, 28, 40, .95));
  border-color: rgba(52, 216, 200, .4);
}
.summary-total strong { font-size: 1.7rem; color: var(--aqua-soft); }
.summary-total strong span { font-size: .95rem; color: var(--text-soft); }
.summary-cell p, .summary-total p { margin: 6px 0 0; font-size: .82rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: .8rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .03);
}
.chip-link { color: var(--text); transition: border-color .24s ease, color .24s ease; }
.chip-link:hover { border-color: rgba(52, 216, 200, .55); color: var(--aqua); }

/* Stacked cards space themselves, so a new card never touches its neighbour just because
   its class was not added to a hand-written margin list. */
.section .wrap > .card { margin-bottom: 18px; }
.section .wrap > .card:last-child { margin-bottom: 0; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  /* Top-aligned: a field carrying a note below it must not lift its input out of line
     with the rest of the row. */
  align-items: start;
}
.date-field .date-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e1620;
  color-scheme: dark;
  direction: ltr;
  cursor: pointer;
}
.date-field .date-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239bb6cd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.date-field input[type="date"] {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  color-scheme: dark;
  cursor: pointer;
}
.date-field input[type="date"]::-webkit-datetime-edit,
.date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.date-field input[type="date"]::-webkit-datetime-edit-text,
.date-field input[type="date"]::-webkit-datetime-edit-month-field,
.date-field input[type="date"]::-webkit-datetime-edit-day-field,
.date-field input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text);
  background: transparent;
  padding: 0;
}
.date-field input[type="date"]::-webkit-inner-spin-button,
.date-field input[type="date"]::-webkit-clear-button {
  display: none;
}
.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.grid-form label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.grid-form label span {
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.5;
  min-height: 1.5em;
}
.grid-form label[hidden] { display: none; }
.grid-form .span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; align-items: center; }
/* The action row holds no label, so it is pinned to the baseline of the inputs beside it. */
.grid-form .form-actions { align-self: end; }
.field-note {
  display: block;
  margin-top: 6px;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.field-note:empty { display: none; }
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.export-actions form { margin: 0; }


.table-scroll { overflow-x: auto; }
.table tfoot td { background: #16222f; font-weight: 700; }
.table .section-row td {
  background: rgba(255, 255, 255, .05);
  font-weight: 700;
  color: var(--aqua-soft);
  letter-spacing: .01em;
  text-align: center;
}
.table .subtotal-row td {
  background: rgba(255, 255, 255, .02);
  color: var(--text-soft);
  font-weight: 600;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: .86rem;
}
.section-chip form { margin: 0; display: inline; }
.section-chip button {
  border: 0;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}
.section-chip button:hover { color: #ff8a8a; }
/* The catalogue shortcut fills the form below it, so it takes its own line and is marked off. */
.grid-form .library-picker {
  grid-column: 1 / -1;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.library-picker select { border-color: rgba(52, 216, 200, .35); }

.inline-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

.totp-qr {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-sizing: content-box;
}

.issued-password { border: 1px solid var(--aqua-soft); }
.issued-password code {
  display: inline-block;
  margin: 10px 0;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: 1.2rem;
  letter-spacing: .08em;
  user-select: all;
}
.delete-account { display: flex; gap: 6px; align-items: center; }
.contact-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
/* Compact boxes inside table rows: sized to the small buttons they sit next to. */
.delete-account input,
.contact-form input {
  height: 42px;
  padding: 8px 10px;
  font-size: .8rem;
}
.delete-account input { width: 160px; }
.contact-form input { width: 150px; }

.subscriber-card { gap: 14px; }
.sub-block {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  align-content: start;
}
.sub-block-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
}
.sub-block-hint {
  margin: -2px 0 0;
  font-size: .8rem;
  line-height: 1.45;
}
.sub-block-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ===== Print: client-facing documents must come out clean on paper ===== */
@media print {
  :root {
    --text: #111;
    --text-soft: #444;
    --line: #bbb;
    --surface: #fff;
    --aqua: #0a7a72;
    --aqua-soft: #0a7a72;
  }
  html, body { background: #fff !important; color: #111 !important; }
  body { font-size: 12px; }

  /* Chrome that never belongs on paper */
  .auth-brand, .site-header, .site-footer, .account-tabs, .account-nav, .account-rail,
  .btn, .row-actions, .head-actions, .save-bar,
  .share-footer, .no-print { display: none !important; }

  .auth-shell { padding: 0 !important; display: block !important; }
  .share-page { padding: 0 !important; background: #fff !important; }
  .share-shell { width: 100% !important; }

  .share-brand { border-bottom: 2px solid #111 !important; padding-bottom: 10px !important; }
  .share-office { color: #111 !important; }
  .share-doctype, .share-contact, .share-contact a, .muted { color: #444 !important; }
  .share-logo { max-height: 56px !important; }

  .share-vat, .share-total, .share-notes, .share-sign, .share-cat {
    background: #fff !important;
    border-color: #bbb !important;
    box-shadow: none !important;
  }
  .share-total strong { color: #0a7a72 !important; }
  .share-vat span, .share-total span { color: #444 !important; }

  .share-table-wrap { border: 1px solid #999 !important; background: #fff !important; overflow: visible !important; }
  .share-table { min-width: 0 !important; }
  .share-table th {
    background: #eee !important;
    color: #111 !important;
    border-bottom: 2px solid #999 !important;
  }
  .share-table td { border-bottom: 1px solid #ccc !important; color: #111 !important; }
  .share-section-row td { background: #f5f5f5 !important; color: #111 !important; }
  .share-subtotal-row td { background: #fafafa !important; }
  .share-line-total { color: #111 !important; }

  .share-cats { page-break-inside: avoid; }
  .share-sign { page-break-inside: avoid; margin-top: 24px !important; }
  .share-sign strong { color: #111 !important; }
  tr, td, th { page-break-inside: avoid; }
}

.renewal-bar {
  background: linear-gradient(90deg, rgba(240, 160, 60, .16), rgba(240, 160, 60, .06));
  border-bottom: 1px solid rgba(240, 160, 60, .35);
}
.expiry-banner { margin-bottom: 16px; }
.expiry-banner-warn { border-color: rgba(246, 190, 130, .45); background: rgba(246, 190, 130, .08); }
.expiry-banner-bad { border-color: rgba(229, 143, 143, .5); background: rgba(229, 143, 143, .1); }
.expiry-card-hot { border-color: rgba(246, 190, 130, .45); }
.renewal-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
  font-size: .95rem;
}
.renewal-bar strong { color: #f0a03c; }
@media (max-width: 640px) {
  .renewal-bar-inner { flex-direction: column; align-items: flex-start; text-align: right; }
}
.dims { color: var(--text-soft); font-size: .82rem; white-space: normal; overflow-wrap: anywhere; }
.table .row-actions form { margin: 0; }

/* Activation request section */
.request-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 45% at 80% 20%, rgba(52, 216, 200, .1), transparent 55%),
    linear-gradient(175deg, #080e15 0%, #0f1822 55%, #121c28 100%);
}
.request-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background: url('/images/texture-charcoal.png') center / cover no-repeat;
  pointer-events: none;
}
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
}
.request-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.request-hero {
  display: grid;
  gap: 22px;
  text-align: center;
}
.request-hero .section-kicker {
  justify-self: center;
}
.request-intro {
  max-width: 58ch;
  margin-inline: auto;
  text-align: center;
}
.request-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #8eb4cc;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.request-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.25;
}
.request-intro > p {
  margin: 0 auto;
  color: #b7c9d9;
  font-size: .95rem;
  line-height: 1.85;
  max-width: 40ch;
}
.request-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.request-trust-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(155, 182, 205, .14);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.request-trust-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(52, 216, 200, .22);
  background: rgba(52, 216, 200, .06);
  color: var(--aqua-soft);
}
.request-trust-icon svg { width: 20px; height: 20px; }
.request-trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
  font-weight: 800;
}
.request-trust-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: .8rem;
  line-height: 1.55;
}
.request-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.25;
}
.request-copy > p {
  margin: 0 0 22px;
  color: #b7c9d9;
  font-size: .95rem;
  line-height: 1.8;
  max-width: 34ch;
}
.request-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 6px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(155, 182, 205, .16);
  background: rgba(0, 0, 0, .18);
}
.request-milestone {
  text-align: center;
  min-width: 0;
}
.request-milestone-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(52, 216, 200, .28);
  background: rgba(52, 216, 200, .08);
  color: var(--aqua-soft);
  font-size: .78rem;
  font-weight: 800;
}
.request-milestone h4 {
  margin: 0 0 4px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}
.request-milestone p {
  margin: 0;
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.5;
}
.request-milestone-line {
  align-self: center;
  width: 100%;
  min-width: 12px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, rgba(52, 216, 200, .35), transparent);
}
.request-concierge {
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(155, 182, 205, .2);
  background: linear-gradient(165deg, rgba(16, 28, 38, .72), rgba(10, 16, 24, .88));
  scroll-margin-top: 96px;
}
.request-concierge-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.request-concierge-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(52, 216, 200, .25);
  background: rgba(52, 216, 200, .07);
  color: var(--aqua-soft);
}
.request-concierge-icon svg { width: 20px; height: 20px; }
.request-concierge-kicker {
  display: block;
  margin-bottom: 4px;
  color: #8eb4cc;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.request-concierge h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.request-concierge > p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.75;
  max-width: none;
}
.request-concierge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.request-concierge-btn {
  min-height: 44px;
  padding-inline: 18px;
  font-weight: 700;
  justify-content: center;
}
.request-concierge-btn--primary {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
}
.request-concierge-link {
  display: inline-grid;
  gap: 2px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(155, 182, 205, .28);
  background: rgba(0, 0, 0, .2);
  color: #d5e3ef;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.request-concierge-link-label {
  color: #8eb4cc;
  font-size: .72rem;
  font-weight: 700;
}
.request-concierge-link-value {
  font-size: .88rem;
  letter-spacing: .02em;
  direction: ltr;
}
.request-concierge-link:hover {
  color: #fff;
  border-color: rgba(52, 216, 200, .55);
  background: rgba(52, 216, 200, .08);
}
.request-bank-card {
  margin-bottom: 18px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(155, 182, 205, .22);
  background: linear-gradient(165deg, rgba(16, 28, 38, .92), rgba(10, 16, 24, .96));
  scroll-margin-top: 96px;
  overflow: hidden;
}
.request-bank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(155, 182, 205, .14);
  background: rgba(52, 216, 200, .04);
}
.request-bank-card-title h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.request-bank-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(52, 216, 200, .28);
  background: rgba(52, 216, 200, .08);
  color: var(--aqua-soft);
}
.request-bank-card-icon svg { width: 18px; height: 18px; }
.request-bank-kicker {
  display: block;
  margin-bottom: 4px;
  color: #8eb4cc;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.request-bank-sheet {
  padding: 4px 0;
}
.request-bank-row {
  display: grid;
  grid-template-columns: minmax(72px, 88px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(155, 182, 205, .1);
}
.request-bank-row:last-child { border-bottom: none; }
.request-bank-label {
  color: #8eb4cc;
  font-size: .74rem;
  font-weight: 700;
}
.request-bank-value {
  color: #eef4fa;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: start;
}
.request-bank-row--iban {
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.request-bank-iban {
  display: block;
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(52, 216, 200, .24);
  background: rgba(0, 0, 0, .32);
  color: #dff7f2;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.request-bank-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(155, 182, 205, .12);
  background: rgba(255, 255, 255, .02);
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.65;
}
.request-bank-note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(52, 216, 200, .35);
  color: var(--aqua-soft);
  font-size: .68rem;
  font-weight: 800;
  font-style: normal;
}
.request-bank-legacy {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: .84rem;
  line-height: 1.75;
  color: #c5d4e0;
}
.request-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.request-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(155, 182, 205, .18);
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.request-step strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(52, 216, 200, .35);
  background: rgba(52, 216, 200, .1);
  color: var(--aqua-soft);
  font-size: .95rem;
  font-weight: 800;
}
.request-step h4 {
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 800;
}
.request-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.6;
}
.request-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.request-paid-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(155, 182, 205, .18);
  background: rgba(255, 255, 255, .03);
}
.request-paid-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--aqua-soft);
}
.request-paid-check > span {
  color: #c5d4e0;
  font-size: .84rem;
  line-height: 1.55;
  min-height: 0;
}
.request-captcha-row {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(155, 182, 205, .14);
  background: rgba(0, 0, 0, .16);
}
.request-captcha-row > span {
  flex: 1 1 auto;
  min-height: 0;
  color: #9eb4c8;
  font-size: .82rem;
  font-weight: 600;
}
.request-captcha-row input {
  width: 88px;
  max-width: 88px;
  flex: 0 0 auto;
  direction: ltr;
  text-align: center;
  padding: 0 10px !important;
  font-weight: 800;
  letter-spacing: .04em;
}
.pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.request-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 216, 200, .4);
  background: rgba(52, 216, 200, .08);
  color: var(--aqua-soft);
  font-weight: 800;
  letter-spacing: .02em;
}
.request-phone:hover { color: #fff; border-color: rgba(52, 216, 200, .7); }
.request-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  border: 1px solid rgba(52, 216, 200, .35);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(16, 28, 38, .98), rgba(10, 16, 24, .98)),
    repeating-linear-gradient(-12deg, transparent 0 14px, rgba(52, 216, 200, .02) 14px 15px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 22px 48px rgba(0, 0, 0, .38),
    0 0 36px rgba(52, 216, 200, .08);
  overflow: hidden;
}
.request-panel::before,
.request-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(52, 216, 200, .5);
  pointer-events: none;
  z-index: 2;
}
.request-panel::before {
  top: 12px;
  inset-inline-start: 12px;
  border-left: none;
  border-bottom: none;
}
.request-panel::after {
  bottom: 12px;
  inset-inline-end: 12px;
  border-right: none;
  border-top: none;
}
.request-panel-glow {
  position: absolute;
  inset: -20% auto auto -15%;
  width: 55%;
  height: 45%;
  background: radial-gradient(circle, rgba(52, 216, 200, .18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.request-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.request-form {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.request-form .span-2 { grid-column: 1 / -1; }
.request-form input,
.request-form select,
.request-form textarea {
  border-color: rgba(155, 182, 205, .28);
  background: rgba(0, 0, 0, .28);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: rgba(52, 216, 200, .55);
  box-shadow: 0 0 0 3px rgba(52, 216, 200, .12);
  background: rgba(0, 0, 0, .38);
}
.request-submit {
  min-width: 100%;
  min-height: 48px;
  justify-content: center;
  font-weight: 800;
}
.request-form .form-actions {
  justify-content: stretch;
  margin-top: 4px;
}
.grid-form textarea { width: 100%; resize: vertical; }
.lead-note { max-width: 260px; font-size: .82rem; color: var(--text-soft); }

.legal-card { padding: 30px; }
.legal-card h1 { margin: 8px 0 6px; }
.legal-card h3 { margin: 24px 0 6px; color: var(--aqua-soft); font-size: 1.02rem; }
.legal-card p { color: var(--text-soft); line-height: 1.9; margin: 0; }
.legal-card .btn { margin-top: 26px; }

@media (max-width: 980px) {
  .work-layout,
  .work-layout-admin,
  .work-layout-team { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-form .grid-form { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .request-layout { grid-template-columns: 1fr; }
  .request-trust-bar { grid-template-columns: 1fr; }
  .request-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .request-milestone-line { display: none; }
  .request-milestone { text-align: start; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
  .request-milestone-num { margin: 0; }
  .side-form { position: static; }
}
/* Narrow enough that a fixed label column would squeeze the field beside it. */
@media (max-width: 700px) {
  .setting-row { grid-template-columns: 1fr; gap: 8px; }
  .sheet-section, .sheet-head, .line-row, .entry-row, .member-row, .save-bar { padding-inline: 16px; }
  .field-action,
  .field-action-pair { grid-template-columns: 1fr; }
  .field-action > .btn { width: 100%; }
}
@media (max-width: 560px) {
  .grid-form, .grid-form .span-2 { grid-template-columns: 1fr; grid-column: auto; }
}

/* ---------- Toast notifications: floating save/failure feedback ---------- */
.toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 30, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.6;
  cursor: pointer;
  animation: toast-in .38s cubic-bezier(.2, .9, .3, 1.15) both;
}

.toast.closing { animation: toast-out .24s ease-in both; }

.toast-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 800;
}

.toast-success { border-color: rgba(52, 216, 200, .45); }
.toast-success .toast-icon { background: rgba(52, 216, 200, .16); color: var(--aqua); }
.toast-success .toast-bar { background: var(--aqua); }

.toast-error { border-color: rgba(229, 95, 95, .5); }
.toast-error .toast-icon { background: rgba(229, 95, 95, .16); color: var(--danger); }
.toast-error .toast-bar { background: var(--danger); }

.toast-warn { border-color: rgba(246, 190, 130, .5); }
.toast-warn .toast-icon { background: rgba(246, 190, 130, .15); color: var(--amber); }
.toast-warn .toast-bar { background: var(--amber); }

.toast-text { flex: 1 1 auto; min-width: 0; }

/* The countdown strip empties right-to-left with the reading direction, then JS removes the toast. */
.toast-bar {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 3px;
  border-radius: 999px;
  animation: toast-bar 4.2s linear forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(.97); }
}

@keyframes toast-bar {
  from { width: 100%; }
  to { width: 0; }
}

@media (max-width: 640px) {
  .toast-stack { top: 10px; width: calc(100vw - 20px); }
}

.qr-enroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
}
.qr-enroll img { border-radius: 8px; }
.auth-card { max-width: 420px; margin: 40px auto; padding: 28px; }
.auth-card h1 { margin: 0 0 8px; font-size: 1.4rem; }
.stack-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }

.security-alert { margin-bottom: 14px; }
.security-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.security-panel .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.security-panel .sheet-head h2 { margin: 0; font-size: 1.05rem; }
.security-lead { margin: 0 0 16px; line-height: 1.6; }
.security-form { display: flex; flex-direction: column; gap: 14px; }
.security-form label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.security-form label span {
  font-size: .82rem;
  color: var(--text-soft);
}
.security-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.security-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.security-status strong { display: block; margin-bottom: 4px; }
.security-status small { display: block; line-height: 1.45; }
.security-disable {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.security-disable label { display: flex; flex-direction: column; gap: 6px; }
.security-enroll {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
.security-enroll-qr,
.security-enroll-confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
.security-enroll-qr { align-items: center; text-align: center; }
.security-enroll-confirm { justify-content: center; }
.security-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  background: rgba(52, 216, 200, .15);
  color: var(--aqua);
  margin-bottom: 4px;
}
.security-secret {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .25);
  font-size: .78rem;
  letter-spacing: .08em;
  word-break: break-all;
}
.security-confirm-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.totp-qr {
  margin-top: 8px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.enroll-card .section-kicker { display: inline-block; margin-bottom: 8px; }
.enroll-lead { margin: 0 0 8px; line-height: 1.55; }

.setup-gate { max-width: 520px; }
.setup-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.setup-step {
  font-size: .82rem;
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.setup-step.is-current {
  color: var(--aqua);
  border-color: rgba(52, 216, 200, .35);
  background: rgba(52, 216, 200, .1);
  font-weight: 700;
}
.setup-step.is-done {
  color: var(--text);
  opacity: .85;
}
.setup-step-sep {
  width: 18px;
  height: 1px;
  background: var(--line);
}
.setup-enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.setup-enroll-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
.setup-enroll-qr img {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.setup-enroll-form { margin-top: 0; }

@media (max-width: 900px) {
  .security-layout,
  .security-enroll,
  .security-form-row,
  .setup-enroll-grid { grid-template-columns: 1fr; }
}
