:root {
  --bg: #f7f9ff;
  --panel: rgba(255, 255, 255, .94);
  --panel-strong: #ffffff;
  --line: #d8e1f4;
  --text: #07112f;
  --muted: #5f6f93;
  --gold: #2357d8;
  --gold-soft: rgba(35, 87, 216, .1);
  --green: #0aa978;
  --surface: #ffffff;
  --surface-2: #eef3ff;
}

/* 2026-07 dashboard command navigation, cinematic team hero, legal pages and Coupon Master. */
.app-nav .dropdown-menu {
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(112,231,255,.18);
  border-radius: 12px;
  background: rgba(4,8,14,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.app-nav .dropdown-item {
  padding: 10px 12px;
  border-radius: 7px;
  color: #cbd8e8;
  font-size: .84rem;
}

.app-nav .dropdown-item:hover,
.app-nav .dropdown-item:focus {
  color: #fff;
  background: rgba(48,216,255,.1);
}

.nav-logout { color: #ffadb9 !important; }

.workspace-menu {
  display: grid;
  gap: 6px;
  margin: 22px 0;
}

.workspace-menu a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dce9f5;
  text-decoration: none;
  transition: .2s ease;
}

.workspace-menu a:hover,
.workspace-menu a.active {
  border-color: rgba(48,216,255,.2);
  background: linear-gradient(90deg, rgba(48,216,255,.11), rgba(255,255,255,.02));
}

.workspace-menu b {
  color: #5de5ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  font-weight: 600;
}

.workspace-menu span {
  display: grid;
  color: #f6fbff;
  font-size: .82rem;
  font-weight: 700;
}

.workspace-menu small {
  margin-top: 2px;
  color: #718199;
  font-size: .66rem;
  font-weight: 500;
}

.rail-search {
  display: grid !important;
  gap: 7px;
  height: auto !important;
  padding: 10px !important;
}

.rail-search span {
  color: #8292a7;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rail-search input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: .75rem;
}

.cinematic-team-hero {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
  min-height: 660px;
  margin: 0 -28px 28px;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid rgba(112,231,255,.18) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 72% 42%, rgba(48,216,255,.15), transparent 28rem),
    radial-gradient(circle at 24% 14%, rgba(105,81,255,.14), transparent 24rem),
    #010309 !important;
  box-shadow: none !important;
  isolation: isolate;
}

.cinematic-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background-image:
    linear-gradient(rgba(87,211,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,211,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

.cinematic-team-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 24px 64px 56px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cinematic-team-copy::before,
.cinematic-team-copy::after { display: none !important; }

.cinematic-team-copy h1 {
  max-width: 620px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: 4.6rem !important;
  line-height: .94 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.cinematic-team-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #66e9ff, #b9bcff 52%, #f5f8ff);
  background-clip: text;
}

.cinematic-lead {
  max-width: 570px;
  margin: 0 0 28px !important;
  color: #a7b7ca !important;
  line-height: 1.7;
}

.cinematic-team-visual {
  position: relative;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  min-height: 660px;
  overflow: hidden;
  border: 0 !important;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(30,213,255,.22), transparent 34%),
    linear-gradient(180deg, transparent 60%, rgba(1,3,9,.96) 100%) !important;
  box-shadow: none !important;
}

.cinematic-team-visual::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 78px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #41e4ff, transparent);
  box-shadow: 0 0 42px 13px rgba(48,216,255,.3);
}

.cinematic-team-visual img {
  width: 112% !important;
  max-width: 940px !important;
  margin-bottom: 60px;
  transform: none !important;
  filter: drop-shadow(0 0 24px rgba(48,216,255,.23)) drop-shadow(0 42px 80px #000) !important;
}

.team-status {
  position: absolute;
  top: 32px;
  right: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(112,231,255,.18);
  border-radius: 7px;
  color: #8191a6;
  background: rgba(2,7,12,.7);
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
}

.team-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #41ffc0;
  box-shadow: 0 0 14px #41ffc0;
}

.team-status strong { color: #41ffc0; }

.expert-filter-empty {
  padding: 24px 0;
  color: #92a3b8;
}

/* Coupon Master */
.coupon-master-page {
  min-height: 100vh;
  padding: 0 0 72px;
  color: #f5f8ff;
  background:
    radial-gradient(circle at 80% 8%, rgba(48,216,255,.12), transparent 32rem),
    radial-gradient(circle at 18% 18%, rgba(117,75,255,.13), transparent 28rem),
    #010308;
}

.coupon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  min-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid rgba(112,231,255,.16);
}

.coupon-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 7vw;
}

.coupon-welcome,
.coupon-lead {
  max-width: 660px;
  color: #95a6ba;
  line-height: 1.7;
}

.coupon-welcome { margin: 22px 0 8px; font-size: .82rem; }

.coupon-hero h1 {
  margin: 8px 0 20px;
  font-size: 4.7rem;
  line-height: .94;
  font-weight: 600;
  letter-spacing: 0;
}

.coupon-hero h1 span { color: #69e9ff; }

.coupon-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 720px);
  margin-top: 26px;
  padding: 7px;
  border: 1px solid rgba(112,231,255,.23);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 70px rgba(0,0,0,.32), 0 0 34px rgba(48,216,255,.08);
}

.coupon-search input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.coupon-search button {
  min-width: 144px;
  border: 0;
  border-radius: 7px;
  color: #021017;
  background: linear-gradient(135deg, #effcff, #3edbff);
  font-weight: 800;
}

.coupon-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  color: #8191a6;
  font-size: .7rem;
}

