/* ===================================================================
   RESELLER FEE HUB - MODERN WARM LIGHT THEME
   Vibrant Orange + Deep Slate & Emerald Accents
   Ultra-Responsive, Mobile-First Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* Brand Color Palette: Vibrant Orange & Warm Accents */
  --primary: #ea580c;           /* Vivid Orange */
  --primary-hover: #c2410c;     /* Deep Rust Orange */
  --primary-light: #fff7ed;    /* Soft Cream / Warm Peach */
  --primary-border: #fed7aa;   /* Light Orange Border */
  --primary-glow: rgba(234, 88, 12, 0.18);

  --secondary: #0f172a;         /* Deep Navy / Slate */
  --secondary-light: #1e293b;
  --accent: #059669;            /* Crisp Emerald Green for Profits */
  --accent-light: #ecfdf5;      /* Mint Green Background */
  --accent-border: #a7f3d0;
  --danger: #dc2626;            /* Alert Red */
  --danger-light: #fef2f2;

  /* Modern Light Canvas */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #ea580c;

  /* Crisp Typography for Maximum Readability */
  --text-main: #0f172a;         /* Almost Black for Sharp Contrast */
  --text-muted: #475569;        /* Slate 600 */
  --text-dim: #94a3b8;          /* Slate 400 */

  /* Platform Colors */
  --depop-red: #ff2300;
  --vinted-cyan: #09b1ba;
  --posh-maroon: #8b132f;
  --ebay-blue: #0064d2;

  /* Elevate Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(234, 88, 12, 0.05) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.04) 0px, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #fb923c);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 4px 10px var(--primary-glow);
  flex-shrink: 0;
}

.brand-logo span span {
  color: var(--primary);
}

/* Desktop Navigation */
.header-inner nav {
  margin-left: auto;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.25rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .header-actions .btn-primary {
    display: none;
  }
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* Hero Section */
.hero-section {
  padding: 44px 0 26px;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 28px 0 18px;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  color: var(--primary-hover);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  box-shadow: 0 0 6px var(--primary-glow);
}

.platform-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.platform-dot.depop { background-color: #ff2300; box-shadow: 0 0 6px rgba(255, 35, 0, 0.4); }
.platform-dot.vinted { background-color: #09b1ba; box-shadow: 0 0 6px rgba(9, 177, 186, 0.4); }
.platform-dot.poshmark { background-color: #8b132f; box-shadow: 0 0 6px rgba(139, 19, 47, 0.4); }
.platform-dot.mercari { background-color: #0064d2; box-shadow: 0 0 6px rgba(0, 100, 210, 0.4); }

.btn-svg-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  vertical-align: -2px;
  margin-right: 5px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--secondary);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ea580c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Calculator Wrapper */
.calculator-wrapper {
  max-width: 1040px;
  margin: 0 auto 52px;
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .platform-tabs {
    justify-content: flex-start;
    padding: 6px;
    gap: 6px;
  }
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-body);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.tab-btn[data-platform="depop"].active {
  border-bottom: 3px solid var(--primary);
  color: var(--primary);
}

.tab-btn[data-platform="vinted"].active {
  border-bottom: 3px solid var(--vinted-cyan);
  color: var(--vinted-cyan);
}

.tab-btn[data-platform="poshmark"].active {
  border-bottom: 3px solid var(--posh-maroon);
  color: var(--posh-maroon);
}

.tab-btn[data-platform="mercari"].active {
  border-bottom: 3px solid var(--ebay-blue);
  color: var(--ebay-blue);
}

/* Main Calculator Card */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: start;
}

@media (max-width: 880px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .calculator-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }
}

/* Left Column Form */
.calc-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.calc-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-platform-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--secondary);
}

.calc-platform-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Inline Currency Switcher */
.currency-switcher-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.curr-hint-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 4px;
}

.currency-btn-group {
  display: flex;
  gap: 3px;
}

.curr-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.curr-btn:hover {
  color: var(--secondary);
  border-color: #94a3b8;
}

.curr-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px var(--primary-glow);
}

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

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .tooltip-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 400;
}

.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 34px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 500px) {
  .options-row {
    grid-template-columns: 1fr;
  }
}

.select-input {
  width: 100%;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.checkbox-card:hover {
  background: #ffedd5;
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.84rem;
  color: var(--secondary);
}

/* Right Column: Results Panel */
.results-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .results-panel {
    padding: 16px;
  }
}

