:root {
  --brand-primary: #2f7df4;
  --brand-secondary: #60a5fa;
  --brand-rgb: 47, 125, 244;
  --brand-glow: rgba(47, 125, 244, .26);
  --brand-soft: rgba(47, 125, 244, .11);
  --brand-softest: rgba(47, 125, 244, .045);
  --brand-border: rgba(96, 165, 250, .24);
  --brand-focus: rgba(47, 125, 244, .15);
  --brand-shadow: rgba(37, 99, 235, .22);
  --brand-shadow-strong: rgba(37, 99, 235, .34);
  --brand-chart-fill: rgba(47, 125, 244, .18);
  --brand-chart-fill-soft: rgba(47, 125, 244, .11);
  --brand-chart-crosshair: rgba(96, 165, 250, .28);
  --brand-text-glow: rgba(96, 165, 250, .3);
}

html { color-scheme: dark; }
body {
  background:
    radial-gradient(1000px 620px at 15% -10%, rgba(37,99,235,.14), transparent 65%),
    #07101d;
}

.sidebar {
  background:
    radial-gradient(130% 70% at 0 0, rgba(47,125,244,.12), transparent 58%),
    linear-gradient(180deg, rgba(6,15,29,.96), rgba(7,13,23,.94)) !important;
}

.sidebar-logo-full { width: 176px !important; height: auto; object-fit: contain !important; }
.sidebar-logo-compact { width: 38px !important; height: 38px; object-fit: contain !important; }