.coupon-trust-row span { display: flex; align-items: center; gap: 7px; }
.coupon-trust-row i { width: 5px; height: 5px; border-radius: 50%; background: #41ffc0; box-shadow: 0 0 10px #41ffc0; }

.dealport-stage {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    linear-gradient(rgba(112,231,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112,231,255,.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(63,227,255,.15), transparent 52%);
  background-size: 48px 48px, 48px 48px, auto;
}

.dealport-stage img {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(76%, 620px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 34px rgba(48,216,255,.25));
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.dealport-ring {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(83,229,255,.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: dealportPulse 4s ease-in-out infinite;
}

.ring-one { width: 500px; height: 500px; }
.ring-two { width: 390px; height: 390px; animation-delay: -.8s; border-style: dashed; }
.ring-three { width: 280px; height: 280px; animation-delay: -1.6s; }

.dealport-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 48%;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(115,235,255,.4);
  border-radius: 50%;
  color: #dffcff;
  background: radial-gradient(circle, rgba(47,218,255,.34), rgba(15,47,80,.15) 45%, transparent 72%);
  box-shadow: 0 0 80px rgba(48,216,255,.28), inset 0 0 50px rgba(48,216,255,.18);
  transform: translate(-50%, -50%);
}

.dealport-core span { font-size: 3.2rem; font-weight: 300; }

@keyframes dealportPulse {
  0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.96) rotate(0); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(12deg); }
}

.coupon-toolbar,
.coupon-grid,
.coupon-empty-state,
.coupon-note {
  width: min(1380px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.coupon-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 22px;
}

.coupon-toolbar > div { display: flex; align-items: center; gap: 14px; }
.coupon-toolbar p { margin: 0; color: #8293a8; font-size: .72rem; line-height: 1.5; }
.coupon-toolbar strong { color: #effaff; font-size: .84rem; }
.coupon-count { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(112,231,255,.2); border-radius: 50%; color: #6eeaff; font-family: "IBM Plex Mono", monospace; }
.coupon-category-filter select { min-width: 190px; height: 42px; border-radius: 7px; }

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.coupon-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(112,231,255,.16);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(27,35,49,.72), rgba(5,8,14,.95));
  transition: .2s ease;
}

.coupon-card:hover { transform: translateY(-3px); border-color: rgba(84,225,255,.38); }
.coupon-card-top { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.merchant-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 7px; color: #031018; background: #6beaff; font-weight: 900; }
.coupon-card-top > div:nth-child(2) { display: grid; min-width: 0; }
.coupon-card-top span { overflow: hidden; color: #fff; font-size: .82rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.coupon-card-top small { color: #7f90a6; font-size: .64rem; }
.coupon-card-top em { color: #42ffc0; font-size: .6rem; font-style: normal; text-transform: uppercase; }
.coupon-card h2 { margin: 22px 0 10px; font-size: 1.12rem; line-height: 1.4; }
.coupon-card > p { min-height: 58px; color: #91a2b7; font-size: .78rem; line-height: 1.55; }
.coupon-meta { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.07); color: #73849a; font-size: .64rem; }
.coupon-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coupon-code { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px dashed rgba(104,234,255,.4); border-radius: 6px; color: #eefdff; background: rgba(48,216,255,.08); }
.coupon-code span { overflow: hidden; font-family: "IBM Plex Mono", monospace; text-overflow: ellipsis; }
.coupon-code small { color: #6deaff; white-space: nowrap; }
.coupon-card-actions > a { color: #6feaff; font-size: .75rem; }
.coupon-auto-deal { color: #b4c3d4; font-size: .74rem; }

.coupon-empty-state {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 52px;
  min-height: 350px;
  padding: 42px 5vw;
  border-top: 1px solid rgba(112,231,255,.14);
  border-bottom: 1px solid rgba(112,231,255,.14);
  background: rgba(255,255,255,.025);
}

.coupon-empty-state h2 { margin: 18px 0 10px; font-size: 2rem; }
.coupon-empty-state p { max-width: 760px; color: #91a2b7; line-height: 1.7; }
.empty-scan { position: relative; width: 200px; height: 200px; border: 1px solid rgba(73,226,255,.3); border-radius: 50%; animation: dealportPulse 4s infinite; }
.empty-scan::before, .empty-scan::after { content: ""; position: absolute; inset: 24px; border: 1px dashed rgba(73,226,255,.22); border-radius: 50%; }
.empty-scan::after { inset: 64px; background: rgba(48,216,255,.12); box-shadow: 0 0 45px rgba(48,216,255,.22); }

.coupon-note { margin-top: 34px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); color: #7f90a6; }
.coupon-note strong { color: #dce9f6; font-size: .8rem; }
.coupon-note p { max-width: 980px; margin: 6px 0 0; font-size: .7rem; line-height: 1.7; }

/* Legal documents */
.legal-page { max-width: 1180px; }
.legal-card { padding: 58px 70px !important; border-radius: 8px !important; }
.legal-hero { padding-bottom: 34px; border-bottom: 1px solid rgba(112,231,255,.16); }
.legal-card .legal-hero h1 { max-width: 850px; margin: 18px 0; font-size: 3.25rem; line-height: 1.05; }
.legal-updated { color: #67e7ff !important; font-family: "IBM Plex Mono", monospace; font-size: .7rem !important; text-transform: uppercase; }
.legal-index { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 12px; }
.legal-index a { padding: 8px 11px; border: 1px solid rgba(112,231,255,.14); border-radius: 6px; color: #a9bacd; font-size: .7rem; text-decoration: none; }
.legal-index a:hover { color: #6eeaff; border-color: rgba(112,231,255,.38); }
.legal-card section { padding-top: 24px; scroll-margin-top: 90px; }
.legal-card section h2 { margin-bottom: 10px; color: #f4fbff; font-size: 1.1rem; }
.legal-card section p { max-width: 900px; margin-bottom: 10px; color: #a0b0c3 !important; line-height: 1.8; }
.legal-card a { color: #6eeaff; }

@media (max-width: 1199px) {
  .cinematic-team-hero { grid-template-columns: .9fr 1.1fr; min-height: 610px; }
  .cinematic-team-copy { padding-left: 38px !important; }
  .cinematic-team-copy h1, .coupon-hero h1 { font-size: 3.8rem !important; }
  .cinematic-team-visual { min-height: 610px; }
  .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .cinematic-team-hero { margin-left: -16px; margin-right: -16px; grid-template-columns: 1fr; }
  .cinematic-team-copy { padding: 42px 26px 48px !important; }
  .cinematic-team-visual { min-height: 520px; }
  .coupon-hero { grid-template-columns: 1fr; }
  .dealport-stage { order: -1; min-height: 520px; }
  .coupon-hero-copy { padding: 52px 7vw 64px; }
}

@media (max-width: 767px) {
  .tpl-dashboard-top { min-height: 40px; }
  .cinematic-team-hero { display: flex !important; flex-direction: column; min-height: 0; margin-top: 0; }
  .cinematic-team-visual { order: -1; min-height: 400px; }
  .cinematic-team-visual img { width: 128% !important; margin-bottom: 24px; }
  .team-status { top: 16px; right: 16px; }
  .cinematic-team-copy { padding: 30px 20px 40px !important; }
  .cinematic-team-copy h1, .coupon-hero h1 { font-size: 3rem !important; }
  .cinematic-team-copy .ask-bar { margin-top: 4px; }
  .dealport-stage { min-height: 410px; }
  .ring-one { width: 360px; height: 360px; }
  .ring-two { width: 280px; height: 280px; }
  .ring-three { width: 200px; height: 200px; }
  .dealport-core { width: 132px; height: 132px; }
  .dealport-stage img { width: 90%; }
  .coupon-hero-copy { padding: 38px 20px 52px; }
  .coupon-welcome { margin-top: 18px; }
  .coupon-search { grid-template-columns: 1fr; border-radius: 8px; }
  .coupon-search button { min-height: 48px; }
  .coupon-trust-row { gap: 12px; }
  .coupon-toolbar, .coupon-grid, .coupon-empty-state, .coupon-note { width: calc(100% - 28px); }
  .coupon-toolbar { align-items: flex-start; flex-direction: column; }
  .coupon-category-filter, .coupon-category-filter select { width: 100%; }
  .coupon-grid { grid-template-columns: 1fr; }
  .coupon-empty-state { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px; }
  .empty-scan { width: 140px; height: 140px; }
  .coupon-card-top { grid-template-columns: 42px minmax(0,1fr); }
  .coupon-card-top em { grid-column: 2; }
  .legal-card { padding: 34px 22px !important; }
  .legal-card .legal-hero h1 { font-size: 2.35rem; }
  .legal-index { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dealport-ring, .empty-scan { animation: none; }
}

:root[data-theme="light"] {
  --bg: #f7f9ff;
  --panel: rgba(255, 255, 255, .94);
  --panel-strong: #ffffff;
  --line: #d8e1f4;
  --text: #07112f;
  --muted: #5f6f93;
  --gold: #2357d8;
  --gold-soft: rgba(35, 87, 216, .1);
  --green: #0aa978;
  --surface: #ffffff;
  --surface-2: #eef3ff;
}

:root[data-theme="dark"] {
  --bg: #071124;
  --panel: rgba(12, 23, 48, .94);
  --panel-strong: #0a142b;
  --line: rgba(178, 199, 255, .18);
  --text: #f4f7ff;
  --muted: #a8b6d8;
  --gold: #6d95ff;
  --gold-soft: rgba(109, 149, 255, .14);
  --green: #3fe0ad;
  --surface: #0c1730;
  --surface-2: #101f3d;
}

* { letter-spacing: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 8%, rgba(35, 87, 216, .14), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  color: var(--text);
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 84% 8%, rgba(35, 87, 216, .14), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35,87,216,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,87,216,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), transparent 70%);
}

a { color: #2357d8; text-decoration: none; }
a:hover { color: #0d3fb2; }

.app-nav {
  background: rgba(5, 7, 6, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar-brand { color: var(--text) !important; }
.nav-link { color: rgba(244,246,239,.72) !important; }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

.hero-section { min-height: calc(100vh - 66px); display: flex; align-items: center; position: relative; }
.home-hero { min-height: 92vh; padding: 30px 0 60px; }
.hero-grid { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.small-kicker { margin-bottom: 12px; }

.hero-section h1 {
  max-width: 760px;
  line-height: .98;
}

.home-section {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: #0d3fb2;
  border: 1px solid #0d3fb2;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(35,87,216,.2);
}

.btn-primary:hover { color: #fff; background: #2357d8; border-color: #2357d8; }

.btn-soft,
.btn-outline-light {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.btn-soft:hover,
.btn-outline-light:hover {
  color: #0b0c08;
  background: var(--gold);
  border-color: var(--gold);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}

.hero-proof span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}

.hero-console,
.glass-panel,
.feature-card,
.auth-card,
.side-panel,
.chat-sidebar,
.chat-main,
.admin-panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 100px rgba(0,0,0,.42);
}

.hero-console {
  min-height: 620px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-console::after {
  content: "";
  position: absolute;
  inset: auto -16% -32% -16%;
  height: 58%;
  background: radial-gradient(circle, rgba(35,87,216,.16), transparent 68%);
  pointer-events: none;
}

.console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 54px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.ai-orb {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  margin: 0 auto 40px;
  background:
    radial-gradient(circle at 42% 38%, rgba(255,255,255,.95), rgba(35,87,216,.25) 34%, transparent 42%),
    conic-gradient(from 45deg, transparent, rgba(35,87,216,.9), transparent, rgba(255,255,255,.7), transparent);
  box-shadow: 0 0 40px rgba(35,87,216,.25), inset 0 0 24px rgba(255,255,255,.28);
  filter: saturate(1.15);
}

.hud-ring {
  width: 230px;
  height: 230px;
  margin: 0 auto 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  background:
    radial-gradient(circle, rgba(35,87,216,.08), transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(35,87,216,.16) 0deg 9deg, transparent 9deg 20deg);
  animation: hudPulse 5s ease-in-out infinite;
}

.hud-ring .ai-orb {
  margin: 0;
}

.hud-ring span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

.hud-ring span:nth-child(2) { top: 18px; left: 50%; }
.hud-ring span:nth-child(3) { right: 26px; top: 54%; }
.hud-ring span:nth-child(4) { bottom: 22px; left: 36%; }
.hud-ring span:nth-child(5) { left: 22px; top: 42%; }

@keyframes hudPulse {
  0%, 100% { transform: scale(1); opacity: .94; }
  50% { transform: scale(1.03); opacity: 1; }
}

.hero-prompt,
.ask-bar {
  border-radius: 32px;
  background: #030403;
  border: 1px solid rgba(255,255,255,.08);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: inset 0 0 0 1px rgba(35,87,216,.05), 0 22px 60px rgba(17,47,110,.12);
  position: relative;
  z-index: 1;
}

.hero-prompt span,
.ask-bar span { color: var(--muted); }

.hero-prompt button,
.ask-bar a {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--gold);
  color: #080904;
  font-weight: 800;
  white-space: nowrap;
}

.expert-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid div {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(0,0,0,.48);
  border: 1px solid var(--line);
}

:root[data-theme="light"] .capability-grid div,
:root[data-theme="light"] .expert-chip-grid div,
:root[data-theme="light"] .feature-card {
  background: rgba(255,255,255,.65);
}

.capability-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.08rem;
}

.capability-grid span {
  color: var(--muted);
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  padding: 34px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 100px rgba(0,0,0,.34);
}

.workflow-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  max-width: 760px;
}

.workflow-steps {
  display: grid;
  gap: 12px;
}

.workflow-steps div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.38);
  border: 1px solid var(--line);
}

:root[data-theme="light"] .workflow-steps div {
  background: rgba(255,255,255,.6);
}

.workflow-steps b {
  color: var(--gold);
  font-size: 1.2rem;
}

.expert-chip-grid div,
.feature-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
}

.expert-chip-grid strong { display: block; color: var(--text); }
.expert-chip-grid span,
.feature-card p { color: var(--muted); font-size: .9rem; }

.feature-card { height: 100%; }
.feature-card h3 { font-size: 1.15rem; }
.auth-card { max-width: 820px; padding: 30px; position: relative; z-index: 1; }
.auth-card.narrow { max-width: 460px; }

.form-control,
.form-select {
  background-color: rgba(255,255,255,.065);
  border-color: var(--line);
  color: var(--text);
  border-radius: 14px;
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255,255,255,.08);
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 0 0 .25rem rgba(35,87,216,.14);
}

.form-select option { color: #111; }

.theme-toggle {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  padding: 0 12px;
  font-size: .82rem;
  font-weight: 700;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold);
}

.nav-language select {
  height: 34px;
  max-width: 178px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface, var(--panel-strong));
  color: var(--text);
  padding: 0 34px 0 12px;
  font-size: .82rem;
  font-weight: 700;
  outline: none;
}

.nav-language select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(35,87,216,.12);
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}

.dashboard-rail {
  background: rgba(16, 16, 13, .82);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
}

.rail-brand,
.mobile-brand {
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
}

.rail-search {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  color: var(--muted);
  margin-bottom: 22px;
}

.dashboard-rail h2 {
  font-size: .88rem;
  color: var(--text);
  margin: 18px 0 10px;
}

.rail-empty {
  color: var(--muted);
  font-size: .92rem;
}

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

.rail-list a,
.recent-list a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.rail-list span,
.recent-list span { color: var(--muted); font-size: .82rem; }

.dashboard-main {
  padding: 24px;
}

.dashboard-top,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-brand { display: none; margin-bottom: 0; }

.plan-pill,
.section-title span {
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: .9rem;
  white-space: nowrap;
}

.welcome-panel {
  max-width: 850px;
  margin: 46px auto 34px;
  text-align: center;
}

.dashboard-orb {
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
}

.welcome-panel h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
}

.ask-bar { text-align: left; }

.expert-section {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 0;
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.expert-card {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(3,4,3,.72);
  border-radius: 24px;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.expert-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(16,16,10,.92);
  color: var(--text);
}

.expert-card h3 { font-size: 1rem; margin: 0 0 5px; }
.expert-card p { color: var(--muted); font-size: .86rem; margin: 0 0 8px; line-height: 1.35; }
.expert-card span { color: #efe873; font-size: .8rem; }

.expert-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.expert-icon.big { width: 74px; height: 74px; font-size: 1.5rem; }

.chat-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  min-height: 72vh;
  position: relative;
  z-index: 1;
}

.chat-sidebar {
  padding: 22px;
  min-height: 250px;
  background:
    radial-gradient(circle at 82% 12%, rgba(35,87,216,.16), transparent 12rem),
    var(--panel);
}

.chat-meta {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: .84rem;
  font-weight: 800;
}

.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 72vh;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
}

.message { max-width: 82%; padding: 14px 16px; border-radius: 18px; white-space: pre-wrap; position: relative; box-shadow: 0 12px 28px rgba(17,47,110,.08); }
.user-message { align-self: flex-end; background: #0d3fb2; color: #fff; font-weight: 700; }
.ai-message { align-self: flex-start; background: var(--surface, var(--panel-strong)); border: 1px solid var(--line); color: var(--text); }
.copy-btn { margin-top: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.empty-chat {
  margin: auto;
  max-width: 420px;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface, var(--panel-strong)) 86%, transparent);
}

.empty-chat strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.empty-chat span { display: block; }

.chat-form {
  display: block;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2, rgba(0,0,0,.18));
}

.composer-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface, var(--panel-strong));
  box-shadow: 0 16px 36px rgba(17,47,110,.12);
}

.composer-box textarea.form-control {
  resize: vertical;
  min-height: 74px;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.composer-box textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  opacity: 1;
}

.composer-box .btn {
  min-height: 74px;
  border-radius: 14px;
}

.stat-card { padding: 18px; display: grid; gap: 6px; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 2rem; }
.admin-panel { padding: 20px; }
.knowledge-row { border-bottom: 1px solid var(--line); padding: 12px 0; }
.knowledge-row span { display: block; color: var(--muted); font-size: .85rem; }
.knowledge-row p { color: var(--muted); margin: 6px 0 0; }

@media (max-width: 1199px) {
  .expert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-panel { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .hero-section { min-height: auto; }
  .hero-console { min-height: 430px; }
  .dashboard-shell { display: block; }
  .dashboard-rail { display: none; }
  .dashboard-main { padding: 18px 14px 28px; }
  .mobile-brand { display: block; }
  .welcome-panel { margin: 26px auto 28px; }
  .chat-shell { grid-template-columns: 1fr; }
  .message { max-width: 94%; }
}

@media (max-width: 575px) {
  .hero-section h1 { font-size: 2.55rem; }
  .home-hero { padding-top: 8px; }
  .hero-console { padding: 18px; border-radius: 24px; min-height: 450px; }
  .ai-orb { width: 88px; height: 88px; margin-bottom: 24px; }
  .hud-ring { width: 172px; height: 172px; margin-bottom: 24px; }
  .hero-prompt,
  .ask-bar {
    border-radius: 24px;
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
  }
  .hero-prompt button,
  .ask-bar a {
    width: 100%;
    text-align: center;
  }
  .expert-chip-grid,
  .expert-grid,
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid div { min-height: 120px; }
  .workflow-panel { padding: 22px; border-radius: 24px; }
  .dashboard-top { align-items: flex-start; }
  .welcome-panel h1 { font-size: 2.35rem; }
  .composer-box { grid-template-columns: 1fr; }
  .composer-box .btn { min-height: 48px; }
  .auth-card { padding: 22px; border-radius: 24px; }
  .nav-language select { max-width: 100%; width: 100%; }
}

/* Final polish: ChatGPT-like readable typography and strong light-mode contrast. */
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.plan-pill,
.section-title span {
  letter-spacing: -0.01em;
}

:root[data-theme="light"] .app-nav,
:root:not([data-theme="dark"]) .app-nav {
  background: rgba(255,255,255,.9);
}

:root[data-theme="light"] .dashboard-rail,
:root:not([data-theme="dark"]) .dashboard-rail {
  background: #ffffff;
}

:root[data-theme="light"] .rail-list a,
:root:not([data-theme="dark"]) .rail-list a,
:root[data-theme="light"] .recent-list a,
:root:not([data-theme="dark"]) .recent-list a {
  background: #f3f6ff;
  color: #07112f;
}

:root[data-theme="light"] .expert-card,
:root:not([data-theme="dark"]) .expert-card,
:root[data-theme="light"] .feature-card,
:root:not([data-theme="dark"]) .feature-card,
:root[data-theme="light"] .expert-chip-grid div,
:root:not([data-theme="dark"]) .expert-chip-grid div,
:root[data-theme="light"] .capability-grid div,
:root:not([data-theme="dark"]) .capability-grid div,
:root[data-theme="light"] .workflow-steps div,
:root:not([data-theme="dark"]) .workflow-steps div,
:root[data-theme="light"] .auth-card,
:root:not([data-theme="dark"]) .auth-card,
:root[data-theme="light"] .chat-sidebar,
:root:not([data-theme="dark"]) .chat-sidebar,
:root[data-theme="light"] .chat-main,
:root:not([data-theme="dark"]) .chat-main,
:root[data-theme="light"] .admin-panel,
:root:not([data-theme="dark"]) .admin-panel,
:root[data-theme="light"] .stat-card,
:root:not([data-theme="dark"]) .stat-card {
  background: #ffffff;
  color: #07112f;
  border-color: #d8e1f4;
}

:root[data-theme="light"] .expert-card p,
:root:not([data-theme="dark"]) .expert-card p,
:root[data-theme="light"] .text-secondary,
:root:not([data-theme="dark"]) .text-secondary,
:root[data-theme="light"] .rail-list span,
:root:not([data-theme="dark"]) .rail-list span,
:root[data-theme="light"] .recent-list span,
:root:not([data-theme="dark"]) .recent-list span {
  color: #53627f !important;
}

:root[data-theme="light"] .ask-bar,
:root:not([data-theme="dark"]) .ask-bar,
:root[data-theme="light"] .hero-prompt,
:root:not([data-theme="dark"]) .hero-prompt {
  background: #ffffff;
  color: #07112f;
  box-shadow: 0 22px 60px rgba(17,47,110,.1);
}

:root[data-theme="light"] .chat-messages,
:root:not([data-theme="dark"]) .chat-messages {
  background-color: #f7f9ff;
}

:root[data-theme="light"] .composer-box,
:root:not([data-theme="dark"]) .composer-box {
  background: #ffffff;
}

:root[data-theme="light"] .composer-box textarea.form-control,
:root:not([data-theme="dark"]) .composer-box textarea.form-control {
  color: #07112f;
}

.legal-page {
  position: relative;
  z-index: 1;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(17,47,110,.12);
}

.legal-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.legal-card p {
  color: var(--muted);
  max-width: 760px;
}

.contact-box {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

.finder-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(35,87,216,.18), transparent 18rem),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(17,47,110,.12);
}

.finder-highlight h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 16px;
}

.finder-highlight p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.finder-flow {
  display: grid;
  gap: 12px;
}

.finder-flow div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.finder-flow strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  flex: 0 0 auto;
}

.finder-flow span {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 991px) {
  .finder-highlight { grid-template-columns: 1fr; }
}

/* Creative AI studio layer: more premium, less template-like. */
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 18%, rgba(106, 93, 255, .24), transparent 26rem),
    radial-gradient(circle at 85% 12%, rgba(0, 214, 255, .18), transparent 24rem),
    linear-gradient(135deg, #050916 0%, #07122a 48%, #130b2c 100%);
}

:root[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(126,153,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,153,255,.07) 1px, transparent 1px);
}

.home-hero .display-3,
.welcome-panel h1 {
  letter-spacing: -0.055em;
}

.hero-console,
.welcome-panel,
.chat-main,
.chat-sidebar,
.dashboard-rail,
.expert-card,
.finder-highlight,
.workflow-panel,
.legal-card {
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .hero-console,
:root[data-theme="dark"] .chat-main,
:root[data-theme="dark"] .chat-sidebar,
:root[data-theme="dark"] .dashboard-rail,
:root[data-theme="dark"] .expert-card,
:root[data-theme="dark"] .finder-highlight,
:root[data-theme="dark"] .workflow-panel,
:root[data-theme="dark"] .legal-card,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .stat-card {
  background: linear-gradient(180deg, rgba(13, 25, 55, .82), rgba(6, 12, 30, .9));
  border-color: rgba(153, 178, 255, .18);
  box-shadow: 0 24px 80px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05);
}

.zen-core {
  overflow: visible;
}

.zen-core::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: inherit;
  background: conic-gradient(from 90deg, transparent, rgba(104, 130, 255, .55), transparent, rgba(0, 214, 255, .38), transparent);
  filter: blur(18px);
  opacity: .75;
  animation: zenSpin 10s linear infinite;
}

@keyframes zenSpin {
  to { transform: rotate(360deg); }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.signal-strip span {
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}

.zen-bento {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.zen-bento-main,
.zen-mini-card {
  min-height: 190px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(104, 130, 255, .16), transparent 18rem),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(17,47,110,.12);
}

.zen-bento-main h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 14px;
}

.zen-bento-main p,
.zen-mini-card span {
  color: var(--muted);
}

.zen-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.zen-mini-card strong {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quick-actions a {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  box-shadow: 0 16px 44px rgba(17,47,110,.08);
}

.quick-actions strong,
.quick-actions span {
  display: block;
}

.quick-actions span {
  color: var(--muted);
  font-size: .88rem;
  margin-top: 4px;
}

.chat-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0%, rgba(104, 130, 255, .14), transparent 18rem),
    color-mix(in srgb, var(--surface) 88%, transparent);
}

.chat-session-bar strong,
.session-eyebrow {
  display: block;
}

.session-eyebrow {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.session-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 800;
  font-size: .84rem;
}

.session-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.composer-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.composer-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-weight: 800;
  font-size: .82rem;
}

.composer-suggestions button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.prompt-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: .84rem;
}

.prompt-chips button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.composer-box {
  border-radius: 22px;
  padding: 12px;
}

.composer-box textarea.form-control {
  font-size: 1rem;
  line-height: 1.55;
}

.message {
  font-size: .98rem;
  line-height: 1.65;
}

.ai-message strong {
  color: var(--text);
}

@media (max-width: 1199px) {
  .zen-bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .zen-bento,
  .quick-actions,
  .signal-strip { grid-template-columns: 1fr; }
  .chat-session-bar { align-items: flex-start; flex-direction: column; }
}

/* Weather-aware dashboard atmosphere. */
.dashboard-main {
  position: relative;
  overflow: hidden;
}

.dashboard-main > * {
  position: relative;
  z-index: 1;
}

.dashboard-main::before,
.dashboard-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}

.weather-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 18px auto 0;
  max-width: 1120px;
  padding: 16px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17,47,110,.1);
}

.weather-orb {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 28%),
    linear-gradient(135deg, #6d95ff, #2357d8);
  box-shadow: 0 16px 34px rgba(35,87,216,.24);
}

.weather-copy strong,
.weather-copy p {
  display: block;
}

.weather-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.weather-copy p {
  color: var(--muted);
  margin: 2px 0 0;
  font-size: .92rem;
}

.weather-btn {
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
  padding: 11px 14px;
  white-space: nowrap;
}

.dashboard-shell[data-weather="rain"] .dashboard-main::before,
.dashboard-shell[data-weather="storm"] .dashboard-main::before {
  opacity: .42;
  background-image:
    linear-gradient(115deg, rgba(125,180,255,.22) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 20% 20%, rgba(0,180,255,.16), transparent 22rem);
  background-size: 20px 80px, auto;
  animation: rainFall 1.1s linear infinite;
}

.dashboard-shell[data-weather="rain"] .dashboard-main::after,
.dashboard-shell[data-weather="storm"] .dashboard-main::after {
  opacity: .28;
  background: radial-gradient(ellipse at bottom, rgba(72,160,255,.28), transparent 52%);
}

.dashboard-shell[data-weather="snow"] .dashboard-main::before {
  opacity: .58;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.58) 0 1px, transparent 2px);
  background-size: 90px 90px, 52px 52px;
  animation: snowDrift 7s linear infinite;
}

.dashboard-shell[data-weather="clear"] .dashboard-main::before {
  opacity: .5;
  background:
    radial-gradient(circle at 86% 10%, rgba(255,210,88,.32), transparent 18rem),
    radial-gradient(circle at 22% 16%, rgba(96,154,255,.18), transparent 24rem);
}

