/* UCIRAN — Design System v2  |  November 2026
   Multilingual: Farsi (RTL) · Arabic (RTL) · English (LTR)
   Font: Vazirmatn | Stack: Django templates, no build step
   ------------------------------------------------------------------ */

/* ── 0. Font ─────────────────────────────────────────────────────── */
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn.f6d31671339d.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.9 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

a               { color: inherit; text-decoration: none; }
a:hover         { color: var(--accent); }
img             { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button          { cursor: pointer; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible  { outline: 3px solid var(--accent); border-radius: 4px; }
h1,h2,h3,h4,h5 { margin-top: 0; font-weight: 750; line-height: 1.5; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 3.2vw, 46px); margin-bottom: var(--s-5); }
h2 { font-size: clamp(20px, 2.1vw, 28px); margin-bottom: var(--s-4); }
h3 { font-size: clamp(17px, 1.5vw, 20px); margin-bottom: var(--s-3); }
h4 { font-size: 16px; margin-bottom: var(--s-2); }
p  { margin: 0 0 var(--s-5); }
small, .meta, .muted { color: var(--muted); font-size: 12px; }
a, button { touch-action: manipulation; }
ul, ol { padding-inline-start: 1.4em; }

/* ── 3. Accessibility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed;
  inset-block-start: -120px;
  inset-inline-start: var(--s-5);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-5);
  font-weight: 700;
  z-index: 999;
  transition: inset-block-start .2s;
}
.skip:focus { inset-block-start: var(--s-3); }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #e07050);
  z-index: 100;
  transition: width .1s linear;
  transform-origin: left;
}
[dir="rtl"] .reading-progress { transform-origin: right; }

/* ── 4. Layout ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
@media (max-width: 640px) { .container { padding-inline: var(--s-4); } }

.section-space   { margin-block: var(--s-12); }
.section-header  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.section-header h2 { margin: 0; }

/* ── 6. Buttons ───────────────────────────────────────────────────── */
.button, button[type=submit] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 10px var(--s-6);
  background: var(--accent);
  color: #fff;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.button:hover, button[type=submit]:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184,66,24,.30);
}
.button:active, button[type=submit]:active { transform: translateY(0); }

.button.small {
  min-height: 38px;
  padding: 6px var(--s-4);
  font-size: 12px;
  border-radius: var(--r-sm);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.button-secondary:hover {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ── 10. Cards & Article Grid ─────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  /* Server-rendered content is visible without JavaScript. */
  opacity: 1;
  transform: translateY(10px);
}
.article-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .article-card { opacity: 1 !important; transform: none !important; }
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.article-card h3, .article-card h2 {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.article-card-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ── 11. Reading Layout (Articles) ───────────────────────────────── */
.reading-layout {
  max-width: var(--prose);
  margin-inline: auto;
  padding-block: var(--s-6) var(--s-16);
}

.reading-header {
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-block-end: 1px solid var(--line);
}

.page-heading { margin-bottom: var(--s-8); }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  display: none;
}

.lead {
  font-size: 17px;
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

/* Prose body */
.prose {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.prose h2 {
  font-size: clamp(18px, 1.8vw, 23px);
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-block-start: 1px solid var(--line);
}
.prose h3 { font-size: clamp(16px, 1.4vw, 19px); margin-top: var(--s-8); }
.prose a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-md); margin-block: var(--s-6); }
.prose ul, .prose ol { margin-block: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }

.prose pre, .prose-markdown pre {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  margin-block: var(--s-5);
}
.prose code, .prose-markdown code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}
.prose pre code, .prose-markdown pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.copy-btn {
  position: absolute;
  inset-block-start: var(--s-3);
  inset-inline-end: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--dur), background var(--dur);
}
.prose pre:hover .copy-btn, .prose-markdown pre:hover .copy-btn {
  opacity: 1;
}
.copy-btn:hover { background: var(--accent-soft); color: var(--accent); }

