/* ═══════════════════════════════════════════════════════════
   ContractsIQ.ai — Brand Identity Styles
   Brand Guidelines v2.0 | February 2026
   ───────────────────────────────────────────────────────────
   PRIMARY PALETTE (60-30-10 Rule)
   60% — White #FFFFFF + Light Gray #f8fafc  (backgrounds, whitespace)
   30% — Deep Navy #102850 + Slate #64748b   (text, headers, UI elements)
   10% — Brand Teal #00b8b8                  (CTAs, highlights, accents only)
   ───────────────────────────────────────────────────────────
   TYPE SCALE (Inter)
   H1  Bold 700  48px  Navy   — page titles, hero headlines
   H2  Bold 700  36px  Navy   — section headers
   H3  SemiBold 600  24px  Navy   — card titles
   H4  Medium 500  20px  Slate  — subtitles, prominent labels
   Body Regular 400  16px  Slate  line-height 1.6
   Small Regular 400  14px  Slate  — captions, meta
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Core Brand — ContractsIQ v2 palette from logo */
  --primary:        #102850;   /* Brand Navy — authority, trust */
  --primary-dark:   #0a1c3a;   /* Deeper Navy — gradients, hover */
  --accent:         #00b8b8;   /* Brand Teal — action colour (10%) */
  --accent-dark:    #009999;   /* Brand Teal hover/active */
  --accent-light:   #e0f7f7;   /* Teal 10% tint — hover backgrounds */
  --accent-subtle:  rgba(0,184,184,0.08);

  /* Neutral Palette */
  --slate:          #64748b;   /* Slate Gray — secondary text */
  --slate-light:    #94a3b8;   /* Lighter slate */
  --surface:        #ffffff;   /* Pure White — cards */
  --bg:             #f8fafc;   /* Light Gray — page background */
  --bg-subtle:      #f1f5f9;   /* Slightly darker surface */

  /* Text */
  --text:           #102850;   /* Brand Navy — primary text */
  --text-muted:     #64748b;   /* Slate Gray — secondary text */
  --text-faint:     #94a3b8;   /* Light slate — placeholders */

  /* Semantic */
  --success:        #16a34a;   /* Green — healthy, positive */
  --success-bg:     #f0fdf4;
  --danger:         #dc2626;   /* Red — risk, alert */
  --danger-bg:      #fef2f2;
  --warning:        #f59e0b;   /* Amber — caution */
  --warning-bg:     #fffbeb;

  /* Borders & Shadows — Navy-tinted for brand coherence */
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;

  /* Radius */
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      20px;

  /* Shadows — Navy-tinted per brand */
  --shadow-sm:      0 1px 2px rgba(16,40,80,0.06);
  --shadow:         0 1px 3px rgba(16,40,80,0.07), 0 4px 16px rgba(16,40,80,0.05);
  --shadow-md:      0 4px 12px rgba(16,40,80,0.10);
  --shadow-lg:      0 8px 32px rgba(16,40,80,0.14);

  /* Sidebar */
  --sidebar-bg:          #102850;           /* Brand navy */
  --sidebar-active:      rgba(0,184,184,0.18); /* Teal active highlight */
  --sidebar-active-text: #00d4d4;            /* Bright teal for active link */
  --sidebar-text:        rgba(255,255,255,0.55);
  --sidebar-text-hover:  rgba(255,255,255,0.92);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Type Scale ─────────────────────────────────────────── */
h1 { font-size: 48px; font-weight: 700; color: var(--text); letter-spacing: -1.5px; line-height: 1.08; }
h2 { font-size: 36px; font-weight: 700; color: var(--text); letter-spacing: -1px;   line-height: 1.15; }
h3 { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.5px; line-height: 1.3; }
h4 { font-size: 20px; font-weight: 500; color: var(--text-muted); }
p  { font-size: 16px; font-weight: 400; color: var(--text-muted); line-height: 1.6; }
small, .text-small { font-size: 14px; font-weight: 400; color: var(--text-muted); }

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: 260px; min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed; top: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column;
  box-shadow: 2px 0 20px rgba(26,43,74,0.18);
}

/* Logo — "Contracts" wordmark + Electric Blue IQ badge */
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo .logo-text {
  font-size: 20px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px; line-height: 1;
}
.sidebar-logo .logo-iq {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 5px; margin-left: 3px;
  vertical-align: middle; line-height: 1.4;
}
.sidebar-logo .logo-sub {
  font-size: 10px; color: rgba(255,255,255,0.32);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 5px;
}

