/* ==========================================================================
   越海 GEO (YUEHAI GEO) — Design System & Layout Styles
   Exact design tokens matched to the original workbench
   ========================================================================== */

:root {
  --font-body: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Bahnschrift", "Segoe UI Semibold", "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 越海领航官网 (yktiktok.com) 配色体系 */
  --navy-deep: #050f22;
  --navy: #071a33;
  --navy-mid: #0b2550;
  --navy-bright: #0b2a66;

  --brand: #1f5eff;
  --brand-deep: #1548d6;
  --brand-dark: #0052d9;
  --brand-sky: #7fb0ff;
  --brand-soft: rgba(31, 94, 255, 0.12);
  --brand-ring: rgba(31, 94, 255, 0.28);

  --accent: #12b5a6;
  --accent-2: #ff8a24;
  --accent-3: #ffbe55;
  --success: #12b5a6;
  --warning: #f59e0b;
  --danger: #e11d48;
  --purple: #7c3aed;

  --bg: #f5f8fc;
  --bg-soft: #eef3fb;
  --card: #ffffff;
  --fg: #14213d;
  --fg-heading: #14213d;
  --fg-muted: #64748b;
  --fg-subtle: #64748b;
  --border: #e3e8f0;
  --border-card: #e3e8f0;

  --shadow: 0 16px 40px rgba(7, 26, 51, 0.08);
  --shadow-card: 0 8px 24px rgba(7, 26, 51, 0.05);
  --shadow-panel: 0 12px 32px rgba(7, 26, 51, 0.07);
  --shadow-hero: 0 24px 60px rgba(5, 15, 34, 0.34);

  --radius-hero: 24px;
  --radius-panel: 20px;
  --radius-card: 18px;
  --radius-box: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;

  --sidebar-w: 216px;
  --sidebar-collapsed-w: 58px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 75%; /* 1rem = 12px, exact match */
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 10% 0%, #f2f6ff 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 92% 8%, #edf4ff 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 50% 100%, #f5f9ff 0%, transparent 65%),
    linear-gradient(rgba(7, 26, 51, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 51, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   LOGIN / REGISTER PAGE (Split-Screen Dark Teal + Off-White)
   ========================================================================== */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #f8faf9;
}

.auth-brand-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px 48px;
  background:
    radial-gradient(circle at 82% 14%, rgba(31, 94, 255, 0.28), transparent 45%),
    radial-gradient(circle at 18% 88%, rgba(18, 181, 166, 0.16), transparent 50%),
    linear-gradient(155deg, #050f22 0%, #071a33 52%, #0b2550 100%);
  color: #dbe8ff;
  overflow: hidden;
}

.auth-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f5eff 0%, #0052d9 62%, #f45b25 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(31, 94, 255, 0.35);
}

.auth-brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.auth-brand-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7fb0ff;
  margin-top: 2px;
}

.auth-hero-copy {
  margin: auto 0;
  padding: 40px 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7fb0ff;
  margin-bottom: 18px;
}

.auth-kicker::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: #1f5eff;
}

.auth-headline {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
}

.auth-pillars {
  display: grid;
  gap: 16px;
  max-width: 460px;
}

.auth-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(127, 176, 255, 0.18);
}

.auth-pillar-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #7fb0ff;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.22);
  flex-shrink: 0;
}

.auth-pillar-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.auth-pillar-desc {
  font-size: 12px;
  color: #bcd0ee;
}

.auth-brand-footer {
  font-size: 12px;
  color: #8fa0ba;
}

.auth-form-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px 32px;
  background: #f5f8fc;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f2f38;
  margin: 0 0 6px;
}

.auth-form-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0 0 28px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d7e2ea;
  background: #ffffff;
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.auth-eye-btn:hover {
  color: var(--fg);
  background: rgba(15, 55, 95, 0.05);
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f5eff, #1548d6);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(31, 94, 255, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.auth-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 94, 255, 0.34);
}

.auth-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-muted);
}

.auth-link {
  color: var(--brand-deep);
  font-weight: 600;
}

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

.auth-demo-tip {
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(31, 94, 255, 0.07);
  border: 1px dashed rgba(31, 94, 255, 0.3);
  font-size: 12px;
  color: #14213d;
}