/* Table of Contents */
.toc-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-8);
}
.toc-box h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 4px var(--s-2);
  border-radius: 6px;
  transition: color var(--dur), background var(--dur);
}
.toc-list a:hover { color: var(--accent); background: var(--accent-soft); }
.toc-level-3 { padding-inline-start: var(--s-5); }
.toc-level-4 { padding-inline-start: var(--s-8); }

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.tag-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* Panel */
.panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-block: var(--s-5);
}
.article-source {
  font-size: 13px;
  color: var(--muted);
}
.article-source a { color: var(--accent); }

/* Back to top */
.article-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s-8);
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-5);
  background: var(--surface);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.back-top:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-list summary {
  font-weight: 650;
  font-size: 15px;
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  list-style: none;
  transition: background var(--dur);
}
.faq-list summary:hover { background: var(--surface-2); }
.faq-list summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 var(--s-5) var(--s-5);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: var(--s-6);
  padding-block: var(--s-3);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--line); }

/* Related articles */
.related-articles {
  margin-block: var(--s-10);
  padding-block-start: var(--s-8);
  border-block-start: 1px solid var(--line);
}

/* ── 13. Forms ────────────────────────────────────────────────────── */
.form-group    { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.form-label    { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-hint     { font-size: 12px; color: var(--muted); }
.form-error    { font-size: 12px; color: var(--red); }
.form-control, input[type=text], input[type=email], input[type=search],
input[type=number], input[type=password], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 10px var(--s-4);
  font-size: 14px;
  transition: border-color var(--dur), box-shadow var(--dur);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, input[type=text]:focus, input[type=email]:focus,
input[type=search]:focus, input[type=number]:focus,
input[type=password]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6878' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-inline-start: 36px;
}
[dir="rtl"] select {
  background-position: right 12px center;
  padding-inline-start: var(--s-4);
  padding-inline-end: 36px;
}

/* Filter bar (catalog) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-xs);
}
.filter-bar > div { display: grid; gap: var(--s-1); min-width: 160px; flex: 1; }
.filter-bar label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-actions { display: flex; gap: var(--s-3); align-items: flex-end; }

/* Login form */
.login-link { font-weight: 650; }

/* Flash messages */
.message {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(184,66,24,.2);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-5);
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: var(--s-5);
}

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: var(--s-16) var(--s-6);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  margin-block: var(--s-10);
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: var(--s-2) var(--s-3);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 650;
  background: var(--surface);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.pagination a:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.pagination .current, .pagination [aria-current] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── 14. Catalog & Price Pages ────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 1050px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .price-grid { grid-template-columns: 1fr; } }

.device-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  opacity: 1;
  transform: translateY(10px);
}
.device-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .device-card { opacity: 1 !important; transform: none !important; }
}
.device-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.device-card h3 { font-size: 15.5px; line-height: 1.6; margin: 0; }

.device-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: 11px;
  color: var(--muted);
}

.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.price-badge small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.price-change {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.price-change.up   { background: var(--red-soft);   color: var(--red); }
.price-change.down { background: var(--green-soft);  color: var(--green); }
.price-change.flat { background: var(--paper);       color: var(--muted); }

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}
@media (max-width: 540px) { .specs-grid { grid-template-columns: 1fr; } }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.spec-row span:first-child { color: var(--muted); flex-shrink: 0; }
.spec-row strong { color: var(--ink); text-align: end; }

/* Sparkline */
.sparkline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-xs);
}
.sparkline-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Compare table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-6);
  font-size: 13.5px;
}
.compare-table th, .compare-table td {
  padding: 12px var(--s-4);
  border-block-end: 1px solid var(--line);
  text-align: start;
}
.compare-table thead th {
  background: var(--surface-2);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}
.compare-table tr:last-child td { border-block-end: none; }

/* Device detail sticky sidebar */
.device-sticky-sidebar.sticky-price-hint {
  position: sticky;
  top: 90px;
}