.bg-brand-500, .bg-brand-600 { background-color: #2f7df4 !important; }
.hover\:bg-brand-600:hover, .hover\:bg-brand-500:hover { background-color: #2563eb !important; }
.text-brand-500, .text-brand-400 { color: #60a5fa !important; }
.border-brand-500, .border-brand-500\/20, .border-brand-500\/30 { border-color: rgba(96,165,250,.3) !important; }
.from-brand-500 { --tw-gradient-from: #2f7df4 var(--tw-gradient-from-position) !important; }
.to-brand-600 { --tw-gradient-to: #2563eb var(--tw-gradient-to-position) !important; }

.btn-premium {
  background: linear-gradient(135deg, #3b8cff 0%, #2563eb 100%) !important;
  border-color: rgba(147,197,253,.35) !important;
  box-shadow: 0 10px 30px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.btn-premium:hover { box-shadow: 0 14px 38px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.3) !important; }
.glow-orange, .glow-orange-strong { box-shadow: 0 0 34px rgba(47,125,244,.16) !important; }
.text-glow { text-shadow: 0 0 60px rgba(96,165,250,.28) !important; }
.hero-gradient-text {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 52%, #a9d1ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.grid-overlay {
  background-image: linear-gradient(rgba(47,125,244,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(47,125,244,.022) 1px, transparent 1px) !important;
}

.hydrabit-language {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 10030;
  min-width: 144px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hydrabit-language__trigger {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(124, 161, 214, .22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 34, 55, .96), rgba(9, 19, 34, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 10px 28px rgba(0, 0, 0, .28);
  color: #eef6ff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hydrabit-language__trigger:hover {
  border-color: rgba(76, 145, 255, .55);
  background:
    linear-gradient(180deg, rgba(24, 43, 70, .98), rgba(10, 23, 41, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 12px 32px rgba(0, 0, 0, .34),
    0 0 0 3px rgba(47, 125, 244, .07);
}

.hydrabit-language__trigger:focus-visible {
  outline: none;
  border-color: #4a8df6;
  box-shadow: 0 0 0 3px rgba(47, 125, 244, .2), 0 12px 32px rgba(0, 0, 0, .34);
}

.hydrabit-language.is-open .hydrabit-language__trigger {
  border-color: rgba(74, 141, 246, .72);
  box-shadow: 0 0 0 3px rgba(47, 125, 244, .14), 0 12px 32px rgba(0, 0, 0, .36);
}

.hydrabit-language__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 7px;
  background: rgba(47, 125, 244, .11);
  color: #70adff;
  font-size: 13px;
  line-height: 1;
}

.hydrabit-language__current {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .01em;
}

.hydrabit-language__caret {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: grid;
  place-items: center;
  color: #7488a4;
  font-size: 12px;
  line-height: 1;
  transition: transform .18s ease, color .18s ease;
}

.hydrabit-language.is-open .hydrabit-language__caret {
  transform: rotate(180deg);
  color: #8ebcff;
}

.hydrabit-language__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 7px;
  border: 1px solid rgba(121, 157, 209, .2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 27, 46, .99), rgba(7, 16, 29, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 20px 55px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(0, 0, 0, .16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.hydrabit-language.is-open .hydrabit-language__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hydrabit-language__option {
  width: 100%;
  min-height: 39px;
  display: grid;
  grid-template-columns: 31px 1fr 18px;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aebed2;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.hydrabit-language__option:hover,
.hydrabit-language__option:focus-visible {
  outline: none;
  background: rgba(47, 125, 244, .12);
  color: #f4f8ff;
}

.hydrabit-language__option:active {
  transform: scale(.985);
}

.hydrabit-language__option.is-active {
  background: linear-gradient(90deg, rgba(47, 125, 244, .2), rgba(47, 125, 244, .08));
  color: #ffffff;
}

.hydrabit-language__code {
  width: 29px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(138, 167, 208, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  color: #7faef2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hydrabit-language__option.is-active .hydrabit-language__code {
  border-color: rgba(96, 165, 250, .3);
  background: rgba(47, 125, 244, .16);
  color: #a9cfff;
}

.hydrabit-language__name {
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.hydrabit-language__check {
  color: #5fa2ff;
  font-size: 13px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .15s ease, transform .15s ease;
}

.hydrabit-language__option.is-active .hydrabit-language__check {
  opacity: 1;
  transform: scale(1);
}

/* Signed-in pages: keep the selector inside the top bar, before the profile. */
.app-layout .hydrabit-language {
  position: relative;
  inset: auto;
  z-index: 10030;
  min-width: 126px;
  margin: 0 3px;
  flex: 0 0 auto;
}

.app-layout .hydrabit-language__trigger {
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.app-layout .hydrabit-language__menu {
  top: calc(100% + 10px);
}

@media (max-width: 900px) {
  .app-layout .hydrabit-language { min-width: 112px; }
  .app-layout .hydrabit-language__trigger { padding: 0 9px; gap: 7px; }
}

@media (max-width: 680px) {
  .app-layout .hydrabit-language { min-width: 46px; width: 46px; }
  .app-layout .hydrabit-language__trigger { justify-content: center; padding: 0; }
  .app-layout .hydrabit-language__current,
  .app-layout .hydrabit-language__caret { display: none; }
  .app-layout .hydrabit-language__icon { width: 24px; height: 24px; flex-basis: 24px; }
  .app-layout .hydrabit-language__menu { right: -6px; width: 184px; }
  .hydrabit-language:not(.app-layout .hydrabit-language) { top: 10px; right: 62px; min-width: 126px; }
}

.hb-workspace {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(700px 360px at 80% 0, rgba(37,99,235,.12), transparent 68%),
    transparent;
}
.hb-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.hb-eyebrow { color:#60a5fa; text-transform:uppercase; letter-spacing:.17em; font:700 11px/1.4 Inter,sans-serif; margin-bottom:9px; }
.hb-title { color:#f8fbff; font:750 clamp(28px,4vw,42px)/1.08 Inter,sans-serif; letter-spacing:-.045em; }
.hb-subtitle { color:#8fa0b8; max-width:680px; margin-top:10px; font:400 14px/1.65 Inter,sans-serif; }
.hb-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
.hb-card {
  grid-column:span 4;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.13);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(15,29,49,.88),rgba(8,18,32,.9));
  box-shadow:0 18px 50px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.035);
  padding:20px;
}
.hb-card::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(120deg,rgba(96,165,250,.055),transparent 32%); }
.hb-card--wide { grid-column:span 8; }
.hb-card--full { grid-column:1/-1; }
.hb-card--half { grid-column:span 6; }
.hb-card-title { color:#f6f9ff; font:700 15px/1.3 Inter,sans-serif; }
.hb-card-copy { color:#8fa0b8; font:400 13px/1.65 Inter,sans-serif; margin-top:8px; }
.hb-stat { color:#fff; font:750 30px/1 Inter,sans-serif; letter-spacing:-.04em; margin-top:20px; }
.hb-stat small { color:#60a5fa; font-size:13px; letter-spacing:0; margin-left:5px; }
.hb-muted { color:#6f8098; }
.hb-badge { display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(96,165,250,.22); border-radius:999px; padding:6px 10px; color:#bfdbfe; background:rgba(37,99,235,.1); font:700 11px/1 Inter,sans-serif; }
.hb-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:#60a5fa; box-shadow:0 0 12px #60a5fa; }
.hb-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(96,165,250,.26); border-radius:11px; padding:10px 14px; color:#fff; background:linear-gradient(135deg,#3b82f6,#2563eb); font:700 12px/1 Inter,sans-serif; cursor:pointer; box-shadow:0 10px 24px rgba(37,99,235,.2); }
.hb-action:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.hb-action--quiet { background:rgba(255,255,255,.045); color:#c8d4e6; border-color:rgba(148,163,184,.15); box-shadow:none; }
.hb-list { display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.hb-row { display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid rgba(148,163,184,.1); border-radius:13px; background:rgba(255,255,255,.022); padding:12px 14px; }
.hb-row strong { color:#edf4ff; font-size:13px; }
.hb-row span { color:#7f91a9; font-size:12px; }
.hb-progress { height:7px; border-radius:99px; background:rgba(148,163,184,.12); overflow:hidden; margin-top:13px; }
.hb-progress > span { display:block; height:100%; width:var(--progress,0%); border-radius:inherit; background:linear-gradient(90deg,#2563eb,#60a5fa); box-shadow:0 0 18px rgba(96,165,250,.45); }
.hb-form { display:grid; gap:13px; margin-top:17px; }
.hb-form label { display:grid; gap:7px; color:#9eacc0; font:600 12px/1.35 Inter,sans-serif; }
.hb-form input,.hb-form select,.hb-form textarea { width:100%; border:1px solid rgba(148,163,184,.14); border-radius:11px; background:rgba(2,8,18,.46); color:#f8fafc; padding:11px 12px; outline:none; }
.hb-form input:focus,.hb-form select:focus,.hb-form textarea:focus { border-color:rgba(96,165,250,.55); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.hb-empty { text-align:center; padding:30px 14px; color:#718299; }
.hb-notice { border:1px solid rgba(96,165,250,.18); border-radius:14px; padding:13px 15px; color:#b8c7dc; background:rgba(37,99,235,.075); font:400 12px/1.6 Inter,sans-serif; }
.hb-toast { position:fixed; right:22px; bottom:22px; z-index:10040; max-width:360px; border:1px solid rgba(96,165,250,.24); border-radius:13px; background:#0d1b2e; color:#eef5ff; padding:13px 15px; box-shadow:0 18px 50px rgba(0,0,0,.38); font:500 13px/1.5 Inter,sans-serif; transform:translateY(16px); opacity:0; pointer-events:none; transition:.22s ease; }
.hb-toast.is-visible { transform:none; opacity:1; }
.hb-launchpad { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 18px; padding:17px 18px; border:1px solid rgba(96,165,250,.16); border-radius:17px; background:linear-gradient(125deg,rgba(37,99,235,.13),rgba(10,22,38,.76) 44%,rgba(8,17,30,.84)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.hb-launchpad h2 { font-size:17px; letter-spacing:-.025em; color:#f7fbff; }
.hb-launchpad .hb-eyebrow { margin-bottom:5px; }
.hb-launchpad-links { display:flex; align-items:stretch; gap:9px; }
.hb-launchpad-links a { display:flex; align-items:center; gap:10px; min-width:170px; padding:11px 12px; border:1px solid rgba(148,163,184,.12); border-radius:12px; background:rgba(255,255,255,.028); color:#dbeafe; transition:.18s ease; }
.hb-launchpad-links a:hover { border-color:rgba(96,165,250,.35); background:rgba(37,99,235,.1); transform:translateY(-1px); }
.hb-launchpad-links i { color:#60a5fa; font-size:21px; }
.hb-launchpad-links span { display:grid; gap:3px; }
.hb-launchpad-links strong { font-size:12px; }
.hb-launchpad-links small { color:#718299; font-size:10px; }

@media (max-width: 1050px) {
  .hb-card,.hb-card--half { grid-column:span 6; }
  .hb-card--wide { grid-column:1/-1; }
  .hb-launchpad { align-items:flex-start; flex-direction:column; }
  .hb-launchpad-links { width:100%; flex-wrap:wrap; }
  .hb-launchpad-links a { flex:1; }
}
@media (max-width: 768px) {
  .hb-workspace { padding:18px 14px 32px; }
  .hb-heading { align-items:flex-start; flex-direction:column; }
  .hb-card,.hb-card--half,.hb-card--wide { grid-column:1/-1; }
  .sidebar-logo-full { width:150px !important; }
  .hb-launchpad-links { display:grid; grid-template-columns:1fr; }
}

/* Landing hero: HydraBit-native visual, replacing the legacy brand artwork. */
.hydra-hero-visual { isolation:isolate; border-radius:50%; background:radial-gradient(circle at 50% 50%,rgba(96,165,250,.18),transparent 38%),radial-gradient(circle at 50% 50%,rgba(37,99,235,.12),transparent 64%); }
.hydra-hero-visual::before { content:""; position:absolute; inset:12%; border-radius:50%; background:conic-gradient(from 180deg,rgba(115,184,255,.02),rgba(115,184,255,.42),rgba(37,99,235,.04),rgba(115,184,255,.28),rgba(115,184,255,.02)); filter:blur(32px); opacity:.8; z-index:-1; }
.hydra-orbit { position:absolute; border-radius:50%; border:1px solid rgba(96,165,250,.22); box-shadow:inset 0 0 42px rgba(37,99,235,.05),0 0 30px rgba(37,99,235,.08); }
.hydra-orbit::before,.hydra-orbit::after { content:""; position:absolute; width:8px; height:8px; border-radius:50%; background:#8ec5ff; box-shadow:0 0 20px rgba(96,165,250,.95); }
.hydra-orbit--outer { inset:5%; transform:rotate(-12deg); }
.hydra-orbit--outer::before { left:10%; top:22%; }
.hydra-orbit--outer::after { right:7%; bottom:27%; }
.hydra-orbit--inner { inset:18%; border-style:dashed; transform:rotate(16deg); }
.hydra-orbit--inner::before { right:13%; top:10%; width:6px; height:6px; }
.hydra-orbit--inner::after { left:3%; bottom:34%; width:6px; height:6px; }
.hydra-hero-mark { width:min(46%,210px); aspect-ratio:1; display:grid; place-items:center; border-radius:44% 56% 52% 48%; background:linear-gradient(145deg,rgba(12,29,58,.95),rgba(6,14,30,.9)); border:1px solid rgba(148,197,255,.32); box-shadow:0 28px 80px rgba(0,0,0,.44),inset 0 1px 0 rgba(255,255,255,.12),0 0 60px rgba(47,125,244,.25); transform:rotate(-4deg); }
.hydra-hero-mark img { width:66%; height:66%; filter:drop-shadow(0 0 22px rgba(96,165,250,.6)); }
.hydra-data-chip { position:absolute; display:flex; align-items:center; gap:10px; padding:10px 13px; border-radius:12px; border:1px solid rgba(148,197,255,.16); background:rgba(7,15,31,.84); box-shadow:0 16px 40px rgba(0,0,0,.28); color:#8fa7c6; font-size:10px; letter-spacing:.08em; }
.hydra-data-chip strong { color:#dbeafe; font-size:10px; letter-spacing:.12em; }
.hydra-data-chip--top { top:16%; right:2%; }
.hydra-data-chip--bottom { bottom:17%; left:0; }

/* Landing feature and roadmap panels. */
.hb-landing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.hb-landing-card { min-height:210px; padding:24px; border-radius:22px; border:1px solid rgba(148,197,255,.12); background:linear-gradient(160deg,rgba(23,39,68,.72),rgba(10,17,31,.82)); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
.hb-landing-card__icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:#8ec5ff; background:rgba(47,125,244,.14); margin-bottom:22px; }
.hb-landing-card h3 { color:#fff; font:700 20px/1.2 'Cabinet Grotesk',sans-serif; margin-bottom:10px; }
.hb-landing-card p { color:#91a0b7; font-size:14px; line-height:1.65; }
.hb-roadmap { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.hb-roadmap-card { position:relative; min-height:250px; padding:24px; border-radius:20px; border:1px solid rgba(148,197,255,.1); background:rgba(10,18,33,.76); overflow:hidden; }
.hb-roadmap-card::after { content:""; position:absolute; inset:auto -35% -48% 28%; height:150px; border-radius:50%; background:rgba(47,125,244,.1); filter:blur(28px); }
.hb-roadmap-step { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#75b8ff; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.hb-roadmap-card h3 { color:#fff; font-size:20px; margin:26px 0 12px; }
.hb-roadmap-card p { color:#8c9bb2; font-size:13px; line-height:1.65; }
.hb-roadmap-card ul { margin:15px 0 0; padding:0; list-style:none; display:grid; gap:8px; }
.hb-roadmap-card li { color:#a7b4c7; font-size:12px; line-height:1.45; padding-left:16px; position:relative; }
.hb-roadmap-card li::before { content:""; position:absolute; left:0; top:.55em; width:5px; height:5px; border-radius:50%; background:#60a5fa; }
@media (max-width:900px) { .hb-landing-grid,.hb-roadmap { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) { .hydra-data-chip { display:none; } .hb-landing-grid,.hb-roadmap { grid-template-columns:1fr; } .hb-landing-card,.hb-roadmap-card { min-height:auto; } }