.dashboard-shell[data-weather="cloud"] .dashboard-main::before,
.dashboard-shell[data-weather="unknown"] .dashboard-main::before {
  opacity: .34;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(180,196,225,.24), transparent 18rem),
    radial-gradient(ellipse at 78% 28%, rgba(180,196,225,.18), transparent 20rem);
}

.weather-panel[data-weather="rain"],
.weather-panel[data-weather="storm"] {
  background:
    radial-gradient(circle at 90% 10%, rgba(64,160,255,.18), transparent 16rem),
    var(--panel);
}

.weather-panel[data-weather="snow"] .weather-orb {
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 30%),
    linear-gradient(135deg, #eaf3ff, #8ab7ff);
}

.weather-panel[data-weather="clear"] .weather-orb {
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 30%),
    linear-gradient(135deg, #ffd76a, #4d8cff);
}

@keyframes rainFall {
  to { background-position: 0 80px, 0 0; }
}

@keyframes snowDrift {
  to { background-position: 60px 140px, -40px 90px; }
}

/* Conversation UI: avatars, identity, and typing feel. */
.message-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: min(860px, 100%);
}

.message-row .message {
  max-width: 100%;
}

.ai-row {
  align-self: flex-start;
}

.user-row {
  align-self: flex-end;
  justify-content: flex-end;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(17,47,110,.12);
}

.ai-avatar {
  color: #fff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.65), transparent 28%),
    linear-gradient(135deg, #6d5dff, #00b8ff);
}

.user-avatar {
  color: var(--text);
  background: var(--surface);
}

.message-name {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 20px;
}

.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingDot 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 767px) {
  .weather-panel {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .weather-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-avatar {
    width: 30px;
    height: 30px;
    font-size: .68rem;
  }
}

/* New weather card inspired by modern mobile weather panels. */
.weather-panel.weather-card {
  display: block;
  max-width: 1120px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 28%, rgba(255,210,86,.28), transparent 9rem),
    linear-gradient(135deg, #554982 0%, #4d4279 58%, #3f386e 100%);
  box-shadow: 0 24px 70px rgba(41, 35, 92, .28);
}

.weather-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 0;
}

.weather-location-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.weather-location-bar strong {
  color: #fff;
  font-size: 1rem;
}

.weather-location-bar span[data-weather-location-sub] {
  color: rgba(255,255,255,.64);
  font-size: .84rem;
}

.weather-home-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.weather-home-mark::before {
  content: "";
  position: absolute;
  inset: 3px 2px 1px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 42%, 84% 42%, 84% 100%, 16% 100%, 16% 42%, 0 42%);
  opacity: .92;
}

.weather-card-body {
  padding: 16px 18px 20px;
}

.weather-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.weather-card-top strong,
.weather-card-top span {
  display: block;
}

.weather-card-top strong {
  color: #fff;
  font-size: .95rem;
}

.weather-card-top span {
  color: rgba(255,255,255,.72);
  font-size: .84rem;
}

.weather-note {
  padding: 9px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.88) !important;
  background: rgba(255,255,255,.12);
  white-space: nowrap;
}

.weather-main-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.weather-visual {
  width: 82px;
  height: 82px;
  position: relative;
  flex: 0 0 auto;
}

.weather-visual::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  left: 4px;
  top: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd35d, #ff941f);
  box-shadow: 0 12px 28px rgba(255,158,32,.32);
}

.weather-visual span,
.weather-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef7ff, #8db9ff);
  box-shadow: 0 10px 22px rgba(42,91,176,.24);
}

.weather-visual span {
  width: 58px;
  height: 30px;
  left: 0;
  top: 14px;
}

.weather-visual::after {
  width: 54px;
  height: 28px;
  right: 2px;
  bottom: 8px;
}

.weather-temp {
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 4.7rem);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.06em;
}

.weather-condition strong {
  color: #fff;
  display: block;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.weather-condition span {
  color: rgba(255,255,255,.78);
}

.weather-summary {
  margin: 22px 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.weather-stats div {
  display: grid;
  gap: 3px;
}

.weather-stats span {
  color: rgba(255,255,255,.64);
  font-size: .78rem;
  font-weight: 700;
}

.weather-stats strong {
  color: #fff;
  font-size: .98rem;
}

.weather-btn {
  background: rgba(255,255,255,.13);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

.weather-btn:hover {
  background: rgba(255,255,255,.22);
}

.weather-panel[data-weather="rain"] {
  background:
    linear-gradient(115deg, rgba(132,192,255,.12) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #33476f 0%, #443f78 58%, #272f59 100%);
  background-size: 20px 80px, auto;
}

.weather-panel[data-weather="snow"] {
  background:
    radial-gradient(circle, rgba(255,255,255,.32) 0 2px, transparent 3px),
    linear-gradient(135deg, #55709a 0%, #6c74aa 58%, #4b5784 100%);
  background-size: 70px 70px, auto;
}

.weather-panel[data-weather="clear"] {
  background:
    radial-gradient(circle at 12% 28%, rgba(255,210,86,.42), transparent 9rem),
    linear-gradient(135deg, #4d65a7 0%, #594c8d 58%, #463d7b 100%);
}

/* Softer human-chat layout. */
.chat-page-wrap {
  min-height: calc(100vh - 66px);
  background:
    radial-gradient(circle at 14% 10%, rgba(104,130,255,.18), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(0,214,255,.12), transparent 24rem);
}

.chat-page-wrap .chat-shell {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 0 16px;
}

.chat-page-wrap .chat-sidebar,
.chat-page-wrap .chat-main {
  border-radius: 28px;
}

.chat-page-wrap .chat-sidebar {
  min-height: auto;
  align-self: start;
  padding: 24px;
}

.chat-page-wrap .chat-main {
  min-height: calc(100vh - 138px);
  overflow: hidden;
}

.chat-page-wrap .chat-session-bar {
  padding: 18px 22px;
  background: rgba(255,255,255,.045);
}

.chat-page-wrap .chat-messages {
  background:
    radial-gradient(circle at 18% 10%, rgba(104,130,255,.08), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.045));
  background-size: auto;
  padding: 26px;
  gap: 18px;
}

.chat-page-wrap .message-row {
  max-width: min(820px, 100%);
}

.chat-page-wrap .message {
  padding: 13px 16px;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.chat-page-wrap .ai-message {
  background: rgba(255,255,255,.075);
  border-color: rgba(170,195,255,.16);
}

.chat-page-wrap .user-message {
  border-radius: 22px 22px 8px 22px;
  background: linear-gradient(135deg, #2d6cff, #1748c7);
}

.chat-page-wrap .ai-row .message {
  border-radius: 22px 22px 22px 8px;
}

.chat-page-wrap .chat-avatar {
  width: 34px;
  height: 34px;
}

.chat-page-wrap .chat-form {
  padding: 16px;
  background: rgba(255,255,255,.055);
}

.chat-page-wrap .composer-box {
  grid-template-columns: minmax(0, 1fr) 108px;
  background: rgba(255,255,255,.08);
  border-color: rgba(170,195,255,.18);
  box-shadow: none;
}

.chat-page-wrap .composer-box textarea.form-control {
  min-height: 62px;
}

.chat-page-wrap .composer-box .btn {
  min-height: 62px;
}

@media (max-width: 991px) {
  .chat-page-wrap .chat-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .weather-location-bar,
  .weather-card-top,
  .weather-main-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .weather-note,
  .weather-btn {
    width: 100%;
    text-align: center;
  }

  .chat-page-wrap .composer-box {
    grid-template-columns: 1fr;
  }
}

/* Oramind cinematic black theme. */
:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
  --bg: #03050b;
  --panel: rgba(8, 12, 24, .78);
  --panel-strong: rgba(11, 17, 32, .96);
  --line: rgba(164, 188, 255, .16);
  --text: #f6f8ff;
  --muted: #9aa8c7;
  --gold: #6f92ff;
  --gold-soft: rgba(111, 146, 255, .13);
  --green: #35f5c8;
  --surface: rgba(9, 14, 27, .92);
  --surface-2: #050813;
  --hot: #a66cff;
  --cyan: #29e1ff;
  --pink: #ff6bd6;
}

:root[data-theme="smart"] {
  --bg: #020407;
  --panel: rgba(6, 13, 20, .8);
  --panel-strong: rgba(8, 20, 28, .96);
  --line: rgba(74, 255, 224, .18);
  --text: #fbfffd;
  --muted: #adc3cf;
  --gold: #4affdf;
  --gold-soft: rgba(74, 255, 224, .13);
  --green: #61ff9d;
  --surface: rgba(6, 16, 24, .92);
  --surface-2: #02070c;
  --hot: #7f75ff;
  --cyan: #4affdf;
  --pink: #74a7ff;
}

* {
  letter-spacing: 0 !important;
}

html {
  background: #03050b;
}

body {
  background:
    linear-gradient(115deg, rgba(92, 117, 255, .16), transparent 34%),
    radial-gradient(ellipse at 70% 8%, rgba(41, 225, 255, .22), transparent 30rem),
    radial-gradient(ellipse at 16% 22%, rgba(166, 108, 255, .18), transparent 28rem),
    linear-gradient(180deg, #02040a 0%, #050917 48%, #03050b 100%) !important;
  color: var(--text);
}

body::before {
  opacity: .78;
  background-image:
    linear-gradient(rgba(120, 157, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 157, 255, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(41, 225, 255, .08), transparent 32rem);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 84%);
}

body::after {
  content: "";
  position: fixed;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 120deg at 50% 50%, transparent 0 12%, rgba(41,225,255,.12) 18%, transparent 28%, rgba(166,108,255,.12) 38%, transparent 52%, rgba(255,107,214,.1) 62%, transparent 78%);
  filter: blur(58px);
  opacity: .62;
  animation: oramindAurora 16s ease-in-out infinite alternate;
}

@keyframes oramindAurora {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(2%, 1%, 0) rotate(18deg) scale(1.04); }
  100% { transform: translate3d(0, -2%, 0) rotate(-10deg) scale(1.02); }
}

main,
.app-nav,
.site-footer {
  position: relative;
  z-index: 1;
}

a,
.footer-links a:hover,
.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
}

.text-secondary,
p.text-secondary,
.lead.text-secondary,
.legal-card p,
.feature-card p,
.expert-card p,
.rail-empty,
.weather-card-top span,
.weather-condition span {
  color: var(--muted) !important;
}

.app-nav,
:root[data-theme="light"] .app-nav,
:root:not([data-theme="dark"]) .app-nav {
  background: rgba(2, 4, 10, .78) !important;
  border-bottom: 1px solid rgba(164,188,255,.14);
  box-shadow: 0 16px 60px rgba(0,0,0,.34);
}

.navbar-brand,
.nav-link {
  color: var(--text) !important;
}

.navbar-toggler {
  border-color: rgba(164,188,255,.24);
}

.theme-toggle,
.nav-language select {
  min-width: 96px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)) !important;
  color: var(--text);
  border-color: rgba(164,188,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 34px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}

.nav-language select option,
.form-select option {
  color: #0b1020;
  background: #f7f9ff;
}

.btn,
button,
.weather-btn {
  border-radius: 999px;
}

.btn-primary,
.hero-prompt button,
.ask-bar a,
.weather-btn {
  background:
    linear-gradient(135deg, rgba(111,146,255,.98), rgba(41,225,255,.82)) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #02050c !important;
  box-shadow: 0 18px 48px rgba(61,126,255,.28), inset 0 1px 0 rgba(255,255,255,.36);
}

.btn-primary:hover,
.hero-prompt button:hover,
.ask-bar a:hover,
.weather-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(41,225,255,.28), inset 0 1px 0 rgba(255,255,255,.42);
}

.btn-soft,
.btn-outline-light,
.copy-btn,
.composer-suggestions button,
.prompt-chips button {
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  border-color: rgba(164,188,255,.18) !important;
  backdrop-filter: blur(14px);
}

.hero-kicker {
  background: rgba(255,255,255,.055);
  color: var(--gold);
  border-color: rgba(111,146,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 48px rgba(0,0,0,.24);
}

.home-hero {
  isolation: isolate;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto;
  height: 76%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(41,225,255,.08) 18%, transparent 28% 46%, rgba(166,108,255,.1) 56%, transparent 72%),
    repeating-linear-gradient(120deg, rgba(255,255,255,.055) 0 1px, transparent 1px 18px);
  transform: skewY(-7deg);
  filter: blur(.1px);
  opacity: .56;
  animation: neuralSweep 8s linear infinite;
  z-index: -1;
}

@keyframes neuralSweep {
  to { background-position: 320px 0, 160px 0; }
}

.hero-section h1,
.finder-highlight h2,
.workflow-panel h2,
.zen-bento-main h2,
.welcome-panel h1,
.legal-card h1 {
  color: var(--text);
  text-shadow: 0 0 34px rgba(111,146,255,.14);
}

.hero-console,
.glass-panel,
.feature-card,
.auth-card,
.side-panel,
.chat-sidebar,
.chat-main,
.admin-panel,
.stat-card,
.finder-highlight,
.workflow-panel,
.legal-card,
.zen-bento-main,
.zen-mini-card,
.weather-panel.weather-card,
.expert-card,
:root[data-theme="light"] .expert-card,
:root:not([data-theme="dark"]) .expert-card,
:root[data-theme="light"] .feature-card,
:root:not([data-theme="dark"]) .feature-card,
:root[data-theme="light"] .auth-card,
:root:not([data-theme="dark"]) .auth-card,
:root[data-theme="light"] .chat-sidebar,
:root:not([data-theme="dark"]) .chat-sidebar,
:root[data-theme="light"] .chat-main,
:root:not([data-theme="dark"]) .chat-main,
:root[data-theme="light"] .admin-panel,
:root:not([data-theme="dark"]) .admin-panel,
:root[data-theme="light"] .stat-card,
:root:not([data-theme="dark"]) .stat-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
    rgba(5, 9, 19, .82) !important;
  border: 1px solid rgba(164,188,255,.16) !important;
  color: var(--text) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(22px);
}

.hero-console {
  min-height: 640px;
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(41,225,255,.12), transparent),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255,255,255,.025) 14px);
  transform: translateX(-100%);
  animation: consoleScan 6s ease-in-out infinite;
  z-index: 0;
}

.hero-console > * {
  position: relative;
  z-index: 1;
}

@keyframes consoleScan {
  0%, 18% { transform: translateX(-110%); opacity: 0; }
  32%, 65% { opacity: .78; }
  82%, 100% { transform: translateX(110%); opacity: 0; }
}

.ai-orb {
  background:
    radial-gradient(circle at 38% 36%, rgba(255,255,255,.96), rgba(255,255,255,.08) 17%, transparent 26%),
    conic-gradient(from 0deg, var(--cyan), var(--hot), var(--gold), var(--cyan));
  box-shadow: 0 0 44px rgba(41,225,255,.28), 0 0 90px rgba(166,108,255,.2), inset 0 0 28px rgba(255,255,255,.24);
  animation: livingCore 4.8s ease-in-out infinite;
}

@keyframes livingCore {
  0%, 100% { transform: scale(1) rotate(0deg); filter: saturate(1.12); }
  50% { transform: scale(1.045) rotate(10deg); filter: saturate(1.42); }
}

.hud-ring {
  border-color: rgba(111,146,255,.24);
  background:
    radial-gradient(circle, rgba(41,225,255,.08), transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(111,146,255,.18) 0deg 8deg, transparent 8deg 18deg);
}

.gemini-search {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(0, 0, 0, .72) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.48), 0 0 46px rgba(41,225,255,.12) !important;
}

.gemini-search::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  background: conic-gradient(from var(--search-angle, 0deg), var(--cyan), var(--hot), var(--gold), var(--cyan));
  animation: geminiOrbit 4s linear infinite;
}

.gemini-search::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(41,225,255,.14), transparent 15rem),
    linear-gradient(180deg, rgba(7,11,22,.98), rgba(2,5,12,.98));
}

.gemini-search > * {
  position: relative;
  z-index: 1;
}

@keyframes geminiOrbit {
  to { --search-angle: 360deg; transform: rotate(360deg); }
}

.hero-prompt span,
.ask-bar span {
  color: #cdd8f4;
}

[data-live-prompt] {
  transition: opacity .18s ease, transform .18s ease;
}

[data-live-prompt][data-switching="true"] {
  opacity: .28;
  transform: translateY(3px);
}

.alive-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.alive-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dce6ff;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(164,188,255,.14);
  font-size: .78rem;
  font-weight: 800;
}

.alive-strip span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: liveBlink 1.7s ease-in-out infinite;
}

.alive-strip span:nth-child(2)::before { animation-delay: .25s; }
.alive-strip span:nth-child(3)::before { animation-delay: .5s; }

@keyframes liveBlink {
  0%, 100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.08); }
}

.expert-chip-grid div,
.capability-grid div,
.workflow-steps div,
.finder-flow div,
.quick-actions a,
.rail-list a,
.recent-list a,
.prompt-chips button,
.composer-suggestions button {
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(164,188,255,.14) !important;
  color: var(--text) !important;
}

.expert-card:hover,
.quick-actions a:hover,
.rail-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(41,225,255,.42) !important;
  box-shadow: 0 22px 70px rgba(41,225,255,.12), inset 0 1px 0 rgba(255,255,255,.1) !important;
}

