/* =========================================================
   Design tokens — light (default) + dark polish
========================================================= */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Monaco, "Cascadia Code", monospace;

  --bg-base: #f0f2f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --success: #059669;
  --danger: #dc2626;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 12px 40px rgba(15, 23, 42, 0.12);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 260px;
  --history-width: 300px;
}

body.dark {
  --bg-base: #070b12;
  --bg-elevated: rgba(22, 28, 41, 0.85);
  --bg-glass: rgba(24, 31, 48, 0.65);
  --surface: #121826;
  --surface-2: #1a2234;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.2);

  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.15);
  --success: #34d399;
  --danger: #f87171;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   Base
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse 120% 80% at 0% -20%, rgba(37, 99, 235, 0.08), transparent 50%),
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(99, 102, 241, 0.06), transparent 45%);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body.dark {
  background-image:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(99, 102, 241, 0.08), transparent 50%);
}

/* =========================================================
   App grid — dashboard
========================================================= */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--history-width);
  
  height: 100vh;
}

/* =========================================================
   Sidebars — glass + depth
========================================================= */
.sidebar-left,
.sidebar-right {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-color: var(--border);
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.sidebar-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-4);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 0;
  overflow: hidden;
}

.sidebar-left h3,
.sidebar-right h3 {
  margin: 0 0 var(--space-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.sidebar-left h3 {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.sidebar-right h3 {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  flex-shrink: 0;
}

.sidebar-left hr {
  width: 100%;
  margin: var(--space-2) 0;
  border: none;
  border-top: 1px solid var(--border);
  opacity: 1;
}

/* =========================================================
   Main column
========================================================= */
.main-center {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-5) var(--space-5) var(--space-6);
  scrollbar-gutter: stable;
}

.center-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-header .page-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 42ch;
}

/* Panel — card surface */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.panel:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.panel--inputs .field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.panel--inputs #cyclesPerYear {
  margin-bottom: 0;
}

.field-label {
  display: block;
}

/* =========================================================
   Inputs & selects
========================================================= */
input[type="number"],
input[type="text"],
input:not([type]),
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

body.dark input[type="number"],
body.dark input[type="text"],
body.dark input:not([type]),
body.dark select {
  background: rgba(15, 23, 42, 0.5);
}

input::placeholder {
  color: var(--text-tertiary);
}

input:hover,
select:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

body.dark input:focus,
body.dark select:focus {
  background: var(--surface-2);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

body.dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* =========================================================
   PRESET SELECT — Full Light + Dark Premium Styling
========================================================= */

/* Base */
.sidebar-left #presetSelect {
  width: 100%;
  margin: 0;
  padding: 12px 42px 12px 14px;
  height: auto;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;

  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;

  cursor: pointer;
  outline: none;

  box-shadow: var(--shadow-xs);
  transition: all 0.22s ease;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Hover */
.sidebar-left #presetSelect:hover {
  border-color: var(--accent);
  background-color: var(--surface-2);
  transform: translateY(-1px);
}

/* Focus */
.sidebar-left #presetSelect:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--accent-soft),
    var(--shadow-sm);
}

/* Placeholder option */
.sidebar-left #presetSelect option:first-child {
  font-weight: 700;
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark .sidebar-left #presetSelect {
  color: #f1f5f9;
  background-color: #121826;
  border: 1px solid rgba(148,163,184,.18);

  box-shadow:
    0 4px 14px rgba(0,0,0,.35);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Dark Hover */
body.dark .sidebar-left #presetSelect:hover {
  background-color: #1a2234;
  border-color: #60a5fa;
}

/* Dark Focus */
body.dark .sidebar-left #presetSelect:focus {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 3px rgba(96,165,250,.18),
    0 8px 20px rgba(0,0,0,.35);
}

/* Dropdown options */
body.dark .sidebar-left #presetSelect option {
  background: #121826;
  color: #f1f5f9;
}

/* =========================================================
   Buttons — global reset + variants
========================================================= */
button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

.sidebar-left button {
  width: 100%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: var(--shadow-xs), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.sidebar-left button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.sidebar-left button#themeBtn,
.sidebar-left button#clearBtn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

body.dark .sidebar-left button#themeBtn,
body.dark .sidebar-left button#clearBtn {
  background: var(--surface);
  color: var(--text);
}

