/* ============================================================
   THREELINK — DESIGN SYSTEM v2.0
   Light Mode · Solid Cards · Minimal
   Inspiración: Wise / Brubank (light)
   Tipografía: Poppins (Manual Identidad Visual Threelink)
   ============================================================ */

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

/* -----------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------- */
:root {
  /* === BRAND === */
  --color-accent:        #37aa9c;
  --color-accent-hover:  #2d9088;
  --color-accent-light:  #edf8f7;
  --color-accent-mid:    #c5ebe8;

  --color-cyan:          #00aeb5;
  --color-cyan-light:    #e0f6f7;

  --color-navy:          #1e294c;
  --color-navy-mid:      #2e3d6b;
  --color-navy-light:    #eef0f6;

  /* === BACKGROUND === */
  --bg-page:     #f5f6f8;
  --bg-white:    #ffffff;
  --bg-subtle:   #f0f1f4;
  --bg-muted:    #e8eaee;

  /* === TEXT === */
  --text-primary:   #1a1f2e;
  --text-secondary: #4a5568;
  --text-muted:     #8898aa;
  --text-disabled:  #b0bac9;
  --text-white:     #ffffff;

  /* === BORDERS === */
  --border-light:   #e4e8ef;
  --border-mid:     #d0d6e0;
  --border-accent:  #37aa9c;

  /* === SEMANTIC === */
  --color-success:       #37aa9c;
  --color-success-bg:    #edf8f7;
  --color-success-border:#c5ebe8;

  --color-warning:       #f59e0b;
  --color-warning-bg:    #fffbeb;
  --color-warning-border:#fde68a;

  --color-error:         #ef4444;
  --color-error-bg:      #fef2f2;
  --color-error-border:  #fecaca;

  --color-info:          #00aeb5;
  --color-info-bg:       #e0f6f7;
  --color-info-border:   #99dfe2;

  /* === TYPOGRAPHY === */
  --font:          'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  --lh-tight:   1.2;
  --lh-snug:    1.375;
  --lh-normal:  1.5;
  --lh-relaxed: 1.625;

  /* === SPACING === */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* === BORDER RADIUS === */
  --r-xs:   0.25rem;
  --r-sm:   0.5rem;
  --r-md:   0.75rem;
  --r-lg:   1rem;
  --r-xl:   1.25rem;
  --r-2xl:  1.5rem;
  --r-3xl:  2rem;
  --r-full: 9999px;

  /* === SHADOWS — sólidas, sin blur extremo === */
  --shadow-xs:  0 1px 3px rgba(30, 41, 76, 0.06);
  --shadow-sm:  0 2px 6px rgba(30, 41, 76, 0.08);
  --shadow-md:  0 4px 12px rgba(30, 41, 76, 0.10);
  --shadow-lg:  0 8px 24px rgba(30, 41, 76, 0.12);
  --shadow-xl:  0 16px 40px rgba(30, 41, 76, 0.14);

  /* === TRANSITIONS === */
  --t-fast:   150ms ease;
  --t-normal: 250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === LAYOUT === */
  --container: 1200px;
  --sidebar-w: 248px;
}