.expert-card span,
.feature-card strong,
.metric-card strong,
.workflow-steps b,
.finder-flow strong,
.chat-meta,
.plan-pill,
.section-title span {
  color: var(--gold) !important;
}

.expert-icon,
.finder-flow strong {
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.22), transparent 32%),
    linear-gradient(135deg, rgba(111,146,255,.28), rgba(41,225,255,.16)) !important;
  color: var(--text) !important;
  border: 1px solid rgba(164,188,255,.16);
}

.form-control,
.form-select,
.composer-box,
.chat-page-wrap .composer-box,
:root[data-theme="light"] .composer-box,
:root:not([data-theme="dark"]) .composer-box {
  background: rgba(255,255,255,.065) !important;
  border-color: rgba(164,188,255,.18) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.form-control:focus,
.form-select:focus,
.composer-box:focus-within {
  border-color: rgba(41,225,255,.5) !important;
  box-shadow: 0 0 0 .24rem rgba(41,225,255,.11), 0 18px 58px rgba(41,225,255,.1);
}

.form-label {
  color: #dce6ff;
  font-weight: 700;
}

.form-control::placeholder,
.composer-box textarea::placeholder {
  color: rgba(210, 222, 255, .52) !important;
}

.dashboard-shell {
  background:
    radial-gradient(circle at 86% 0%, rgba(41,225,255,.13), transparent 28rem),
    radial-gradient(circle at 10% 12%, rgba(166,108,255,.12), transparent 26rem);
}

.dashboard-rail,
:root[data-theme="light"] .dashboard-rail,
:root:not([data-theme="dark"]) .dashboard-rail {
  background: rgba(2, 5, 12, .72) !important;
}

.welcome-panel {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    rgba(5, 9, 19, .42);
  border: 1px solid rgba(164,188,255,.1);
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}

.weather-panel.weather-card {
  background:
    radial-gradient(circle at 10% 26%, rgba(255,203,97,.3), transparent 9rem),
    radial-gradient(circle at 90% 0%, rgba(41,225,255,.16), transparent 18rem),
    linear-gradient(135deg, rgba(38, 35, 75, .92), rgba(16, 25, 49, .92) 54%, rgba(8, 12, 26, .96)) !important;
}

.weather-note,
.weather-btn {
  backdrop-filter: blur(12px);
}

.chat-page-wrap {
  background:
    radial-gradient(circle at 14% 10%, rgba(166,108,255,.16), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(41,225,255,.13), transparent 24rem),
    linear-gradient(180deg, #040710, #03050b);
}

.chat-page-wrap .chat-main {
  min-height: calc(100vh - 130px);
}

.chat-page-wrap .chat-session-bar,
.chat-form {
  background: rgba(255,255,255,.045) !important;
}

.chat-page-wrap .chat-messages,
:root[data-theme="light"] .chat-messages,
:root:not([data-theme="dark"]) .chat-messages {
  background:
    radial-gradient(circle at 18% 10%, rgba(41,225,255,.08), transparent 22rem),
    radial-gradient(circle at 88% 40%, rgba(166,108,255,.08), transparent 20rem),
    linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.045)) !important;
}

.chat-page-wrap .ai-message,
.ai-message {
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(164,188,255,.16) !important;
  color: var(--text) !important;
}

.chat-page-wrap .user-message,
.user-message {
  background: linear-gradient(135deg, rgba(111,146,255,.98), rgba(41,225,255,.78)) !important;
  color: #02050c !important;
}

.message-name {
  color: var(--gold);
}

.ai-avatar {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 28%),
    linear-gradient(135deg, var(--hot), var(--cyan));
  box-shadow: 0 0 28px rgba(41,225,255,.18);
}

.user-avatar {
  background: rgba(255,255,255,.075);
  color: var(--text);
}

.empty-chat {
  background: rgba(255,255,255,.055) !important;
  color: var(--muted);
}

.copy-btn:hover,
.composer-suggestions button:hover,
.prompt-chips button:hover {
  color: var(--gold) !important;
  border-color: rgba(41,225,255,.42) !important;
}

.admin-panel .table,
.table-dark {
  --bs-table-bg: rgba(255,255,255,.045);
  --bs-table-striped-bg: rgba(255,255,255,.075);
  --bs-table-border-color: rgba(164,188,255,.12);
  color: var(--text);
}

.site-footer {
  background: rgba(2, 4, 10, .82);
}

@media (max-width: 767px) {
  .hero-console {
    min-height: 520px;
  }

  .alive-strip {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    width: 100%;
    margin-top: 10px;
  }

  .nav-language {
    width: 100%;
  }

  .dashboard-main {
    padding: 14px 10px 28px;
  }

  .welcome-panel {
    margin-top: 18px;
    padding: 22px 14px;
  }
}

/* Gemini-inspired open chat layout, profile settings, compact weather, and agent portraits. */
.expert-avatar-img {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(164,188,255,.22);
  box-shadow: 0 18px 45px rgba(0,0,0,.34), 0 0 28px rgba(41,225,255,.12);
}

.expert-avatar-img.big {
  width: 116px;
  height: 116px;
  border-radius: 30px;
}

.expert-card {
  align-items: center;
  min-height: 140px;
}

.expert-card h3 {
  font-size: 1.05rem;
}

.chat-page-wrap {
  background:
    radial-gradient(circle at 20% 0%, rgba(111,146,255,.16), transparent 28rem),
    radial-gradient(circle at 90% 22%, rgba(41,225,255,.13), transparent 28rem),
    linear-gradient(180deg, #02040a, #03050b 64%, #02040a);
}

.chat-page-wrap .chat-shell {
  max-width: 1280px;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.chat-page-wrap .chat-sidebar {
  position: sticky;
  top: 88px;
  border-radius: 30px;
}

.chat-page-wrap .chat-main {
  min-height: calc(100vh - 110px);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.chat-page-wrap .chat-session-bar {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  padding: 8px 4px 16px;
}

.chat-page-wrap .chat-messages {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 4px 150px;
  background: transparent !important;
  overflow: visible;
}

.chat-page-wrap .message-row {
  width: 100%;
  max-width: 100%;
}

.chat-page-wrap .ai-row {
  align-items: flex-start;
  margin: 10px 0 24px;
}

.chat-page-wrap .user-row {
  margin: 8px 0 20px;
}

.chat-page-wrap .ai-message {
  width: min(760px, calc(100% - 48px));
  padding: 0 0 0 2px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #f5f7ff !important;
}

.chat-page-wrap .ai-message .message-name {
  margin-bottom: 8px;
}

.chat-page-wrap .user-message {
  width: auto;
  max-width: min(680px, calc(100% - 48px));
  padding: 13px 17px;
  border-radius: 22px;
  background: rgba(255,255,255,.095) !important;
  color: var(--text) !important;
  box-shadow: none;
  border: 1px solid rgba(164,188,255,.14);
}

.chat-page-wrap .copy-btn {
  margin-top: 14px;
  padding: 5px 12px;
}

.chat-page-wrap .chat-form {
  position: sticky;
  bottom: 0;
  max-width: 900px;
  width: 100%;
  margin: -120px auto 0;
  padding: 18px 4px 20px;
  border: 0;
  background:
    linear-gradient(180deg, transparent, rgba(2,4,10,.96) 30%, rgba(2,4,10,.98)) !important;
  z-index: 3;
}

.chat-page-wrap .composer-box {
  grid-template-columns: minmax(0, 1fr) 96px;
  border-radius: 30px;
  padding: 10px;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(164,188,255,.2) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}

.chat-page-wrap .composer-box textarea.form-control {
  min-height: 58px;
  padding: 10px 12px;
}

.chat-page-wrap .composer-box .btn {
  min-height: 58px;
  border-radius: 22px;
}

.chat-page-wrap .composer-suggestions {
  padding-left: 8px;
}

.compact-weather {
  margin: 30px auto 10px !important;
  max-width: 960px !important;
  border-radius: 22px !important;
}

.compact-weather .weather-location-bar {
  padding: 11px 14px 0;
}

.compact-weather .weather-card-body {
  padding: 12px 14px 14px;
}

.compact-weather .weather-main-row {
  gap: 12px;
}

.compact-weather .weather-visual {
  width: 52px;
  height: 52px;
}

.compact-weather .weather-visual::before {
  width: 42px;
  height: 42px;
  top: 8px;
}

.compact-weather .weather-visual span {
  width: 40px;
  height: 22px;
  top: 9px;
}

.compact-weather .weather-visual::after {
  width: 38px;
  height: 20px;
  bottom: 5px;
}

.compact-weather .weather-temp {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0 !important;
}

.compact-weather .weather-summary {
  margin: 10px 0 12px;
  font-size: .92rem;
}

.compact-weather .weather-stats {
  gap: 8px;
}

.compact-weather .weather-stats span {
  font-size: .72rem;
}

.compact-weather .weather-stats strong {
  font-size: .88rem;
}

.auth-tabs {
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(164,188,255,.16);
}

.auth-tabs .nav-link {
  border-radius: 999px;
  color: var(--muted) !important;
  font-weight: 800;
}

.auth-tabs .nav-link.active {
  color: #02050c !important;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
}

.oracle-login-panel {
  padding-top: 4px;
}

.profile-shell {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.profile-sidebar {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
  padding: 18px 12px;
  border-right: 1px solid rgba(164,188,255,.14);
  background: rgba(255,255,255,.04);
}

.profile-sidebar a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text) !important;
  font-weight: 700;
  font-size: .92rem;
}

.profile-sidebar a.active,
.profile-sidebar a:hover {
  background: rgba(255,255,255,.1);
}

.profile-close {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  justify-content: center;
  font-size: 1.4rem !important;
  background: rgba(255,255,255,.08);
}

.profile-main {
  max-width: 980px;
  width: 100%;
  padding: clamp(20px, 4vw, 44px);
}

.profile-card {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
    rgba(5, 9, 19, .82);
  border: 1px solid rgba(164,188,255,.16);
  box-shadow: 0 24px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.profile-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(164,188,255,.14);
}

.profile-heading h1,
.profile-card h2 {
  margin: 0;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #02050c;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
}

.settings-list {
  display: grid;
  margin: 18px 0 22px;
  border-top: 1px solid rgba(164,188,255,.12);
}

.settings-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(164,188,255,.12);
}

.settings-list span {
  color: var(--muted);
}

.settings-list strong {
  color: var(--text);
  text-align: right;
}

.builder-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(164,188,255,.14);
}

.builder-preview .ai-orb {
  width: 48px;
  height: 48px;
  margin: 0;
}

.builder-preview div {
  flex: 1;
}

.builder-preview strong,
.builder-preview span {
  display: block;
}

.builder-preview span {
  color: var(--muted);
}

.builder-preview button {
  border: 1px solid rgba(164,188,255,.18);
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 8px 12px;
}

@media (max-width: 991px) {
  .chat-page-wrap .chat-shell {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .chat-page-wrap .chat-sidebar {
    position: relative;
    top: auto;
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: relative;
    top: auto;
    height: auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(164,188,255,.14);
  }

  .profile-sidebar a {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .expert-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .expert-card {
    min-height: 122px;
  }

  .chat-page-wrap .chat-session-bar,
  .chat-page-wrap .chat-messages {
    padding-left: 0;
    padding-right: 0;
  }

  .chat-page-wrap .chat-form {
    padding-left: 0;
    padding-right: 0;
  }

  .chat-page-wrap .composer-box {
    grid-template-columns: 1fr;
  }

  .chat-page-wrap .composer-box .btn {
    min-height: 48px;
  }

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

  .settings-list div,
  .profile-heading,
  .builder-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-list strong {
    text-align: left;
  }
}

:root[data-theme="smart"] .chat-page-wrap .chat-main,
:root[data-theme="dark"] .chat-page-wrap .chat-main,
:root[data-theme="light"] .chat-page-wrap .chat-main,
:root:not([data-theme]) .chat-page-wrap .chat-main {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

:root[data-theme="smart"] .chat-page-wrap .chat-session-bar,
:root[data-theme="dark"] .chat-page-wrap .chat-session-bar,
:root[data-theme="light"] .chat-page-wrap .chat-session-bar,
:root:not([data-theme]) .chat-page-wrap .chat-session-bar,
:root[data-theme="smart"] .chat-page-wrap .chat-messages,
:root[data-theme="dark"] .chat-page-wrap .chat-messages,
:root[data-theme="light"] .chat-page-wrap .chat-messages,
:root:not([data-theme]) .chat-page-wrap .chat-messages {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:root[data-theme="smart"] .chat-page-wrap .ai-message,
:root[data-theme="dark"] .chat-page-wrap .ai-message,
:root[data-theme="light"] .chat-page-wrap .ai-message,
:root:not([data-theme]) .chat-page-wrap .ai-message {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Requested UX pass: dashboard team hero, useful chat history, and cleaner settings. */
.agent-team-hero {
  width: min(640px, 100%);
  height: clamp(92px, 15vw, 180px);
  margin: -12px auto 8px;
  position: relative;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.agent-team-hero::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(41,225,255,.2), transparent 68%);
  filter: blur(14px);
  z-index: -1;
}

.agent-team-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.46));
}

.dashboard-top {
  min-height: 0;
}

.chat-history-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(164,188,255,.14);
  display: grid;
  gap: 9px;
}

.chat-history-title {
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-history-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.chat-history-panel a {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 15px;
  color: var(--text) !important;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(164,188,255,.12);
}

.chat-history-panel a:hover {
  border-color: rgba(41,225,255,.32);
  background: rgba(255,255,255,.08);
}

.chat-history-panel strong {
  font-size: .84rem;
}

.chat-history-panel span {
  color: var(--muted);
  font-size: .75rem;
}

.history-note {
  align-self: center;
  margin: 4px auto 10px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(164,188,255,.12);
  font-size: .82rem;
}

.chat-page-wrap .chat-shell {
  min-height: calc(100vh - 92px);
  grid-template-columns: 300px minmax(0, 1fr);
}

:root[data-theme="smart"] .chat-page-wrap .chat-main,
:root[data-theme="dark"] .chat-page-wrap .chat-main,
:root[data-theme="light"] .chat-page-wrap .chat-main,
:root:not([data-theme]) .chat-page-wrap .chat-main {
  height: calc(100vh - 118px);
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-page-wrap .chat-messages {
  overflow-y: auto;
  padding-bottom: 28px;
  scrollbar-width: thin;
}

.chat-page-wrap .chat-form {
  position: relative;
  bottom: auto;
  margin: 0 auto;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(2,4,10,.1), rgba(2,4,10,.94)) !important;
}

.chat-page-wrap .chat-sidebar {
  max-height: calc(100vh - 118px);
  overflow-y: auto;
}

.profile-main {
  scroll-behavior: smooth;
}

.profile-card {
  scroll-margin-top: 86px;
}

@media (max-width: 991px) {
  .chat-page-wrap .chat-shell {
    grid-template-columns: 1fr;
  }

  :root[data-theme="smart"] .chat-page-wrap .chat-main,
  :root[data-theme="dark"] .chat-page-wrap .chat-main,
  :root[data-theme="light"] .chat-page-wrap .chat-main,
  :root:not([data-theme]) .chat-page-wrap .chat-main {
    min-height: 70vh;
    height: auto;
  }

  .chat-page-wrap .chat-sidebar {
    max-height: none;
  }

  .chat-history-panel {
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 575px) {
  .agent-team-hero {
    height: 106px;
    margin-top: -6px;
  }
}

.mobile-chat-back {
  display: none;
}

.composer-input-stack {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.composer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.attach-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
  font-size: .84rem;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(164,188,255,.16);
}

.attach-button:hover {
  border-color: rgba(41,225,255,.36);
  background: rgba(255,255,255,.09);
}

.attach-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-preview {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(164,188,255,.14);
  font-size: .8rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-page-wrap .composer-actions .btn {
  width: 100%;
}

@media (max-width: 991px) {
  .chat-page-wrap {
    padding-top: 8px !important;
  }

  .chat-page-wrap .chat-shell {
    display: grid;
    gap: 16px;
    min-height: 0;
  }

  .chat-page-wrap .chat-main {
    order: 1;
  }

  .chat-page-wrap .chat-sidebar {
    order: 2;
  }

  :root[data-theme="smart"] .chat-page-wrap .chat-main,
  :root[data-theme="dark"] .chat-page-wrap .chat-main,
  :root[data-theme="light"] .chat-page-wrap .chat-main,
  :root:not([data-theme]) .chat-page-wrap .chat-main {
    height: calc(100dvh - 88px);
    min-height: 560px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .chat-page-wrap .chat-session-bar {
    align-items: center;
    flex-direction: row;
    padding: 6px 2px 10px;
  }

  .session-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-chat-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--text) !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(164,188,255,.16);
    font-size: .84rem;
    font-weight: 800;
  }

  .chat-page-wrap .chat-messages {
    overflow-y: auto;
    padding: 12px 0 16px;
  }

  .chat-page-wrap .chat-form {
    position: relative;
    margin: 0 auto;
    padding: 10px 0 0;
  }

  .chat-page-wrap .chat-sidebar {
    max-height: none;
  }
}

@media (max-width: 575px) {
  :root[data-theme="smart"] .chat-page-wrap .chat-main,
  :root[data-theme="dark"] .chat-page-wrap .chat-main,
  :root[data-theme="light"] .chat-page-wrap .chat-main,
  :root:not([data-theme]) .chat-page-wrap .chat-main {
    height: calc(100dvh - 78px);
    min-height: 520px;
  }

  .chat-page-wrap .chat-session-bar {
    gap: 8px;
  }

  .session-status {
    padding: 7px 10px;
    font-size: .76rem;
  }

  .session-eyebrow {
    font-size: .68rem;
  }

  .chat-page-wrap .composer-suggestions {
    display: none;
  }

  .chat-page-wrap .composer-box textarea.form-control {
    min-height: 50px;
  }
}

/* Optim-inspired Oramind theme pass. */
body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.navbar-brand,
.op-kicker,
.nav-link,
.theme-toggle,
.op-parent-link {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.app-nav,
:root[data-theme="light"] .app-nav,
:root:not([data-theme="dark"]) .app-nav {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(3, 5, 11, .72) !important;
  backdrop-filter: blur(24px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: 0;
}

.navbar-brand::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(83,245,255,.48)),
    #111827;
  box-shadow: 0 0 30px rgba(83,245,255,.22);
}

.nav-link {
  font-size: .78rem;
  text-transform: uppercase;
  color: rgba(245,247,255,.62) !important;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.btn-primary {
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #05070d !important;
  background: linear-gradient(135deg, #ffffff, #85f4ff 52%, #a492ff) !important;
  box-shadow: 0 16px 46px rgba(91, 114, 255, .26);
}

.btn-soft {
  color: #f7f9ff !important;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
}

.op-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255,255,255,.62);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.op-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95,80,255,0), rgba(95,80,255,1));
}

