/* ============================================================
   Bluerydge Customer Portal — styles
   ============================================================ */

:root {
  --bg-0: #04070f;
  --bg-1: #070b18;
  --bg-2: #0b1226;
  --cyan: #19c2ff;
  --cyan-soft: #5fd6ff;
  --pink: #ff2d78;
  --ink: #eef3fb;
  --muted: #9aa8c4;
  --muted-dim: #6e7c98;
  --card-border: rgba(120, 160, 220, 0.18);
  --field-bg: rgba(12, 18, 36, 0.72);
  --field-border: rgba(120, 160, 220, 0.16);
  --radius-card: 22px;
  --radius-field: 12px;
  --grad-action: linear-gradient(90deg, #1f9dff 0%, #5a5ff0 48%, #ff2d78 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ===================== Background layers ===================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-0);
}

/* Real mission montage photo (base) */
.bg-photo {
  position: absolute;
  inset: 0;
  background: url("images/background.jpg") center right / cover no-repeat;
  /* slow ken-burns drift for life */
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}

/* Legibility wash: dark on the left (hero text) easing toward the imagery */
.bg-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    /* horizontal: very dark left for hero text, easing toward the imagery */
    linear-gradient(90deg, rgba(4, 7, 15, 0.97) 0%, rgba(4, 7, 15, 0.88) 32%, rgba(4, 7, 15, 0.72) 60%, rgba(4, 7, 15, 0.84) 100%),
    /* vertical: heavy mid-band to suppress the photo's baked-in text */
    linear-gradient(180deg, rgba(4, 7, 15, 0.62) 0%, rgba(4, 7, 15, 0.42) 26%, rgba(4, 7, 15, 0.78) 52%, rgba(4, 7, 15, 0.9) 74%, rgba(4, 7, 15, 0.97) 100%);
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55; /* softened so the photo reads through */
}

.bg-gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(25, 194, 255, 0.10), transparent 70%),
    radial-gradient(45% 45% at 70% 60%, rgba(255, 45, 120, 0.08), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(0deg); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.12) rotate(6deg); }
}

.bg-grid {
  position: absolute;
  inset: -50% -10% 0 -10%;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(90, 150, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 150, 220, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(620px) rotateX(58deg);
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 70%);
  animation: gridflow 14s linear infinite;
}

@keyframes gridflow {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 54px, 54px 0; }
}

.bg-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(25, 194, 255, 0.07), transparent);
  filter: blur(2px);
  animation: scan 9s linear infinite;
}

@keyframes scan {
  0%   { top: -240px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  will-change: transform;
}
.glow-1 {
  width: 540px; height: 540px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(25, 130, 220, 0.55), transparent 65%);
  animation: float1 18s ease-in-out infinite alternate;
}
.glow-2 {
  width: 480px; height: 480px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, rgba(150, 40, 110, 0.5), transparent 65%);
  animation: float2 20s ease-in-out infinite alternate;
}
@keyframes float1 { to { transform: translate(-60px, 80px); } }
@keyframes float2 { to { transform: translate(70px, -60px); } }

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 40%, transparent 50%, rgba(2, 4, 10, 0.7) 100%);
  pointer-events: none;
}

/* ===================== Layout shell ===================== */
.portal {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px clamp(24px, 6vw, 96px) 26px;
  max-width: 1500px;
  margin: 0 auto;
}

/* ===================== Topbar ===================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(18px, 3vh, 26px);
  border-bottom: 1px solid rgba(120, 160, 220, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(25, 194, 255, 0.35));
}
.brand-name {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 4px;
  color: #fff;
}

.support {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(11, 18, 36, 0.55);
  border: 1px solid var(--field-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.support-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-soft);
}
.support-sep { color: rgba(120, 160, 220, 0.3); }
.support-mail { color: #cfd9ec; text-decoration: none; transition: color .2s; }
.support-mail:hover { color: #fff; }

/* ===================== Hero split ===================== */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(28px, 5vh, 64px) 0;
}

.hero-copy { max-width: 680px; animation: rise .8s ease both; }

