/* ====================================================
   SmartTools — Professional UI
   Clean · Modern · Fast
   ==================================================== */

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

:root {
  /* Core palette */
  --bg:       #ffffff;
  --bg2:      #f8f9fc;
  --bg3:      #f0f2f7;
  --surface:  #ffffff;
  --border:   rgba(0,0,0,0.07);
  --border2:  rgba(0,0,0,0.12);

  /* Text */
  --t1: #0b0c0f;
  --t2: #5c6070;
  --t3: #9ba3b2;

  /* Brand */
  --accent:   #6366f1;
  --accent-h: #5457e0;
  --accent2:  #06b6d4;

  /* Colors */
  --indigo:  #6366f1; --indigo-bg:  rgba(99,102,241,0.09);  --indigo-bdr:  rgba(99,102,241,0.2);
  --cyan:    #06b6d4; --cyan-bg:    rgba(6,182,212,0.09);   --cyan-bdr:    rgba(6,182,212,0.2);
  --emerald: #10b981; --emerald-bg: rgba(16,185,129,0.09);  --emerald-bdr: rgba(16,185,129,0.2);
  --amber:   #f59e0b; --amber-bg:   rgba(245,158,11,0.09);  --amber-bdr:   rgba(245,158,11,0.2);
  --blue:    #3b82f6; --blue-bg:    rgba(59,130,246,0.09);  --blue-bdr:    rgba(59,130,246,0.2);
  --rose:    #f43f5e; --rose-bg:    rgba(244,63,94,0.09);   --rose-bdr:    rgba(244,63,94,0.2);
  --violet:  #8b5cf6; --violet-bg:  rgba(139,92,246,0.09);  --violet-bdr:  rgba(139,92,246,0.2);
  --teal:    #14b8a6; --teal-bg:    rgba(20,184,166,0.09);  --teal-bdr:    rgba(20,184,166,0.2);

  /* Layout */
  --sidebar-w: 260px;
  --topbar-h:  58px;
  --r:   12px;
  --r-sm: 8px;
  --r-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);

  /* Timing */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 0.18s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0c0c14;
    --bg2:     #121220;
    --bg3:     #1a1a2e;
    --surface: #161624;
    --border:  rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --t1:      #f0f0f8;
    --t2:      #8e94a6;
    --t3:      #515870;
    --indigo-bg:  rgba(99,102,241,0.14);
    --cyan-bg:    rgba(6,182,212,0.12);
    --emerald-bg: rgba(16,185,129,0.12);
    --amber-bg:   rgba(245,158,11,0.12);
    --blue-bg:    rgba(59,130,246,0.12);
    --rose-bg:    rgba(244,63,94,0.12);
    --violet-bg:  rgba(139,92,246,0.14);
    --teal-bg:    rgba(20,184,166,0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg2);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ===== LAYOUT ===== */
.app { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  position: fixed; inset: 0 auto 0 0;
  z-index: 200; overflow-y: auto;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease);
}

.sb-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
}
.sb-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-logo-mark i { color: #fff; font-size: 17px; }
.sb-logo-name { font-size: 15px; font-weight: 600; color: var(--t1); letter-spacing: -0.3px; }
.sb-logo-tag  { font-size: 11px; color: var(--t3); display: block; margin-top: 1px; }

.sb-section { padding: 18px 10px 6px; }
.sb-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--t3);
  padding: 0 8px; margin-bottom: 4px;
}
.sb-nav { list-style: none; }
.sb-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--r-sm);
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  color: var(--t2); transition: all var(--dur) var(--ease);
  margin-bottom: 1px; position: relative;
}
.sb-nav a i { font-size: 17px; flex-shrink: 0; opacity: 0.7; }
.sb-nav a:hover { background: var(--bg3); color: var(--t1); }
.sb-nav a:hover i { opacity: 1; }
.sb-nav a.active {
  background: var(--indigo-bg); color: var(--accent);
}
.sb-nav a.active i { opacity: 1; color: var(--accent); }
.sb-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}

