:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border: #e2e8f0;
  --border-focus: #10b981;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.2);
  --accent: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --input-bg: #ffffff;
  --code-bg: #f1f5f9;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

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

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.03) 0%, transparent 45%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.nav-link.active {
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 16px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  list-style: none;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

.breadcrumbs span.separator {
  color: var(--text-dim);
}

/* Main Layout */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  width: 100%;
}

/* Page Intro Header */
.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-main);
  background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Cards & Grid */
.tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}

@media (max-width: 880px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-title svg {
  width: 20px;
  height: 20px;
  stroke: #10b981;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.phone-input-row {
  display: flex;
  gap: 10px;
}

.select-country {
  background: var(--input-bg);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 145px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-field {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-field:focus, .select-country:focus, .textarea-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.textarea-field {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 95px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Quick Message Chips */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.preset-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Output Box */
.output-card {
  margin-top: 22px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
}

.output-link-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: #059669;
  word-break: break-all;
  margin-bottom: 14px;
  user-select: all;
  font-weight: 600;
}

.output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Phone Mockup */
.mockup-container {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.mockup-top-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.mockup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.mockup-header-text strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
}

.mockup-header-text span {
  font-size: 11px;
  color: #94a3b8;
}

.mockup-chat-screen {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(11, 15, 25, 0.65);
  border-radius: 16px;
  padding: 14px;
}

.chat-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 12px 12px 2px 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  align-self: flex-end;
  max-width: 90%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  word-break: break-word;
}

.bubble-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 4px;
}

/* QR Code Section */
.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.qr-canvas-holder {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

#qr-canvas {
  display: block;
  width: 200px;
  height: 200px;
}

.color-picker-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #0f172a;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Text Styler Grid */
.styler-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.style-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.style-box:hover {
  border-color: #0284c7;
  box-shadow: var(--shadow-md);
}

.style-meta {
  overflow: hidden;
}

.style-name {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.style-preview {
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-mini-copy {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-mini-copy:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

/* SEO Content Sections */
.seo-section {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  margin-top: 40px;
}

.seo-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.seo-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

/* Step-by-Step 3-Column Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s;
}

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

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hub Directory Cards */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.hub-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #059669;
}

.hub-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.hub-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hub-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.hub-arrow-link {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #10b981;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  background: #ffffff;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

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

.footer-copy {
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 16px auto 0;
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================================
   Extended Components: Dropzones, Tabs, Sliders, Tables, Gauges & Queue
   ========================================================================== */

/* Subnav / Header Navigation Enhancement */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: all 0.2s;
}

.nav-dropdown-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-dropdown-item:hover {
  color: #059669;
  background: #ecfdf5;
}

.nav-dropdown-item svg {
  width: 15px;
  height: 15px;
  stroke: #10b981;
  flex-shrink: 0;
}

/* Tab Bar */
.tool-tab-bar {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.tool-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tool-tab-btn:hover {
  color: var(--text-main);
}

.tool-tab-btn.active {
  background: #ffffff;
  color: #059669;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Unit Toggle Segmented Control */
.unit-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.unit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.unit-btn:hover {
  color: var(--text-main);
}

.unit-btn.active {
  background: #10b981;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* Custom Sliders */
.slider-group {
  margin-bottom: 20px;
}

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

.slider-value {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.custom-range {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
  transition: transform 0.15s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.custom-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

/* Dropzone */
.dropzone-wrap {
  border: 2px dashed #93c5fd;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 38px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  margin-bottom: 24px;
}

.dropzone-wrap:hover,
.dropzone-wrap.dragover {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.dropzone-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eff6ff;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #bfdbfe;
}

.dropzone-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.dropzone-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dropzone-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.dropzone-sub strong {
  color: #059669;
}

.dropzone-tags {
  display: inline-flex;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.dropzone-tags span {
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* File Batch Queue */
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.queue-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.queue-actions {
  display: flex;
  gap: 8px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.queue-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.queue-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.queue-info {
  flex: 1;
  min-width: 0;
}

.queue-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.queue-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.savings-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.queue-btn-download {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}

.queue-btn-download:hover {
  background: #059669;
}

.queue-btn-remove {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.queue-btn-remove:hover {
  color: #ef4444;
}

/* BMI Meter & Gauge */
.bmi-result-card {
  text-align: center;
  padding: 24px;
}

.bmi-meter-svg-wrap {
  position: relative;
  width: 260px;
  height: 145px;
  margin: 0 auto 16px;
}

.bmi-gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bmi-gauge-needle {
  transform-origin: 130px 130px;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bmi-score-big {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.bmi-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.bmi-badge-underweight { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.bmi-badge-normal      { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.bmi-badge-overweight  { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.bmi-badge-obese       { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.bmi-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.bmi-stat-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.bmi-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.bmi-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Image Side-by-Side Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.compare-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-img-wrap {
  width: 100%;
  height: 200px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.03);
}

.compare-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* SEO Data Tables */
.seo-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.seo-table th {
  background: #f8fafc;
  color: #0284c7;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.seo-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

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

.seo-table tr:hover td {
  background: #f8fafc;
  color: var(--text-main);
}

.seo-table strong {
  color: var(--text-main);
}

.seo-content-block {
  margin-bottom: 36px;
  line-height: 1.75;
  color: var(--text-muted);
  font-size: 15px;
}

.seo-content-block h3 {
  font-size: 20px;
  color: var(--text-main);
  font-weight: 700;
  margin: 28px 0 12px;
}

.seo-content-block p {
  margin-bottom: 14px;
}

.seo-content-block ul,
.seo-content-block ol {
  margin: 12px 0 18px 24px;
}

.seo-content-block li {
  margin-bottom: 8px;
}

/* Related Tools Grid */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.related-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.related-tool-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.related-tool-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-tool-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.related-tool-link {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