/* -----------------------------------------------------------
   2. RESET
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* -----------------------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------------------- */
.text-display    { font-size: var(--text-7xl); font-weight: var(--fw-black);    line-height: var(--lh-tight); letter-spacing: -0.03em; }
.text-display-sm { font-size: var(--text-6xl); font-weight: var(--fw-extrabold);line-height: var(--lh-tight); letter-spacing: -0.025em; }
.text-h1  { font-size: var(--text-5xl); font-weight: var(--fw-bold);     line-height: var(--lh-tight); letter-spacing: -0.02em; }
.text-h2  { font-size: var(--text-4xl); font-weight: var(--fw-bold);     line-height: var(--lh-snug);  letter-spacing: -0.015em; }
.text-h3  { font-size: var(--text-3xl); font-weight: var(--fw-semibold); line-height: var(--lh-snug);  letter-spacing: -0.01em; }
.text-h4  { font-size: var(--text-2xl); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.text-h5  { font-size: var(--text-xl);  font-weight: var(--fw-semibold); line-height: var(--lh-normal); }
.text-h6  { font-size: var(--text-lg);  font-weight: var(--fw-medium);   line-height: var(--lh-normal); }

.text-body-lg { font-size: var(--text-lg);  line-height: var(--lh-relaxed); }
.text-body    { font-size: var(--text-base); line-height: var(--lh-relaxed); }
.text-body-sm { font-size: var(--text-sm);  line-height: var(--lh-relaxed); }

.text-label-lg { font-size: var(--text-sm); font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; }
.text-label    { font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; }
.text-caption  { font-size: var(--text-xs); color: var(--text-muted); }

/* Color utilities */
.c-primary   { color: var(--text-primary); }
.c-secondary { color: var(--text-secondary); }
.c-muted     { color: var(--text-muted); }
.c-accent    { color: var(--color-accent); }
.c-navy      { color: var(--color-navy); }
.c-white     { color: var(--text-white); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -----------------------------------------------------------
   4. BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.625rem var(--sp-5);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-normal);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

/* Primary — gradiente accent */
.btn-primary {
  background: var(--color-accent);
  color: var(--text-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(55, 170, 156, 0.30);
  transform: translateY(-1px);
}

/* Secondary — white sólido */
.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--border-mid);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent-light);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* Navy */
.btn-navy {
  background: var(--color-navy);
  color: var(--text-white);
  border-color: var(--color-navy);
}
.btn-navy:hover {
  background: var(--color-navy-mid);
  box-shadow: 0 4px 16px rgba(30, 41, 76, 0.25);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: var(--color-error-border);
}
.btn-danger:hover {
  background: var(--color-error);
  color: white;
}

/* Sizes */
.btn-xs  { padding: 0.3rem 0.75rem; font-size: var(--text-xs); }
.btn-sm  { padding: 0.45rem 0.9rem; font-size: var(--text-xs); }
.btn-lg  { padding: 0.875rem var(--sp-6); font-size: var(--text-base); }
.btn-xl  { padding: 1.1rem var(--sp-8); font-size: var(--text-lg); }

/* Icon button */
.btn-icon { border-radius: var(--r-md); }
.btn-icon.btn-sm { width: 32px; height: 32px; padding: 0; }
.btn-icon         { width: 40px; height: 40px; padding: 0; }
.btn-icon.btn-lg  { width: 48px; height: 48px; padding: 0; }

/* -----------------------------------------------------------
   5. CARDS — sólidas, light
   ----------------------------------------------------------- */

/* Base card */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* Card flat — sin sombra */
.card-flat {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
}

/* Card subtle — fondo gris muy claro */
.card-subtle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
}

/* Card accent — borde izquierdo accent */
.card-accent-border {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xs);
}

/* Card accent — fondo tinted */
.card-accent {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
}

/* Card navy */
.card-navy {
  background: var(--color-navy);
  border: 1px solid var(--color-navy-mid);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  color: var(--text-white);
}

/* Feature card — hero, landing */
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-3xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent-mid);
  transform: translateY(-4px);
}

/* Stat card */
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-xs);
}

.stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card .stat-value.accent { color: var(--color-accent); }

.stat-card .stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-semibold);
}

.stat-card .stat-delta {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  margin-top: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card .stat-delta.up   { color: var(--color-success); }
.stat-card .stat-delta.down { color: var(--color-error); }
.stat-card .stat-delta.flat { color: var(--text-muted); }

/* -----------------------------------------------------------
   6. BADGES & CHIPS
   ----------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.2rem 0.6rem;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
  border: 1px solid;
}

.badge-accent   { background: var(--color-accent-light);   color: var(--color-accent);   border-color: var(--color-accent-mid); }
.badge-navy     { background: var(--color-navy-light);     color: var(--color-navy);     border-color: #c8cde0; }
.badge-success  { background: var(--color-success-bg);     color: var(--color-success);  border-color: var(--color-success-border); }
.badge-warning  { background: var(--color-warning-bg);     color: var(--color-warning);  border-color: var(--color-warning-border); }
.badge-error    { background: var(--color-error-bg);       color: var(--color-error);    border-color: var(--color-error-border); }
.badge-neutral  { background: var(--bg-subtle);            color: var(--text-secondary); border-color: var(--border-mid); }

/* Dot indicator */
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}
.chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-white);
}