.op-home-hero {
  position: relative;
  min-height: calc(100vh - 66px);
  padding: 86px 0 64px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3,5,11,.82), rgba(3,5,11,.98)),
    url("../template/patterns/bg-pattern-2.svg") center top / 1120px auto no-repeat,
    #02040a;
}

.op-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(95,80,255,.32), transparent) 50% 0 / min(1220px, 86vw) 1px no-repeat,
    linear-gradient(180deg, rgba(95,80,255,.18), transparent 38%);
}

.op-home-hero .container {
  position: relative;
  z-index: 1;
}

.op-hero-copy {
  max-width: 980px;
  margin: 0 auto 42px;
  text-align: center;
}

.op-hero-copy h1 {
  max-width: 920px;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 5.35rem;
  line-height: .96;
  font-weight: 700;
}

.op-hero-copy h1::after {
  content: " Expert answers.";
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.78);
}

.op-hero-copy p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(225,232,255,.72);
  font-size: 1.08rem;
  line-height: 1.8;
}

.op-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.op-parent-link {
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  text-transform: uppercase;
}

.op-hero-stage {
  position: relative;
  min-height: 530px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 38px;
  overflow: hidden;
  background: #080b13;
  box-shadow: 0 36px 120px rgba(0,0,0,.5);
}

.op-hero-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.op-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,6,13,.2), rgba(4,6,13,.9)),
    radial-gradient(circle at 50% 12%, rgba(83,245,255,.18), transparent 32rem);
}

.op-stage-content {
  position: relative;
  z-index: 1;
  min-height: 530px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 28px;
}

.op-window-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 18px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.op-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.op-window-bar span:nth-child(2) { background: #ffbd2e; }
.op-window-bar span:nth-child(3) { background: #28c840; }
.op-window-bar strong {
  margin-left: auto;
  font-weight: 600;
}

.op-agent-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 168px;
}

.op-agent-row img,
.op-auth-agents img {
  width: 92px;
  height: 92px;
  margin-left: -14px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 70px rgba(0,0,0,.46);
}

.op-agent-row img:first-child,
.op-auth-agents img:first-child {
  margin-left: 0;
}

.op-agent-row img:nth-child(2),
.op-agent-row img:nth-child(4) {
  transform: translateY(22px);
}

.op-ask-console {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 16px 16px 22px;
  border-radius: 999px;
  background: rgba(5,7,13,.82);
  border: 1px solid rgba(255,255,255,.16);
}

.op-ask-console span {
  color: rgba(255,255,255,.5);
  font-size: .84rem;
}

.op-ask-console strong {
  color: #fff;
  font-size: .98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-ask-console a {
  min-width: 96px;
  padding: 11px 20px;
  border-radius: 999px;
  text-align: center;
  color: #061018;
  font-weight: 800;
  background: #fff;
}

.op-routing-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.op-routing-map div,
.op-proof-strip .container > div,
.op-process-grid > div,
.op-feature-panel,
.op-agent-card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.op-routing-map div {
  min-height: 88px;
  padding: 18px;
  border-radius: 22px;
}

.op-routing-map b,
.op-process-grid b {
  display: block;
  color: #85f4ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
}

.op-routing-map span {
  color: #fff;
  font-weight: 700;
}

.op-section {
  padding: 72px 0;
  background: #02040a;
}

.op-proof-strip {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.op-proof-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.op-proof-strip .container > div {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 24px;
  text-align: center;
}

.op-proof-strip strong {
  color: #fff;
  font-size: 1.8rem;
}

.op-proof-strip span,
.op-section-head p,
.op-agent-card p,
.op-feature-panel p,
.op-process-grid p {
  color: rgba(225,232,255,.64);
}

.op-section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.op-section-head h2,
.op-feature-panel h2,
.op-final-cta h2 {
  color: #fff;
  font-size: 3.1rem;
  line-height: 1.05;
  font-weight: 700;
}

.op-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.op-agent-card {
  min-height: 278px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 30px;
  color: #fff !important;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.op-agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(133,244,255,.34);
  background: rgba(255,255,255,.07);
}

.op-agent-card img {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
}

.op-agent-card span,
.op-capability-cloud span {
  color: #85f4ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  text-transform: uppercase;
}

.op-agent-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.08rem;
}

.op-agent-card p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
}

.op-split-section .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.op-feature-panel {
  min-height: 380px;
  padding: 34px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    #070a12;
}

.op-panel-dark {
  background:
    linear-gradient(180deg, rgba(95,80,255,.12), rgba(255,255,255,.025)),
    url("../template/patterns/opai-36.jpg") center / cover,
    #070a12;
}

.op-flow-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.op-flow-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.08);
}

.op-flow-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #081016;
  background: #fff;
}

.op-flow-list span {
  color: #fff;
  font-weight: 700;
}

.op-capability-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.op-capability-cloud span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.11);
}

.op-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.op-process-grid > div {
  min-height: 270px;
  padding: 28px;
  border-radius: 30px;
}

.op-process-grid strong {
  display: block;
  margin: 24px 0 10px;
  color: #fff;
  font-size: 1.25rem;
}

.op-final-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(90deg, rgba(95,80,255,.18), rgba(83,245,255,.08)),
    #070a12;
}

.op-final-cta p {
  max-width: 680px;
  color: rgba(225,232,255,.64);
}

.op-auth-shell {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 520px);
  gap: 22px;
  padding: 54px max(20px, calc((100vw - 1180px) / 2)) 64px;
  background:
    linear-gradient(180deg, rgba(3,5,11,.84), #02040a),
    url("../template/patterns/bg-pattern-2.svg") center top / 1040px auto no-repeat,
    #02040a;
}

.op-auth-shell-wide {
  grid-template-columns: minmax(0, .78fr) minmax(520px, 720px);
}

.op-auth-visual,
.op-auth-card {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 36px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 30px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
}

.op-auth-visual {
  min-height: 640px;
  display: grid;
  align-content: space-between;
  padding: 38px;
  overflow: hidden;
  position: relative;
}

.op-auth-visual::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px;
  height: 220px;
  background: url("../template/patterns/opai-36.jpg") center / cover;
  opacity: .2;
  border-radius: 28px;
  pointer-events: none;
}

.op-auth-visual > * {
  position: relative;
  z-index: 1;
}

.op-auth-visual h1 {
  max-width: 520px;
  color: #fff;
  font-size: 4rem;
  line-height: 1;
}

.op-auth-visual p {
  max-width: 560px;
  color: rgba(225,232,255,.66);
  line-height: 1.75;
}

.op-auth-agents {
  display: flex;
  align-items: center;
  margin: 26px 0;
}

.op-auth-note {
  display: grid;
  gap: 5px;
  max-width: 420px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
}

.op-auth-note strong {
  color: #fff;
}

.op-auth-note span {
  color: rgba(225,232,255,.62);
}

.op-auth-card {
  width: 100%;
  max-width: none;
  align-self: center;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    #070a12;
}

.op-auth-card h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
}

.op-auth-card .form-control,
.op-auth-card .form-select {
  min-height: 52px;
  color: #fff;
  border-color: rgba(255,255,255,.13);
  background: rgba(0,0,0,.22);
}

.op-auth-card .form-control:focus,
.op-auth-card .form-select:focus {
  border-color: rgba(133,244,255,.55);
  box-shadow: 0 0 0 .2rem rgba(133,244,255,.12);
}

.op-auth-card .form-label {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.op-auth-card .auth-tabs {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.24);
}

.op-auth-card .auth-tabs .nav-link.active {
  color: #071018 !important;
  background: #fff;
}

.dashboard-shell {
  background:
    linear-gradient(180deg, rgba(2,4,10,.96), rgba(2,4,10,1)),
    url("../template/patterns/bg-pattern-2.svg") center top / 1080px auto no-repeat;
}

.dashboard-rail,
.dashboard-main {
  border-color: rgba(255,255,255,.09) !important;
}

.expert-card {
  min-height: 132px;
  border-radius: 28px;
}

.expert-card:hover .expert-avatar-img {
  transform: translateY(-2px) scale(1.04);
}

.expert-avatar-img {
  transition: transform .24s ease;
}

@media (max-width: 1199px) {
  .op-hero-copy h1 {
    font-size: 4.2rem;
  }

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

  .op-auth-shell,
  .op-auth-shell-wide {
    grid-template-columns: 1fr;
  }

  .op-auth-visual {
    min-height: 420px;
  }
}

@media (max-width: 991px) {
  .op-home-hero {
    padding-top: 58px;
  }

  .op-hero-copy h1 {
    font-size: 3.35rem;
  }

  .op-hero-stage,
  .op-stage-content {
    min-height: 500px;
  }

  .op-proof-strip .container,
  .op-routing-map,
  .op-split-section .container,
  .op-process-grid {
    grid-template-columns: 1fr;
  }

  .op-section-head h2,
  .op-feature-panel h2,
  .op-final-cta h2 {
    font-size: 2.35rem;
  }

  .op-final-cta .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .op-home-hero {
    padding: 34px 0 44px;
  }

  .op-hero-copy {
    text-align: left;
  }

  .op-hero-copy h1 {
    font-size: 2.65rem;
  }

  .op-hero-actions {
    justify-content: flex-start;
  }

  .op-hero-actions .btn,
  .op-final-cta .btn {
    width: 100%;
  }

  .op-hero-stage,
  .op-stage-content {
    min-height: 560px;
  }

  .op-stage-content,
  .op-feature-panel,
  .op-process-grid > div,
  .op-final-cta .container,
  .op-auth-visual,
  .op-auth-card {
    padding: 22px;
    border-radius: 26px;
  }

  .op-ask-console {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .op-agent-row img,
  .op-auth-agents img {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    margin-left: -10px;
  }

  .op-agent-grid {
    grid-template-columns: 1fr;
  }

  .op-auth-shell,
  .op-auth-shell-wide {
    padding: 22px 12px 42px;
  }

  .op-auth-visual {
    min-height: 360px;
  }

  .op-auth-visual h1 {
    font-size: 2.55rem;
  }
}

/* Full template-section home expansion. */
.op-home-hero-full {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.op-proof-expanded {
  padding-top: 22px;
  padding-bottom: 22px;
}

.op-logo-cloud {
  padding-top: 42px;
  padding-bottom: 42px;
}

.op-logo-cloud .container {
  display: grid;
  gap: 18px;
}

.op-logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.op-logo-row span {
  min-height: 62px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: rgba(235,242,255,.68);
  background: rgba(255,255,255,.035);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.op-service-grid,
.op-usecase-grid,
.op-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.op-service-card,
.op-usecase-grid article,
.op-plan-card,
.op-faq-grid details {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(133,244,255,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 70px rgba(0,0,0,.22);
}

.op-service-card {
  min-height: 270px;
  padding: 26px;
}

.op-service-card::after,
.op-plan-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(133,244,255,.55), transparent);
}

.op-service-card span,
.op-plan-card > span {
  display: inline-flex;
  margin-bottom: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #85f4ff;
  background: rgba(0,0,0,.22);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.op-service-card h3,
.op-plan-card h3,
.op-usecase-grid h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.op-service-card p,
.op-plan-card p,
.op-usecase-grid p,
.op-faq-grid p,
.op-admin-panel p,
.op-language-panel p,
.op-showcase-copy p {
  color: rgba(226,234,255,.68);
  line-height: 1.75;
}

.op-showcase-section .container,
.op-admin-panel,
.op-language-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.op-showcase-copy,
.op-showcase-visual,
.op-admin-panel,
.op-language-panel {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 20%, rgba(139,122,255,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 90px rgba(0,0,0,.28);
}

.op-showcase-copy {
  min-height: 560px;
  padding: 42px;
  display: grid;
  align-content: center;
}

.op-showcase-copy h2,
.op-admin-panel h2,
.op-language-panel h2 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1;
  margin: 14px 0 18px;
}

.op-showcase-visual {
  min-height: 560px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, rgba(133,244,255,.14), transparent 38%),
    #05070d;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.op-showcase-visual img {
  width: min(92%, 520px);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.58));
}

.op-floating-chat {
  position: absolute;
  max-width: 260px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  color: #fff;
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,.32);
}

.op-floating-chat b,
.op-floating-chat span {
  display: block;
}

.op-floating-chat b {
  color: #85f4ff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.op-floating-chat span {
  color: rgba(235,242,255,.82);
  line-height: 1.45;
}

.op-chat-left {
  left: 24px;
  top: 70px;
}

.op-chat-right {
  right: 24px;
  bottom: 72px;
}

.op-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.op-mini-metrics div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(0,0,0,.18);
}

.op-mini-metrics strong,
.op-mini-metrics span {
  display: block;
}

.op-mini-metrics strong {
  color: #fff;
  margin-bottom: 4px;
}

.op-mini-metrics span {
  color: rgba(226,234,255,.56);
  font-size: .86rem;
}

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

.op-split-section .op-feature-panel {
  min-height: 360px;
}

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

.op-admin-panel,
.op-language-panel {
  padding: 42px;
}

.op-check-list,
.op-plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.op-check-list li,
.op-plan-card li {
  position: relative;
  color: rgba(235,242,255,.78);
  padding-left: 28px;
}

.op-check-list li::before,
.op-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfffff, #67d8ff 45%, #9b87ff);
  box-shadow: 0 0 20px rgba(103,216,255,.32);
}

.op-access-section {
  background: radial-gradient(circle at 50% 10%, rgba(133,244,255,.08), transparent 30%);
}

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

.op-plan-card {
  min-height: 430px;
  padding: 30px;
}

.op-plan-card > span {
  margin-bottom: 34px;
}

.op-language-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.op-language-cloud span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  padding: 0 18px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.045);
}

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

.op-usecase-grid article {
  min-height: 210px;
  padding: 26px;
}

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

.op-faq-grid details {
  padding: 0;
}

.op-faq-grid summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 26px;
  color: #fff;
  font-weight: 800;
}

.op-faq-grid summary::-webkit-details-marker {
  display: none;
}

.op-faq-grid summary::after {
  content: "+";
  float: right;
  color: #85f4ff;
  font-size: 1.25rem;
  line-height: 1;
}

.op-faq-grid details[open] summary::after {
  content: "-";
}

.op-faq-grid p {
  margin: -6px 26px 24px;
}

.op-final-cta-expanded .container {
  gap: 24px;
}

