/* ═══════════════════════════════════════════════════════════════════════
   Desert Forge IT — Design System v2
   ═══════════════════════════════════════════════════════════════════════ */

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

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:        #09090b;
  --surface:   #111113;
  --surface-2: #18181b;
  --surface-3: #1f1f23;
  --border:    #27272a;
  --border-2:  #3f3f46;

  --accent:    #f59e0b;
  --accent-2:  #fbbf24;
  --accent-dk: #b45309;
  --accent-subtle: rgba(245,158,11,0.06);

  --text:      #fafafa;
  --text-2:    #d4d4d8;
  --muted:     #a1a1aa;
  --dim:       #71717a;

  --success:   #22c55e;
  --warning:   #eab308;
  --danger:    #ef4444;
  --info:      #3b82f6;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --bs-body-color: #fafafa;
  --bs-body-bg: #09090b;
  --bs-emphasis-color: #fafafa;
  --bs-secondary-color: #a1a1aa;
  --bs-heading-color: #fafafa;
  --bs-border-color: #27272a;
}

/* ── Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

p, span, div, label, li, h1, h2, h3, h4, h5, h6,
td, th, dt, dd, small, strong, em, ul, ol { color: inherit; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }
::selection { background: rgba(245,158,11,0.3); color: #fff; }
img { max-width: 100%; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 64px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.site-nav .brand img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}
.site-nav .brand strong {
  color: var(--accent);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  margin-left: 0.5rem;
  transition: background 0.15s !important;
}
.nav-cta:hover {
  background: var(--accent-2) !important;
  color: var(--bg) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.btn-accent:hover {
  background: var(--accent-2);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.2);
}
.btn-accent:active { transform: translateY(0); }
.btn-accent-lg { padding: 0.875rem 2.25rem; font-size: 0.9375rem; border-radius: 12px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--border-2);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-ghost-lg { padding: 0.875rem 2.25rem; font-size: 0.9375rem; border-radius: 12px; }

/* ── Typography ──────────────────────────────────────────────────────── */
.t-display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}
.t-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.t-subheading {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
}
.t-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}
.t-small {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.t-mono {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.8125rem;
}
.t-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.t-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-alt {
  background: var(--surface);
}
.section .container, .section-alt .container {
  max-width: 1200px;
  padding: 0 2rem;
}
.section-header {
  margin-bottom: 3.5rem;
}

/* ── Bento grid ──────────────────────────────────────────────────────── */
.bento {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bento-2x3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
}
.bento-cell {
  background: var(--surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-cell.span-2 { grid-column: span 2; }
.bento-cell .cell-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}
.bento-cell h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.bento-cell p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 767px) {
  .bento-2x3 { grid-template-columns: 1fr; }
  .bento-cell.span-2 { grid-column: span 1; }
}

/* ── Stat cards ──────────────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 767px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
  background: var(--surface);
  padding: 1.75rem 2rem;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-value .accent { color: var(--accent); }
.stat-label {
  font-size: 0.75rem;
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Timeline (horizontal) ───────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: var(--border);
}
.tl-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}
.tl-step:hover .tl-dot {
  border-color: var(--accent);
  background: rgba(245,158,11,0.1);
}
.tl-step h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.tl-step p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
}
@media (max-width: 767px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline::before { display: none; }
  .tl-step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; padding: 0; }
  .tl-dot { margin: 0; flex-shrink: 0; }
}

/* ── Plan cards ──────────────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.plan-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) {
  .plan-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .plan-grid.cols-4,
  .plan-grid.cols-3 { grid-template-columns: 1fr; }
}
.plan-card {
  background: var(--surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card.featured {
  background: var(--surface-2);
}
.plan-card .plan-tag {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem;
  text-align: center;
}
.plan-card.featured { padding-top: 2.75rem; }
.plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.plan-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dim);
}
.plan-meta {
  font-size: 0.8125rem;
  color: var(--dim);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.3rem 0;
}
.plan-features li i { color: var(--dim); font-size: 0.75rem; }
.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--radius);
  padding: 0.625rem;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: auto;
}
.plan-btn-fill { background: var(--accent); color: var(--bg); border: none; }
.plan-btn-fill:hover { background: var(--accent-2); color: var(--bg); }
.plan-btn-outline { border: 1px solid var(--border); color: var(--muted); background: transparent; }
.plan-btn-outline:hover { border-color: var(--border-2); color: var(--text); }
.plan-btn-green { border: 1px solid rgba(34,197,94,0.25); color: var(--muted); background: transparent; }
.plan-btn-green:hover { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.4); color: #86efac; }
.plan-btn-green-fill { background: #22c55e; color: var(--bg); border: none; }
.plan-btn-green-fill:hover { background: #4ade80; color: var(--bg); }

/* ── FAQ Accordion ───────────────────────────────────────────────────── */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--text); }
.faq-q .chevron {
  font-size: 0.75rem;
  color: var(--dim);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q { color: var(--accent); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.faq-a-inner a { color: var(--accent); }

/* ── Feature items (for SEO pages) ───────────────────────────────────── */
.feature-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) {
  .feature-list.cols-2,
  .feature-list.cols-3 { grid-template-columns: 1fr; }
}
.feature-item {
  background: var(--surface);
  padding: 1.75rem;
}
.feature-item .fi-icon {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-item p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ── Step list (vertical, for SEO pages) ─────────────────────────────── */
.step-list {
  display: flex;
  flex-direction: column;
  position: relative;
}
.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 3.25rem;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.step-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.step-item p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ── CTA Banner ──────────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
}
.cta-banner p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.footer-brand img { height: 24px; width: 24px; border-radius: 4px; }
.footer-brand strong { color: var(--accent); }
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--dim);
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--dim);
}
.footer-bottom a { color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--muted); }