/* ── 15. Feed Cards & AI Tools ────────────────────────────────────── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 700px) { .feed-grid { grid-template-columns: 1fr; } }

.feed-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  opacity: 1;
  transform: translateY(10px);
}
.feed-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .feed-card { opacity: 1 !important; transform: none !important; }
}
.feed-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.feed-card h3 { font-size: 17px; margin: 0; line-height: 1.65; }
.feed-card p  { margin: 0; font-size: 13px; color: var(--muted); }

/* AI tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: var(--s-10);
}
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-calculator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--s-5);
}
.tool-calculator h2 { font-size: 19px; margin: 0; }

.calc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 540px) { .calc-fields { grid-template-columns: 1fr; } }

.calc-output {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--s-4);
}
.calc-metric span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.calc-metric strong {
  font-size: 20px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* ── 16. Prompts Library ──────────────────────────────────────────── */
.prompt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.prompt-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.prompt-preview {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-4);
  font-size: 12.5px;
  color: var(--muted);
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
  font-family: var(--font);
  line-height: 1.7;
}

/* ── 17. Glossary ─────────────────────────────────────────────────── */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.glossary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.glossary-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* ── 18. Forum Boards ─────────────────────────────────────────────── */
/* (reference.css handles the board-specific layout) */

/* Category/Topic list */
.category-header {
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-block-end: 1px solid var(--line);
}
.topic-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--s-6);
}
.topic-row, .thread-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-block-end: 1px solid var(--line);
  transition: background var(--dur);
}
.topic-row:last-child, .thread-row:last-child { border-block-end: none; }
.topic-row:hover, .thread-row:hover { background: var(--surface-2); }

.topic-title {
  flex: 1;
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.6;
  min-width: 0;
}
.topic-title a:hover { color: var(--accent); }
.topic-meta { font-size: 11px; color: var(--muted); display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: 4px; }
.topic-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 60px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  gap: 2px;
}

/* Search page */
.search-results { display: flex; flex-direction: column; gap: var(--s-5); }
.search-result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.search-result-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* CTA section */
.section-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1f3f5a 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  margin-block: var(--s-12);
}
@media (max-width: 700px) {
  .section-cta { flex-direction: column; text-align: center; padding: var(--s-8); }
}
.section-cta h2 { color: #fff; margin: 0 0 var(--s-3); }
.section-cta p  { color: rgba(255,255,255,.7); margin: 0; }

/* ── 19. Utilities ────────────────────────────────────────────────── */
.grid-container   { width: 100%; }
.text-muted       { color: var(--muted); }
.text-accent      { color: var(--accent); }
.font-bold        { font-weight: 750; }

/* ── 20. Print ────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .menu-toggle,
  .hub-pills, .toc-box, .back-top, .reading-progress { display: none !important; }
  .reading-layout { max-width: 100%; }
  body { color: #000; background: #fff; }
}

/* ══════════════════════════════════════════════════════════════════
   UCIRAN — Device Detail Page  (dp-* components)
   Appended to site.css — November 2026
   ══════════════════════════════════════════════════════════════════ */

/* ── Prices page hero ────────────────────────────────────────────── */
.prices-hero {
  padding-block: var(--s-6) var(--s-8);
  margin-bottom: var(--s-2);
}
.prices-hero h1 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: var(--s-3);
}
.prices-hero p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 600px;
  margin: 0;
}

/* Device card enhancements */
.device-card-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.device-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.device-card-usd {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.device-card-no-price {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.device-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.device-card-time { font-size: 11px; color: var(--muted); }
.device-card-view {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--dur);
}
.device-card:hover .device-card-view { opacity: 1; }

/* ── Device Detail 2-column layout ──────────────────────────────── */
.dp-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-8);
  align-items: start;
  padding-block: var(--s-4) var(--s-16);
}
@media (max-width: 1000px) {
  .dp-layout { grid-template-columns: 1fr; }
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.dp-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: sticky;
  top: 90px;
}
@media (max-width: 1000px) {
  .dp-sidebar { position: static; }
}