.op-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1199px) {
  .op-logo-row,
  .op-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .op-split-section .container,
  .op-process-grid-wide,
  .op-usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .op-logo-row,
  .op-service-grid,
  .op-plan-grid,
  .op-faq-grid,
  .op-showcase-section .container,
  .op-admin-panel,
  .op-language-panel {
    grid-template-columns: 1fr;
  }

  .op-showcase-copy,
  .op-showcase-visual {
    min-height: auto;
  }

  .op-language-cloud {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .op-logo-row,
  .op-service-grid,
  .op-split-section .container,
  .op-process-grid-wide,
  .op-usecase-grid {
    grid-template-columns: 1fr;
  }

  .op-service-card,
  .op-plan-card,
  .op-usecase-grid article,
  .op-showcase-copy,
  .op-showcase-visual,
  .op-admin-panel,
  .op-language-panel {
    border-radius: 26px;
    padding: 22px;
  }

  .op-service-card,
  .op-plan-card,
  .op-split-section .op-feature-panel,
  .op-usecase-grid article {
    min-height: auto;
  }

  .op-service-card span,
  .op-plan-card > span {
    margin-bottom: 28px;
  }

  .op-mini-metrics {
    grid-template-columns: 1fr;
  }

  .op-floating-chat {
    position: static;
    margin-top: 12px;
    max-width: none;
    width: 100%;
  }

  .op-showcase-visual {
    display: block;
  }

  .op-showcase-visual img {
    width: 100%;
    margin-bottom: 12px;
  }

  .op-final-actions,
  .op-final-actions .btn {
    width: 100%;
  }
}

/* Template-faithful Oramind home layout. */
.tpl-hero,
.tpl-section,
.tpl-footer-card {
  position: relative;
  overflow: hidden;
  background: #000;
}

.tpl-hero::before,
.tpl-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(75,62,255,.28), transparent 30%),
    url("../template/patterns/bg-pattern-2.svg") center top / 1160px auto no-repeat;
  opacity: .56;
  pointer-events: none;
}

.tpl-hero .container,
.tpl-section .container,
.tpl-footer-card .container {
  position: relative;
  z-index: 1;
}

.tpl-hero {
  min-height: calc(100vh - 68px);
  padding: 110px 0 80px;
  display: grid;
  align-items: center;
}

.tpl-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.tpl-hero-copy {
  max-width: 650px;
}

.tpl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(12,14,24,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.tpl-pill i {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: #5f55ff;
  box-shadow: 0 0 18px rgba(95,85,255,.86);
}

.tpl-hero h1,
.tpl-section-head h2 {
  color: #f7f7fb;
  font-weight: 500;
  letter-spacing: 0;
}

.tpl-hero h1 {
  margin: 28px 0 22px;
  font-size: clamp(3.3rem, 7.2vw, 7.1rem);
  line-height: .94;
}

.tpl-hero p,
.tpl-section-head p {
  color: rgba(230,232,242,.62);
  font-size: 1.08rem;
  line-height: 1.75;
}

.tpl-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.tpl-parent-link {
  color: rgba(255,255,255,.68);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.tpl-hero-media {
  min-height: 610px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 42px;
  background: #05060b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 42px 110px rgba(0,0,0,.46);
}

.tpl-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
}

.tpl-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.72)),
    radial-gradient(circle at 50% 48%, transparent, rgba(0,0,0,.55));
}

.tpl-hero-orbit {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(84%, 560px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tpl-hero-orbit img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 30px;
  margin-left: -22px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.58);
}

.tpl-hero-orbit img:first-child {
  margin-left: 0;
}

.tpl-hero-orbit img:nth-child(2),
.tpl-hero-orbit img:nth-child(5) {
  transform: translateY(34px) rotate(-4deg);
}

.tpl-hero-orbit img:nth-child(3),
.tpl-hero-orbit img:nth-child(4) {
  transform: translateY(-22px) rotate(3deg);
}

.tpl-hero-search {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  bottom: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(3,5,11,.76);
  backdrop-filter: blur(18px);
}

.tpl-hero-search span,
.tpl-hero-search strong {
  display: block;
}

.tpl-hero-search span {
  color: #8f86ff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tpl-hero-search strong {
  color: #fff;
  font-size: 1.08rem;
}

.tpl-hero-search a {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #05070d;
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

.tpl-section {
  padding: 112px 0;
}

.tpl-section-head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.tpl-section-head h2 {
  margin: 28px 0 18px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05;
}

.tpl-card-grid {
  display: grid;
  gap: 28px;
}

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

.tpl-service-card,
.tpl-process-card {
  min-height: 470px;
  display: grid;
  align-content: space-between;
  text-align: center;
  padding: 34px 28px 38px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(19,22,32,.74), rgba(5,6,10,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.tpl-service-art,
.tpl-process-art {
  height: 230px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(95,85,255,.28), transparent 48%),
    rgba(255,255,255,.025);
  overflow: hidden;
}

.tpl-service-art img,
.tpl-process-art img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.tpl-service-card h3,
.tpl-process-card h3,
.tpl-usecase-grid h3,
.tpl-tech-grid h3 {
  color: rgba(255,255,255,.86);
  font-size: 1.42rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tpl-service-card p,
.tpl-process-card p,
.tpl-usecase-grid p,
.tpl-tech-grid p,
.tpl-plan-grid p,
.tpl-faq-grid p {
  color: rgba(235,237,247,.58);
  line-height: 1.62;
}

.tpl-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.09);
  border-left: 1px solid rgba(255,255,255,.09);
}

.tpl-why-grid article {
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 20px;
  text-align: center;
  padding: 34px;
  border-right: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.tpl-why-grid span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.tpl-why-grid h3 {
  max-width: 320px;
  color: rgba(255,255,255,.82);
  font-size: 1.48rem;
  line-height: 1.25;
}

.tpl-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(24,27,38,.72);
}

.tpl-tabs button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: rgba(255,255,255,.46);
  background: transparent;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.tpl-tabs button.active {
  color: #11131b;
  background: #fff;
}

.tpl-industry-stage {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.tpl-industry-stage article {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 36px;
  background: #10131d;
}

.tpl-industry-stage article:first-child {
  grid-row: span 2;
}

.tpl-industry-stage img,
.tpl-usecase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpl-industry-stage article::after,
.tpl-usecase-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82));
}

.tpl-industry-stage article > div,
.tpl-usecase-grid article > div {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px;
  bottom: 24px;
}

.tpl-industry-stage h3,
.tpl-usecase-grid h3 {
  color: #fff;
}

.tpl-industry-stage p {
  color: rgba(255,255,255,.68);
}

.tpl-process-card {
  min-height: 520px;
}

.tpl-process-card > strong {
  display: block;
  color: rgba(255,255,255,.05);
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
  font-size: 3rem;
  line-height: 1;
}

.tpl-center-action {
  display: flex;
  justify-content: center;
  margin-top: 54px;
}

.tpl-agents {
  padding-top: 94px;
  padding-bottom: 94px;
}

.tpl-agent-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.tpl-agent-grid a {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.035);
}

.tpl-agent-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 6px;
}

.tpl-agent-grid span {
  color: #8f86ff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tpl-agent-grid strong {
  color: rgba(255,255,255,.88);
  font-size: .96rem;
}

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

.tpl-usecase-grid article {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px;
  background: #10131d;
}

.tpl-toggle {
  width: fit-content;
  display: flex;
  gap: 8px;
  margin: 0 auto 54px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
}

.tpl-toggle span {
  padding: 10px 18px;
  border-radius: 14px;
  color: rgba(255,255,255,.58);
}

.tpl-toggle span:first-child {
  color: #11131b;
  background: #fff;
}

.tpl-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tpl-plan-grid article {
  min-height: 560px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px;
  background: rgba(255,255,255,.025);
}

.tpl-plan-grid article.featured {
  background:
    radial-gradient(circle at 70% 0%, rgba(155,145,255,.8), transparent 48%),
    linear-gradient(135deg, rgba(35,41,62,.88), rgba(5,6,10,.96));
}

.tpl-plan-grid article > span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 900;
}

.tpl-plan-grid h3 {
  color: #fff;
  font-size: 2rem;
  margin: 28px 0 10px;
}

.tpl-price {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 800;
  margin: 22px 0;
}

.tpl-plan-grid ul {
  display: grid;
  gap: 13px;
  list-style: none;
  padding: 28px 0 0;
  margin: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.11);
}

.tpl-plan-grid li {
  color: rgba(255,255,255,.7);
}

.tpl-plan-grid li::before {
  content: "\2713";
  margin-right: 12px;
  color: #fff;
}

.tpl-tech-tabs {
  max-width: 760px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
}

.tpl-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tpl-tech-grid article {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: #11141d;
}

.tpl-tech .tpl-section-head {
  max-width: 860px;
}

.tpl-tech .tpl-section-head p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.tpl-tech-grid article {
  background:
    radial-gradient(circle at 12% 0%, rgba(0,245,255,.13), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    #11141d;
}

.tpl-tech {
  background:
    radial-gradient(circle at 50% 6%, rgba(0,245,255,.12), transparent 32rem),
    radial-gradient(circle at 18% 70%, rgba(255,49,202,.1), transparent 28rem),
    #000;
}

.tpl-tech-grid article {
  position: relative;
  overflow: hidden;
}

.tpl-tech-grid article::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 34px;
  background:
    linear-gradient(135deg, transparent 10%, rgba(0,245,255,.34) 10% 18%, transparent 18% 34%, rgba(143,134,255,.42) 34% 48%, transparent 48% 64%, rgba(255,49,202,.38) 64% 78%, transparent 78%);
  opacity: .42;
  filter: drop-shadow(0 0 16px rgba(0,245,255,.24));
}

.tpl-tech-grid article::after {
  content: "Growing";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(0,245,255,.22);
  border-radius: 999px;
  color: rgba(218,250,255,.82);
  background: rgba(0,245,255,.08);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tpl-tech-grid article > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #11131b;
  background: #fff;
  font-weight: 900;
}

.tpl-tech-grid h3 {
  margin-bottom: 4px;
}

.tpl-tech-grid p {
  margin-bottom: 0;
  max-width: 240px;
}

.tpl-tech-grid b {
  color: #fff;
  font-size: 1.3rem;
}

.tpl-floating-stack {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.tpl-floating-stack::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0));
  filter: blur(18px);
}

.tpl-floating-stack span {
  position: relative;
  z-index: 1;
  min-width: 96px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #11131b;
  background: #fff;
  text-align: center;
  font-weight: 900;
  transform: rotate(-10deg) translateY(20px);
}

.tpl-floating-stack span:nth-child(even) {
  transform: rotate(9deg) translateY(8px);
}

.tpl-faq-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.tpl-faq-grid details {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
}

.tpl-faq-grid summary {
  cursor: pointer;
  padding: 24px 28px;
  color: #fff;
  font-weight: 900;
  list-style: none;
}

.tpl-faq-grid summary::-webkit-details-marker {
  display: none;
}

.tpl-faq-grid summary::after {
  content: "+";
  float: right;
  color: #8f86ff;
  font-size: 1.2rem;
}

.tpl-faq-grid details[open] summary::after {
  content: "-";
}

.tpl-faq-grid p {
  margin: -4px 28px 24px;
}

.tpl-footer-card {
  padding: 80px 0;
}

.tpl-footer-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 420px;
  background: url("../template/patterns/opai-36.jpg") center / cover no-repeat;
  opacity: .55;
  pointer-events: none;
}

.tpl-footer-inner {
  display: grid;
  grid-template-columns: 1.25fr .6fr .6fr 1fr;
  gap: 38px;
  padding: 48px;
  border: 1px solid rgba(143,134,255,.32);
  border-radius: 36px;
  background: rgba(0,0,0,.72);
  box-shadow: 0 40px 110px rgba(0,0,0,.4);
}

.tpl-footer-inner h3,
.tpl-footer-brand .brand-mark {
  color: #fff;
}

.tpl-footer-brand p {
  max-width: 360px;
  color: rgba(255,255,255,.58);
  margin-top: 22px;
}

.tpl-footer-inner a:not(.btn) {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.58);
  text-decoration: none;
}

.site-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1199px) {
  .tpl-hero .container {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 991px) {
  .tpl-hero,
  .tpl-section {
    padding: 78px 0;
  }

  .tpl-section-head {
    margin-bottom: 44px;
  }

  .tpl-why-grid,
  .tpl-plan-grid,
  .tpl-tech-grid {
    grid-template-columns: 1fr;
  }

  .tpl-tabs {
    display: flex;
    overflow-x: auto;
  }

  .tpl-tabs button {
    min-width: 150px;
  }

  .tpl-industry-stage,
  .tpl-usecase-grid {
    grid-template-columns: 1fr;
  }

  .tpl-industry-stage article,
  .tpl-usecase-grid article {
    min-height: 390px;
  }
}

@media (max-width: 575px) {
  .tpl-hero {
    padding: 44px 0 64px;
  }

  .tpl-hero h1 {
    font-size: 3rem;
  }

  .tpl-hero-media {
    min-height: 520px;
    border-radius: 28px;
  }

  .tpl-hero-orbit img {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    margin-left: -12px;
  }

  .tpl-hero-search {
    left: 16px;
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .tpl-hero-actions .btn,
  .tpl-hero-actions {
    width: 100%;
  }

  .tpl-section-head h2 {
    font-size: 2.7rem;
  }

  .tpl-card-grid-4,
  .tpl-agent-grid,
  .tpl-footer-inner {
    grid-template-columns: 1fr;
  }

  .tpl-service-card,
  .tpl-process-card {
    min-height: auto;
    border-radius: 28px;
  }

  .tpl-service-art,
  .tpl-process-art {
    height: 190px;
  }

  .tpl-agent-grid a {
    grid-template-columns: 86px 1fr;
    min-height: auto;
    align-items: center;
  }

  .tpl-agent-grid img {
    grid-row: span 2;
  }

  .tpl-floating-stack {
    flex-wrap: wrap;
    align-items: center;
    min-height: auto;
  }

  .tpl-floating-stack span,
  .tpl-floating-stack span:nth-child(even) {
    transform: none;
  }

  .tpl-footer-inner {
    padding: 28px;
    border-radius: 28px;
  }
}

/* Template-matched dashboard and expert chat. */
.tpl-dashboard,
.tpl-chat-page {
  position: relative;
  overflow: hidden;
  background: #000 !important;
}

.tpl-dashboard::before,
.tpl-chat-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(95,85,255,.28), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(41,225,255,.12), transparent 26rem),
    url("../template/patterns/bg-pattern-2.svg") center top / 1180px auto no-repeat;
  opacity: .62;
}

.tpl-dashboard > *,
.tpl-chat-page > * {
  position: relative;
  z-index: 1;
}

.tpl-dash-rail,
.tpl-chat-sidebar {
  background:
    linear-gradient(180deg, rgba(20,23,34,.82), rgba(5,6,10,.92)),
    #05060b !important;
  border-color: rgba(255,255,255,.1) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 18px 0 70px rgba(0,0,0,.26);
}

.tpl-dash-rail .rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tpl-dash-rail .rail-brand span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e8ffff, #65dfff 45%, #9988ff);
  box-shadow: 0 0 28px rgba(101,223,255,.34);
}

.tpl-dash-rail .rail-search,
.tpl-dash-rail .rail-list a,
.tpl-chat-sidebar .chat-history-panel a {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
}

.tpl-dash-rail .rail-list a:hover,
.tpl-chat-sidebar .chat-history-panel a:hover {
  border-color: rgba(143,134,255,.38);
  background: rgba(143,134,255,.1);
}

.tpl-dashboard-main {
  padding: 34px clamp(18px, 3vw, 54px) 70px;
}

.tpl-dashboard-top {
  margin-bottom: 26px;
}

.tpl-dashboard-hero {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 26px;
  align-items: stretch;
  margin: 0 auto 28px;
  text-align: left;
}

.tpl-dashboard-copy,
.tpl-dashboard-visual {
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 0%, rgba(95,85,255,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 90px rgba(0,0,0,.34);
}

.tpl-dashboard-copy {
  display: grid;
  align-content: center;
  padding: 42px;
}

.tpl-dashboard-copy h1 {
  max-width: 720px;
  margin: 18px 0 28px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
}

.tpl-dash-search {
  min-height: 82px;
  margin-top: 2px;
  padding: 12px 14px 12px 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.tpl-dash-search span {
  color: rgba(255,255,255,.72);
}

.tpl-dash-search a {
  min-width: 160px;
  border-radius: 999px;
  color: #070910 !important;
  background: #fff;
  font-weight: 900;
}

.tpl-dashboard-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 36%, rgba(41,225,255,.16), transparent 42%),
    #05060b;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.tpl-dashboard-visual img {
  width: min(82%, 620px);
  filter: drop-shadow(0 48px 90px rgba(0,0,0,.62));
}

.tpl-orbit-label {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,10,18,.72);
  backdrop-filter: blur(14px);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 900;
}

.tpl-orbit-label.label-one { left: 8%; top: 18%; }
.tpl-orbit-label.label-two { right: 8%; top: 28%; }
.tpl-orbit-label.label-three { left: 18%; bottom: 16%; }

.tpl-dashboard-actions {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 74px;
}

.tpl-dashboard-actions a {
  min-height: 128px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 0%, rgba(143,134,255,.18), transparent 42%),
    rgba(255,255,255,.04);
}

.tpl-dashboard-actions strong {
  color: #fff;
}

.tpl-dashboard-actions span {
  color: rgba(226,234,255,.58);
}

.tpl-dashboard .expert-section {
  max-width: 1280px;
}

.tpl-dashboard .section-title {
  margin-bottom: 24px;
}

.tpl-dashboard .section-title h2 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
}

.tpl-dashboard .section-title > span {
  border-color: rgba(255,255,255,.12);
  color: #fff;
  background: rgba(255,255,255,.055);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tpl-dashboard .expert-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tpl-dashboard .expert-card {
  min-height: 320px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(95,85,255,.18), transparent 40%),
    linear-gradient(180deg, rgba(20,23,34,.78), rgba(5,6,10,.92));
  border-color: rgba(255,255,255,.1);
}