.hero-title {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  line-height: 1.06;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
}
.hero-title .line-1 { display: block; color: #f4f7fd; font-weight: 300; white-space: nowrap; }
.hero-title .line-2 {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(90deg, #19c2ff, #5fd6ff 60%, #9be8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(25, 194, 255, 0.25);
}

.hero-rule {
  display: block;
  width: 120px;
  height: 4px;
  margin: 28px 0;
  border-radius: 4px;
  background: var(--grad-action);
  box-shadow: 0 0 18px rgba(90, 95, 240, 0.5);
  animation: ruleGrow 1s ease .2s both;
}
@keyframes ruleGrow { from { width: 0; opacity: 0; } to { width: 120px; opacity: 1; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan-soft);
  background: rgba(25, 194, 255, 0.08);
  border: 1px solid rgba(25, 194, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(25, 194, 255, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(25, 194, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(25, 194, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 194, 255, 0); }
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
  margin: 0;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 26px 0 0;
  padding: 0;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: #cdd8ec;
}
.hero-points svg {
  color: var(--cyan);
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: rgba(25, 194, 255, 0.12);
}

/* ===================== Auth card ===================== */
.auth-card {
  justify-self: end;
  width: min(440px, 100%);
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(150deg, rgba(25,194,255,0.45), rgba(120,140,200,0.06) 40%, rgba(255,45,120,0.4));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  animation: rise .8s ease .1s both;
}
.card-inner {
  border-radius: calc(var(--radius-card) - 1px);
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(160deg, rgba(11, 16, 32, 0.92), rgba(8, 11, 24, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  color: var(--cyan-soft);
  background: linear-gradient(150deg, rgba(25, 194, 255, 0.16), rgba(255, 45, 120, 0.12));
  border: 1px solid rgba(25, 194, 255, 0.3);
  box-shadow: 0 8px 24px -10px rgba(25, 194, 255, 0.5);
}

.card-title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 30px;
  margin: 0 0 6px;
  color: #fff;
}
.card-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 26px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #d7e0f0;
  margin: 0 0 8px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-field);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field:focus-within {
  border-color: rgba(25, 194, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(25, 194, 255, 0.14);
  background: rgba(14, 22, 44, 0.9);
}
.field-icon {
  display: inline-flex;
  padding: 0 12px;
  color: var(--muted-dim);
}
.field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 12px 15px 0;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
.field input::placeholder { color: #5d6a86; }
.field-toggle {
  background: none;
  border: none;
  color: var(--muted-dim);
  cursor: pointer;
  padding: 0 14px;
  display: inline-flex;
  transition: color .2s;
}
.field-toggle:hover { color: var(--cyan-soft); }

.forgot {
  display: block;
  text-align: right;
  font-size: 13.5px;
  color: var(--cyan-soft);
  text-decoration: none;
  margin: -4px 0 22px;
  transition: color .2s;
}
.forgot:hover { color: #fff; }

/* Buttons */
.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-field);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
  position: relative;
  transition: transform .15s, box-shadow .25s, background .25s, border-color .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: var(--grad-action);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: 0 12px 28px -8px rgba(90, 95, 240, 0.55);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 36px -8px rgba(255, 45, 120, 0.5);
}
.btn-primary.is-loading { pointer-events: none; opacity: 0.85; }
.btn-primary.is-loading .btn-label { visibility: hidden; }
.btn-spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-primary.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  color: var(--cyan-soft);
  background: transparent;
  border: 1px solid rgba(25, 194, 255, 0.45);
}
.btn-ghost:hover {
  background: rgba(25, 194, 255, 0.08);
  border-color: rgba(25, 194, 255, 0.8);
  color: #fff;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted-dim);
  font-size: 14px;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--field-border);
}
.divider span { padding: 0 14px; }

.card-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0 0;
  line-height: 1.6;
}
.card-footnote a { color: var(--cyan-soft); text-decoration: none; }
.card-footnote a:hover { color: #fff; text-decoration: underline; }

/* ----- multi-step auth ----- */
.step { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-hint {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.step-hint b { color: #e7eefb; font-weight: 600; }
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 20px;
}
.linklike {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  color: var(--cyan-soft);
  transition: color .2s;
}
.linklike:hover { color: #fff; }
.otp-input {
  letter-spacing: 8px;
  font-size: 19px;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
}
.otp-input::placeholder { letter-spacing: 8px; }

/* ===================== Section dividers ===================== */
.section-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, transparent, rgba(120, 160, 220, 0.22) 18%, rgba(120, 160, 220, 0.22) 82%, transparent);
}
.section-eyebrow {
  text-align: center;
  margin: clamp(22px, 3.5vh, 36px) 0 4px;
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ===================== Features ===================== */
.features {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 22px;
  padding: 26px 0 18px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: rise .7s ease both;
}
.feature-icon {
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(25, 194, 255, 0.2));
  transition: transform .3s;
}
.feature:hover .feature-icon { transform: translateY(-3px) scale(1.06); }
.feature-body h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 7px;
  color: #f1f5fc;
  line-height: 1.2;
}
.feature-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 220px;
}
.feature-div {
  width: 1px;
  align-self: stretch;
  min-height: 78px;
  background: linear-gradient(to bottom, transparent, var(--field-border), transparent);
}

/* ===================== Footer ===================== */
.footer {
  margin-top: clamp(28px, 5vh, 56px);
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: clamp(26px, 4vh, 40px) 0;
  border-top: 1px solid rgba(120, 160, 220, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.brand--sm .brand-name { font-size: 20px; letter-spacing: 3px; }
.brand--sm .brand-mark { width: 40px; height: 40px; }
.footer-tagline {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--field-border);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(120, 160, 220, 0.06);
  border: 1px solid var(--field-border);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.footer-social a:hover {
  color: #fff;
  background: rgba(25, 194, 255, 0.12);
  border-color: rgba(25, 194, 255, 0.5);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(120, 160, 220, 0.08);
  font-size: 13.5px;
  color: var(--muted-dim);
}
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal a { color: var(--cyan-soft); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #fff; }
.footer-sep { color: rgba(120, 160, 220, 0.3); }

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 140%);
  z-index: 30;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(11, 18, 36, 0.96);
  border: 1px solid rgba(25, 194, 255, 0.4);
  color: #eaf2ff;
  font-size: 14.5px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2);
}
.toast.show { transform: translate(-50%, 0); }

/* ===================== Animations ===================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 0;
  }
  .hero-copy { max-width: none; }
  .auth-card { justify-self: stretch; width: 100%; max-width: 460px; margin: 0 auto; }
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 34px 30px;
  }
  .feature-div { display: none; }
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .footer-brand { flex-direction: column; gap: 12px; }
  .footer-tagline { padding-left: 0; border-left: none; }
}

@media (max-width: 620px) {
  .portal { padding: 22px 16px; }
  .support-help, .support-sep { display: none; }
  .support-mail { font-size: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 19px; letter-spacing: 2.5px; }
  .features { grid-template-columns: 1fr; }
  .support {
    font-size: 12px;
    gap: 9px;
    padding: 7px 13px;
  }
  .hero-title .line-1, .hero-title .line-2 { white-space: normal; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ===================== Admin control panel (/acp) ===================== */
.admin-badge {
  margin-left: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #06121f;
  background: var(--grad-action);
  border-radius: 999px;
  padding: 3px 10px;
}
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #06121f;
  background: var(--grad-action);
  background-size: 180% 100%;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  text-decoration: none;
  transition: background-position .25s, transform .15s, box-shadow .2s;
  box-shadow: 0 10px 24px -10px rgba(90, 95, 240, 0.6);
}
.btn-admin:hover { background-position: 100% 50%; transform: translateY(-1px); }
.btn-admin:active { transform: translateY(1px); }

.acp-section { margin-top: clamp(28px, 5vh, 48px); }
.acp-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.acp-h-row .acp-h { margin: 0; border: none; padding: 0; }
.acp-add {
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #06121f;
  background: var(--grad-action);
  background-size: 180% 100%;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background-position .25s, transform .15s;
}
.acp-add:hover { background-position: 100% 50%; transform: translateY(-1px); }
.acp-add:active { transform: translateY(1px); }
.acp-edit {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--cyan-soft);
  background: rgba(25, 194, 255, 0.08);
  border: 1px solid rgba(25, 194, 255, 0.3);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.acp-edit:hover { background: rgba(25, 194, 255, 0.16); color: #fff; border-color: rgba(25, 194, 255, 0.6); }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(2, 4, 10, 0.66);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal {
  position: fixed; z-index: 51;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(460px, 94vw);
  max-height: 90vh; overflow-y: auto;
  background: linear-gradient(165deg, rgba(13, 19, 38, 0.98), rgba(8, 11, 24, 0.99));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: rise .25s ease both;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--field-border);
}
.modal-head h3 { margin: 0; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 18px; color: #fff; }
.modal-form { padding: 22px 24px 24px; }
.modal-field { display: block; margin-bottom: 16px; }
.modal-field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 11px 13px;
  color: #eaf2ff; font-family: "Inter", sans-serif; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.modal-field textarea { resize: vertical; }
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus { border-color: rgba(25, 194, 255, 0.6); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #dbe4f3; margin-bottom: 16px; cursor: pointer; }
.modal-check input { accent-color: #19c2ff; width: 16px; height: 16px; }
.modal-field input[type="file"] { padding: 10px 12px; }

.acp-h {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #eaf1fb;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--field-border);
}
.acp-org-stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.acp-org-stats b { color: #fff; font-family: "Outfit", sans-serif; }
.mod-label { margin: 16px 0 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-dim); }
.mod-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif; font-size: 12.5px; color: var(--muted);
  background: rgba(8, 12, 24, 0.6); border: 1px solid var(--field-border);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.mod-toggle .mod-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-dim); transition: background .2s, box-shadow .2s;
}
.mod-toggle:hover { color: #fff; border-color: rgba(25, 194, 255, 0.4); }
.mod-toggle.is-on { color: #fff; border-color: rgba(56, 211, 159, 0.5); background: rgba(56, 211, 159, 0.1); }
.mod-toggle.is-on .mod-dot { background: #38d39f; box-shadow: 0 0 8px rgba(56, 211, 159, 0.7); }
.acp-status {
  background: rgba(8, 12, 24, 0.7); color: #eaf2ff;
  border: 1px solid var(--field-border); border-radius: 8px;
  padding: 6px 10px; font-family: "Inter", sans-serif; font-size: 13px;
  text-transform: capitalize; cursor: pointer;
}
.acp-status:hover { border-color: rgba(25, 194, 255, 0.5); }

.acp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.acp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.acp-table th {
  text-align: left;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding: 14px 16px;
  border-bottom: 1px solid var(--field-border);
}
.acp-table td { padding: 13px 16px; color: #d7e0f0; border-bottom: 1px solid rgba(120,160,220,0.07); }
.acp-table tr:last-child td { border-bottom: none; }
.acp-table tbody tr:hover { background: rgba(25, 194, 255, 0.04); }
.acp-ref { font-family: "Outfit", sans-serif; color: var(--cyan-soft); white-space: nowrap; }
.acp-empty { text-align: center; color: var(--muted); padding: 28px; }
.acp-bar {
  display: inline-block;
  width: 90px; height: 7px;
  border-radius: 6px;
  background: rgba(120, 160, 220, 0.14);
  overflow: hidden;
  vertical-align: middle;
}
.acp-bar > span { display: block; height: 100%; border-radius: 6px; background: var(--grad-action); }

/* ===================== Dashboard (My Work Items) ===================== */
.dash-user { display: flex; align-items: center; gap: 16px; }
.dash-org {
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #d7e0f0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 36, 0.55);
  border: 1px solid var(--field-border);
}
.btn-signout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan-soft);
  background: rgba(25, 194, 255, 0.06);
  border: 1px solid rgba(25, 194, 255, 0.35);
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-signout:hover { background: rgba(25, 194, 255, 0.12); color: #fff; border-color: rgba(25, 194, 255, 0.7); }
.btn-signout:active { transform: translateY(1px); }

.dash {
  flex: 1;
  padding: clamp(28px, 5vh, 52px) 0 24px;
  animation: rise .7s ease both;
}
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.dash-title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  margin: 12px 0 8px;
  color: #fff;
}
.dash-sub { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); }

.dash-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat {
  min-width: 104px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.7);
  border: 1px solid var(--field-border);
  border-top: 2px solid var(--muted-dim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  cursor: pointer;
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-2px); background: rgba(15, 22, 42, 0.85); }
.stat.is-active { box-shadow: 0 0 0 1px var(--cyan) inset; }
.stat-num { display: block; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 28px; line-height: 1; color: #fff; }
.stat-label { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }
.stat.st-progress { border-top-color: var(--cyan); }
.stat.st-open { border-top-color: #8aa0c8; }
.stat.st-blocked { border-top-color: var(--pink); }
.stat.st-done { border-top-color: #38d39f; }

/* ----- toolbar: filters + search + sort + refresh ----- */
.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--field-border);
  color: var(--muted);
  transition: border-color .2s;
}
.search-field:focus-within { border-color: rgba(25, 194, 255, 0.55); color: var(--cyan-soft); }
.search-field input {
  border: none; background: none; outline: none;
  color: #eaf2ff; font-size: 14px; width: 190px;
  font-family: "Inter", sans-serif;
}
.search-field input::placeholder { color: var(--muted-dim); }
.select-field { display: inline-flex; align-items: center; gap: 8px; }
.select-field label { font-size: 13px; color: var(--muted-dim); }
.select-field select {
  height: 40px;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.6) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f8db0' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 11px center;
  border: 1px solid var(--field-border);
  color: #eaf2ff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.select-field select:hover { border-color: rgba(25, 194, 255, 0.45); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--field-border);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: #fff; border-color: rgba(25, 194, 255, 0.5); background: rgba(25, 194, 255, 0.08); }
.icon-btn.spinning svg { animation: spin .7s linear infinite; }

/* ----- skeleton loading ----- */
.ticket.skeleton { pointer-events: none; }
.sk {
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(120,160,220,0.08) 25%, rgba(120,160,220,0.16) 37%, rgba(120,160,220,0.08) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-row { height: 14px; width: 40%; margin-bottom: 16px; }
.sk-title { height: 18px; width: 80%; margin-bottom: 14px; }
.sk-text { height: 12px; width: 100%; margin-bottom: 8px; }
.sk-text.short { width: 60%; margin-bottom: 18px; }
.sk-bar { height: 7px; width: 100%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.ticket {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(12, 18, 36, 0.82), rgba(8, 11, 24, 0.9));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: rise .5s ease both;
}
.ticket:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 194, 255, 0.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.ticket-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ticket-ref {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cyan-soft);
}
.ticket-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 8px; color: #f1f5fc; line-height: 1.3; }
.ticket-summary { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); flex: 1; }

.ticket-progress {
  height: 7px;
  border-radius: 6px;
  background: rgba(120, 160, 220, 0.12);
  overflow: hidden;
  margin-bottom: 16px;
}
.ticket-progress > span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--grad-action);
  transition: width .6s cubic-bezier(.2,.9,.3,1);
}
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-time { font-size: 12.5px; color: var(--muted-dim); }

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.chip.status { text-transform: none; letter-spacing: .2px; }
.pr-low      { color: #9fb2cf; background: rgba(120,160,220,.12); border-color: rgba(120,160,220,.25); }
.pr-medium   { color: #5fd6ff; background: rgba(25,194,255,.10);  border-color: rgba(25,194,255,.3); }
.pr-high     { color: #ffb347; background: rgba(255,160,40,.12);  border-color: rgba(255,160,40,.35); }
.pr-critical { color: #ff708f; background: rgba(255,45,120,.14);  border-color: rgba(255,45,120,.4); }
.st-open     { color: #c2d0ea; background: rgba(120,160,220,.14); border-color: rgba(120,160,220,.3); }
.st-progress { color: #5fd6ff; background: rgba(25,194,255,.12);  border-color: rgba(25,194,255,.4); }
.st-blocked  { color: #ff708f; background: rgba(255,45,120,.14);  border-color: rgba(255,45,120,.4); }
.st-done     { color: #57e0ad; background: rgba(56,211,159,.14);  border-color: rgba(56,211,159,.4); }

.ticket-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--field-border);
  border-radius: 16px;
  background: rgba(11, 16, 32, 0.4);
}

.dash-live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-dim); font-size: 13px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38d39f;
  box-shadow: 0 0 0 0 rgba(56, 211, 159, .6);
  animation: pulse 2.4s ease-out infinite;
}

/* ----- filter chips ----- */
.ticket-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--field-border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.filter-chip:hover { color: #fff; border-color: rgba(25, 194, 255, 0.4); }
.filter-chip.is-active {
  color: #fff;
  background: rgba(25, 194, 255, 0.14);
  border-color: rgba(25, 194, 255, 0.55);
}
.filter-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-dim);
  background: rgba(120, 160, 220, 0.14);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 20px;
  text-align: center;
}
.filter-chip.is-active .filter-count { color: var(--cyan-soft); background: rgba(25, 194, 255, 0.2); }

/* ----- ticket detail drawer ----- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 4, 10, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 41;
  width: min(440px, 92vw);
  height: 100%;
  overflow-y: auto;
  padding: 56px 32px 32px;
  background: linear-gradient(165deg, rgba(13, 19, 38, 0.98), rgba(8, 11, 24, 0.99));
  border-left: 1px solid var(--card-border);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex;
  padding: 8px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(120, 160, 220, 0.08);
  border: 1px solid var(--field-border);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.drawer-close:hover { color: #fff; background: rgba(255, 45, 120, 0.16); }
.drawer-title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 23px;
  color: #fff;
  margin: 10px 0 14px;
  line-height: 1.25;
}
.drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.drawer-summary { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.drawer-meta { margin-bottom: 22px; }
.drawer-progress {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: rgba(120, 160, 220, 0.12);
  overflow: hidden;
  margin-bottom: 8px;
}
.drawer-progress > span { display: block; height: 100%; border-radius: 6px; background: var(--grad-action); }
.drawer-progress-label { font-size: 13px; color: var(--muted); }
.drawer-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin: 0 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--field-border);
  border-bottom: 1px solid var(--field-border);
}
.drawer-facts dt { font-size: 13px; color: var(--muted-dim); }
.drawer-facts dd { margin: 0; font-size: 13.5px; color: #dbe4f3; text-align: right; }
.drawer-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.drawer-note a { color: var(--cyan-soft); text-decoration: none; }
.drawer-note a:hover { color: #fff; }

/* ===================== Signed-in app shell (solid theme) ============== */
body.app {
  background:
    radial-gradient(1100px 620px at 100% -10%, rgba(25, 194, 255, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 45, 120, 0.06), transparent 55%),
    #070b16;
  color: var(--text, #e8eefb);
  min-height: 100vh;
}
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 16px;
  background: rgba(8, 11, 22, 0.72);
  border-right: 1px solid var(--field-border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; text-decoration: none; }
.sidebar-brand img { border-radius: 8px; }
.sidebar-brand span { font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: 3px; font-size: 16px; color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 11px;
  color: var(--muted); font-family: "Outfit", sans-serif; font-weight: 500; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}
.side-link svg { color: var(--muted-dim); transition: color .18s; flex-shrink: 0; }
.side-link:hover { color: #fff; background: rgba(120, 160, 220, 0.06); }
.side-link:hover svg { color: var(--cyan-soft); }
.side-link.is-active { color: #fff; background: rgba(25, 194, 255, 0.12); border-color: rgba(25, 194, 255, 0.3); }
.side-link.is-active svg { color: var(--cyan); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--field-border); }
.side-admin {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px;
  font-family: "Outfit", sans-serif; font-size: 13.5px; font-weight: 600; color: #06121f;
  background: var(--grad-action); background-size: 180% 100%; text-decoration: none;
  transition: background-position .25s, transform .15s;
}
.side-admin:hover { background-position: 100% 50%; transform: translateY(-1px); }
.side-admin[hidden] { display: none; }
.section-title-row[hidden] { display: none; }
.side-user { display: flex; align-items: center; gap: 11px; padding: 4px 6px; }
.avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #19c2ff, #6a5cff);
}
.su-meta { display: flex; flex-direction: column; min-width: 0; }
.su-name { font-size: 14px; color: #eaf2ff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-org { font-size: 12.5px; color: var(--muted-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-signout {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px;
  font-family: "Outfit", sans-serif; font-size: 13.5px; color: var(--muted);
  background: rgba(120, 160, 220, 0.05); border: 1px solid var(--field-border); cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.side-signout:hover { color: #fff; border-color: rgba(255, 45, 120, 0.4); background: rgba(255, 45, 120, 0.08); }

.content { padding: clamp(22px, 3vw, 44px); max-width: 1300px; width: 100%; display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; }
.app .dash { padding: 0; animation: rise .5s ease both; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.section-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 18px; color: #eaf1fb; margin: 0; }
.content-foot { margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(120, 160, 220, 0.08); font-size: 13px; color: var(--muted-dim); }

/* ----- notifications bell ----- */
.bell {
  position: absolute; top: 20px; right: 14px;
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: rgba(120, 160, 220, 0.06);
  border: 1px solid var(--field-border); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.bell:hover { color: #fff; background: rgba(25, 194, 255, 0.1); border-color: rgba(25, 194, 255, 0.4); }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--pink); color: #fff;
  font-family: "Outfit", sans-serif; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #0a0f1d;
}
.bell-panel {
  position: absolute; top: 64px; left: 14px; z-index: 60;
  width: 320px; max-width: calc(100vw - 32px);
  background: #0c1226; border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8); overflow: hidden;
  animation: rise .18s ease both;
}
.bell-head { padding: 14px 16px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 14px; color: #fff; border-bottom: 1px solid var(--field-border); }
.bell-list { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.bell-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; border-radius: 9px; }
.bell-item:hover { background: rgba(120, 160, 220, 0.05); }
.bell-item .act-dot { margin-top: 6px; }
.bell-text { font-size: 13.5px; line-height: 1.45; color: #dbe4f3; display: flex; flex-direction: column; gap: 3px; }
.bell-time { font-size: 12px; color: var(--muted-dim); }
.bell-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13.5px; }
.bell-foot { display: block; padding: 12px 16px; text-align: center; font-size: 13px; font-weight: 600; color: var(--cyan-soft); text-decoration: none; border-top: 1px solid var(--field-border); }
.bell-foot:hover { color: #fff; background: rgba(25, 194, 255, 0.06); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 8px 12px; padding: 14px 16px;
  }
  .bell { top: 12px; }
  .bell-panel { top: 58px; right: 14px; left: auto; }
  .sidebar-brand { padding: 4px 6px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidebar-foot { margin-top: 0; border-top: none; padding-top: 0; flex-direction: row; align-items: center; gap: 10px; width: 100%; }
  .side-user { margin-left: auto; }
  .side-admin span, .side-signout span { display: none; }
}

/* ===================== Portal nav + forms (help / clearances) ========= */
.portal-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--field-border);
}
.nav-link {
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 11px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; border-bottom-color: var(--cyan); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.form-card {
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(12, 18, 36, 0.82), rgba(8, 11, 24, 0.9));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.form-card-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 19px; color: #fff; margin: 0 0 4px; }
.form-card-sub { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-hint { margin: -8px 0 16px; font-size: 12.5px; color: var(--muted-dim); line-height: 1.5; }
.req { color: var(--pink); }
.radio-row { display: flex; gap: 12px; margin: 4px 0 0; }
.radio {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #dbe4f3; cursor: pointer;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(8, 12, 24, 0.6); border: 1px solid var(--field-border);
}
.radio input { accent-color: #19c2ff; }

/* form controls inside .field (no icon) */
.field select, .field textarea {
  width: 100%; box-sizing: border-box; border: none; background: none; outline: none;
  color: #eaf2ff; font-family: "Inter", sans-serif; font-size: 15px; padding: 14px 16px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select { cursor: pointer; -webkit-appearance: none; appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f8db0' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 14px center; }
.field:has(select) , .field:has(textarea) { padding: 0; }

.list-col .form-card-title { margin-bottom: 16px; }
.req-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--field-border);
  margin-bottom: 12px;
}
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.req-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15.5px; color: #f1f5fc; }
.req-body { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.req-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-meta { font-size: 12.5px; color: var(--muted-dim); margin-left: auto; }

/* ----- payment method ----- */
.pay-method { margin-bottom: 30px; }
.pm-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 20px 22px; border-radius: 14px; background: rgba(11,16,32,.7); border: 1px solid var(--field-border); }
.pm-brand { font-family: "Outfit", sans-serif; font-weight: 700; color: #fff; }
.pm-num { font-family: "Outfit", sans-serif; letter-spacing: 2px; color: #dbe4f3; }
.pm-exp { font-size: 13px; color: var(--muted); }
.pm-auto { flex-basis: 100%; font-size: 13px; color: #57e0ad; }
.pm-actions { display: flex; gap: 8px; margin-left: auto; }
.pm-empty { padding: 22px; border-radius: 14px; border: 1px dashed var(--field-border); background: rgba(11,16,32,.4); }
.pm-empty p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.pm-form { padding: 22px; border-radius: 14px; background: rgba(11,16,32,.6); border: 1px solid var(--field-border); max-width: 460px; }
.pm-form .pm-actions { margin-top: 6px; }

/* ----- toggle ----- */
.toggle { display: inline-flex; align-items: center; gap: 8px; font-family: "Inter", sans-serif; font-size: 12.5px; color: var(--muted);
  background: rgba(8,12,24,.6); border: 1px solid var(--field-border); border-radius: 999px; padding: 5px 12px 5px 8px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.toggle .toggle-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-dim); transition: background .2s, box-shadow .2s; }
.toggle.on { color: #fff; border-color: rgba(56,211,159,.5); background: rgba(56,211,159,.1); }
.toggle.on .toggle-dot { background: #38d39f; box-shadow: 0 0 8px rgba(56,211,159,.7); }

/* ----- sub-navigation (mini-app tabs) ----- */
.subnav {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 4px 0 24px; padding-bottom: 0;
  border-bottom: 1px solid var(--field-border);
}
.subnav-link {
  font-family: "Outfit", sans-serif; font-size: 14px; font-weight: 500;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 11px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.subnav-link:hover { color: #fff; }
.subnav-link.is-active { color: #fff; border-bottom-color: var(--cyan); }
.clr-panel { animation: rise .3s ease both; }

/* ----- documents ----- */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(11, 16, 32, 0.6); border: 1px solid var(--field-border);
  transition: border-color .2s, transform .15s;
}
.doc-card:hover { border-color: rgba(25, 194, 255, 0.35); transform: translateY(-1px); }
.doc-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cyan-soft); background: rgba(25, 194, 255, 0.08); border: 1px solid rgba(25, 194, 255, 0.25);
}
.doc-main { flex: 1; min-width: 0; }
.doc-row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.doc-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15.5px; color: #f1f5fc; }
.doc-meta { font-size: 12.5px; color: var(--muted-dim); }
.doc-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.doc-dl {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Outfit", sans-serif; font-size: 13.5px; font-weight: 600; color: #06121f;
  background: var(--grad-action); background-size: 180% 100%; border-radius: 10px; padding: 9px 15px;
  text-decoration: none; transition: background-position .25s, transform .15s;
}
.doc-dl:hover { background-position: 100% 50%; transform: translateY(-1px); }
.doc-ack {
  font-family: "Inter", sans-serif; font-size: 13px; color: var(--cyan-soft);
  background: rgba(25, 194, 255, 0.08); border: 1px solid rgba(25, 194, 255, 0.35);
  border-radius: 10px; padding: 8px 13px; cursor: pointer; transition: background .2s, color .2s;
}
.doc-ack:hover { background: rgba(25, 194, 255, 0.16); color: #fff; }
@media (max-width: 620px) { .doc-card { flex-wrap: wrap; } .doc-actions { width: 100%; } }

/* ----- dashboard overview stats ----- */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.ov-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px; border-radius: 15px; text-decoration: none;
  background: rgba(11, 16, 32, 0.7); border: 1px solid var(--field-border);
  border-top: 2px solid var(--muted-dim);
  transition: transform .15s, border-color .2s, background .2s;
}
.ov-card:hover { transform: translateY(-2px); background: rgba(15, 22, 42, 0.85); }
.ov-card.st-progress { border-top-color: var(--cyan); }
.ov-card.st-open { border-top-color: #8aa0c8; }
.ov-card.st-blocked { border-top-color: var(--pink); }
.ov-card.st-done { border-top-color: #38d39f; }
.ov-value { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 26px; color: #fff; line-height: 1.05; }
.ov-label { font-size: 12.5px; color: var(--muted); }

/* ----- quick links ----- */
.ql-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.ql-card {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 13px;
  background: rgba(11, 16, 32, 0.6); border: 1px solid var(--field-border); text-decoration: none;
  transition: border-color .2s, transform .15s, background .2s;
}
.ql-card:hover { border-color: rgba(25, 194, 255, 0.4); transform: translateX(2px); background: rgba(12, 18, 36, 0.7); }
.ql-icon { font-size: 18px; width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(25, 194, 255, 0.08); border: 1px solid var(--field-border); }
.ql-label { flex: 1; font-family: "Outfit", sans-serif; font-weight: 500; font-size: 14.5px; color: #eaf1fb; }
.ql-arrow { color: var(--muted-dim); transition: color .2s, transform .2s; }
.ql-card:hover .ql-arrow { color: var(--cyan-soft); transform: translateX(2px); }

/* ----- onboarding checklist ----- */
.onboard {
  margin-bottom: 26px; padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(25, 194, 255, 0.08), rgba(106, 92, 255, 0.06) 60%, rgba(9, 12, 26, 0.6));
  border: 1px solid rgba(25, 194, 255, 0.22);
}
.onboard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.onboard-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 18px; color: #fff; margin: 0 0 3px; }
.onboard-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.onboard-prog { text-align: right; font-size: 12.5px; color: var(--muted); min-width: 150px; }
.onboard-bar { display: block; height: 7px; border-radius: 6px; background: rgba(120, 160, 220, 0.16); overflow: hidden; margin-top: 7px; }
.onboard-bar > span { display: block; height: 100%; border-radius: 6px; background: var(--grad-action); transition: width .5s ease; }
.onboard-steps { display: grid; gap: 10px; }
.onboard-step {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 12px;
  background: rgba(8, 12, 24, 0.5); border: 1px solid var(--field-border);
  text-decoration: none; transition: border-color .2s, transform .15s, background .2s;
}
.onboard-step:hover { border-color: rgba(25, 194, 255, 0.45); transform: translateX(2px); background: rgba(12, 18, 36, 0.7); }
.ob-check {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--muted-dim); color: #06121f;
}
.onboard-step.done .ob-check { background: #38d39f; border-color: #38d39f; }
.ob-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ob-label { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 14.5px; color: #eaf1fb; }
.onboard-step.done .ob-label { color: var(--muted); }
.ob-desc { font-size: 12.5px; color: var(--muted-dim); }
.ob-go { font-size: 13px; font-weight: 600; color: var(--cyan-soft); white-space: nowrap; }
.ob-tag { font-size: 12px; color: #57e0ad; white-space: nowrap; }

/* ----- billing ----- */
.bill-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 30px; }
.bill-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: 16px;
  background: rgba(11, 16, 32, 0.7); border: 1px solid var(--field-border);
  border-top: 2px solid var(--muted-dim);
}
.bill-card.warn { border-top-color: var(--cyan); }
.bill-card.bad { border-top-color: var(--pink); }
.bill-card.ok { border-top-color: #38d39f; }
.bill-card.plain { border-top-color: #8aa0c8; }
.bill-label { font-size: 12.5px; letter-spacing: .3px; color: var(--muted); }
.bill-value { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 26px; color: #fff; line-height: 1.05; }
.bill-card.bad .bill-value { color: #ff8fa6; }
.bill-subv { font-size: 12.5px; color: var(--muted-dim); }
.acp-table .num, .acp-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-actions { display: flex; gap: 8px; justify-content: flex-end; }
.inv-actions .doc-dl { padding: 7px 14px; font-size: 13px; }
.inv-actions .acp-edit { padding: 6px 12px; }
.bill-note { margin: 18px 2px 0; font-size: 13px; color: var(--muted-dim); }
.bill-note a { color: var(--cyan-soft); text-decoration: none; }
.bill-note a:hover { color: #fff; }

/* ----- recent activity timeline ----- */
.activity { list-style: none; margin: 0 0 6px; padding: 0; }
.act-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 4px; border-bottom: 1px solid rgba(120, 160, 220, 0.07);
}
.act-item:last-child { border-bottom: none; }
.act-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--muted-dim); }
.act-work { background: var(--cyan); }
.act-support { background: #5fd6ff; }
.act-clearance { background: #57e0ad; }
.act-document { background: #6a5cff; }
.act-team { background: var(--pink); }
.act-billing { background: #ffb347; }
.act-text { flex: 1; min-width: 0; font-size: 14px; color: #dbe4f3; }
.act-time { font-size: 12.5px; color: var(--muted-dim); white-space: nowrap; }

/* ----- available services (quiet discovery) ----- */
.section-note { font-size: 13px; color: var(--muted-dim); }
.acp-edit.danger { color: #ff8fa6; background: rgba(255,45,120,.08); border-color: rgba(255,45,120,.35); }
.acp-edit.danger:hover { background: rgba(255,45,120,.18); color: #fff; border-color: rgba(255,45,120,.6); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc-card {
  display: flex; flex-direction: column;
  padding: 22px; border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 24, 48, 0.7), rgba(9, 12, 26, 0.85));
  border: 1px solid var(--card-border);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.svc-card:hover { border-color: rgba(25, 194, 255, 0.4); transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7); }
.svc-tag {
  align-self: flex-start; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--cyan-soft); background: rgba(25, 194, 255, 0.1); border: 1px solid rgba(25, 194, 255, 0.3);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 14px;
}
.svc-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 17px; color: #fff; margin: 0 0 8px; }
.svc-desc { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; flex: 1; }
.svc-btn {
  align-self: flex-start;
  font-family: "Outfit", sans-serif; font-size: 13.5px; font-weight: 600; color: var(--cyan-soft);
  background: transparent; border: 1px solid rgba(25, 194, 255, 0.45);
  border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.svc-btn:hover { background: rgba(25, 194, 255, 0.1); color: #fff; border-color: rgba(25, 194, 255, 0.8); }
.svc-btn:disabled { opacity: .8; cursor: default; }
.svc-btn.solid { color: #06121f; background: var(--grad-action); background-size: 180% 100%; border: none; text-decoration: none; }
.svc-btn.solid:hover { background-position: 100% 50%; color: #06121f; }
.svc-card.on { border-color: rgba(56, 211, 159, 0.3); }
.svc-tag.on { color: #57e0ad; background: rgba(56, 211, 159, 0.1); border-color: rgba(56, 211, 159, 0.35); }
.svc-active-tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #57e0ad; }
.svc-card { position: relative; }
.svc-card.soon { opacity: .85; }
.soon-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700;
  color: #ffd27a; background: rgba(255, 179, 71, 0.12); border: 1px solid rgba(255, 179, 71, 0.4);
  border-radius: 999px; padding: 3px 9px;
}

/* ----- account team cards ----- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; }
.tm-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border-radius: 15px; background: rgba(11, 16, 32, 0.7); border: 1px solid var(--field-border);
}
.tm-avatar {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, #19c2ff, #6a5cff);
}
.tm-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-name { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15.5px; color: #f1f5fc; }
.tm-role { font-size: 13px; color: var(--muted); }
.tm-actions { display: flex; gap: 8px; flex-shrink: 0; }
.tm-btn {
  font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: 8px 13px; border-radius: 9px; color: var(--cyan-soft);
  background: rgba(25, 194, 255, 0.08); border: 1px solid rgba(25, 194, 255, 0.35);
  transition: background .2s, color .2s, border-color .2s;
}
.tm-btn:hover { background: rgba(25, 194, 255, 0.16); color: #fff; }
.tm-btn.solid { color: #06121f; background: var(--grad-action); background-size: 180% 100%; border: none; }
.tm-btn.solid:hover { background-position: 100% 50%; color: #06121f; }

/* ----- chat widget ----- */
#chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--cyan-soft);
  background: rgba(13, 20, 34, 0.96); border: 1px solid rgba(25, 194, 255, 0.4);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.75);
  transition: transform .2s, background .2s, border-color .2s;
}
#chat-fab:hover { transform: translateY(-2px); background: rgba(25, 194, 255, 0.12); border-color: rgba(25, 194, 255, 0.7); color: #fff; }
#chat-fab.active { transform: scale(.96); }
#chat-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 70;
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #0b1020; border: 1px solid var(--card-border); border-radius: 18px;
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.8); animation: rise .2s ease both;
}
#chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: #0c1224; border-bottom: 1px solid var(--field-border); }
.chat-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15px; color: #fff; }
.chat-sub { font-size: 12px; color: var(--muted-dim); margin-top: 2px; }
.chat-x { background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.chat-x:hover { color: #fff; }
.chat-to { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--field-border); }
.chat-to label { font-size: 12.5px; color: var(--muted-dim); }
.chat-to select { flex: 1; background: rgba(8,12,24,.7); color: #eaf2ff; border: 1px solid var(--field-border); border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13.5px; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-who { font-size: 11.5px; color: var(--cyan-soft); margin: 0 4px 3px; }
.chat-bubble { padding: 9px 13px; border-radius: 13px; font-size: 14px; line-height: 1.45; color: #e8eefb; background: rgba(120,160,220,.1); border: 1px solid var(--field-border); }
.chat-msg.mine .chat-bubble { color: #eaf2ff; background: rgba(25, 194, 255, 0.12); border: 1px solid rgba(25, 194, 255, 0.28); }
.chat-time { font-size: 11px; color: var(--muted-dim); margin: 3px 4px 0; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--field-border); }
.chat-form input { flex: 1; background: rgba(8,12,24,.7); border: 1px solid var(--field-border); border-radius: 10px; padding: 11px 13px; color: #eaf2ff; font-size: 14px; outline: none; }
.chat-form input:focus { border-color: rgba(25,194,255,.55); }
.chat-form button { width: 42px; flex-shrink: 0; border: 1px solid rgba(25, 194, 255, 0.35); border-radius: 10px; cursor: pointer; color: var(--cyan-soft); background: rgba(25, 194, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.chat-form button:hover { background: rgba(25, 194, 255, 0.18); color: #fff; }
@media (max-width: 620px) { #chat-fab { right: 16px; bottom: 16px; } #chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; } }

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .form-grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .dash-org { display: none; }
  .dash-stats { width: 100%; }
  .stat { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  #network-canvas { display: none; }
}
