/* WriterTools - Premium Dark Design System */
/* Emerald/Amber palette — differentiated from ToolStack (indigo) */

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

:root {
  /* Core Palette */
  --bg:            #0a0a0b;
  --bg-2:          #0f0f11;
  --bg-3:          #141416;
  --bg-4:          #1a1a1e;
  --bg-5:          #222228;

  /* Borders */
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(255,255,255,0.12);
  --border-active: rgba(16,185,129,0.5);

  /* Accent — Emerald → Teal */
  --emerald:       #10b981;
  --teal:          #14b8a6;
  --amber:         #f59e0b;
  --emerald-dim:   rgba(16,185,129,0.15);
  --emerald-glow:  rgba(16,185,129,0.25);
  --amber-dim:     rgba(245,158,11,0.15);

  /* Gradient helpers */
  --grad-primary:  linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #f59e0b 100%);
  --grad-subtle:   linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(20,184,166,0.05) 100%);
  --grad-card:     linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);

  /* Text */
  --text:          #f4f4f5;
  --text-2:        #a1a1aa;
  --text-3:        #71717a;
  --text-4:        #52525b;

  /* Semantic */
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --success-dim:   rgba(34,197,94,0.15);
  --warning-dim:   rgba(245,158,11,0.15);
  --danger-dim:    rgba(239,68,68,0.15);

  /* Typography */
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;

  /* Radii */
  --r-sm:   6px;
  --r:      10px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow:     0 4px 12px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 40px rgba(0,0,0,0.7), 0 8px 16px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(16,185,129,0.2), 0 0 40px rgba(16,185,129,0.1);

  /* Transitions */
  --t:      0.2s ease;
  --t-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases */
  --primary:        var(--emerald);
  --primary-dark:   var(--teal);
  --primary-light:  rgba(16,185,129,0.25);
  --primary-xlight: rgba(16,185,129,0.1);
  --accent:         var(--amber);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover { color: var(--text); }

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: all var(--t);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* ===== HERO ===== */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 500px; height: 500px;
  background: rgba(16,185,129,0.12);
  top: -100px; right: 10%;
}

.hero-shape-2 {
  width: 350px; height: 350px;
  background: rgba(245,158,11,0.08);
  bottom: -80px; left: 15%;
}

.hero-shape-3 {
  width: 250px; height: 250px;
  background: rgba(20,184,166,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--emerald-dim);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

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

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

.hero-search {
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: all var(--t);
}

.hero-search input:focus {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

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

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

/* ===== TOOL GRID ===== */
.tools-section {
  padding: 20px 0 64px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-icon.emerald { background: var(--emerald-dim); }
.section-icon.amber   { background: var(--amber-dim); }
.section-icon.teal    { background: rgba(20,184,166,0.15); }
.section-icon.violet  { background: rgba(139,92,246,0.15); }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.section-count {
  font-size: 0.8rem;
  color: var(--text-3);
  background: var(--bg-4);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-weight: 500;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ===== TOOL CARD ===== */
.tool-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: all var(--t-slow);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--t);
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-card:hover::before { opacity: 1; }

.tool-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  background: var(--emerald-dim);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  transition: transform var(--t);
}

.tool-card:hover .tool-card-icon { transform: scale(1.05); }

.tool-card-icon.amber  { background: var(--amber-dim);              border-color: rgba(245,158,11,0.2); }
.tool-card-icon.teal   { background: rgba(20,184,166,0.15);         border-color: rgba(20,184,166,0.2); }
.tool-card-icon.violet { background: rgba(139,92,246,0.15);         border-color: rgba(139,92,246,0.2); }
.tool-card-icon.rose   { background: rgba(244,63,94,0.15);          border-color: rgba(244,63,94,0.2); }
.tool-card-icon.sky    { background: rgba(14,165,233,0.15);         border-color: rgba(14,165,233,0.2); }

.tool-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.tool-card-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}

.tool-card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-4);
  font-size: 0.85rem;
  transition: all var(--t);
  opacity: 0;
}

.tool-card:hover .tool-card-arrow {
  opacity: 1;
  color: var(--emerald);
  transform: translateX(2px);
}

/* ===== TOOL PAGE ===== */
.tool-page {
  padding: 40px 0 80px;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: var(--text-3);
}

.tool-breadcrumb a {
  color: var(--text-3);
  transition: color var(--t);
}

.tool-breadcrumb a:hover { color: var(--emerald); }

.tool-breadcrumb-sep { color: var(--text-4); }

.tool-header {
  margin-bottom: 36px;
}

.tool-header-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.tool-header-icon {
  width: 52px;
  height: 52px;
  background: var(--emerald-dim);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tool-header p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 600px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.card + .card { margin-top: 20px; }

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ===== FORM ELEMENTS ===== */
textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--t);
}

textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}

input[type="text"], input[type="number"] {
  padding: 10px 14px;
}

select {
  padding: 10px 14px;
  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 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
  background: var(--bg-5);
}

textarea::placeholder, input::placeholder { color: var(--text-4); }

.input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.input-group {
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: var(--emerald);
  color: white;
}