.tpl-dashboard .expert-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.08;
  object-fit: cover;
  border-radius: 24px;
}

.tpl-dashboard .expert-card h3 {
  color: #fff;
  font-size: 1.08rem;
}

.tpl-dashboard .expert-card span {
  color: #8f86ff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  text-transform: uppercase;
}

.tpl-weather-card {
  max-width: 1280px;
  margin: 52px auto 0;
  border-radius: 34px !important;
}

.tpl-chat-page {
  min-height: calc(100vh - 66px);
}

.tpl-chat-shell {
  max-width: 1480px !important;
  grid-template-columns: 330px minmax(0, 1fr) !important;
  gap: 22px !important;
}

.tpl-chat-sidebar,
.tpl-chat-main {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px !important;
}

.tpl-chat-agent-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 60% 0%, rgba(41,225,255,.2), transparent 42%),
    rgba(255,255,255,.035);
}

.tpl-chat-agent-card img.big {
  width: 148px;
  height: 148px;
  display: block;
  margin: 0 auto 18px;
  border-radius: 32px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.tpl-chat-agent-card h1 {
  color: #fff;
  text-align: center;
}

.tpl-chat-agent-card p {
  text-align: center;
}

.tpl-chat-agent-card .tpl-pill {
  margin: 0 auto;
  display: flex;
  width: fit-content;
}

.tpl-chat-agent-card .chat-meta {
  width: 100%;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(143,134,255,.12);
  color: #d9d6ff;
}

.tpl-chat-sidebar .chat-history-panel {
  margin-top: 18px;
}

.tpl-chat-sidebar .chat-history-title {
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tpl-chat-main {
  position: relative;
  min-height: calc(100vh - 138px) !important;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(95,85,255,.13), transparent 38%),
    #03050b !important;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.tpl-chat-session-bar {
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.36) !important;
  backdrop-filter: blur(18px);
}

.tpl-chat-session-bar .session-eyebrow {
  color: #8f86ff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tpl-chat-session-bar strong {
  color: #fff;
}

.tpl-chat-messages {
  padding: 34px !important;
  background: transparent !important;
}

.tpl-chat-messages .message-row {
  width: 100%;
  max-width: 980px;
}

.tpl-chat-messages .message {
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.tpl-chat-messages .ai-message {
  max-width: min(860px, 88%);
  background: rgba(255,255,255,.055) !important;
  backdrop-filter: blur(14px);
}

.tpl-chat-messages .user-message {
  max-width: min(700px, 82%);
  color: #0b0d16;
  background: #fff !important;
}

.tpl-chat-messages .chat-avatar {
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 34px rgba(95,85,255,.26);
}

.tpl-chat-messages .empty-chat {
  max-width: 620px;
  padding: 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(95,85,255,.24), transparent 42%),
    rgba(255,255,255,.045);
}

.tpl-chat-messages .empty-chat img {
  width: 118px;
  height: 118px;
  display: block;
  margin: 0 auto 18px;
  border-radius: 28px;
  object-fit: cover;
}

.tpl-chat-form {
  border-top: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(0,0,0,.42) !important;
}

.tpl-chat-form .composer-box {
  border-radius: 30px;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.07) !important;
  backdrop-filter: blur(18px);
}

.tpl-chat-form .composer-box textarea.form-control {
  color: #fff;
}

.tpl-chat-form .composer-box .btn {
  border-radius: 22px;
  color: #080a12;
  background: #fff;
  border-color: #fff;
  font-weight: 900;
}

.tpl-chat-form .attach-button {
  border-radius: 18px;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
}

@media (max-width: 1199px) {
  .tpl-dashboard-hero {
    grid-template-columns: 1fr;
  }

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

  .tpl-chat-shell {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .tpl-dashboard-main {
    padding: 18px 12px 42px;
  }

  .tpl-dashboard-copy,
  .tpl-dashboard-visual {
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
  }

  .tpl-dashboard-copy h1 {
    font-size: 2.75rem;
  }

  .tpl-dash-search {
    align-items: stretch;
    border-radius: 26px;
  }

  .tpl-dashboard-actions,
  .tpl-dashboard .expert-grid {
    grid-template-columns: 1fr;
  }

  .tpl-dashboard .expert-card {
    min-height: auto;
    grid-template-columns: 98px 1fr;
    align-items: center;
  }

  .tpl-dashboard .expert-card img {
    grid-row: span 2;
    border-radius: 22px;
  }

  .tpl-chat-page.py-4 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .tpl-chat-shell {
    padding: 0 10px !important;
  }

  .tpl-chat-sidebar,
  .tpl-chat-main {
    border-radius: 28px !important;
  }

  .tpl-chat-messages {
    padding: 18px !important;
  }

  .tpl-chat-messages .message,
  .tpl-chat-messages .ai-message,
  .tpl-chat-messages .user-message {
    max-width: 100%;
  }

  .tpl-chat-form .composer-box {
    grid-template-columns: 1fr;
  }
}

/* Cinematic cyberpunk hero pass for dashboard welcome area. */
.tpl-dashboard {
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 49, 202, .13), transparent 28rem),
    radial-gradient(circle at 78% 12%, rgba(0, 245, 255, .15), transparent 30rem),
    linear-gradient(180deg, #010208 0%, #040712 54%, #02030a 100%) !important;
}

.tpl-dashboard::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, transparent, rgba(0,245,255,.08), transparent);
  mix-blend-mode: screen;
  opacity: .28;
  animation: cyberScan 8s linear infinite;
}

@keyframes cyberScan {
  0% { transform: translateY(-8px); opacity: .18; }
  50% { opacity: .34; }
  100% { transform: translateY(8px); opacity: .18; }
}

.tpl-dashboard-hero {
  position: relative;
  isolation: isolate;
}

.tpl-dashboard-copy,
.tpl-dashboard-visual {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 245, 255, .24) !important;
  background:
    linear-gradient(135deg, rgba(133, 91, 255, .22), transparent 35%),
    radial-gradient(circle at 18% 10%, rgba(255, 49, 202, .16), transparent 24rem),
    radial-gradient(circle at 88% 72%, rgba(0, 245, 255, .13), transparent 22rem),
    linear-gradient(180deg, rgba(21, 24, 37, .92), rgba(3, 5, 12, .98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(255,49,202,.07),
    0 28px 110px rgba(0,0,0,.52),
    0 0 80px rgba(0,245,255,.08) !important;
}

.tpl-dashboard-copy::before,
.tpl-dashboard-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0,245,255,.18), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 92px);
  opacity: .28;
}

.tpl-dashboard-copy::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -38%;
  height: 52%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 42% 0%, rgba(0,245,255,.28), transparent 44%),
    radial-gradient(ellipse at 68% 20%, rgba(255,49,202,.22), transparent 40%);
  filter: blur(34px);
  opacity: .75;
}

.tpl-dashboard-copy > * {
  position: relative;
  z-index: 1;
}

.tpl-dashboard-copy .tpl-pill {
  border-color: rgba(0,245,255,.35);
  background: rgba(2, 6, 16, .72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 24px rgba(0,245,255,.13);
}

.tpl-dashboard-copy .tpl-pill i {
  background: #00f5ff;
  box-shadow: 0 0 18px rgba(0,245,255,.88), 0 0 34px rgba(255,49,202,.45);
}

.tpl-dashboard-copy h1 {
  color: #fff;
  text-shadow:
    0 0 18px rgba(0,245,255,.12),
    0 0 42px rgba(255,49,202,.08);
}

.tpl-dashboard-copy p {
  color: rgba(222, 237, 255, .72) !important;
}

.tpl-dash-search {
  position: relative;
  z-index: 1;
  border-color: rgba(0,245,255,.34) !important;
  background:
    linear-gradient(135deg, rgba(0,245,255,.13), rgba(255,49,202,.08)),
    rgba(0,0,0,.74) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 0 1px rgba(255,49,202,.08),
    0 22px 70px rgba(0,0,0,.42),
    0 0 42px rgba(0,245,255,.1);
}

.tpl-dash-search::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #00f5ff, #7d65ff, #ff31ca, #00f5ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .82;
}

.tpl-dash-search a {
  background: linear-gradient(135deg, #8b7bff, #00e8ff) !important;
  color: #050714 !important;
  box-shadow: 0 0 28px rgba(0,232,255,.28);
}

.tpl-dashboard-visual {
  background:
    linear-gradient(rgba(0,245,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,49,202,.08), transparent 28%),
    radial-gradient(circle at 50% 38%, rgba(0,245,255,.22), transparent 28%),
    #02040a !important;
  background-size: 58px 58px, 58px 58px, auto, auto, auto !important;
  perspective: 900px;
}

.tpl-dashboard-visual::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 46%;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,245,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.18) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(0,245,255,.26), transparent 60%);
  background-size: 46px 28px, 46px 28px, auto;
  transform: rotateX(62deg);
  transform-origin: top center;
  opacity: .58;
  filter: drop-shadow(0 0 22px rgba(0,245,255,.26));
}

.tpl-dashboard-visual img {
  position: relative;
  z-index: 2;
  width: min(88%, 660px);
  transform: translateY(10px);
  filter:
    drop-shadow(0 0 18px rgba(0,245,255,.32))
    drop-shadow(0 36px 90px rgba(0,0,0,.72));
}

.tpl-orbit-label {
  z-index: 3;
  border-color: rgba(0,245,255,.3);
  color: #effcff;
  background:
    linear-gradient(135deg, rgba(0,245,255,.12), rgba(255,49,202,.08)),
    rgba(3, 5, 13, .78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 22px rgba(0,245,255,.13);
}

.tpl-orbit-label::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff31ca;
  box-shadow: 0 0 14px rgba(255,49,202,.9);
}

.tpl-dashboard-actions a {
  position: relative;
  overflow: hidden;
  border-color: rgba(0,245,255,.18);
  background:
    radial-gradient(circle at 16% 0%, rgba(0,245,255,.16), transparent 42%),
    radial-gradient(circle at 90% 92%, rgba(255,49,202,.12), transparent 34%),
    rgba(255,255,255,.035) !important;
}

.tpl-dashboard-actions a::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.7), rgba(255,49,202,.48), transparent);
}

@media (max-width: 767px) {
  .tpl-dashboard-copy h1 {
    font-size: 2.65rem;
  }

  .tpl-dashboard-visual {
    min-height: 420px;
  }

  .tpl-dashboard-visual img {
    width: 100%;
  }

  .tpl-orbit-label.label-one { left: 7%; top: 12%; }
  .tpl-orbit-label.label-two { right: 7%; top: 18%; }
  .tpl-orbit-label.label-three { left: 10%; bottom: 10%; }
}

/* Oramind Marko theme sync: user panel + admin panel. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --bg: #03050a;
  --panel: rgba(16, 19, 29, .88);
  --panel-strong: rgba(20, 24, 36, .96);
  --line: rgba(112, 231, 255, .18);
  --text: #f7fbff;
  --muted: rgba(216, 226, 242, .68);
  --gold: #30d8ff;
  --gold-soft: rgba(48, 216, 255, .12);
  --green: #69ffd6;
  --surface: #070a12;
  --surface-2: #0c101a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(48, 216, 255, .18), transparent 30rem),
    radial-gradient(circle at 18% 2%, rgba(90, 117, 255, .13), transparent 28rem),
    linear-gradient(180deg, #03050a 0%, #070a12 48%, #020308 100%) !important;
  color: var(--text);
}

body::before {
  background-image:
    linear-gradient(rgba(120, 232, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 232, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 72%);
}

a {
  color: var(--gold);
}

a:hover {
  color: #9af1ff;
}

.app-nav {
  min-height: 72px;
  background: rgba(2, 4, 10, .86) !important;
  border-bottom: 1px solid rgba(112, 231, 255, .16);
  box-shadow: 0 18px 70px rgba(0,0,0,.38);
}

.navbar-brand.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.navbar-brand.brand-lockup::before {
  display: none;
}

.navbar-brand.brand-lockup img {
  width: 172px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(48, 216, 255, .24));
}

.navbar-brand.admin-lockup span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(112, 231, 255, .22);
  border-radius: 999px;
  color: #dffbff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: 0;
  background: rgba(255,255,255,.045);
}

.nav-link {
  color: rgba(236, 244, 255, .72) !important;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #f7fbff !important;
}

.theme-toggle,
.nav-language select {
  min-height: 36px;
  border-color: rgba(112, 231, 255, .22);
  background: rgba(255,255,255,.055);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.theme-toggle:hover,
.nav-language select:focus {
  border-color: rgba(48, 216, 255, .55);
  background: rgba(48, 216, 255, .11);
  color: #fff;
}

.btn-primary,
.btn.btn-primary {
  border: 1px solid rgba(112, 231, 255, .24) !important;
  color: #031018 !important;
  background: linear-gradient(135deg, #f7fbff 0%, #30d8ff 62%, #39a7ff 100%) !important;
  box-shadow: 0 0 36px rgba(48, 216, 255, .2), 0 22px 58px rgba(0,0,0,.34);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 48px rgba(48, 216, 255, .32), 0 26px 70px rgba(0,0,0,.42);
}

.btn-soft,
.btn-outline-light,
.btn.btn-outline-light {
  color: #f7fbff !important;
  border-color: rgba(112, 231, 255, .22) !important;
  background: rgba(255,255,255,.055) !important;
}

.auth-card,
.side-panel,
.profile-card,
.settings-panel,
.chat-sidebar,
.chat-main,
.admin-panel,
.stat-card,
.expert-card,
.dashboard-rail,
.welcome-panel,
.weather-panel {
  border: 1px solid rgba(112, 231, 255, .18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(48, 216, 255, .12), transparent 22rem),
    linear-gradient(180deg, rgba(20, 24, 36, .94), rgba(8, 11, 18, .98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 26px 86px rgba(0,0,0,.44) !important;
}

.auth-card,
.admin-panel,
.profile-card,
.settings-panel {
  border-radius: 28px;
}

.dashboard-shell {
  background:
    radial-gradient(circle at 20% 8%, rgba(48, 216, 255, .12), transparent 28rem),
    radial-gradient(circle at 84% 20%, rgba(80, 93, 255, .12), transparent 32rem),
    #02040a !important;
}

.dashboard-rail {
  background: rgba(4, 7, 13, .9) !important;
}

.rail-brand,
.mobile-brand,
.dashboard-top h1,
.section-title h2,
.expert-card h3,
.chat-session-bar strong,
.tpl-chat-agent-card h1,
.admin-panel h1,
.admin-panel h2,
.stat-card strong,
.auth-card h1,
.auth-card h2,
.profile-card h1,
.profile-card h2 {
  color: #f7fbff !important;
}

.rail-search,
.rail-list a,
.quick-actions a,
.chat-history-panel a {
  border-color: rgba(112, 231, 255, .15) !important;
  background: rgba(255,255,255,.045) !important;
  color: #eaf8ff;
}

.rail-list a:hover,
.quick-actions a:hover,
.chat-history-panel a:hover,
.expert-card:hover {
  border-color: rgba(48, 216, 255, .44) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(48, 216, 255, .16), transparent 18rem),
    rgba(255,255,255,.07) !important;
  transform: translateY(-2px);
}

.tpl-dashboard-copy {
  background:
    radial-gradient(circle at 15% 10%, rgba(48, 216, 255, .13), transparent 20rem),
    linear-gradient(180deg, rgba(21, 24, 37, .95), rgba(4, 6, 11, .98)) !important;
}

.tpl-dashboard-copy::after,
.tpl-dashboard::after {
  background:
    radial-gradient(ellipse at 42% 0%, rgba(48,216,255,.24), transparent 44%),
    radial-gradient(ellipse at 68% 20%, rgba(92,115,255,.14), transparent 40%);
}

.tpl-dashboard-copy .tpl-pill i,
.tpl-orbit-label::before {
  background: #30d8ff;
  box-shadow: 0 0 16px rgba(48, 216, 255, .85);
}

.tpl-dashboard-visual {
  background:
    linear-gradient(rgba(48,216,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,216,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(48,216,255,.18), transparent 28%),
    #02040a !important;
}

.expert-avatar-img {
  border: 1px solid rgba(112, 231, 255, .22);
  background: rgba(48, 216, 255, .08);
  box-shadow: 0 0 28px rgba(48, 216, 255, .14);
}

.expert-card span,
.chat-meta,
.session-eyebrow,
.tpl-pill {
  color: #7feaff !important;
}

.chat-shell {
  max-width: 1440px;
}

.chat-main {
  min-height: calc(100vh - 118px);
}

.chat-session-bar,
.chat-form {
  border-color: rgba(112, 231, 255, .16) !important;
  background: rgba(5, 8, 14, .72) !important;
}

.chat-messages {
  background:
    linear-gradient(rgba(112,231,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112,231,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 14%, rgba(48,216,255,.06), transparent 24rem),
    #03060c !important;
  background-size: 48px 48px, 48px 48px, auto, auto !important;
}

.message.ai-message,
.message.user-message {
  border: 1px solid rgba(112, 231, 255, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 50px rgba(0,0,0,.28);
}

.message.ai-message {
  background: rgba(255,255,255,.055) !important;
}

.message.user-message {
  color: #031018 !important;
  background: linear-gradient(135deg, #f7fbff, #30d8ff) !important;
}

.composer-box {
  border: 1px solid rgba(112, 231, 255, .18) !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.form-control,
.form-select,
input,
select,
textarea {
  color: #f7fbff !important;
  border-color: rgba(112, 231, 255, .18) !important;
  background: rgba(255,255,255,.06) !important;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
  color: rgba(216,226,242,.5) !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(48, 216, 255, .56) !important;
  box-shadow: 0 0 0 .18rem rgba(48, 216, 255, .13) !important;
}

.table,
.table-dark {
  --bs-table-bg: rgba(255,255,255,.035);
  --bs-table-striped-bg: rgba(48,216,255,.045);
  --bs-table-color: #f7fbff;
  --bs-table-border-color: rgba(112,231,255,.14);
}

.stat-card {
  min-height: 138px;
  border-radius: 26px;
}

.stat-card span,
.text-secondary,
.expert-card p,
.rail-empty,
.chat-history-panel p,
.weather-summary,
.weather-condition span {
  color: var(--muted) !important;
}

.weather-panel.weather-card {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.alert {
  color: #f7fbff;
  border-color: rgba(112,231,255,.18);
  background: rgba(16, 19, 29, .92);
}

@media (max-width: 991px) {
  .navbar-brand.brand-lockup img {
    width: 148px;
  }

  .app-nav .navbar-nav {
    padding: 16px 0;
  }
}

@media (max-width: 767px) {
  .app-nav {
    min-height: 64px;
  }

  .navbar-brand.brand-lockup img {
    width: 136px;
  }

  .dashboard-main {
    padding-top: 16px;
  }

  .chat-main {
    min-height: calc(100vh - 92px);
  }
}

/* Phone-first cinematic auth screens. */
.auth-login-shell,
.auth-register-shell {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(48, 216, 255, .16), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(73, 101, 255, .13), transparent 28rem),
    linear-gradient(180deg, #02040a 0%, #070a12 48%, #020308 100%) !important;
}

