/* ================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ ТЕМЫ
================================ */

:root {
  --bg: #020617;
  --bg-panel: #020617;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.08);
  --danger: #f97373;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;

  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.8);

  --transition-fast: 0.18s ease-out;

  /* высота контролов */
  --control-height: 40px;

  /* таблицы чар */
  --ench-row1: rgba(15, 23, 42, 0.7);
  --ench-row2: rgba(15, 23, 42, 0.45);
  --ench-border: rgba(15, 23, 42, 0.5);

  /* about panel */
  --about-bg: rgba(15, 23, 42, 0.65);
}


/* ================================
   СВЕТЛАЯ ТЕМА
================================ */

html[data-theme="light"] {
  --bg: #e5e7eb;
  --bg-panel: #ffffff;
  --border-subtle: rgba(148, 163, 184, 0.6);
  --text-main: #111827;
  --text-muted: #4b5563;
  --accent: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.12);

  --ench-row1: #eef2ff;
  --ench-row2: #e5e7eb;
  --ench-border: rgba(148, 163, 184, 0.75);
  --about-bg: #eef2ff;
}


/* ================================
   БАЗОВАЯ РАЗМЕТКА
================================ */

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.55), transparent 60%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.55), transparent 60%),
    var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

html[data-theme="light"] body {
  background: var(--bg);
}

.app {
  max-width: 1440px;
  margin: 20px auto 32px;
  padding: 0 16px 16px;
}


/* ================================
   ВЕРХНЯЯ ПАНЕЛЬ
================================ */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.title-block h1 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw + 0.8rem, 1.5rem);
}

.subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}


/* ================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
================================ */

.theme-toggle {
  width: var(--control-height);
  height: var(--control-height);
  padding: 0;

  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;

  transition: background .2s ease, border-color .2s ease,
    transform .15s ease, color .2s ease, box-shadow .2s ease;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: rgba(34, 197, 94, 0.6);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.6);
}


/* ================================
   СЕЛЕКТ ЯЗЫКА (капсула L1)
================================ */

#language {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  height: var(--control-height);
  line-height: var(--control-height);

  padding: 0 46px 0 16px !important;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);

  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 16px center;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23cccccc' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'><path d='M7 10l5 5 5-5z'/></svg>");

  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

[data-theme="dark"] #language {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23e0e0e0' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'><path d='M7 10l5 5 5-5z'/></svg>");
}

#language option {
  background: #0f172a !important;
  /* тёмный фон */
  color: #ffffff !important;
  /* светлый текст */
}


/* ================================
   СЕТКА И ПАНЕЛИ
================================ */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 16px;
}

.panel {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-soft);
}

.panel-right {
  display: flex;
  flex-direction: column;
}

/* ================================
   ОБЩИЕ ПОЛЯ И LABEL
================================ */

.field {
  margin: 10px 0;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

label[for="item"],
.field label {
  font-size: 0.85rem;
  color: var(--text-main);
}


/* ================================
   SELECT / INPUT универсальные
================================ */

select:not(#language),
input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  height: var(--control-height);
  padding: 0 46px 0 14px !important;

  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);

  background-color: var(--bg-panel);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23cfcfcf' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'><path d='M7 10l5 5 5-5z'/></svg>");

  color: var(--text-main);
  font-size: 0.9rem;
  line-height: var(--control-height);
  cursor: pointer;

  transition: border-color .2s, box-shadow .2s, background .2s;
}

[data-theme="light"] select:not(#language) {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230f172a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'><path d='M7 10l5 5 5-5z'/></svg>");
}

select:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}


/* ================================
   EDITION / VERSION ROW
================================ */

.edition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.edition-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 12px;

  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);

  min-height: var(--control-height);
}

.edition-option input {
  accent-color: var(--accent);
}

#version-select {
  min-width: 130px;
}


/* ================================
   CHECKBOXES / RADIO
================================ */

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin: 6px 0;
  color: var(--text-muted);
}

.checkbox-row input {
  accent-color: var(--accent);
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.radio-row input {
  accent-color: var(--accent);
}


/* ================================
   BUTTON: PRIMARY ("ВЫЧИСЛИТЬ")
================================ */

.primary-btn {
  width: 100%;
  margin-top: 10px;

  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), transparent);

  color: var(--accent);
  font-size: 0.9rem;

  min-height: var(--control-height);
  padding: 0 16px;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, transform .15s ease,
    box-shadow .2s ease, opacity .2s ease;
}