.sb-dot {
  width: 6px; height: 6px; border-radius: 50%; margin-left: auto; flex-shrink: 0;
}
.dot-indigo  { background: var(--indigo); }
.dot-cyan    { background: var(--cyan); }
.dot-emerald { background: var(--emerald); }
.dot-amber   { background: var(--amber); }
.dot-blue    { background: var(--blue); }
.dot-rose    { background: var(--rose); }
.dot-violet  { background: var(--violet); }
.dot-teal    { background: var(--teal); }

.sb-footer {
  margin-top: auto; padding: 16px;
  border-top: 0.5px solid var(--border);
  font-size: 11px; color: var(--t3); text-align: center;
}

/* ===== MAIN ===== */
.main {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 12px;
  position: sticky; top: 0; z-index: 100;
}
.tb-hamburger {
  display: none; background: none; border: none;
  color: var(--t2); cursor: pointer; padding: 6px;
  border-radius: 6px; align-items: center;
}
.tb-hamburger:hover { background: var(--bg3); }
.tb-title {
  font-size: 14px; font-weight: 500; color: var(--t1); flex: 1;
}
.tb-badge {
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  border-radius: 20px; letter-spacing: 0.2px;
  background: var(--indigo-bg); color: var(--accent);
  border: 0.5px solid var(--indigo-bdr);
}

/* ===== PAGE CONTENT ===== */
.page { flex: 1; }