.profit-hero {
  text-align: center;
  padding: 16px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.profit-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.profit-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.metrics-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.metric-item {
  background: #ffffff;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.metric-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.metric-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Breakdown List */
.breakdown-list {
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row .val {
  font-weight: 600;
  color: var(--secondary);
}

.breakdown-row .val.fee {
  color: var(--danger);
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  flex: 1;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-body);
  border-color: #cbd5e1;
}

/* SEO Editorial Card */
.seo-content-section {
  max-width: 960px;
  margin: 0 auto 60px;
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* Prevent horizontal container stretch */
}

@media (max-width: 768px) {
  .editorial-card {
    padding: 22px 14px;
    border-radius: var(--radius-lg);
  }
}

.editorial-card h1, .editorial-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.editorial-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 12px;
}

.editorial-card h2:first-child {
  margin-top: 0;
}

.editorial-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.editorial-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

.editorial-card ul, .editorial-card ol {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.editorial-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.formula-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--primary-hover);
  font-weight: 600;
}

/* ==========================================================
   FIXED RESPONSIVE TABLE STYLES (No Overflow / Fits Cleanly)
   ========================================================== */
.table-scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  width: fit-content;
}

.fee-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: inset -10px 0 10px -8px rgba(15, 23, 42, 0.12); /* Subtle visual hint that more columns exist */
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 580px;
}

.fee-table th {
  background: #f1f5f9;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.fee-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}

.fee-table tr:nth-child(even) td {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .fee-table {
    font-size: 0.78rem;
    min-width: 480px;
  }
  .fee-table th, .fee-table td {
    padding: 8px 10px;
  }
}

/* FAQ Accordion */
.faq-section {
  margin-top: 32px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span.icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question span.icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 18px 16px 18px;
}

/* Blog Cards */
.blog-preview-section {
  margin: 0 auto 64px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f1f5f9;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.04);
}

.article-featured-image {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 16px 0 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: block;
}

.blog-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-tag.depop {
  background: #fee2e2;
  color: #dc2626;
}

.blog-tag.vinted {
  background: #e0f2fe;
  color: #0284c7;
}

.blog-tag.tips {
  background: #fef3c7;
  color: #d97706;
}

.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

/* ==========================================================
   FIXED RESPONSIVE FOOTER (2-by-2 Columns on Mobile)
   ========================================================== */
.footer {
  margin-top: auto;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 48px 0 24px;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.1fr;
  gap: 48px;
  justify-content: space-between;
  max-width: 1020px;
  margin: 0 auto 36px auto;
}

/* Tablet & Mobile 2x2 Column Layout */
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }
  /* Top brand info spans both columns cleanly across the top */
  .footer-col:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 18px;
    margin-bottom: 4px;
  }
}

/* Mobile Small: Keeps the clean 2-by-2 section grid */
@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }
}

.footer .brand-logo {
  color: #ffffff;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.86rem;
  color: #94a3b8;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-disclaimer {
  max-width: 750px;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.5;
  margin: 14px auto 0 auto;
  text-align: center;
}

/* ==========================================================
   MODERN DARK THEME SYSTEM & THEME TOGGLE (100% CONTRAST)
   ========================================================== */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #111827;
  --bg-card: #131c2e;
  --bg-card-subtle: #0d1524;
  --bg-glass: rgba(17, 24, 39, 0.95);
  --border: #1e293b;
  --border-light: #172033;
  --border-focus: #ea580c;

  --secondary: #f8fafc;
  --secondary-light: #e2e8f0;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary-light: #2c1a11;
  --primary-border: #7c2d12;
  --accent-light: #062e24;
  --accent-border: #065f46;
  --danger-light: #351317;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] body {
  background-color: var(--bg-body);
  color: var(--text-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(234, 88, 12, 0.08) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.5) 0px, transparent 45%);
}

/* Header & Nav */
[data-theme="dark"] .header {
  background: rgba(17, 24, 39, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-link {
  color: var(--text-muted);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #fb923c;
  background: rgba(234, 88, 12, 0.12);
}

/* Main Cards */
[data-theme="dark"] .calculator-card,
[data-theme="dark"] .editorial-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .faq-item {
  background: var(--bg-card);
  border-color: var(--border);
}

/* ==========================================================
   CURRENCY SWITCHER (High Contrast in Dark Mode)
   ========================================================== */
[data-theme="dark"] .currency-switcher-inline {
  background: #0d1524 !important;
  border-color: #27354f !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .curr-hint-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .curr-btn {
  background: #151e32 !important;
  border-color: #27354f !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .curr-btn:hover {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #94a3b8 !important;
}

[data-theme="dark"] .curr-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35) !important;
}