/* -----------------------------------------------------------
   7. INPUTS & FORMS
   ----------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.625rem var(--sp-4);
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-lg);
  outline: none;
  transition: all var(--t-normal);
  box-shadow: var(--shadow-xs);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:hover  { border-color: var(--color-accent); }
.form-input:focus  { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(55,170,156,0.12); }
.form-input.error  { border-color: var(--color-error);  box-shadow: 0 0 0 3px rgba(239,68,68,0.10); }

.form-helper { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--sp-1); }
.form-helper.error   { color: var(--color-error); }
.form-helper.success { color: var(--color-success); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238898aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
}

.form-textarea { resize: vertical; min-height: 100px; }

/* Toggle */
.toggle { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.toggle-track {
  position: relative;
  width: 44px; height: 24px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-full);
  transition: all var(--t-normal);
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-white);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: all var(--t-spring);
}
.toggle input { display: none; }
.toggle input:checked ~ .toggle-track {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.toggle input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

/* Checkbox */
.checkbox { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-size: var(--text-sm); color: var(--text-secondary); }
.checkbox-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-xs);
  background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-normal);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.checkbox input:checked ~ .checkbox-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.checkbox input { display: none; }

/* -----------------------------------------------------------
   8. NAVBAR
   ----------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-8);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 200;
}

.navbar-logo { display: flex; align-items: center; gap: var(--sp-3); }
.navbar-logo img { height: 30px; }

.navbar-nav { display: flex; align-items: center; gap: var(--sp-1); list-style: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.nav-link:hover  { color: var(--text-primary); background: var(--bg-subtle); }
.nav-link.active { color: var(--color-accent); background: var(--color-accent-light); font-weight: var(--fw-semibold); }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-3);
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
}

.sidebar-section { margin-bottom: var(--sp-6); }

.sidebar-section-title {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border-radius: var(--r-lg);
  transition: all var(--t-fast);
  margin-bottom: 2px;
}
.sidebar-link:hover  { color: var(--text-primary); background: var(--bg-subtle); }
.sidebar-link.active { color: var(--color-accent); background: var(--color-accent-light); font-weight: var(--fw-semibold); }

/* -----------------------------------------------------------
   9. DIVIDER
   ----------------------------------------------------------- */
.divider       { width: 100%; height: 1px; background: var(--border-light); }
.divider-v     { width: 1px; align-self: stretch; background: var(--border-light); }
.divider-accent { background: linear-gradient(90deg, transparent, var(--color-accent), transparent); }

/* -----------------------------------------------------------
   10. AVATAR
   ----------------------------------------------------------- */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-accent), var(--color-cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  flex-shrink: 0;
}
.avatar-xs { width: 24px; height: 24px; font-size: var(--text-xs); }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar-md { width: 40px; height: 40px; font-size: var(--text-sm); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-base); }
.avatar-xl { width: 64px; height: 64px; font-size: var(--text-xl); }

/* -----------------------------------------------------------
   11. ICON WRAP
   ----------------------------------------------------------- */
.icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  flex-shrink: 0;
}
.icon-wrap-sm { width: 32px; height: 32px; }
.icon-wrap-md { width: 40px; height: 40px; }
.icon-wrap-lg { width: 48px; height: 48px; }
.icon-wrap-xl { width: 56px; height: 56px; }

.icon-wrap-accent  { background: var(--color-accent-light);  color: var(--color-accent); }
.icon-wrap-navy    { background: var(--color-navy-light);    color: var(--color-navy); }
.icon-wrap-warning { background: var(--color-warning-bg);    color: var(--color-warning); }
.icon-wrap-error   { background: var(--color-error-bg);      color: var(--color-error); }
.icon-wrap-muted   { background: var(--bg-subtle);           color: var(--text-secondary); }

