/* ============================================
   CEKDATA.WEB.ID — Glassmorphism UI v5
   Modern, Premium, Glass Design
   ============================================ */

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

:root {
  /* ---- Core Palette ---- */
  --bg-base:        #0a0a1a;
  --bg-surface:     #0f0f2a;
  --bg-elevated:    #161636;

  /* Glass */
  --glass-bg:       rgba(255,255,255,0.04);
  --glass-bg-hover: rgba(255,255,255,0.07);
  --glass-border:   rgba(255,255,255,0.08);
  --glass-border-hover: rgba(255,255,255,0.15);
  --glass-blur:     20px;

  /* Primary — Indigo */
  --primary:        #6366f1;
  --primary-hover:  #818cf8;
  --primary-dim:    rgba(99,102,241,0.15);
  --primary-glow:   rgba(99,102,241,0.25);
  --primary-gradient: linear-gradient(135deg,#6366f1 0%,#8b5cf6 50%,#a78bfa 100%);

  /* Accent Palette */
  --green:    #34d399;  --green-dim:  rgba(52,211,153,0.12);
  --blue:     #38bdf8;  --blue-dim:   rgba(56,189,248,0.12);
  --orange:   #fbbf24;  --orange-dim: rgba(251,191,36,0.12);
  --red:      #f87171;  --red-dim:    rgba(248,113,113,0.12);
  --purple:   #a78bfa;  --purple-dim: rgba(167,139,250,0.12);
  --pink:     #f472b6;  --pink-dim:   rgba(244,114,182,0.12);
  --cyan:     #22d3ee;  --cyan-dim:   rgba(34,211,238,0.12);
  --teal:     #2dd4bf;  --teal-dim:   rgba(45,212,191,0.12);

  /* Semantic */
  --success: var(--green);  --success-dim: var(--green-dim);
  --warning: var(--orange); --warning-dim: var(--orange-dim);
  --danger:  var(--red);    --danger-dim:  var(--red-dim);
  --info:    var(--blue);   --info-dim:    var(--blue-dim);

  /* Text */
  --text-1:    #f1f5f9;
  --text-2:    #94a3b8;
  --text-3:    #64748b;
  --text-link:  var(--primary-hover);

  /* Radius */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 20px;  --r-2xl: 28px;  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.15);

  /* Motion */
  --ease-out:   cubic-bezier(0.16,1,0.3,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --dur-fast:   0.15s;
  --dur-normal: 0.25s;
  --dur-slow:   0.4s;

  /* Layout */
  --header-h: 64px;
  --max-w: 1200px;
  --max-w-narrow: 680px;
}

/* ---- BASE ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,26,0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-1);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,0.3);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-dim);
  color: var(--primary-hover);
}

/* Mobile menu toggle */
.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--glass-bg);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.mobile-menu:hover { background: var(--glass-bg-hover); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  text-align: center;
  padding: 64px 0 48px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero Search */
.hero-search {
  max-width: 540px;
  margin: 0 auto 40px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  font-size: 1rem;
  color: var(--text-1);
  outline: none;
  transition: all var(--dur-normal) var(--ease-out);
}

.hero-search input::placeholder { color: var(--text-3); }

.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--glass-bg-hover);
}

.hero-search .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.hero-search .search-clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero-search .search-clear.visible { display: flex; }
.hero-search .search-clear:hover { color: var(--text-1); background: var(--glass-bg); }

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.stat-item { text-align: center; }
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* ============================================
   SEARCH RESULTS OVERLAY
   ============================================ */
.search-results {
  display: none;
  margin-bottom: 32px;
}
.search-results.active { display: block; }

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.search-results-header h3 { font-size: 1.1rem; font-weight: 700; }
.search-results-header span { font-size: 0.85rem; color: var(--text-3); }

.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.no-results h3 { font-size: 1.1rem; color: var(--text-2); margin-bottom: 8px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { margin-bottom: 48px; }

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

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
}

.view-all-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur-fast);
}
.view-all-btn:hover { color: #fff; }

/* ============================================
   TOOL CARDS — Glass
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  position: relative;
  transition: all var(--dur-normal) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-3px);
}

.tool-card:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.tool-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: #fff;
}

.tool-card-icon.keuangan { background: var(--green-dim); color: var(--green); }
.tool-card-icon.kesehatan { background: var(--red-dim); color: var(--red); }
.tool-card-icon.konversi  { background: var(--blue-dim); color: var(--blue); }
.tool-card-icon.dokumen   { background: var(--purple-dim); color: var(--purple); }
.tool-card-icon.ramal     { background: var(--orange-dim); color: var(--orange); }

.tool-card-content { flex: 1; min-width: 0; }

.tool-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.tool-card-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-arrow {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  opacity: 0;
  transition: all var(--dur-normal) var(--ease-out);
}

.tool-card:hover .tool-card-arrow {
  opacity: 1;
  right: 12px;
  color: var(--primary-hover);
}

/* ============================================
   GLASS PANEL (generic container)
   ============================================ */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 28px;
}