@media (max-width: 767px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.breadcrumb-nav {
  font-size: 0.8125rem;
  color: var(--dim);
  padding: 1rem 0 0;
}
.breadcrumb-nav a { color: var(--muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--text); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.form-control::placeholder { color: var(--dim); }
.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text-2);
}
.form-text { font-size: 0.75rem; color: var(--dim); }
input, select, textarea { color: var(--text) !important; }
option { background: var(--surface-2); color: var(--text); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding: 0.875rem 1.5rem;
}
.card-body { padding: 1.5rem; color: var(--text); }
.card-footer { background: transparent; border-top: 1px solid var(--border); color: var(--text); }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert-danger  { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); color: #fca5a5; border-radius: var(--radius); }
.alert-success { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15); color: #86efac; border-radius: var(--radius); }
.alert-warning { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.15); color: #fcd34d; border-radius: var(--radius); }
.alert-info    { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15); color: #93c5fd; border-radius: var(--radius); }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table { color: var(--text); }
.table thead th {
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.75rem 1rem;
}
.table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255,255,255,0.015); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge-ok      { background: rgba(34,197,94,0.1);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2);  border-radius: var(--radius-sm); font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.badge-warn    { background: rgba(234,179,8,0.1);   color: #fde047; border: 1px solid rgba(234,179,8,0.2);  border-radius: var(--radius-sm); font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.badge-danger  { background: rgba(239,68,68,0.1);   color: #f87171; border: 1px solid rgba(239,68,68,0.2);  border-radius: var(--radius-sm); font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.badge-neutral { background: rgba(161,161,170,0.1); color: #a1a1aa; border: 1px solid rgba(161,161,170,0.15); border-radius: var(--radius-sm); font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.badge-info    { background: rgba(59,130,246,0.1);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.2);  border-radius: var(--radius-sm); font-size: 0.75rem; padding: 0.2rem 0.5rem; }

/* ── Portal-specific ─────────────────────────────────────────────────── */
.metric-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.5rem;
}
.metric-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.metric-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.tier-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.625rem; border-radius: var(--radius-sm); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em; }
.tier-starter      { background: rgba(161,161,170,0.1); color: #d4d4d8; border: 1px solid rgba(161,161,170,0.2); }
.tier-professional { background: rgba(59,130,246,0.1);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }
.tier-business     { background: rgba(168,85,247,0.1);  color: #c4b5fd; border: 1px solid rgba(168,85,247,0.2); }
.tier-enterprise   { background: rgba(245,158,11,0.1);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.tier-storage      { background: rgba(34,197,94,0.1);   color: #86efac; border: 1px solid rgba(34,197,94,0.2); }

.workload-icon {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.progress       { background: var(--surface-2); border-radius: var(--radius-sm); height: 6px; }
.progress-bar   { border-radius: var(--radius-sm); transition: width 0.4s ease; }
.bg-safe        { background: var(--success); }
.bg-caution     { background: var(--warning); }
.bg-critical    { background: var(--danger); }

.sidebar-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.12s;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: rgba(245,158,11,0.08); color: var(--accent); }
.sidebar-link i { font-size: 0.9rem; width: 1.1rem; text-align: center; }

/* ── Misc ─────────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted) !important; }
hr { border-color: var(--border); opacity: 1; }
code {
  background: var(--surface-2);
  color: var(--accent-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.82em;
  font-family: 'JetBrains Mono', monospace;
}
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--dim); }
.empty-state i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 1rem; }

/* Bootstrap overrides */
.list-group-item { background: var(--surface); color: var(--text); border-color: var(--border); }
.modal-content { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-close { filter: invert(1); }
.dropdown-menu { background: var(--surface); border-color: var(--border); }
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }
.btn-outline-light { border-color: var(--border); color: var(--muted); font-size: 0.8125rem; }
.btn-outline-light:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-outline-secondary { border-color: var(--border); color: var(--muted); }
.btn-outline-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.border-bottom { border-color: var(--border) !important; }
.section-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.75rem;
}