.sidebar-nav { flex: 1; padding: 14px 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); text-decoration: none;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s; margin-bottom: 2px;
}
.sidebar-nav a:hover  { background: rgba(255,255,255,0.07); color: var(--sidebar-text-hover); }
.sidebar-nav a.active { background: var(--sidebar-active); color: var(--sidebar-active-text); }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.sidebar-section {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.22); text-transform: uppercase;
  letter-spacing: 1.5px; padding: 16px 14px 6px;
}
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.org-badge {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.org-avatar {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 12px; flex-shrink: 0;
}
.org-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.org-plan { font-size: 11px; color: rgba(255,255,255,0.32); }

/* ─── Main Layout ────────────────────────────────────────── */
/* app-main width is set via inline style (calc(100vw - sidebarW))            */
/* The sidebar is position:fixed so margin-left + explicit width is required  */
#app-main {
  box-sizing: border-box;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Page header must not exceed its container */
.page-header {
  width: 100%;
  box-sizing: border-box;
}

/* page-body fills the available width */
.page-body {
  width: 100%;
  box-sizing: border-box;
}

/* ─── Fluid Dashboard Grids ─────────────────────────────── */
/* 2-col: collapses to 1 col below 900px */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
/* 2-col asymmetric (content + sidebar): collapses to 1 col below 1100px */
.grid-2col-aside {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
/* 4-col metrics strip: wraps to 2-col below 900px */
.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .grid-2col-aside { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-2col { grid-template-columns: 1fr; }
  .grid-4col { grid-template-columns: repeat(2, 1fr); }
}

/* Page Header — White bar, sticky, high-contrast on content */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
  width: 100%; box-sizing: border-box;
}
.page-title    { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.page-subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.page-body     { padding: 28px 32px; width: 100%; box-sizing: border-box; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.card-body  { padding: 20px; }

/* ─── Stat Tiles ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-icon  { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 12px; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.5px; }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-card .stat-change { font-size: 11px; margin-top: 6px; font-weight: 600; }
.stat-card.danger  { border-left: 3px solid var(--danger); }
.stat-card.warning { border-left: 3px solid var(--warning); }
.stat-card.success { border-left: 3px solid var(--success); }
.stat-card.primary { border-left: 3px solid var(--accent); }

/* ─── Buttons (v1.2 spec) ────────────────────────────────── */
/*
  Primary:   Bg #00b8b8, White text, radius 8px → hover #009999
  Secondary: Border 2px #00b8b8, transparent → hover fill #00b8b8
  Tertiary:  No border/bg, text #00b8b8 → hover underline/darker
*/
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  border: none; text-decoration: none;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(0,184,184,0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,184,184,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-tertiary {
  background: none; border: none;
  color: var(--accent); font-weight: 500;
}
.btn-tertiary:hover { color: var(--accent-dark); text-decoration: underline; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover  { background: #b91c1c; }
.btn-sm      { padding: 5px 11px; font-size: 12px; }
.btn-ghost   { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); border-color: var(--slate-light); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Upload Zone ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #cbd5e1; border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent); background: var(--accent-light);
}
.upload-icon { font-size: 48px; color: #cbd5e1; margin-bottom: 16px; transition: color 0.2s; }
.upload-zone:hover .upload-icon { color: var(--accent); }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; gap: 4px;
  white-space: nowrap;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-navy   { background: var(--accent-light); color: var(--primary); }
.badge-green  { background: var(--success-bg); color: #065f46; }
.badge-red    { background: var(--danger-bg); color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray   { background: var(--bg-subtle); color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ─── Risk Flags ─────────────────────────────────────────── */
.risk-flag {
  border-radius: var(--radius-sm); padding: 12px 14px;
  margin-bottom: 8px; border-left: 3px solid;
}
.risk-flag.high   { background: var(--danger-bg);  border-color: var(--danger); }
.risk-flag.medium { background: var(--warning-bg); border-color: var(--warning); }
.risk-flag.low    { background: var(--success-bg); border-color: var(--success); }
.risk-flag .risk-title { font-size: 13px; font-weight: 700; color: var(--text); }
.risk-flag .risk-desc  { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

/* ─── Health Score Ring ──────────────────────────────────── */
.health-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.health-ring svg { transform: rotate(-90deg); }
.health-ring .score-text { position: absolute; font-size: 22px; font-weight: 800; font-family: 'Inter', sans-serif; }

/* ─── Contract Table ─────────────────────────────────────── */
.contracts-table { width: 100%; border-collapse: collapse; }
.contracts-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); font-weight: 600;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.contracts-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--border-light);
  font-size: 13.5px; vertical-align: middle;
}
.contracts-table tr:hover td   { background: #f8fafc; }
.contracts-table tr.flagged td { background: #fff8f8; }
.vendor-cell   { display: flex; align-items: center; gap: 10px; }
.vendor-avatar {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0;
}

/* ─── Progress Bar ───────────────────────────────────────── */
.progress-bar  { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 0.5s ease; }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,43,74,0.55);
  z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 800px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 10;
}
.modal-body   { padding: 24px; }
.modal-close  { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: var(--radius-sm); }
.modal-close:hover { background: var(--bg); color: var(--text); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input  {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; outline: none; transition: border 0.15s;
  font-family: 'Inter', sans-serif; color: var(--text);
  background: var(--surface);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,184,184,0.10); }
.form-input::placeholder { color: var(--text-faint); }

/* ─── Loading ────────────────────────────────────────────── */
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.92); z-index: 300;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.loading-text { font-size: 15px; font-weight: 600; color: var(--text-muted); }

/* ─── Charts ─────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ─── Timeline ───────────────────────────────────────────── */
.timeline-item   { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.timeline-dot    { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.timeline-date   { font-size: 11px; color: var(--text-muted); min-width: 80px; }
.timeline-content { flex: 1; }

/* ─── Empty State ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon  { font-size: 52px; color: #cbd5e1; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); }
.empty-desc  { font-size: 14px; color: var(--text-muted); margin-top: 6px; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   Guidelines v1.2: white/minimal nav, hero gradient Navy→DarkNavy,
   dual CTAs (solid + outlined), trust indicators, premium utility aesthetic
   ═══════════════════════════════════════════════════════════ */
.landing { background: var(--primary); min-height: 100vh; }

/* Navigation — minimal WHITE bar per v1.2 spec */
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 52px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.landing-logo-text {
  font-size: 22px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.5px;
}
.landing-logo-iq {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 900;
  padding: 2px 7px; border-radius: 5px; margin-left: 2px;
  vertical-align: middle;
}
.landing-nav-links { display: flex; gap: 28px; align-items: center; }
.landing-nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.15s;
}
.landing-nav-links a:hover { color: var(--text); }

/* Hero — Navy→DarkNavy gradient, centred layout */
.hero {
  padding: 96px 52px 80px; text-align: center;
  background: linear-gradient(180deg, #102850 0%, #0a1c3a 100%);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,184,184,0.15); color: #00d4d4;
  border: 1px solid rgba(0,184,184,0.30);
  padding: 6px 16px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 28px;
}
/* H1 hero — 48px Bold Navy (white on dark bg) per v1.2 */
.hero h1 {
  font-size: 48px; font-weight: 700; color: #fff;
  line-height: 1.08; letter-spacing: -1.5px;
  max-width: 820px; margin: 0 auto 24px;
}
.hero h1 span { color: #00d4d4; }  /* Electric Blue accent word */
.hero p {
  font-size: 17px; color: rgba(255,255,255,0.55);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.75;
}
/* Dual CTAs: primary solid + secondary outlined */
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-hero {
  padding: 14px 32px; font-size: 15px; border-radius: 8px;
  font-weight: 700; cursor: pointer; border: none;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.btn-hero-primary { background: var(--accent); color: #fff; }
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,184,184,0.5);
}
/* Secondary: transparent + white border (outlined on dark bg) */
.btn-hero-outline {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-hero-outline:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}
/* Trust indicators below CTAs */
.hero-trust {
  margin-top: 56px; display: flex; align-items: center;
  justify-content: center; gap: 32px; flex-wrap: wrap;
}
.hero-trust-item {
  font-size: 12px; color: rgba(255,255,255,0.32);
  font-weight: 500; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 6px;
}
.hero-trust-item i { color: rgba(0,184,184,0.6); }

/* Features section — dark navy background */
.features-section { padding: 80px 52px; background: #0a1c3a; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
/* Feature cards — Electric Blue icon in white circle per v1.2 */
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(0,184,184,0.35); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent); margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.feature-title { font-size: 15px; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; }
.feature-desc  { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.65; }

/* Pricing section */
.pricing-section { padding: 80px 52px; background: #102850; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 28px; text-align: center;
  transition: transform 0.2s;
}
/* Professional tier — elevated with Electric Blue border per v1.2 */
.pricing-card.popular {
  border-color: var(--accent);
  background: rgba(0,184,184,0.10);
  position: relative;
  transform: scale(1.02);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 14px;
  border-radius: 99px; letter-spacing: 1px;
}
.pricing-name  { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.pricing-price { font-size: 42px; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -1px; }
.pricing-price span { font-size: 17px; font-weight: 400; color: rgba(255,255,255,0.38); }
.pricing-desc  { font-size: 12px; color: rgba(255,255,255,0.38); margin: 8px 0 20px; }
.pricing-features { list-style: none; text-align: left; }
.pricing-features li {
  font-size: 13px; color: rgba(255,255,255,0.6); padding: 7px 0;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li i { color: var(--success); font-size: 11px; }
/* CTA button inside pricing — prominent Electric Blue for Professional */
.pricing-card.popular .btn-hero-primary {
  width: 100%; margin-top: 20px; justify-content: center;
}

/* Section headers (landing) */
.section-title { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  background: rgba(0,184,184,0.15); color: #00d4d4;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 16px;
}
.section-h2  { font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -1px; }
.section-sub { font-size: 16px; color: rgba(255,255,255,0.38); margin-top: 10px; line-height: 1.6; }

/* ─── Toast Notifications ────────────────────────────────── */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 500; max-width: 360px; }
.toast-item {
  background: var(--primary); color: #e2e8f0;
  padding: 13px 18px; border-radius: 10px;
  font-size: 13.5px; margin-top: 8px;
  box-shadow: 0 8px 28px rgba(26,43,74,0.35);
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.25s ease;
  border-left: 3px solid var(--accent);
}
.toast-item.success { border-color: var(--success); }
.toast-item.error   { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Auth Screen ────────────────────────────────────────── */
.auth-screen { min-height: 100vh; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.auth-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 420px;
}
.auth-logo    { text-align: center; margin-bottom: 32px; }
.auth-title   { font-size: 24px; font-weight: 800; color: #f1f5f9; margin-bottom: 6px; }
.auth-sub     { font-size: 14px; color: rgba(255,255,255,0.38); }
.auth-divider { text-align: center; color: rgba(255,255,255,0.22); font-size: 12px; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.06); }
.auth-divider span { background: rgba(255,255,255,0.04); padding: 0 12px; position: relative; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-light); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1280px) {
  /* Stat grid: tighter min so 6 tiles still fit on mid-size screens */
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 1024px) {
  .page-body { padding: 20px 24px; }
  .page-header { padding: 14px 24px; }
  .grid-2col { gap: 16px; }
}
@media (max-width: 900px) {
  /* Stat grid: 3 cols on tablet */
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  h1, .hero h1 { font-size: 36px; letter-spacing: -1px; }
  h2, .section-h2 { font-size: 28px; }
  .landing-nav, .hero, .features-section, .pricing-section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 60px; padding-bottom: 52px; }
  .pricing-card.popular { transform: none; }
}
@media (max-width: 640px) {
  /* Stat grid: 2 cols on mobile */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .page-body { padding: 14px 16px; }
  .page-header { padding: 12px 16px; }
}

/* ─── Utility ────────────────────────────────────────────── */
.text-muted     { color: var(--text-muted) !important; }
.text-danger    { color: var(--danger) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-accent    { color: var(--accent) !important; }
.text-navy      { color: var(--primary) !important; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.p-4   { padding: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Editable Key Details ───────────────────────────────── */
.kd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.kd-row:hover { background: #f8fafc; }
.kd-row:hover .kd-edit-btn { opacity: 1; }
.kd-edit-btn {
  opacity: 0; background: none; border: none; cursor: pointer;
  color: #00b8b8; font-size: 11px; padding: 2px 6px;
  border-radius: 4px; transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.kd-edit-btn:hover { background: #e0f7f7; }
.kd-overridden { background: #fffbeb !important; border-left: 3px solid #f59e0b !important; }
.kd-overridden .kd-display { color: #92400e !important; font-style: italic; }
.kd-override-badge {
  display: none; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; color: #92400e;
  background: #fef3c7; border: 1px solid #fde68a;
  padding: 1px 6px; border-radius: 99px; white-space: nowrap;
  flex-shrink: 0;
}
.kd-inline-editor {
  display: none; flex: 1; align-items: center; gap: 6px;
}
.kd-inline-input {
  flex: 1; padding: 4px 8px; font-size: 12px;
  border: 1.5px solid #00b8b8; border-radius: 6px;
  font-family: 'Inter', sans-serif; outline: none;
  background: #fff;
}
.kd-inline-input:focus { box-shadow: 0 0 0 2px rgba(0,184,184,0.15); }

/* ─── Contact Cards ──────────────────────────────────────── */
.contact-avatar-supplier {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #102850, #00b8b8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0;
}
.contact-avatar-ours {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e0f7f7;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #009999; flex-shrink: 0;
}

/* ─── Board Report ────────────────────────────────────────── */
.report-body { max-width: 900px; margin: 0 auto; }
.report-cover { background: linear-gradient(135deg, #f8fafc 0%, #e0f7f7 100%); border-radius: 12px; padding: 40px; margin-bottom: 32px; border: 1px solid #e2e8f0; }
.report-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.report-h2 { font-size: 16px; font-weight: 700; color: #102850; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #e0f7f7; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-table th { background: #102850; color: #fff; padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.report-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #475569; }
.report-table tr:nth-child(even) td { background: #f8fafc; }
.report-table tr:hover td { background: #f0f9ff; }

/* ─── Renewal timeline row hover ─────────────────────────── */
.renewal-row:hover { background: #f8fafc; }