.auth-copyright {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   APP SHELL & SIDEBAR
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar-shell {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.82));
  backdrop-filter: blur(22px) saturate(1.25);
  border-right: 1px solid var(--border);
  z-index: 40;
  transition: width 0.2s ease;
}

.sidebar-shell.is-collapsed {
  width: var(--sidebar-collapsed-w);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px;
  gap: 8px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
}

.sidebar-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1f5eff 0%, #0052d9 65%, #f45b25 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 94, 255, 0.3);
}

.auth-logo-pill {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(5, 15, 34, 0.3), 0 0 0 1px rgba(227, 232, 240, 0.9);
}

.auth-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.sidebar-logo-pill {
  background: #ffffff;
  border-radius: 10px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(7, 26, 51, 0.08), 0 0 0 1px #e3e8f0;
  flex-shrink: 0;
}

.sidebar-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.sidebar-shell.is-collapsed .sidebar-logo-pill {
  padding: 3px 4px;
}

.sidebar-shell.is-collapsed .sidebar-logo-img {
  height: 22px;
  max-width: 34px;
}

.sidebar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1f5eff;
  background: rgba(31, 94, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.sidebar-collapse-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: rgba(15, 55, 95, 0.06);
  color: var(--fg);
}

.sidebar-shell.is-collapsed .sidebar-title,
.sidebar-shell.is-collapsed .sidebar-market-wrap,
.sidebar-shell.is-collapsed .nav-group-label,
.sidebar-shell.is-collapsed .nav-link-text,
.sidebar-shell.is-collapsed .sidebar-footer-text {
  display: none;
}

.sidebar-shell.is-collapsed .sidebar-top {
  flex-direction: column;
  padding: 12px 8px;
}

/* Market Switcher */
.sidebar-market-wrap {
  padding: 4px 12px 10px;
}

.market-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 55, 95, 0.06);
  border: 1px solid rgba(15, 55, 95, 0.07);
}

.market-btn {
  border: none;
  background: transparent;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all 0.16s;
}

.market-btn.active {
  background: #ffffff;
  color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(15, 55, 95, 0.08);
}

/* Sidebar Nav Scroll */
.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 16px;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 55, 95, 0.14);
  border-radius: 99px;
}

.nav-group {
  margin-top: 10px;
}

.nav-group:first-child {
  margin-top: 2px;
}

.nav-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #7c8da1;
  letter-spacing: 0.03em;
}

.nav-group-label svg {
  width: 12px;
  height: 12px;
  opacity: 0.75;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: background 0.15s, color 0.15s;
}

.nav-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #64748b;
}

.nav-link:hover {
  background: rgba(31, 94, 255, 0.08);
  color: var(--brand);
}

.nav-link:hover svg {
  color: var(--brand);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.14), rgba(18, 181, 166, 0.08));
  color: var(--brand);
  font-weight: 600;
}

.nav-link.active svg {
  color: var(--brand);
}

.sidebar-shell.is-collapsed .nav-link {
  justify-content: center;
  padding: 9px 0;
}

.sidebar-footer {
  padding: 10px 10px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
}

.sidebar-logout-btn:hover {
  background: rgba(225, 29, 72, 0.07);
  color: var(--danger);
}

/* Main Content Area */
.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding: 20px 26px 48px;
  transition: margin-left 0.2s ease;
}

.app-main.is-collapsed {
  margin-left: var(--sidebar-collapsed-w);
}

.app-content {
  max-width: 1340px;
  margin: 0 auto;
}