.auth-login-shell::before,
.auth-register-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(112,231,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112,231,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

.auth-login-shell::after,
.auth-register-shell::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -220px;
  height: 360px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(48, 216, 255, .22), transparent 62%),
    radial-gradient(ellipse at 66% 20%, rgba(69, 100, 255, .16), transparent 52%);
  filter: blur(24px);
}

.auth-login-shell .op-auth-visual,
.auth-register-shell .op-auth-visual,
.auth-login-shell .op-auth-card,
.auth-register-shell .op-auth-card {
  border: 1px solid rgba(112, 231, 255, .18) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(48, 216, 255, .13), transparent 20rem),
    linear-gradient(180deg, rgba(18, 22, 34, .88), rgba(5, 8, 15, .97)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 30px 100px rgba(0,0,0,.46),
    0 0 70px rgba(48,216,255,.08) !important;
  backdrop-filter: blur(20px);
}

.auth-login-shell .op-auth-visual,
.auth-register-shell .op-auth-visual {
  min-height: 640px;
}

.auth-login-shell .op-auth-visual::before,
.auth-register-shell .op-auth-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent, rgba(48,216,255,.13), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 84px);
  opacity: .42;
}

.auth-login-shell .op-auth-visual::after,
.auth-register-shell .op-auth-visual::after {
  inset: auto 24px 24px;
  height: 230px;
  opacity: .26;
  border: 1px solid rgba(112,231,255,.12);
  background:
    linear-gradient(rgba(48,216,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,216,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 32%, rgba(48,216,255,.2), transparent 38%),
    #03060c;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.auth-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(112,231,255,.22);
  color: #f7fbff;
  font-size: .86rem;
  font-weight: 800;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.auth-mobile-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(48,216,255,.38));
}

.auth-login-shell .op-kicker,
.auth-register-shell .op-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(112,231,255,.22);
  color: #7feaff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .76rem;
  font-weight: 800;
  background: rgba(48,216,255,.08);
}

.auth-login-shell .op-kicker::before,
.auth-register-shell .op-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d8ff;
  box-shadow: 0 0 16px rgba(48,216,255,.9);
}

.auth-login-shell .op-auth-visual h1,
.auth-register-shell .op-auth-visual h1 {
  margin-top: 18px;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(48,216,255,.08);
}

.auth-login-shell .op-auth-agents,
.auth-register-shell .op-auth-agents {
  position: relative;
  z-index: 1;
  margin: 28px 0 20px;
}

.auth-login-shell .op-auth-agents img,
.auth-register-shell .op-auth-agents img {
  width: 96px;
  height: 96px;
  margin-left: -16px;
  border-radius: 28px;
  border: 1px solid rgba(112,231,255,.26);
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 24px rgba(48,216,255,.14);
}

.auth-login-shell .op-auth-agents img:first-child,
.auth-register-shell .op-auth-agents img:first-child {
  margin-left: 0;
}

.auth-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.auth-signal-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(112,231,255,.14);
  color: rgba(237,248,255,.78);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  background: rgba(255,255,255,.045);
}

.auth-login-shell .op-auth-note,
.auth-register-shell .op-auth-note {
  border-color: rgba(112,231,255,.16);
  background:
    linear-gradient(135deg, rgba(48,216,255,.08), transparent),
    rgba(0,0,0,.35);
}

.auth-login-shell .op-auth-card,
.auth-register-shell .op-auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card-orb {
  position: absolute;
  top: -76px;
  right: -68px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 36%, rgba(255,255,255,.9), rgba(48,216,255,.34) 24%, transparent 38%),
    conic-gradient(from 40deg, transparent, rgba(48,216,255,.75), transparent, rgba(85,110,255,.58), transparent);
  opacity: .72;
  filter: blur(.2px);
  box-shadow: 0 0 70px rgba(48,216,255,.24);
}

.auth-login-shell .op-auth-card > *:not(.auth-card-orb),
.auth-register-shell .op-auth-card > *:not(.auth-card-orb) {
  position: relative;
  z-index: 1;
}

.auth-login-shell .op-auth-card h2,
.auth-register-shell .op-auth-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.auth-login-shell .op-auth-card .form-control,
.auth-register-shell .op-auth-card .form-control,
.auth-login-shell .op-auth-card .form-select,
.auth-register-shell .op-auth-card .form-select {
  min-height: 56px;
  border-radius: 18px;
  padding-inline: 16px;
  background: rgba(255,255,255,.055) !important;
}

.auth-login-shell .op-auth-card .btn,
.auth-register-shell .op-auth-card .btn {
  min-height: 56px;
  border-radius: 18px;
  font-weight: 900;
}

.auth-login-shell .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
}

.auth-login-shell .auth-tabs .nav-item,
.auth-login-shell .auth-tabs .nav-link {
  width: 100%;
}

.auth-login-shell .auth-tabs .nav-link {
  min-height: 44px;
  border-radius: 15px;
  color: rgba(237,248,255,.72) !important;
  font-size: .86rem;
  font-weight: 900;
}

.auth-login-shell .auth-tabs .nav-link.active {
  color: #031018 !important;
  background: linear-gradient(135deg, #f7fbff, #30d8ff) !important;
}

.oracle-login-panel {
  padding: 16px;
  border: 1px solid rgba(112,231,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}

@media (max-width: 1199px) {
  .auth-login-shell,
  .auth-register-shell,
  .op-auth-shell.auth-login-shell,
  .op-auth-shell.auth-register-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 18px 56px;
  }

  .auth-login-shell .op-auth-visual,
  .auth-register-shell .op-auth-visual {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .auth-login-shell,
  .auth-register-shell,
  .op-auth-shell.auth-login-shell,
  .op-auth-shell.auth-register-shell {
    min-height: calc(100vh - 64px);
    padding: 14px 10px 34px;
  }

  .auth-login-shell .op-auth-card,
  .auth-register-shell .op-auth-card {
    order: 1;
  }

  .auth-login-shell .op-auth-visual,
  .auth-register-shell .op-auth-visual {
    order: 2;
    min-height: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .auth-login-shell .op-auth-visual::after,
  .auth-register-shell .op-auth-visual::after,
  .auth-login-shell .op-auth-visual::before,
  .auth-register-shell .op-auth-visual::before {
    opacity: .12;
  }

  .auth-login-shell .op-auth-visual h1,
  .auth-register-shell .op-auth-visual h1 {
    font-size: 2.15rem;
    margin-top: 12px;
  }

  .auth-login-shell .op-auth-visual p,
  .auth-register-shell .op-auth-visual p {
    font-size: .94rem;
    line-height: 1.55;
  }

  .auth-login-shell .op-auth-agents,
  .auth-register-shell .op-auth-agents {
    margin: 18px 0 14px;
  }

  .auth-login-shell .op-auth-agents img,
  .auth-register-shell .op-auth-agents img {
    width: 62px;
    height: 62px;
    margin-left: -10px;
    border-radius: 18px;
  }

  .auth-login-shell .op-auth-note,
  .auth-register-shell .op-auth-note {
    max-width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

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

  .auth-signal-grid span {
    min-height: 42px;
    place-items: start;
    text-align: left;
  }

  .auth-login-shell .op-auth-card,
  .auth-register-shell .op-auth-card {
    padding: 20px;
    border-radius: 24px;
  }

  .auth-login-shell .auth-tabs {
    grid-template-columns: 1fr;
  }

  .auth-register-shell form.row > [class*="col-"] {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .auth-mobile-brand {
    width: 100%;
    justify-content: center;
  }

  .auth-login-shell .op-auth-card,
  .auth-register-shell .op-auth-card {
    padding: 18px;
  }

  .auth-login-shell .op-auth-card h2,
  .auth-register-shell .op-auth-card h2 {
    font-size: 1.7rem;
  }
}

/* Keep the command-centre layer last so legacy dashboard rules cannot override it. */
.tpl-dashboard .cinematic-team-hero {
  display: grid !important;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr) !important;
  min-height: 660px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(112,231,255,.18) !important;
  border-radius: 0 !important;
  background: radial-gradient(circle at 72% 42%, rgba(48,216,255,.15), transparent 28rem), radial-gradient(circle at 24% 14%, rgba(105,81,255,.14), transparent 24rem), #010309 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.tpl-dashboard .cinematic-team-copy {
  width: auto !important;
  padding: 64px 24px 64px 56px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tpl-dashboard .cinematic-team-copy::before,
.tpl-dashboard .cinematic-team-copy::after { display: none !important; }

.tpl-dashboard .cinematic-team-visual {
  width: auto !important;
  min-height: 660px !important;
  border: 0 !important;
  background: radial-gradient(ellipse at 50% 72%, rgba(30,213,255,.22), transparent 34%), linear-gradient(180deg, transparent 60%, rgba(1,3,9,.96) 100%) !important;
  box-shadow: none !important;
}

.tpl-dashboard .cinematic-team-visual img {
  width: 112% !important;
  max-width: 940px !important;
  margin-bottom: 60px !important;
  transform: none !important;
}

.legal-page .legal-card { padding: 58px 70px !important; border-radius: 8px !important; }
.legal-page .legal-card .legal-hero h1 { max-width: 850px; margin: 18px 0; font-size: 3.25rem !important; line-height: 1.05; }
.legal-page .legal-card section p { color: #a0b0c3 !important; line-height: 1.8; }

@media (max-width: 1199px) {
  .tpl-dashboard .cinematic-team-hero { grid-template-columns: .9fr 1.1fr !important; min-height: 610px !important; }
  .tpl-dashboard .cinematic-team-copy { padding-left: 38px !important; }
  .tpl-dashboard .cinematic-team-visual { min-height: 610px !important; }
}

@media (max-width: 991px) {
  .tpl-dashboard .cinematic-team-hero { grid-template-columns: 1fr !important; }
  .tpl-dashboard .cinematic-team-copy { padding: 42px 26px 48px !important; }
  .tpl-dashboard .cinematic-team-visual { min-height: 520px !important; }
}

@media (max-width: 767px) {
  .tpl-dashboard .cinematic-team-hero { display: flex !important; min-height: 0 !important; }
  .tpl-dashboard .cinematic-team-visual { order: -1; min-height: 400px !important; }
  .tpl-dashboard .cinematic-team-visual img { width: 128% !important; margin-bottom: 24px !important; }
  .tpl-dashboard .cinematic-team-copy { padding: 30px 20px 40px !important; }
  .legal-page .legal-card { padding: 34px 22px !important; }
  .legal-page .legal-card .legal-hero h1 { font-size: 2.35rem !important; }
}

/* Desktop dashboard proportion fix. */
.tpl-dashboard-main { min-width: 0; }

.tpl-dashboard .cinematic-team-hero {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 30px !important;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%) !important;
  min-height: 620px !important;
  text-align: left !important;
}

.tpl-dashboard .cinematic-team-copy {
  min-width: 0 !important;
  min-height: 620px !important;
  padding: 56px 34px 56px 52px !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.tpl-dashboard .cinematic-team-copy h1 {
  width: 100% !important;
  max-width: 540px !important;
  margin: 20px 0 18px !important;
  font-size: 4rem !important;
  line-height: .98 !important;
  text-align: left !important;
}

.tpl-dashboard .cinematic-team-copy > p {
  width: 100%;
  max-width: 540px;
  text-align: left !important;
}

.tpl-dashboard .cinematic-team-copy .tpl-dash-search {
  width: 100% !important;
  max-width: 560px !important;
  min-height: 72px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tpl-dashboard .cinematic-team-copy .tpl-dash-search span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-dashboard .cinematic-team-visual {
  min-width: 0 !important;
  min-height: 620px !important;
}

.tpl-dashboard .cinematic-team-visual img {
  width: 108% !important;
  max-width: 920px !important;
  margin-bottom: 42px !important;
}

/* Search continuation results when a verified coupon feed has no match. */
.coupon-discovery {
  width: min(1380px, calc(100% - 48px));
  margin: 30px auto 0;
  padding: 34px 0 8px;
  border-top: 1px solid rgba(112,231,255,.14);
}

.coupon-discovery-heading {
  display: grid;
  max-width: 760px;
  gap: 10px;
  margin-bottom: 24px;
}

.coupon-discovery-heading .tpl-pill { width: max-content; }
.coupon-discovery-heading h2 { margin: 0; color: #f5fbff; font-size: 2rem; }
.coupon-discovery-heading p { margin: 0; color: #8fa0b5; line-height: 1.65; }

.coupon-discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.coupon-discovery-grid a {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(112,231,255,.15);
  border-radius: 8px;
  color: #f5fbff;
  background: linear-gradient(155deg, rgba(48,216,255,.08), rgba(7,10,17,.96) 50%);
  text-decoration: none;
  transition: .2s ease;
}

.coupon-discovery-grid a:hover {
  border-color: rgba(48,216,255,.42);
  transform: translateY(-3px);
}

.coupon-discovery-grid span {
  color: #67e8ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .65rem;
  text-transform: uppercase;
}

.coupon-discovery-grid h3 { margin: 20px 0 10px; font-size: 1.05rem; line-height: 1.35; }
.coupon-discovery-grid p { margin: 0; color: #8fa0b5; font-size: .74rem; line-height: 1.55; }
.coupon-discovery-grid small { margin-top: auto; padding-top: 18px; color: #d7f9ff; }

@media (max-width: 1399px) and (min-width: 992px) {
  .tpl-dashboard .cinematic-team-hero { grid-template-columns: minmax(0, 46%) minmax(0, 54%) !important; min-height: 560px !important; }
  .tpl-dashboard .cinematic-team-copy { min-height: 560px !important; padding: 42px 26px 42px 34px !important; }
  .tpl-dashboard .cinematic-team-copy h1 { font-size: 3.35rem !important; }
  .tpl-dashboard .cinematic-team-visual { min-height: 560px !important; }
  .tpl-dashboard .cinematic-team-copy .tpl-dash-search { min-height: 64px !important; }
  .coupon-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .tpl-dashboard .cinematic-team-hero { width: auto !important; grid-template-columns: 1fr !important; margin-left: -16px !important; margin-right: -16px !important; }
  .tpl-dashboard .cinematic-team-copy { min-height: auto !important; }
  .tpl-dashboard .cinematic-team-copy h1 { font-size: 3rem !important; }
  .tpl-dashboard .cinematic-team-visual { min-height: 520px !important; }
  .coupon-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .tpl-dashboard .cinematic-team-hero { display: flex !important; width: auto !important; flex-direction: column; }
  .tpl-dashboard .cinematic-team-copy { padding: 30px 20px 40px !important; }
  .tpl-dashboard .cinematic-team-copy h1 { font-size: 3rem !important; }
  .tpl-dashboard .cinematic-team-visual { min-height: 400px !important; }
  .coupon-discovery { width: calc(100% - 28px); }
  .coupon-discovery-grid { grid-template-columns: 1fr; }
  .coupon-discovery-grid a { min-height: 190px; }
}