/* Product image / brand avatar box */
.dp-image-box {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.dp-image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.dp-brand-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  z-index: 1;
}
.dp-brand-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(184,66,24,.30);
}
.dp-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
[data-theme="dark"] .dp-brand-name { color: var(--ink); }

.dp-category-chip {
  position: absolute;
  bottom: var(--s-4);
  inset-inline-end: var(--s-4);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(184,66,24,.2);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 750;
}

/* Price box */
.dp-price-box {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: var(--shadow-md);
}

.dp-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}
.dp-price-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.dp-toman {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  display: block;
}
.dp-toman-unit {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin-inline-start: 4px;
}
.dp-price-usd {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.dp-change {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  font-weight: 800;
}

.dp-price-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--muted);
  gap: var(--s-3);
}
.dp-price-range span:last-child {
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.dp-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: var(--s-3);
}
.dp-source a { color: var(--accent); font-weight: 650; }

.dp-checked-at {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  color: var(--muted);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.dp-no-price {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: var(--s-5);
}

/* Quick specs in sidebar */
.dp-quick-specs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dp-quick-specs-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s-3) var(--s-5);
  background: var(--surface-2);
  border-block-end: 1px solid var(--line);
}
.dp-quick-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-block-end: 1px solid var(--line-soft);
  font-size: 13px;
}
.dp-quick-spec-row:last-child { border-block-end: none; }
.dp-spec-label { color: var(--muted); flex-shrink: 0; }
.dp-spec-value { font-weight: 700; color: var(--ink); text-align: end; }

/* ── Main content column ─────────────────────────────────────────── */
.dp-main { min-width: 0; }

.dp-header { margin-bottom: var(--s-8); }
.dp-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.dp-title {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.55;
  letter-spacing: -.025em;
  margin-bottom: var(--s-4);
}
.dp-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ── Sections ────────────────────────────────────────────────────── */
.dp-section {
  margin-bottom: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
}
.dp-section:first-child { border-top: none; padding-top: 0; }

.dp-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.dp-section-heading h2 {
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 0;
}

/* ── Chart ───────────────────────────────────────────────────────── */
.dp-chart-section {}
.dp-chart-range {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-variant-numeric: tabular-nums;
}
.dp-chart-min { color: var(--green); font-weight: 700; }
.dp-chart-max { color: var(--red);   font-weight: 700; }
[data-theme="dark"] .dp-chart-min { color: var(--green); }
[data-theme="dark"] .dp-chart-max { color: var(--red); }

.dp-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-5);
}
.dp-sparkline {
  width: 100%;
  height: 120px;
  display: block;
  overflow: visible;
}

/* Snapshots table */
.dp-snapshots { overflow-x: auto; }
.dp-snapshot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dp-snapshot-table th,
.dp-snapshot-table td {
  padding: 10px var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  text-align: start;
}
.dp-snapshot-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.dp-snapshot-table tr:last-child td { border-bottom: none; }
.dp-snap-price {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ── Specs grid ──────────────────────────────────────────────────── */
.dp-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
@media (max-width: 640px) { .dp-specs-grid { grid-template-columns: 1fr; } }

.dp-spec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.dp-spec-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-soft);
}
.dp-spec-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-spec-card-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* ── Comparisons ─────────────────────────────────────────────────── */
.dp-comparison-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.dp-comparison-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
  font-size: 13.5px;
}
.dp-comparison-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(-2px);
}
[dir="rtl"] .dp-comparison-card:hover { transform: translateX(2px); }
.dp-comp-devices {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  min-width: 0;
}
.dp-comp-vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
  padding: 2px 8px;
  background: var(--paper);
  border-radius: var(--r-pill);
}
.dp-comp-arrow {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .dp-price-row { flex-direction: column; gap: var(--s-3); }
  .dp-toman { font-size: 22px; }
  .dp-comp-devices { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════
   UCIRAN — Editorial UI Upgrade (The Verge / GSMArena / Wired)
   Appended to site.css — RTL/LTR logical properties + Dark mode safe
   ══════════════════════════════════════════════════════════════════ */

/* ── Prices Hero (Dramatic Editorial Banner) ─────────────────────── */
.prices-hero {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 66, 24, .34) 0%, transparent 52%),
    radial-gradient(circle at 12% 85%, rgba(212, 96, 58, .20) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #0d1b28 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-8);
  margin-block: var(--s-4) var(--s-6);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.prices-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.prices-hero::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e07050 55%, transparent);
  pointer-events: none;
}
.prices-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.prices-hero-copy .eyebrow {
  color: #f49776;
  margin-bottom: var(--s-3);
}
.prices-hero-copy h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -.03em;
  margin-bottom: var(--s-3);
}
.prices-hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .75);
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 60ch;
  margin: 0;
}
@media (max-width: 640px) {
  .prices-hero {
    min-height: 180px;
    padding: var(--s-8) var(--s-5);
    border-radius: var(--r-lg);
  }
}