/* ==========================================================================
   BUTTONS, BADGES, INPUTS, COMMON COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.btn-xs {
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #1f5eff, #1548d6);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 94, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-light {
  background: linear-gradient(135deg, #ffbe55, #ff8a24);
  color: #3a1600;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 138, 36, 0.45), 0 0 0 1px rgba(255, 210, 120, 0.35);
}

.btn-light:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(127, 176, 255, 0.42);
  color: #dbe8ff;
  backdrop-filter: blur(8px);
}

.btn-on-dark:hover {
  background: rgba(31, 94, 255, 0.32);
  border-color: #7fb0ff;
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  border-color: #e3e8f0;
  color: #14213d;
}

.btn-ghost:hover {
  border-color: #1f5eff;
  color: #1f5eff;
  background: #f2f6ff;
}

.btn-danger-ghost {
  background: #ffffff;
  border-color: rgba(225, 29, 72, 0.25);
  color: var(--danger);
}

.btn-danger-ghost:hover {
  background: #fff1f2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.pill-teal { background: rgba(18, 181, 166, 0.13); color: #0b7a70; }
.pill-blue { background: rgba(31, 94, 255, 0.11); color: #1f5eff; }
.pill-amber { background: rgba(255, 138, 36, 0.14); color: #b45309; }
.pill-coral { background: rgba(244, 91, 37, 0.13); color: #c2410c; }
.pill-purple { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.pill-green { background: rgba(18, 181, 166, 0.14); color: #0b7a70; }
.pill-red { background: rgba(225, 29, 72, 0.12); color: #be123c; }
.pill-gray { background: rgba(100, 116, 139, 0.12); color: #475569; }

/* Standard Page Header */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 4px;
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg-heading);
  line-height: 1.25;
}

.page-subtitle {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Panels & Cards */
.panel {
  background: linear-gradient(165deg, #ffffff, #f8fbfc);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.panel-accent-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f5eff, #12b5a6 78%, #7c3aed);
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}

/* Form Controls */
.input, .select, .textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d5e0ea;
  background: #ffffff;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f6f9fc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef2f6;
  color: #1e293b;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fcff;
}

/* ==========================================================================
   DASHBOARD PAGE (/dashboard)
   ========================================================================== */
.hero-stage {
  position: relative;
  border-radius: var(--radius-hero);
  padding: 26px 28px;
  background:
    radial-gradient(circle at 86% 22%, rgba(31, 94, 255, 0.36), transparent 44%),
    radial-gradient(circle at 14% 92%, rgba(18, 181, 166, 0.2), transparent 46%),
    linear-gradient(128deg, #050f22 0%, #071a33 42%, #0b2550 76%, #0b2a66 100%);
  color: #ffffff;
  box-shadow: var(--shadow-hero);
  margin-bottom: 18px;
  overflow: hidden;
}

.ops-hero-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 24px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.22);
  border: 1px solid rgba(127, 176, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7fb0ff;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.hero-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #c9daf3;
  max-width: 680px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-account-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  color: var(--fg);
  border-radius: 20px;
  padding: 18px 20px 18px 24px;
  box-shadow: 0 18px 40px rgba(5, 15, 34, 0.32);
  overflow: hidden;
}

.ops-account-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff8a24, #1f5eff, #12b5a6);
}

.ops-account-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
}

.ops-account-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ops-account-metric-label {
  font-size: 11px;
  color: #64748b;
}

.ops-account-metric-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #0f2f38;
  margin-top: 2px;
}

/* KPI Row */
.ops-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 0 0 4px 4px;
}

.kpi-card.tone-0::before { background: #1f5eff; }
.kpi-card.tone-1::before { background: #12b5a6; }
.kpi-card.tone-2::before { background: #ff8a24; }
.kpi-card.tone-3::before { background: #ffbe55; }
.kpi-card.tone-4::before { background: #7c3aed; }

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #0f2f38;
  margin: 4px 0 3px;
  line-height: 1.2;
}

.kpi-hint {
  font-size: 12px;
  color: #8494a7;
}

/* GEO Path Section */
.ops-macro-flow {
  background: #f8fbfd;
  border: 1px solid #e2ecf4;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.ops-macro-grid {
  display: grid;
  grid-template-columns: 1fr 24px 1.25fr 24px 1fr;
  align-items: stretch;
  gap: 6px;
  margin-top: 12px;
}

.ops-macro-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
  font-size: 16px;
}

.ops-macro-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2ecf4;
  border-radius: 14px;
  padding: 14px 15px;
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}

.ops-macro-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 168, 148, 0.1);
}

.ops-macro-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ops-macro-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1f5eff;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.ops-macro-loop-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  color: #475569;
}

.ops-demo-path-body {
  display: grid;
  grid-template-columns: 1fr 252px;
  gap: 18px;
  align-items: start;
}

.ops-path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ops-step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  transition: all 0.16s ease;
}

.ops-step-card:hover {
  border-color: rgba(0, 168, 148, 0.45);
  box-shadow: 0 8px 22px rgba(15, 55, 95, 0.06);
  transform: translateX(2px);
}