.primary-btn:hover:enabled {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.4);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: default;
}


/* ================================
   АКТИВНЫЕ ЧАРЫ
================================ */

.active-bar {
  margin-top: 8px;
  margin-bottom: 4px;

  padding: 6px 8px;

  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);

  display: none;
  align-items: center;
  gap: 6px;

  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease-out, transform .18s ease-out;
}

.active-bar.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="light"] .active-bar {
  background: #f3f4ff;
}

.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.active-tag {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);

  padding: 2px 8px;
  font-size: 0.78rem;

  background: rgba(15, 23, 42, 0.4);
  color: var(--text-main);

  cursor: pointer;
  white-space: nowrap;

  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

html[data-theme="light"] .active-tag {
  background: #ffffff;
}

.active-tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-0.5px);
}


/* ================================
   ТАБЛИЦА ЧАР (BIG)
================================ */

.enchants {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  transition: opacity .18s ease;
}

.enchants.fade-out {
  opacity: 0;
  pointer-events: none;
}

.enchants.fade-in {
  opacity: 1;
}

.enchants-scroll {
  width: 100%;
  overflow-x: auto;
}

.enchants table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.enchants td {
  padding: 4px 6px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--ench-border);
  overflow: hidden;
}

.enchants tr {
  transition: background-color .25s ease, box-shadow .25s ease;
}

.enchants td:first-child {
  width: 42%;
  padding-left: 14px;
  padding-right: 8px;
  white-space: normal;
  text-align: left;
}

.enchants td:not(:first-child) {
  width: 11.5%;
  text-align: center;
  white-space: nowrap;
}

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

.enchants tr.group1 {
  background: var(--ench-row1);
}

.enchants tr.group2 {
  background: var(--ench-row2);
}

.enchants tr.has-active {
  box-shadow: inset 2px 0 0 0 var(--accent);
}

.enchants tr.conflict-source {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.7);
}

.enchants tr.conflict-target {
  background-image: linear-gradient(to right,
      rgba(248, 113, 113, 0.18),
      transparent);
}

.level-button.conflict {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.7);
}


/* ================================
   LEVEL BUTTONS
================================ */

.level-button {
  width: 100%;
  min-width: 0;

  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);

  background: transparent;
  color: var(--text-muted);

  font-size: 0.75rem;
  padding: 1px 0;

  cursor: pointer;

  transition: background .18s ease, color .18s ease,
    border-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.level-button.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.level-button.off {
  opacity: 0.7;
}

@keyframes levelFlash {
  from {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
    transform: scale(0.96);
  }

  to {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
}

.level-button.flash {
  animation: levelFlash .18s ease-out;
}


/* ================================
   TOOLTIP
================================ */

.enchant-tooltip {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  z-index: 50;

  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.7);

  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;

  font-size: 0.75rem;
  max-width: 260px;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  transition: opacity .15s ease;
}

html[data-theme="light"] .enchant-tooltip {
  background: #111827;
  color: #e5e7eb;
}

.enchant-tooltip .tt-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.enchant-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.enchant-tooltip .tt-row span:first-child {
  opacity: 0.7;
}


/* ================================
   WARNINGS / ERRORS
================================ */

.warning {
  margin-top: 10px;
  font-size: 0.8rem;
  padding: 6px 8px;

  border-radius: var(--radius-sm);
  border: 1px dashed rgba(248, 113, 113, 0.6);

  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}

.error {
  margin-top: 8px;
  font-size: 0.8rem;
  padding: 6px 8px;

  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.7);

  color: var(--danger);
  background: rgba(127, 29, 29, 0.4);
}


/* ================================
   PANEL RIGHT: RESULT
================================ */

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 4px;

  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.result-header h2 {
  margin: 0;
  font-size: 1rem;
}

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

.muted-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#total-cost-label {
  white-space: nowrap;
}

.cost-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.note {
  margin: 6px 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ================================
   COPY BUTTON
================================ */

.ghost-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);

  background: transparent;
  color: var(--text-muted);

  padding: 0 16px;
  min-height: var(--control-height);

  font-size: 0.8rem;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, border-color .2s ease,
    color .2s ease, transform .12s ease, opacity .2s ease;
}

.ghost-btn:hover:enabled {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-main);
  transform: translateY(-0.5px);
}

.ghost-btn:disabled {
  opacity: 0.45;
  cursor: default;
}


/* ================================
   PROGRESS
================================ */