/* ============================================
   TOOL PAGE (Inner pages)
   ============================================ */
.tool-page {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.tool-page-wide {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.tool-header {
  text-align: center;
  margin-bottom: 32px;
}

.tool-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.75rem;
  position: relative;
}

.tool-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.3;
  filter: blur(12px);
  z-index: -1;
}

.tool-icon.keuangan { background: var(--green-dim); color: var(--green); }
.tool-icon.kesehatan { background: var(--red-dim); color: var(--red); }
.tool-icon.konversi  { background: var(--blue-dim); color: var(--blue); }
.tool-icon.dokumen   { background: var(--purple-dim); color: var(--purple); }
.tool-icon.ramal     { background: var(--orange-dim); color: var(--orange); }

.tool-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tool-header p {
  font-size: 0.95rem;
  color: var(--text-2);
}

/* Tool Form (glass) */
.tool-form {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 28px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-group label small {
  font-weight: 400;
  color: var(--text-3);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--text-1);
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.form-group input::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  background: rgba(255,255,255,0.05);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-1);
}

/* Input Groups */
.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.input-group .form-group { margin-bottom: 0; }

/* Tooltip */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.65rem;
  color: var(--text-3);
  cursor: help;
  position: relative;
  font-weight: 700;
}

.tooltip-trigger::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-2);
  white-space: nowrap;
  max-width: 240px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-fast) var(--ease-out);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.tooltip-trigger:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: inherit;
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--dur-normal) var(--ease-out);
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-2);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: var(--glass-bg-hover);
  color: var(--text-1);
  border-color: var(--glass-border-hover);
}