.sidebar-left button#themeBtn:hover,
.sidebar-left button#clearBtn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* =========================================================
   Battery cards
========================================================= */
#batteriesContainer {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.battery {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.battery:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

.battery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  transition: background var(--transition-fast);
}

.battery:hover .battery-header {
  background: var(--accent-soft);
}

.battery-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text);
}

.toggle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  box-shadow: none;
  margin: 0;
}

.toggle-btn:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  transform: none;
}

.battery-body {
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  align-items: start;
}

.battery-body .name {
  grid-column: 1 / -1;
}

.battery-body .type {
  grid-column: 1 / -1;
}

.battery-body .remove-btn {
  grid-column: 1 / -1;
  margin-top: var(--space-1);
  padding: var(--space-3);
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.battery-body .remove-btn:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

body.dark .battery-body .remove-btn:hover {
  background: rgba(248, 113, 113, 0.08);
}

.battery-body.collapsed {
  display: none;
}

.battery input,
.battery select {
  width: 100%;
}

.battery input.error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.dragging {
  opacity: 0.55;
}

/* =========================================================
   Results + chart widget
========================================================= */
.results-box {
  margin-top: 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.results-box:hover {
  box-shadow: var(--shadow-lg);
}

#result {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  padding: var(--space-3) var(--space-4);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

body.dark #result {
  border-color: rgba(96, 165, 250, 0.2);
}

.summary-box {
  margin: 0;
  padding: var(--space-4);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.chart-widget {
  position: relative;
  padding: var(--space-4);
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 380px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .chart-widget {
  background: linear-gradient(165deg, #151c2c 0%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chart-widget canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

#conclusions {
  margin: 0;
  padding: var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  line-height: 1.65;
}

/* Legacy class hooks */
.result,
.conclusions {
  margin-top: 0;
}

/* =========================================================
   History — scrollable list
========================================================= */
.history-preview {
  position: sticky;
  top: var(--space-2);
  flex-shrink: 0;
  z-index: 1;
  padding: var(--space-4);
  margin: 0 0 var(--space-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  min-height: 200px;
  max-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.history-preview:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.history-preview strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.preview-chart-wrap {
  flex: 1;
  min-height: 0;
  margin-top: var(--space-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

#previewChart {
  width: 100% !important;
  height: 120px !important;
  max-height: 120px !important;
  display: block;
}

#historyList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: var(--space-1);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

#historyList::-webkit-scrollbar {
  width: 6px;
}

#historyList::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
}

.history-item {
  background: var(--surface);
  padding: var(--space-4);
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.history-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-soft);
  background: var(--bg-elevated);
}

.history-item > div:first-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.history-item > div:nth-child(2) {
  font-size: 12px;
  color: var(--text-tertiary);
}

.history-item button {
  width: 100%;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
}

.history-item button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.history-item .load-btn {
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  box-shadow: var(--shadow-xs);
}

.history-item .load-btn:hover {
  color: #fff;
  filter: brightness(1.05);
  border: none;
}

.history-chart {
  width: 100% !important;
  height: 72px !important;
  max-height: 72px !important;
  display: block;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: none;
    min-height: 100vh;
  }

  .sidebar-left {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    gap: var(--space-2);
  }

  .sidebar-left h3 {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: var(--space-2);
  }

  .sidebar-left #presetSelect {
    flex: 1 1 200px;
    min-width: 160px;
  }

  .sidebar-left button {
    width: auto;
    flex: 1 1 calc(33.333% - var(--space-2));
    min-width: 120px;
  }

  .sidebar-left hr {
    width: 100%;
    margin: var(--space-1) 0;
  }

  .main-center {
    max-height: none;
    order: 2;
  }

  .sidebar-right {
    order: 3;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 420px;
    min-height: 320px;
  }

  .history-preview {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .sidebar-left button {
    flex: 1 1 100%;
  }

  .battery-body {
    grid-template-columns: 1fr;
  }

  .main-center {
    padding: var(--space-4) var(--space-3) var(--space-5);
  }
}

/* unused in HTML but kept for compatibility */
.wrapper {
  padding: var(--space-5);
  display: flex;
  justify-content: center;
}

.calculator {
  width: 100%;
  max-width: 900px;
}


/* Fullscreen button */
#fullscreenBtn{
  width:100%;
}

/* When fullscreen */
.app-layout:fullscreen{
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
}






/* ========================= */
/* SEO CONTENT DESIGN        */
/* Light Default + Dark Mode */
/* ========================= */

.tool-seo-content{
  max-width: 1100px;
  margin: 50px auto 50px;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(15,23,42,.07);
  color:#0f172a;
  font-family: Inter,Segoe UI,Arial,sans-serif;
  line-height:1.75;
}

/* headings */
.tool-seo-content h2{
  font-size: clamp(1.35rem,2vw,2rem);
  font-weight: 800;
  margin: 0 0 14px;
  padding-bottom:10px;
  border-bottom:2px solid #e2e8f0;
  color:#0f172a;
}

.tool-seo-content h3{
  font-size:1.05rem;
  font-weight:700;
  margin:0;
  color:#111827;
}

/* spacing */
.tool-seo-content p,
.tool-seo-content ul,
.tool-seo-content ol,
.tool-seo-content .faq-item{
  margin: 0 0 24px;
}

.tool-seo-content strong{
  color:#0ea5a4;
  font-weight:800;
}

/* lists */
.tool-seo-content ul,
.tool-seo-content ol{
  padding-left:22px;
}

.tool-seo-content li{
  margin:10px 0;
}

/* cards sections */
.tool-seo-content > h2 + p,
.tool-seo-content > h2 + ul,
.tool-seo-content > h2 + ol{
  margin-top: 14px;
}

/* FAQ */
.faq-accordion{
  display:grid;
  gap:14px;
}

.faq-item{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
  transition:.25s ease;
}

.faq-item:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

.faq-item h3{
  margin-bottom:10px;
}

.faq-item p{
  margin:0;
  color:#475569;
  line-height:1.65;
}

/* subtle highlighted blocks */
.tool-seo-content ul,
.tool-seo-content ol{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:18px 22px 18px 38px;
}

/* links if any */
.tool-seo-content a{
  color:#0ea5a4;
  text-decoration:none;
  font-weight:700;
}

.tool-seo-content a:hover{
  text-decoration:underline;
}

/* ========================= */
/* DARK MODE                 */
/* ========================= */

html[data-theme="dark"] .tool-seo-content,
body.dark-mode .tool-seo-content,
.dark .tool-seo-content{
  background:linear-gradient(180deg,#0f172a,#111827);
  border:1px solid #334155;
  box-shadow:0 20px 45px rgba(0,0,0,.35);
  color:#e5e7eb;
}

html[data-theme="dark"] .tool-seo-content h2,
body.dark-mode .tool-seo-content h2,
.dark .tool-seo-content h2{
  color:#f8fafc;
  border-bottom:2px solid #334155;
}

html[data-theme="dark"] .tool-seo-content h3,
body.dark-mode .tool-seo-content h3,
.dark .tool-seo-content h3{
  color:#ffffff;
}

html[data-theme="dark"] .tool-seo-content strong,
body.dark-mode .tool-seo-content strong,
.dark .tool-seo-content strong{
  color:#22d3ee;
}

html[data-theme="dark"] .tool-seo-content ul,
html[data-theme="dark"] .tool-seo-content ol,
body.dark-mode .tool-seo-content ul,
body.dark-mode .tool-seo-content ol,
.dark .tool-seo-content ul,
.dark .tool-seo-content ol{
  background:#0b1220;
  border:1px solid #334155;
}

html[data-theme="dark"] .faq-item,
body.dark-mode .faq-item,
.dark .faq-item{
  background:#111827;
  border:1px solid #334155;
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}

html[data-theme="dark"] .faq-item p,
body.dark-mode .faq-item p,
.dark .faq-item p{
  color:#cbd5e1;
}

/* ========================= */
/* MOBILE                    */
/* ========================= */

@media (max-width:768px){

.tool-seo-content{
  padding:22px 16px;
  margin-top:35px;
  border-radius:18px;
}

.tool-seo-content h2{
  font-size:1.2rem;
}

.tool-seo-content ul,
.tool-seo-content ol{
  padding:16px 18px 16px 32px;
}

.faq-item{
  padding:16px;
}

}






/* =========================================================
   FIX: Native select arrows duplication bug
========================================================= */

/* Reset browser default arrow completely */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}

/* Ensure wrapper doesn't repeat background artifacts */
select::-ms-expand {
  display: none;
}

/* Re-apply clean custom arrow ONLY once */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Dark mode arrow fix */
body.dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}