.progress {
  display: none;
  align-items: center;
  gap: 6px;

  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spinner {
  width: 14px;
  height: 14px;

  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-top-color: var(--accent);

  animation: spin .7s linear infinite;
}

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


/* ================================
   SOLUTION STEPS
================================ */

.solution {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.solution h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

#steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
}

#steps li {
  margin-bottom: 4px;
}


/* ================================
   ITEM ICONS
================================ */

.icon {
  width: 16px;
  height: 16px;

  vertical-align: -2px;
  image-rendering: pixelated;
}

/* ================================
   FOOTER
================================ */

.app-footer {
  margin-top: 16px;
  padding: 9px 14px;

  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);

  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.6);

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 0.8rem;
  color: var(--text-muted);

  gap: 8px;
  transition: background 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease;
}

html[data-theme="light"] .app-footer {
  background: #ffffff;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

html[data-theme="light"] .footer-brand {
  color: var(--accent);
}

html[data-theme="light"] .tg-btn {
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.10);
}

html[data-theme="light"] .tg-btn:hover {
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.25);
}

.footer-brand {
  color: var(--accent);
  font-weight: 600;
}


/* ================================
   TELEGRAM BUTTON
================================ */

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: var(--radius-pill);

  border: 1px solid rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.4), transparent 55%);

  color: #e0f2fe;
  font-size: 0.8rem;
  text-decoration: none;

  cursor: pointer;

  transition: transform .15s ease, box-shadow .2s ease,
    border-color .2s ease, background .2s ease,
    color .2s ease;
}

.tg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.6);
  border-color: #38bdf8;
}

.tg-svg {
  width: 14px;
  height: 14px;
  display: block;
}


/* ================================
   ADAPTIVE LAYOUT
================================ */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-right {
    order: 2;
  }
}

@media (max-width: 720px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    align-self: stretch;
    justify-content: flex-end;
    gap: 6px;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 12px 10px 14px;
  }

  .about {
    padding: 6px 8px;
  }

  .app {
    padding: 0 10px 12px;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .level-button {
    padding: 4px 0;
    min-height: 26px;
    font-size: 0.85rem;
  }

  #steps {
    font-size: 0.9rem;
  }
}


/* ================================
   EXTRA AIR ON VERY WIDE SCREENS
================================ */

@media (min-width: 1400px) {
  .layout {
    gap: 24px;
  }

  .panel {
    padding: 18px 18px 20px;
  }
}


/* ================================
   SEO BLOCK
================================ */

.seo-info {
  margin-top: 12px;
  padding: 10px 14px;

  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);

  background: rgba(15, 23, 42, 0.7);

  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

html[data-theme="light"] .seo-info {
  background: #f9fafb;
}

.seo-info h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.seo-info p:last-child,
.seo-info ol:last-child,
.seo-info details:last-child {
  margin-bottom: 0;
}

.seo-list {
  margin: 0;
  padding-left: 18px;
}

.seo-list li + li {
  margin-top: 6px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.18);
  padding: 10px 12px;
}

html[data-theme="light"] .faq-item {
  background: #ffffff;
}

.faq-item summary {
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
}

.faq-item p {
  margin: 8px 0 0;
}


/* ================================
   SCROLLBAR
================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #2e323e;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3f4f;
}

.enchant-label {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 480px) {
  .enchants td:first-child .enchant-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .enchants td:first-child {
    width: 55%;
  }
}

.panel-right.is-empty .result-meta,
.panel-right.is-empty #xp-range-note,
.panel-right.is-empty #solution,
.panel-right.is-empty #timings {
  display: none !important;
}

.panel-right.is-empty .result-header-right {
  display: none;
}

.edition-option {
  cursor: pointer;
  user-select: none;
}

.edition-option input {
  margin: 0;
  width: 16px;
  height: 16px;
}

.edition-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* ================================
   QUICK PRESETS
================================ */
.quick-presets {
  margin: 10px 0 14px;
  padding: 12px 14px;

  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] .quick-presets {
  background: #f9fafb;
}

.quick-presets-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.quick-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1100px) {
  .quick-presets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.qp-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .4);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
}

.qp-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}


.quick-presets-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-contact {
  text-align: center;
  margin: 10px 0;
  font-size: 0.85rem;
}

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

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

.qp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qp-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.qp-btn:hover {
  background: var(--accent-soft);
  border-color: rgba(34, 197, 94, .7);
  transform: translateY(-0.5px);
}

.qp-hint {
  margin-top: 6px;
  font-size: 0.78rem;
}