.btn-success {
  background: var(--green);
  color: #0a0a1a;
}
.btn-success:hover { background: #4ade80; box-shadow: 0 4px 16px rgba(52,211,153,0.25); }

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* ============================================
   RESULT CARD — Glass + Glow
   ============================================ */
.result-card {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-top: 24px;
  animation: resultSlideIn 0.4s var(--ease-spring);
}

@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card.active { display: block; }

.result-card.highlight {
  background: var(--primary-dim);
  border-color: rgba(99,102,241,0.25);
  box-shadow: var(--shadow-glow);
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 8px 0 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.result-value.success { background: linear-gradient(135deg,#34d399,#2dd4bf); -webkit-background-clip: text; background-clip: text; }
.result-value.warning { background: linear-gradient(135deg,#fbbf24,#f59e0b); -webkit-background-clip: text; background-clip: text; }
.result-value.danger  { background: linear-gradient(135deg,#f87171,#ef4444); -webkit-background-clip: text; background-clip: text; }

/* Result interpretation bar */
.result-interp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.result-interp.good    { background: var(--green-dim); color: var(--green); }
.result-interp.warning { background: var(--orange-dim); color: var(--orange); }
.result-interp.bad     { background: var(--red-dim); color: var(--red); }
.result-interp.info    { background: var(--info-dim); color: var(--info); }

/* Progress bar for results */
.result-progress {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 12px 0;
}

.result-progress-bar {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--primary-gradient);
  transition: width 0.6s var(--ease-spring);
}

.result-progress-bar.success { background: linear-gradient(90deg,#34d399,#2dd4bf); }
.result-progress-bar.warning { background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.result-progress-bar.danger  { background: linear-gradient(90deg,#f87171,#ef4444); }

.result-details {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  margin-top: 12px;
}

.result-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.875rem;
  gap: 16px;
}

.result-detail:last-child { border-bottom: none; padding-bottom: 0; }
.result-detail:first-child { padding-top: 0; }

.result-detail .label { color: var(--text-2); flex: 1; min-width: 0; }
.result-detail .value { font-weight: 600; color: var(--text-1); text-align: right; flex-shrink: 0; max-width: 60%; }

/* Result actions */
.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.result-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.result-action-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-1);
  border-color: var(--glass-border-hover);
}

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
  margin-top: 24px;
  padding: 20px;
  background: var(--info-dim);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: var(--r-lg);
}

.info-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 12px;
}

.info-box ul { list-style: none; padding: 0; }

.info-box li {
  font-size: 0.825rem;
  color: var(--text-2);
  padding: 4px 0 4px 16px;
  position: relative;
}

.info-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--info);
  font-weight: bold;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.breadcrumb a { color: var(--text-2); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--primary-hover); }
.breadcrumb span { color: var(--text-1); font-weight: 500; }
.breadcrumb-separator { color: var(--text-3); }

/* ============================================
   PAGE HEADER (Category pages)
   ============================================ */
.page-header { padding: 32px 0 24px; }

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.95rem;
  color: var(--text-2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(15,15,42,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(99,102,241,0.2);
  padding: 48px 24px 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand .logo { color: var(--text-1); }

.footer-brand p {
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li { margin: 0; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--dur-fast);
  display: inline-block;
}

.footer-links a:hover { color: var(--primary-hover); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  padding-top: 24px;
  margin-top: 0;
  line-height: 1.6;
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table th {
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td { color: var(--text-1); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.badge.keuangan { background: var(--green-dim); color: var(--green); }
.badge.kesehatan { background: var(--red-dim); color: var(--red); }
.badge.konversi  { background: var(--blue-dim); color: var(--blue); }
.badge.dokumen   { background: var(--purple-dim); color: var(--purple); }
.badge.ramal     { background: var(--orange-dim); color: var(--orange); }

/* ============================================
   PRINT AREA (Document generators)
   ============================================ */
.print-area {
  background: #fff;
  color: #000;
  padding: 24px;
  border-radius: var(--r-md);
  font-family: 'Inter', sans-serif;
  margin-top: 16px;
}

.print-area table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.print-area td, .print-area th { padding: 8px 12px; border: 1px solid #ddd; text-align: left; font-size: 0.85rem; }
.print-area th { background: #f5f5f5; font-weight: 600; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
  50%      { box-shadow: 0 0 30px rgba(99,102,241,0.25); }
}

.animate-fadeInUp { animation: fadeInUp 0.5s var(--ease-out) forwards; }
.animate-fadeIn   { animation: fadeIn 0.4s var(--ease-out) forwards; }

/* Staggered children animation */
.stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}
.stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger > *:nth-child(2)  { animation-delay: 0.1s; }
.stagger > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger > *:nth-child(4)  { animation-delay: 0.2s; }
.stagger > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger > *:nth-child(6)  { animation-delay: 0.3s; }
.stagger > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger > *:nth-child(8)  { animation-delay: 0.4s; }
.stagger > *:nth-child(9)  { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }
.stagger > *:nth-child(11) { animation-delay: 0.55s; }
.stagger > *:nth-child(12) { animation-delay: 0.6s; }

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* Main Content */
main {
  min-height: 60vh;
  padding-bottom: 40px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }

  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .stat-value { font-size: 1.25rem; }

  .tools-grid { grid-template-columns: 1fr; }

  .tool-page { padding: 20px 16px 48px; }
  .tool-form { padding: 20px; }
  .tool-header h1 { font-size: 1.35rem; }
  .tool-header { margin-bottom: 24px; }

  .input-group { grid-template-columns: 1fr; }
  .input-group .form-group { margin-bottom: 16px; }

  .btn-group { flex-direction: column; gap: 10px; }

  .result-card { padding: 20px; margin-top: 20px; }
  .result-value { font-size: 1.75rem; }

  /* Mobile Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,26,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.2s var(--ease-out);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .mobile-menu { display: flex; }
  .nav { position: relative; }

  /* Better touch targets */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
  }

  /* Disable hover transform on touch */
  .tool-card:hover { transform: none; }
  .tool-card:active { transform: scale(0.98); transition-duration: 0.1s; }

  .btn-primary:hover { transform: none; }
  .btn-primary:active { transform: scale(0.98); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .hero p { font-size: 0.85rem; }

  .hero-search input { padding: 14px 44px; font-size: 0.95rem; }

  .stats-bar { gap: 16px; padding-top: 24px; }
  .stat-value { font-size: 1.1rem; }
  .stat-label { font-size: 0.7rem; }

  .breadcrumb { font-size: 0.75rem; overflow-x: auto; white-space: nowrap; }

  .tool-form { padding: 16px; }
  .result-value { font-size: 1.5rem; }
  .result-detail { padding: 8px 0; font-size: 0.8rem; }
  .btn-primary { padding: 14px 20px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .footer { padding: 24px 16px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 20px; }
  .footer-brand { grid-column: 1 / -1; gap: 8px; margin-bottom: 4px; }
  .footer-brand p { max-width: 100%; font-size: 0.8rem; line-height: 1.5; }
  .footer-links { gap: 8px; }
  .footer-links h4 { font-size: 0.8rem; margin-bottom: 0; }
  .footer-links ul { gap: 4px; }
  .footer-links a { font-size: 0.75rem; }
  .footer-bottom { padding-top: 16px; font-size: 0.7rem; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header, .footer, .nav, .breadcrumb,
  .btn-primary, .btn-secondary, .tool-form,
  .result-actions { display: none !important; }

  body { background: #fff; color: #000; }
  body::before { display: none; }

  .tool-container, .result-card, .print-area {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    backdrop-filter: none;
  }

  .result-value {
    -webkit-text-fill-color: #000;
    color: #000;
  }
}