/* ── Filter Bar ──────────────────────────────────────────────────── */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(125px, 1fr)) auto;
  gap: var(--s-4);
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-xs);
}
.filter-bar > div {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.filter-actions {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}
@media (max-width: 1120px) {
  .filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .filter-bar {
    grid-template-columns: 1fr;
    padding: var(--s-4);
  }
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .filter-actions .button,
  .filter-actions button[type="submit"] {
    width: 100%;
  }
}

/* ── Prices Page Grid & Device Cards ─────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 1199px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .price-grid { grid-template-columns: 1fr; }
}
.dp-main .price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 899px) {
  .dp-main .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .dp-main .price-grid { grid-template-columns: 1fr; }
}

.device-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s-5);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.device-card.is-visible:hover,
.device-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.device-card h3 {
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.device-card-brand {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.price-badge small {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: .85;
}
.device-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
  border-block-start: 1px solid var(--line-soft);
}
.device-card-view {
  font-size: 12px;
  font-weight: 750;
  color: var(--accent);
  opacity: .85;
  margin-inline-start: auto;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.device-card:hover .device-card-view {
  opacity: 1;
  transform: translateX(-2px);
}
[dir="ltr"] .device-card:hover .device-card-view {
  transform: translateX(2px);
}

/* ── Device Detail Page (dp-* components) ────────────────────────── */
.dp-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding-block: var(--s-4) var(--s-16);
}
@media (max-width: 1000px) {
  .dp-layout {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

.dp-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: sticky;
  inset-block-start: calc(var(--header-h, 120px) + 16px);
}
@media (max-width: 1000px) {
  .dp-sidebar { position: static; }
}

.dp-image-box {
  min-height: 250px;
  background:
    radial-gradient(circle at 50% 35%, var(--accent-soft) 0%, transparent 65%),
    linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dp-image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .35;
  pointer-events: none;
}

.dp-brand-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  position: relative;
  z-index: 1;
}
.dp-brand-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  font-family: Arial, sans-serif;
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 6px var(--surface),
    0 0 0 9px var(--accent-soft),
    0 14px 32px rgba(184, 66, 24, .32);
}
.dp-brand-name {
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
}

.dp-price-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: var(--shadow-md);
}
.dp-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.dp-toman {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  text-shadow: 0 1px 0 rgba(184, 66, 24, .08);
}
.dp-toman-unit {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: var(--r-pill);
}
@media (max-width: 640px) {
  .dp-toman { font-size: clamp(26px, 7vw, 34px); }
}

.dp-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.dp-change.up {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(21, 128, 61, .22);
}
.dp-change.down {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(185, 28, 28, .22);
}
.dp-change.flat {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.dp-price-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--muted);
}

.dp-quick-specs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.dp-quick-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: 12px var(--s-5);
  border-block-end: 1px solid var(--line-soft);
  font-size: 13px;
}
.dp-quick-spec-row:nth-child(even) {
  background: var(--surface-2);
}
.dp-quick-spec-row:last-child {
  border-block-end: none;
}
.dp-spec-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.dp-spec-value {
  font-weight: 750;
  font-size: 14px;
  color: var(--ink);
  text-align: end;
}