.btn-primary:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

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

.btn-secondary:hover {
  background: var(--bg-5);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-amber {
  background: var(--amber);
  color: #1a1a1e;
}

.btn-amber:hover {
  background: #fbbf24;
  color: #1a1a1e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-item {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  text-align: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ===== RESULTS ===== */
.result-box {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  min-height: 60px;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-box.copyable {
  cursor: pointer;
  transition: all var(--t);
}

.result-box.copyable:hover {
  border-color: var(--border-hover);
  background: var(--bg-5);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-emerald { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.badge-amber   { background: var(--amber-dim);   color: var(--amber);   border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }

/* ===== HIGHLIGHTED TEXT ===== */
mark.passive {
  background: rgba(245,158,11,0.25);
  color: var(--amber);
  border-radius: 2px;
  padding: 1px 2px;
}

mark.cliche {
  background: rgba(239,68,68,0.2);
  color: #fb7185;
  border-radius: 2px;
  padding: 1px 2px;
}

mark.transition {
  background: rgba(16,185,129,0.2);
  color: var(--emerald);
  border-radius: 2px;
  padding: 1px 2px;
}

mark.long-sentence {
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
  border-radius: 2px;
  padding: 1px 2px;
}

/* ===== SCORE BAR ===== */
.score-bar-wrap {
  margin-top: 8px;
}

.score-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--text-2);
}

.score-bar-track {
  height: 8px;
  background: var(--bg-5);
  border-radius: var(--r-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--grad-primary);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TAG CLOUD ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--text-2);
}

.tag-item .tag-count {
  background: var(--emerald-dim);
  color: var(--emerald);
  border-radius: var(--r-full);
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ===== HIGHLIGHTED OUTPUT ===== */
.highlight-output {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--text-2);
  min-height: 80px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== CHART / VIZ ===== */
.sentence-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.sentence-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.sentence-bar-label {
  color: var(--text-3);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.sentence-bar-track {
  flex: 1;
  height: 22px;
  background: var(--bg-5);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--t);
}

.sentence-bar-track:hover { background: var(--bg-4); }

.sentence-bar-fill {
  height: 100%;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.72rem;
  color: white;
  transition: width 0.4s ease;
  min-width: 4px;
}

.sentence-bar-fill.short  { background: var(--emerald); }
.sentence-bar-fill.medium { background: var(--amber); }
.sentence-bar-fill.long   { background: rgba(239,68,68,0.8); }
.sentence-bar-fill.vlong  { background: var(--danger); }

.sentence-bar-count {
  width: 40px;
  text-align: left;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ===== AD SLOTS ===== */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--r);
  color: var(--text-4);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-banner  { width: 100%; height: 90px;  margin: 20px 0; }
.ad-rect    { width: 100%; min-height: 250px; }
.ad-inline  { width: 100%; height: 60px;  margin: 24px 0; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color var(--t);
}

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

/* ===== UTILITIES ===== */
.flex          { display: flex; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.gap-4         { gap: 16px; }
.mt-2          { margin-top: 8px; }
.mt-3          { margin-top: 12px; }
.mt-4          { margin-top: 16px; }
.mt-6          { margin-top: 24px; }
.mb-2          { margin-bottom: 8px; }
.mb-3          { margin-bottom: 12px; }
.mb-4          { margin-bottom: 16px; }
.text-sm       { font-size: 0.82rem; }
.text-xs       { font-size: 0.75rem; }
.text-muted    { color: var(--text-3); }
.text-emerald  { color: var(--emerald); }
.text-amber    { color: var(--amber); }
.font-bold     { font-weight: 700; }
.hidden        { display: none !important; }

/* ===== ALERTS ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 0.875rem;
  line-height: 1.5;
}

.alert-info    { background: var(--emerald-dim); border: 1px solid rgba(16,185,129,0.2); color: var(--text-2); }
.alert-warning { background: var(--warning-dim); border: 1px solid rgba(245,158,11,0.2);  color: var(--text-2); }

.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ===== COPY BUTTON ===== */
.copy-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.copy-wrap textarea,
.copy-wrap .result-box {
  flex: 1;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  background: var(--bg-5);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font);
}

.copy-btn:hover {
  background: var(--emerald-dim);
  color: var(--emerald);
  border-color: rgba(16,185,129,0.3);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--t);
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { color: var(--emerald); border-bottom-color: var(--emerald); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

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

.data-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.data-table td {
  padding: 10px 14px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== TOOLTIP ===== */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-5);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
  border: 1px solid var(--border);
  z-index: 10;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .home-hero { padding: 60px 0 48px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .container { padding: 0 16px; }
  .tool-page { padding: 24px 0 60px; }
  .ad-banner { height: 60px; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* ===== AFFILIATE SECTION ===== */
.affiliate-section {
  padding: 24px 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.affiliate-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.aff-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--t), transform var(--t);
}
.aff-card:hover {
  border-color: rgba(16,185,129,0.5);
  transform: translateY(-2px);
}
.aff-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.aff-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
  flex: 1;
}
.aff-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 4px;
}
/* ===== /AFFILIATE SECTION ===== */
