/* Site UI pass (2026-11-15), in the language of admin.pzorion.ir and the new
   /account shell: icon-chip section headers, chip navigation, compact rows
   instead of oversized cards. Loaded after common.css on / and /plans only. */

/* ---------- home: "services up close" as compact panel rows ---------- */
.feature-grid.svc-rows { grid-template-columns: minmax(0, 1fr) !important; gap: var(--space-3); }
.svc-rows .feature-row, .svc-rows .feature-row.reverse {
  flex-direction: row; align-items: flex-start; text-align: right; gap: var(--space-5);
  padding: var(--space-5) var(--space-6); border-radius: 16px; box-shadow: none;
}
.svc-rows .feature-row:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.svc-rows .feature-row::before { display: none; }
.svc-rows .feature-visual { width: 72px; max-width: 72px; flex: none; border-radius: 18px; background: var(--accent-subtle); }
.svc-rows .feature-visual .svc-ico { width: 78% !important; height: 78% !important; }
.svc-rows .feature-text { text-align: right; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-6); align-items: start; }
.svc-rows .feature-text .kicker { display: none; }
.svc-rows .feature-text h3 { grid-column: 1; font-size: var(--text-lg); margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.svc-rows .feature-text h3 small { font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.svc-rows .feature-text .desc { grid-column: 1; margin: 0 0 var(--space-3); max-width: 70ch; }
.svc-rows .feature-text .check-list { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-5); margin: 0; }
.svc-rows .feature-text .feature-cta { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 8px; margin: 0; width: 196px; }
.svc-rows .feature-text .feature-cta .btn { justify-content: center; }
.svc-rows .feature-text .hint-sm { grid-column: 2; text-align: center; margin-top: 6px !important; }
@media (max-width: 899px) {
  .svc-rows .feature-row, .svc-rows .feature-row.reverse { padding: var(--space-4); gap: var(--space-3); }
  .svc-rows .feature-visual { width: 52px; max-width: 52px; border-radius: 14px; }
  .svc-rows .feature-text { display: block; }
  .svc-rows .feature-text .check-list { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-3); }
  .svc-rows .feature-text .feature-cta { flex-direction: row; min-width: 0; width: auto; }
  .svc-rows .feature-text .feature-cta .btn { flex: 1; }
  .svc-rows .feature-text .hint-sm { text-align: right; }
}

/* ---------- plans: section headers as the panel's page header ---------- */
.plans-ui .section-title { display: flex; align-items: center; gap: 12px; font-size: var(--text-lg) !important;
  font-weight: 800; color: var(--fg-1); margin: var(--space-10) 0 var(--space-2) !important; scroll-margin-top: 140px; }
.plans-ui .section-title > .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; flex: none;
  background: var(--accent-subtle); color: var(--accent); box-sizing: border-box; }

/* chip navigation, sticky under the site header */
.sec-nav { position: sticky; top: calc(var(--nav-h, 64px) + 8px); z-index: 20; display: flex; gap: 6px; overflow-x: auto;
  padding: 6px; margin: var(--space-4) 0 0; border-radius: 14px; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent); border: 1px solid var(--border-default);
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  font-size: 13px; color: var(--fg-3); text-decoration: none; white-space: nowrap; }
.sec-nav a .ic { width: 16px; height: 16px; }
.sec-nav a:hover { background: var(--bg-subtle); color: var(--fg-1); }
.sec-nav a[aria-current="true"] { background: var(--accent-subtle); color: var(--accent-fg, var(--accent)); font-weight: 700; }
.sec-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 759px) { .sec-nav { top: calc(var(--nav-h, 64px) + 4px); margin-inline: calc(var(--space-4) * -1); border-radius: 0;
  border-inline: 0; padding-inline: var(--space-4); } }

/* no orphan card left alone in a 3-wide row: 2 or 4 items sit 2-up */
@media (min-width: 1000px) {
  .plans-ui .grid-3:has(> :nth-child(2):last-child),
  .plans-ui .grid-3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