/* ===== HOME HERO ===== */
.hero {
  padding: 52px 32px 40px; max-width: 640px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 20px;
  background: var(--indigo-bg); border: 0.5px solid var(--indigo-bdr);
  font-size: 12px; color: var(--accent); font-weight: 500;
  margin-bottom: 20px;
}
.hero-badge i { font-size: 13px; }
.hero h1 {
  font-size: 36px; font-weight: 600; line-height: 1.15;
  letter-spacing: -0.8px; color: var(--t1); margin-bottom: 14px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 15px; color: var(--t2); line-height: 1.7; margin-bottom: 28px; max-width: 460px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  border: none; text-decoration: none; transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 4px 14px rgba(99,102,241,0.35); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface); color: var(--t1);
  border: 0.5px solid var(--border2);
}
.btn-ghost:hover { background: var(--bg3); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-icon { padding: 7px; border-radius: var(--r-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== STATS ===== */
.hero-stats {
  display: flex; gap: 32px; margin-top: 36px; padding-top: 28px;
  border-top: 0.5px solid var(--border); flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num { font-size: 24px; font-weight: 600; color: var(--t1); letter-spacing: -0.5px; }
.stat-lbl { font-size: 12px; color: var(--t3); margin-top: 1px; }

/* ===== SECTION HEADER ===== */
.section-head {
  display: flex; align-items: center; gap: 12px;
  padding: 0 32px; margin-bottom: 14px;
}
.section-head h2 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--t3); white-space: nowrap;
}
.section-head .line { flex: 1; height: 0.5px; background: var(--border); }

/* ===== TOOLS GRID ===== */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; padding: 0 32px 28px;
}
.tool-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px 18px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tool-card:hover { border-color: var(--border2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card:hover::after { opacity: 1; }

/* color top borders */
.tc-indigo::after  { background: linear-gradient(90deg, var(--indigo),  transparent 70%); }
.tc-cyan::after    { background: linear-gradient(90deg, var(--cyan),    transparent 70%); }
.tc-emerald::after { background: linear-gradient(90deg, var(--emerald), transparent 70%); }
.tc-amber::after   { background: linear-gradient(90deg, var(--amber),   transparent 70%); }
.tc-blue::after    { background: linear-gradient(90deg, var(--blue),    transparent 70%); }
.tc-rose::after    { background: linear-gradient(90deg, var(--rose),    transparent 70%); }
.tc-violet::after  { background: linear-gradient(90deg, var(--violet),  transparent 70%); }
.tc-teal::after    { background: linear-gradient(90deg, var(--teal),    transparent 70%); }

.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon i { font-size: 20px; }

/* Icon bg colors */
.ci-indigo  { background: var(--indigo-bg);  color: var(--indigo); }
.ci-cyan    { background: var(--cyan-bg);    color: var(--cyan); }
.ci-emerald { background: var(--emerald-bg); color: var(--emerald); }
.ci-amber   { background: var(--amber-bg);   color: var(--amber); }
.ci-blue    { background: var(--blue-bg);    color: var(--blue); }
.ci-rose    { background: var(--rose-bg);    color: var(--rose); }
.ci-violet  { background: var(--violet-bg);  color: var(--violet); }
.ci-teal    { background: var(--teal-bg);    color: var(--teal); }

.card-title { font-size: 14px; font-weight: 600; color: var(--t1); line-height: 1.3; }
.card-desc  { font-size: 12.5px; color: var(--t2); line-height: 1.55; flex: 1; }
.card-tag {
  display: inline-block; font-size: 11px; color: var(--t3);
  background: var(--bg3); padding: 3px 9px; border-radius: 20px;
  border: 0.5px solid var(--border); margin-top: 4px;
}
.card-arrow {
  position: absolute; top: 18px; right: 16px;
  color: var(--t3); opacity: 0; font-size: 15px;
  transition: all var(--dur) var(--ease); transform: translateX(-4px);
}
.tool-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ===== SEARCH ===== */
.search-wrap { padding: 0 32px 22px; }
.search-box { position: relative; max-width: 480px; }
.search-box i {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: var(--t3); font-size: 17px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 10px 14px 10px 40px;
  border-radius: var(--r-sm); border: 0.5px solid var(--border2);
  background: var(--surface); color: var(--t1);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color var(--dur) var(--ease);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.search-input::placeholder { color: var(--t3); }

/* ===== CAT TABS ===== */
.cat-tabs { display: flex; gap: 6px; padding: 0 32px 20px; flex-wrap: wrap; }
.cat-tab {
  padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 500;
  border: 0.5px solid var(--border); color: var(--t2);
  cursor: pointer; background: transparent; font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.cat-tab:hover { border-color: var(--border2); color: var(--t1); }
.cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== BOTTOM CTA ===== */
.home-cta {
  margin: 8px 32px 40px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.06));
  border: 0.5px solid var(--indigo-bdr);
  border-radius: var(--r-lg); padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
}
.home-cta-text { flex: 1; }
.home-cta-text h3 { font-size: 16px; font-weight: 600; color: var(--t1); margin-bottom: 5px; }
.home-cta-text p { font-size: 13.5px; color: var(--t2); line-height: 1.6; }

/* ===== TOOL PAGE ===== */
.tool-page { padding: 28px 32px; max-width: 1040px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--t3); margin-bottom: 22px;
}
.breadcrumb a { color: var(--t3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; font-size: 11px; }

.tool-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px;
}
.tool-header-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tool-header-icon i { font-size: 25px; }
.tool-header-title { font-size: 26px; font-weight: 600; color: var(--t1); letter-spacing: -0.4px; }
.tool-header-desc { font-size: 14px; color: var(--t2); margin-top: 5px; line-height: 1.5; }

/* ===== TOOL LAYOUT ===== */
.tool-layout { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .tool-layout { grid-template-columns: 1fr; } }

/* ===== PANELS ===== */
.panel {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.panel-title {
  font-size: 13px; font-weight: 600; color: var(--t1);
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 0.5px solid var(--border);
}
.panel-title i { font-size: 16px; color: var(--t3); }

/* ===== FORM ===== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 12.5px; font-weight: 500;
  color: var(--t2); margin-bottom: 5px;
}
.form-label .opt { font-weight: 400; color: var(--t3); margin-left: 4px; }
.form-control {
  width: 100%; padding: 9px 12px;
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-radius: var(--r-sm); color: var(--t1);
  font-family: inherit; font-size: 13.5px; outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  background: var(--surface);
}
.form-control::placeholder { color: var(--t3); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 5L10 1' stroke='%239ba3b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Hint */
.form-hint {
  font-size: 11.5px; color: var(--t3); margin-top: 5px; line-height: 1.5;
}

/* ===== RESULT PANEL ===== */
.result-panel {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; display: none;
}
.result-panel.show { display: block; animation: slideUp 0.3s var(--ease); }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* Main result highlight */
.result-main {
  background: linear-gradient(135deg, var(--indigo-bg), rgba(6,182,212,0.07));
  border: 0.5px solid var(--indigo-bdr);
  border-radius: var(--r); padding: 20px 24px;
  text-align: center; margin-bottom: 18px;
}
.result-main-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--t3); margin-bottom: 7px; }
.result-main-value {
  font-size: 32px; font-weight: 600; letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Stats grid */
.result-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.result-stat {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--r-sm); padding: 13px 14px;
}
.result-stat-label { font-size: 11px; color: var(--t3); margin-bottom: 4px; line-height: 1.3; }
.result-stat-value { font-size: 15px; font-weight: 600; color: var(--t1); line-height: 1.2; }
.result-stat-value.danger { color: var(--rose); }
.result-stat-value.success { color: var(--emerald); }
.result-stat-value.warn { color: var(--amber); }

/* Table */
.tbl-wrap { border-radius: var(--r-sm); border: 0.5px solid var(--border); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  background: var(--bg3); padding: 9px 12px;
  text-align: left; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--t3);
  border-bottom: 0.5px solid var(--border);
}
tbody tr { border-bottom: 0.5px solid var(--border); transition: background var(--dur) var(--ease); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg3); }
tbody td { padding: 9px 12px; color: var(--t2); }
tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody td.bold { color: var(--t1); font-weight: 500; }