.ops-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f5eff, #1548d6);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 94, 255, 0.28);
}

.ops-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ops-step-icon svg {
  width: 18px;
  height: 18px;
}

.ops-step-body {
  flex: 1;
  min-width: 0;
}

.ops-step-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ops-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f2f38;
}

.ops-step-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.ops-step-bullets {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 12px;
  color: #526378;
}

.ops-rail-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-rail-card {
  background: #f8fbfd;
  border: 1px solid #e2ecf4;
  border-radius: 16px;
  padding: 15px 16px;
}

.ops-rail-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f2f38;
  margin: 0 0 6px;
}

.ops-rail-desc {
  font-size: 12px;
  color: #5b6b82;
  line-height: 1.6;
  margin: 0 0 12px;
}

.ops-chart-placeholder {
  margin-top: 18px;
  padding: 36px 20px;
  text-align: center;
  border-radius: var(--radius-panel);
  border: 1px dashed #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   MEDIA HUB (/distributions)
   ========================================================================== */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}

.tab-btn:hover {
  background: #ffffff;
  color: var(--brand-deep);
}

.tab-btn.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 168, 148, 0.25);
}

.media-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.media-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.16s ease;
}

.media-hub-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 168, 148, 0.12);
}

.media-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.media-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
}

.media-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0f2f38;
}

.media-card-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deep);
}

/* ==========================================================================
   SPLIT WORKBENCH PAGES (Keyword Smart, Brand Strategies, Visibility, Monitoring)
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: start;
}

.split-grid-65 {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  align-items: start;
}

.onboarding-card {
  background: linear-gradient(165deg, #ffffff, #f5fbff);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-panel);
  padding: 26px 24px;
  box-shadow: var(--shadow-panel);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #334155;
}

.check-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 168, 148, 0.14);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Progress Bars */
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e9f0f6;
  overflow: hidden;
}

.bar-fill-teal {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f5eff, #12b5a6);
}

.bar-fill-blue {
  height: 100%;
  border-radius: 999px;
  background: #93c5fd;
}

/* ==========================================================================
   AI LEAD HUNTING CHAT WORKSPACE (/lead-hunting)
   ========================================================================== */
.lead-workspace {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  min-height: calc(100vh - 105px);
}

.lead-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  height: fit-content;
  box-shadow: var(--shadow-card);
}

.lead-rail-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-rail-btn:hover, .lead-rail-btn.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.lead-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-hero);
  padding: 36px 28px;
  box-shadow: var(--shadow-panel);
}

.spark-orb {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #7fb0ff, #1f5eff 55%, #7c3aed 100%);
  box-shadow: 0 0 28px rgba(31, 94, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 10px;
}

.lead-composer {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid #d5e2ee;
  border-radius: 18px;
  padding: 16px 18px 12px;
  box-shadow: 0 12px 30px rgba(15, 55, 95, 0.08);
  margin: 18px 0 16px;
}

/* ==========================================================================
   FLOATING SUPPORT DOCK, MODALS, TOASTS
   ========================================================================== */
.support-dock-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(127, 176, 255, 0.45);
  background: linear-gradient(135deg, #1f5eff, #12b5a6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(31, 94, 255, 0.36);
  z-index: 60;
  transition: transform 0.16s;
}

.support-dock-fab:hover {
  transform: scale(1.06);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.24);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-heading);
}

.modal-close {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 6px;
  border-radius: 8px;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.toast-root {
  position: fixed;
  top: 18px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 120;
}

.toast-item {
  padding: 10px 16px;
  border-radius: 12px;
  background: #0f2f38;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(15, 47, 56, 0.25);
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid Helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--fg-muted); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 1080px) {
  .ops-hero-grid, .ops-demo-path-body, .split-grid, .split-grid-65, .auth-shell {
    grid-template-columns: 1fr;
  }
  .ops-macro-grid {
    grid-template-columns: 1fr;
  }
  .ops-macro-arrow {
    transform: rotate(90deg);
  }
  .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar-shell {
    width: var(--sidebar-collapsed-w);
  }
  .app-main {
    margin-left: var(--sidebar-collapsed-w);
    padding: 14px 14px 40px;
  }
  .ops-stats, .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}