/* -----------------------------------------------------------
   12. ALERT BANNERS
   ----------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-xl);
  border: 1px solid;
  font-size: var(--text-sm);
}
.alert-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }

.alert-success { background: var(--color-success-bg); border-color: var(--color-success-border); color: #1a6b63; }
.alert-warning { background: var(--color-warning-bg); border-color: var(--color-warning-border); color: #92400e; }
.alert-error   { background: var(--color-error-bg);   border-color: var(--color-error-border);   color: #991b1b; }
.alert-info    { background: var(--color-info-bg);    border-color: var(--color-info-border);    color: #065f6b; }

/* -----------------------------------------------------------
   13. PROGRESS
   ----------------------------------------------------------- */
.progress {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cyan));
  border-radius: var(--r-full);
  transition: width var(--t-slow);
}
.progress-sm { height: 4px; }
.progress-lg { height: 8px; }

/* -----------------------------------------------------------
   14. TABLE
   ----------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

.table th {
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}
.table th:first-child { border-radius: var(--r-xl) 0 0 0; }
.table th:last-child  { border-radius: 0 var(--r-xl) 0 0; }

.table td {
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--bg-subtle); }

/* -----------------------------------------------------------
   15. STATUS DOT
   ----------------------------------------------------------- */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-online  { background: var(--color-success); box-shadow: 0 0 0 2px var(--color-success-bg); }
.status-warning { background: var(--color-warning); box-shadow: 0 0 0 2px var(--color-warning-bg); }
.status-error   { background: var(--color-error);   box-shadow: 0 0 0 2px var(--color-error-bg); }
.status-offline { background: var(--text-disabled); box-shadow: 0 0 0 2px var(--bg-muted); }

/* -----------------------------------------------------------
   16. PRICING CARD
   ----------------------------------------------------------- */
.pricing-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-3xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition: all var(--t-normal);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-mid), var(--shadow-lg);
}
.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 0 4px var(--color-accent-mid), var(--shadow-xl);
}

.pricing-price { font-size: var(--text-5xl); font-weight: var(--fw-black); line-height: 1; color: var(--text-primary); }
.pricing-price span { font-size: var(--text-lg); font-weight: var(--fw-regular); color: var(--text-muted); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.pricing-features li {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-sm); color: var(--text-secondary);
}
.pricing-features li svg { flex-shrink: 0; color: var(--color-accent); }

/* -----------------------------------------------------------
   17. MODAL
   ----------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 41, 76, 0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  padding: var(--sp-6);
}
.modal {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-3xl);
  padding: var(--sp-8);
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.modal-title { font-size: var(--text-xl); font-weight: var(--fw-semibold); color: var(--text-primary); }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--bg-subtle); color: var(--text-primary); }

/* -----------------------------------------------------------
   18. SKELETON
   ----------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* -----------------------------------------------------------
   19. LAYOUT HELPERS
   ----------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.section    { padding: var(--sp-20) var(--sp-8); }
.section-sm { padding: var(--sp-12) var(--sp-8); }
.section-lg { padding: var(--sp-32) var(--sp-8); }

.grid   { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }

.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* -----------------------------------------------------------
   20. ANIMATIONS
   ----------------------------------------------------------- */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes float      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(55,170,156,0.25); } 50% { box-shadow: 0 0 0 8px rgba(55,170,156,0); } }

.animate-fade-up  { animation: fadeInUp 0.5s ease both; }
.animate-fade-in  { animation: fadeIn 0.4s ease both; }
.animate-float    { animation: float 3s ease-in-out infinite; }
.animate-spin     { animation: spin 1s linear infinite; }
.animate-pulse    { animation: pulse-ring 2s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* -----------------------------------------------------------
   21. SCROLLBAR & SELECTION
   ----------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--color-accent-mid); color: var(--color-navy); }

/* -----------------------------------------------------------
   22. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section    { padding: var(--sp-12) var(--sp-4); }
  .section-lg { padding: var(--sp-20) var(--sp-4); }
  .navbar-nav { display: none; }
  .text-display    { font-size: var(--text-5xl); }
  .text-display-sm { font-size: var(--text-4xl); }
  .text-h1 { font-size: var(--text-4xl); }
  .text-h2 { font-size: var(--text-3xl); }
}