/* ==========================================================
   INPUT BOXES (Crisp, Clear, High-Contrast Visibility)
   ========================================================== */
[data-theme="dark"] .form-label {
  color: #f8fafc !important;
}

[data-theme="dark"] .form-label .tooltip-hint {
  color: #94a3b8 !important;
}

[data-theme="dark"] .input-prefix {
  color: #fb923c !important; /* Bold vivid orange currency sign */
  text-shadow: 0 0 12px rgba(251, 146, 60, 0.3) !important;
}

[data-theme="dark"] .form-input {
  background: #080d1a !important; /* Rich deep slate background */
  border: 1.5px solid #2d3b55 !important;
  color: #ffffff !important; /* Pure crisp white value text */
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .form-input:hover {
  border-color: #475569 !important;
}

[data-theme="dark"] .form-input:focus {
  background: #0d1527 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .form-input::placeholder {
  color: #64748b !important;
}

/* Select Dropdown */
[data-theme="dark"] .select-input {
  background: #080d1a !important;
  border: 1.5px solid #2d3b55 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .select-input:focus {
  background: #0d1527 !important;
  border-color: #f97316 !important;
}

[data-theme="dark"] select option {
  background: #0d1524 !important;
  color: #ffffff !important;
}

/* Checkbox Cards */
[data-theme="dark"] .checkbox-card {
  background: #1c1511 !important;
  border-color: #7c2d12 !important;
}
[data-theme="dark"] .checkbox-card:hover {
  background: #271c16 !important;
  border-color: #ea580c !important;
}
[data-theme="dark"] .checkbox-label {
  color: #fed7aa !important;
}

/* Right Side: Results Panel */
[data-theme="dark"] .results-panel {
  background: #0d1524 !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .metric-item {
  background: #131c2e !important;
  border-color: #1e293b !important;
}
[data-theme="dark"] .metric-title {
  color: #94a3b8 !important;
}
[data-theme="dark"] .metric-number {
  color: #f8fafc !important;
}

[data-theme="dark"] .breakdown-list {
  background: #131c2e !important;
  border-color: #1e293b !important;
}
[data-theme="dark"] .breakdown-row {
  border-bottom-color: #1e293b !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] .breakdown-row .val {
  color: #f8fafc !important;
}
[data-theme="dark"] .breakdown-row .val.fee {
  color: #f87171 !important;
}

[data-theme="dark"] .btn-secondary {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .btn-secondary:hover {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #94a3b8 !important;
}

/* Hub Multi-Platform Table in Dark Mode */
[data-theme="dark"] .fee-table {
  background: var(--bg-card);
}
[data-theme="dark"] .fee-table th {
  background: #0d1524;
  color: var(--text-main);
  border-color: var(--border);
}
[data-theme="dark"] .fee-table td {
  border-color: var(--border);
  color: var(--text-muted);
}
[data-theme="dark"] .fee-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .blog-card-thumb {
  background: #0d1524;
}

[data-theme="dark"] .faq-answer {
  color: var(--text-muted);
}

[data-theme="dark"] .calculator-cta-box {
  background: #1e1b18 !important;
  border-color: #7c2d12 !important;
}
[data-theme="dark"] .calculator-cta-box h3 {
  color: #fb923c !important;
}
[data-theme="dark"] .calculator-cta-box p {
  color: #fdba74 !important;
}

/* ==========================================================
   THEME TOGGLE BUTTON COMPONENT
   ========================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================
   SLEEK PROFESSIONAL SVG THEME TOGGLE BUTTON
   ========================================================== */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.14);
}

.theme-toggle-btn svg {
  display: block;
  transition: transform 0.3s ease, stroke 0.2s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

/* In Light Mode: show sleek Moon */
:root:not([data-theme="dark"]) .theme-icon-light { display: none !important; }
:root:not([data-theme="dark"]) .theme-icon-dark { display: block !important; stroke: #475569; }

[data-theme="light"] .theme-icon-light { display: none !important; }
[data-theme="light"] .theme-icon-dark { display: block !important; stroke: #475569; }

/* In Dark Mode: show sleek Sun */
[data-theme="dark"] .theme-icon-light { display: block !important; stroke: #fb923c; }
[data-theme="dark"] .theme-icon-dark { display: none !important; }

[data-theme="dark"] .theme-toggle-btn {
  background: #151e32;
  border-color: #27354f;
  color: #fb923c;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: #1e293b;
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}
