/* ========================================
   SITEMAP TOOLS SUITE — Dark Terminal Theme
   Designed by Spinah (spinah.com)
   ======================================== */

:root {
  --bg: #0a0c10;
  --bg-card: #12151c;
  --bg-card-hover: #181c26;
  --bg-elevated: #1a1e28;
  --border: #1e2330;
  --border-hover: #2a3040;
  --text: #e2e4ea;
  --text-dim: #6b7394;
  --text-muted: #3d4460;
  --accent: #22d3a7;
  --accent-glow: rgba(34, 211, 167, 0.15);
  --accent-dim: rgba(34, 211, 167, 0.08);
  --red: #f05e6b;
  --red-dim: rgba(240, 94, 107, 0.12);
  --yellow: #f0c05e;
  --yellow-dim: rgba(240, 192, 94, 0.12);
  --blue: #5e9cf0;
  --blue-dim: rgba(94, 156, 240, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}

.mono { font-family: var(--font-mono); }

.hidden { display: none !important; }

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spinah-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.spinah-logo-link:hover { opacity: 0.8; }

.spinah-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 167, 0.12);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.btn-header {
  padding: 7px 16px;
  font-size: 0.78rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px rgba(34, 211, 167, 0.1);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(34, 211, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 167, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 167, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(34, 211, 167, 0.06);
  border: 1px solid rgba(34, 211, 167, 0.12);
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-badge a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hero-badge a:hover { text-decoration: underline; }

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #5ef0d0 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

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

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text);
  transition: var(--transition);
}

.hero-feature:hover {
  border-color: rgba(34, 211, 167, 0.25);
  background: rgba(34, 211, 167, 0.04);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===================================================
   TAB NAVIGATION
   =================================================== */
.tab-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.6);
  position: sticky;
  top: 53px;
  z-index: 99;
}

.tab-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===================================================
   MAIN CONTENT
   =================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: 60vh;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== GRID LAYOUTS ===== */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-grid.single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS ===== */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.panel-card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ===== INPUT TOGGLE ===== */
.input-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.toggle-btn {
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--bg-elevated);
  color: var(--text);
}

/* ===== DROP ZONE ===== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.drop-zone.compact {
  padding: 24px 20px;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.drop-zone.has-file {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-dim);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-text {
  font-size: 0.9rem;
  color: var(--text);
}

.drop-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== URL INPUT ===== */
.url-input-group {
  display: flex;
  gap: 10px;
}

.text-input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.input-section {
  display: none;
}
.input-section.active {
  display: block;
}

/* ===== FILE INFO ===== */
.file-info {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.file-info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.82rem;
}

.file-label { color: var(--text-dim); }
.file-value { color: var(--text); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: #1abf96;
  border-color: #1abf96;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.btn-lg { padding: 12px 28px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 16px; }

/* ===== EXPORT GRID ===== */
.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.export-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.export-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.export-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}

/* ===== DATA TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.data-table tr:hover td {
  background: var(--accent-dim);
}

.preview-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-info {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== ANALYTICS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

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

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Bar chart rows */
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bar-label {
  width: 100px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 22px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
}

.bar-fill.red { background: var(--red); }
.bar-fill.yellow { background: var(--yellow); }
.bar-fill.blue { background: var(--blue); }

.bar-value {
  width: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  text-align: right;
  flex-shrink: 0;
}

/* ===== COMPARISON ===== */
.action-bar {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.compare-section {
  margin-bottom: 16px;
}

.compare-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.compare-section-header .badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.badge-green { background: rgba(34, 211, 167, 0.15); color: var(--accent); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }

.compare-urls {
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.compare-url-item {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  word-break: break-all;
}

.compare-url-item:last-child { border-bottom: none; }

.compare-url-item .change-detail {
  display: block;
  font-size: 0.7rem;
  color: var(--yellow);
  margin-top: 2px;
}

/* ===== MERGE ===== */
.merge-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.merge-file-item .file-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.merge-file-item .file-remove:hover {
  background: var(--red-dim);
}

/* ===== CHECKBOX ===== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.merge-options {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ===== ERROR LIST ===== */
.error-list {
  margin-top: 12px;
  padding: 12px;
  background: var(--red-dim);
  border: 1px solid rgba(240, 94, 107, 0.2);
  border-radius: var(--radius);
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.78rem;
  color: var(--red);
  font-family: var(--font-mono);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  gap: 16px;
  backdrop-filter: blur(4px);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 52px 0 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition);
}

.footer-logo-link:hover { opacity: 0.8; }

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.84rem;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--accent);
}

.footer-designed {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-designed a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-designed a:hover {
  text-decoration: underline;
}

/* ===================================================
   TOOL NAVIGATION (multi-page)
   =================================================== */
.tool-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.6);
  position: sticky;
  top: 53px;
  z-index: 99;
}

.tool-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tool-nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.logo-home-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

/* ===================================================
   PAGE HEADING
   =================================================== */
.page-heading {
  margin-bottom: 24px;
}

.page-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ===================================================
   CONTENT / HOW-TO SECTIONS
   =================================================== */
.content-section {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.content-inner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.content-inner p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.content-inner p:last-child {
  margin-bottom: 0;
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

/* ===================================================
   TOOL HUB CARDS (homepage)
   =================================================== */
.tools-hub {
  padding: 48px 24px;
}

.tools-hub-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: rgba(34, 211, 167, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 167, 0.12);
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.tool-card-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .hero {
    padding: 56px 20px 50px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-features {
    gap: 8px;
  }
  .hero-feature {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .main-content {
    padding: 16px;
  }
  .nav-link {
    padding: 10px 12px;
    font-size: 0.78rem;
  }
  .tab-btn {
    padding: 10px 12px;
    font-size: 0.78rem;
  }
  .tab-btn svg { display: none; }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 28px;
  }
  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .btn-header { display: none; }
  .header-divider { display: none; }
  .spinah-logo-img { height: 22px; }
  .tool-card-grid {
    grid-template-columns: 1fr;
  }
  .content-section {
    padding: 36px 20px;
  }
  .page-heading h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-badge {
    font-size: 0.65rem;
  }
  .url-input-group {
    flex-direction: column;
  }
  .export-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links-group {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