/* ── Chart Container ─────────────────────────────────────────────── */
.dp-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-sm);
}

/* ── Specs Grid (2-col desktop, 1-col mobile, hover glow + copyable) */
.dp-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
@media (max-width: 640px) {
  .dp-specs-grid { grid-template-columns: 1fr; }
}
.dp-spec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.dp-spec-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
  transform: translateY(-1px);
}
.dp-spec-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-spec-card-value {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}
.dp-spec-card[data-copyable],
.dp-spec-value[data-copyable] {
  cursor: pointer;
}
.dp-copy-badge {
  position: absolute;
  inset-block-start: var(--s-3);
  inset-inline-end: var(--s-3);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  pointer-events: none;
  animation: dp-pop .16s var(--ease);
}
@keyframes dp-pop {
  from { opacity: 0; transform: translateY(3px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Compare Table (Premium Editorial Table) ─────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-6);
  font-size: 13px;
  box-shadow: var(--shadow-xs);
}
@media (max-width: 720px) {
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.compare-table th,
.compare-table td {
  padding: 13px var(--s-4);
  border-block-end: 1px solid var(--line-soft);
  text-align: start;
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-block-end: 1px solid var(--line);
}
.compare-table thead th:first-child {
  border-start-start-radius: var(--r-lg);
}
.compare-table thead th:last-child {
  border-start-end-radius: var(--r-lg);
}
.compare-table tbody tr td {
  background: var(--surface);
  transition: background var(--dur) var(--ease);
}
.compare-table tbody tr:nth-child(even) td {
  background: var(--surface-2);
}
.compare-table tbody tr:hover td {
  background: var(--accent-soft);
}
.compare-table tbody tr:last-child td {
  border-block-end: none;
}
.compare-table tbody tr:last-child td:first-child {
  border-end-start-radius: var(--r-lg);
}
.compare-table tbody tr:last-child td:last-child {
  border-end-end-radius: var(--r-lg);
}
.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  font-weight: 700;
  border-inline-end: 1px solid var(--line-soft);
}
.compare-table thead th:first-child {
  z-index: 3;
  background: var(--surface-2);
}

/* ── FAQ & Details Disclosure Cards ──────────────────────────────── */
.faq-list details,
.prose details,
main details:not(.ed-ref-panel) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--s-2);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-list details[open],
.prose details[open],
main details:not(.ed-ref-panel)[open] {
  border-color: rgba(184, 66, 24, .35);
  box-shadow: var(--shadow-sm);
}
.faq-list summary,
.prose details > summary,
main details:not(.ed-ref-panel) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-list summary::-webkit-details-marker,
.prose details > summary::-webkit-details-marker,
main details:not(.ed-ref-panel) > summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:hover,
.prose details > summary:hover,
main details:not(.ed-ref-panel) > summary:hover {
  color: var(--accent);
  background: var(--surface-2);
}
.faq-list summary::after,
.prose details > summary::after,
main details:not(.ed-ref-panel) > summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.faq-list summary:hover::after,
.prose details > summary:hover::after,
main details:not(.ed-ref-panel) > summary:hover::after {
  color: var(--accent);
}
.faq-list details[open] > summary,
.prose details[open] > summary,
main details:not(.ed-ref-panel)[open] > summary {
  color: var(--accent);
}
.faq-list details[open] > summary::after,
.prose details[open] > summary::after,
main details:not(.ed-ref-panel)[open] > summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-answer {
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-block-start: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ── Device CTA, Media, Notes & Helper Wrappers ──────────────────── */
.dp-device-image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.dp-device-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
}
.dp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  margin-top: var(--s-1);
  text-align: center;
}
.dp-data-note {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--s-6);
}
.table-wrap .compare-table {
  margin-bottom: 0;
}
.catalog-count {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}
.empty-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: var(--s-3);
}