/* Sub panel title */
.sub-title {
  font-size: 12.5px; font-weight: 600; color: var(--t2);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.sub-title i { font-size: 15px; }

/* ===== SURAT ===== */
.surat-box {
  background: #fff; color: #1c1c1c;
  border-radius: var(--r); padding: 40px 48px;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 13.5px; line-height: 1.9; white-space: pre-wrap;
  word-break: break-word; box-shadow: var(--shadow-lg);
}
.surat-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-bottom: 14px;
}

/* ===== ALERT ===== */
.alert {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; display: none; margin-bottom: 14px;
  display: none; align-items: center; gap: 8px;
}
.alert.show { display: flex; animation: slideUp 0.2s var(--ease); }
.alert-error { background: var(--rose-bg); border: 0.5px solid var(--rose-bdr); color: var(--rose); }
.alert-success { background: var(--emerald-bg); border: 0.5px solid var(--emerald-bdr); color: var(--emerald); }
.alert i { font-size: 16px; flex-shrink: 0; }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--indigo-bg); border: 0.5px solid var(--indigo-bdr);
  border-radius: var(--r-sm); padding: 13px 15px;
  font-size: 12.5px; color: var(--accent); line-height: 1.6;
  margin-top: 14px;
}
.info-box strong { font-weight: 600; display: block; margin-bottom: 4px; }

/* ===== SPINNER ===== */
.spin {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: rotate 0.6s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ===== AGE PAGE ===== */
.age-display {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.age-chunk { text-align: center; }
.age-num {
  font-size: 56px; font-weight: 600; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.age-num.sm { font-size: 36px; color: var(--violet); -webkit-text-fill-color: var(--violet); background: none; }
.age-lbl { font-size: 12px; color: var(--t3); margin-top: 4px; }
.age-sep { font-size: 24px; color: var(--border2); align-self: center; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.bp-violet { background: var(--violet-bg); color: var(--violet); border: 0.5px solid var(--violet-bdr); }
.bp-cyan   { background: var(--cyan-bg);   color: var(--cyan);   border: 0.5px solid var(--cyan-bdr); }

/* ===== OVERLAY ===== */
.sb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 150;
  backdrop-filter: blur(2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .sb-overlay.show { display: block; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .tb-hamburger { display: flex; }
  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: 26px; }
  .section-head { padding: 0 16px; }
  .tools-grid { padding: 0 16px 24px; grid-template-columns: 1fr 1fr; }
  .search-wrap { padding: 0 16px 18px; }
  .cat-tabs { padding: 0 16px 16px; }
  .home-cta { margin: 8px 16px 32px; flex-direction: column; align-items: flex-start; }
  .tool-page { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .surat-box { padding: 24px; font-size: 12.5px; }
  .result-main-value { font-size: 26px; }
}

/* ===== PRINT ===== */
@media print {
  .sidebar, .topbar, .panel, .btn, .breadcrumb, .alert { display: none !important; }
  .result-panel { display: block !important; border: none; padding: 0; }
  .surat-box { box-shadow: none; }
}
