/* ═══════════════════════════════════════════════════════════
   کارنو پلاس — هویت بصری تعرفه گمرکی
   رنگ‌ها: نارنجی #F59D23 · فیروزه‌ای #55C9C3 · سبز دریایی #004D4D
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand-orange: #f59d23;
  --brand-orange-dark: #d97f0a;
  --brand-orange-light: #fff4e5;
  --brand-teal: #55c9c3;
  --brand-teal-dark: #3aada7;
  --brand-navy: #004d4d;
  --brand-navy-dark: #003838;
  --brand-navy-light: #0a6363;

  --color-primary: var(--brand-orange);
  --color-primary-dark: var(--brand-orange-dark);
  --color-primary-light: var(--brand-orange-light);
  --color-accent: var(--brand-teal);
  --color-accent-dark: var(--brand-teal-dark);

  --color-bg: #f4f7f8;
  --color-surface: #ffffff;
  --color-text: #1c2b2b;
  --color-text-muted: #5a6e6e;
  --color-border: #d8e4e4;
  --color-shadow: rgba(0, 77, 77, 0.08);
  --color-shadow-strong: rgba(0, 77, 77, 0.16);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── هدر — کاور حرفه‌ای + اعتبار برند ─── */
.site-header {
  position: relative;
  z-index: 10;
}

.site-header__accent {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-orange) 0%,
    var(--brand-teal) 45%,
    var(--brand-orange) 100%
  );
}

.site-header__bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, var(--brand-navy-dark) 0%, var(--brand-navy) 52%, #005a5a 100%);
  padding: 1rem 1.5rem 1.1rem;
  box-shadow: 0 6px 28px rgba(0, 40, 40, 0.28);
}

.site-header__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 100% 50%, rgba(85, 201, 195, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 80% at 0% 100%, rgba(245, 157, 35, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform var(--transition);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand__frame {
  display: block;
  padding: 0.45rem 0.6rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 77, 77, 0.06);
}

.site-header .brand__logo {
  width: 92px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand__tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.site-header__panel {
  flex: 1;
  max-width: 420px;
  text-align: left;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header__panel-top {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.site-header__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.site-header__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.site-header__source {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.site-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.header-pill--verified {
  color: #e8fffe;
  background: rgba(85, 201, 195, 0.22);
  border-color: rgba(85, 201, 195, 0.45);
}

.header-pill__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.site-header__wave {
  color: var(--color-bg);
  line-height: 0;
  margin-top: -1px;
}

.site-header__wave svg {
  display: block;
  width: 100%;
  height: 28px;
}

/* ─── نوار اعتماد ─── */
.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 18px var(--color-shadow);
}

.trust-strip__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--brand-navy);
  background: linear-gradient(145deg, rgba(85, 201, 195, 0.18) 0%, rgba(245, 157, 35, 0.1) 100%);
  border: 1px solid rgba(0, 77, 77, 0.1);
  border-radius: 10px;
}

.trust-item__icon svg {
  width: 16px;
  height: 16px;
}

.trust-item__text {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.45;
}

.trust-strip__sep {
  width: 1px;
  height: 22px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ─── محتوای اصلی ─── */
.main {
  flex: 1;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 1.25rem;
}

.hero--compact {
  padding-top: 0.75rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero__subtitle {
  margin: 0 auto 1.75rem;
  max-width: 520px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ─── جستجو ─── */
.search-box {
  max-width: 660px;
  margin: 0 auto;
}

.search-box__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 1.35rem;
  box-shadow:
    0 4px 6px var(--color-shadow),
    0 16px 40px var(--color-shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box__inner:focus-within {
  border-color: var(--brand-teal);
  box-shadow:
    0 4px 6px var(--color-shadow),
    0 16px 48px rgba(85, 201, 195, 0.2);
}

.search-box__icon {
  width: 22px;
  height: 22px;
  color: var(--brand-teal-dark);
  flex-shrink: 0;
}

.search-box__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1.05rem;
  padding: 0.9rem 0;
  color: var(--color-text);
  min-width: 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* جلوگیری از دکمه پاک‌کردن پیش‌فرض مرورگر (تداخل با clear-btn) */
.search-box__input::-webkit-search-cancel-button,
.search-box__input::-webkit-search-decoration,
.search-box__input::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-box__input::placeholder {
  color: #8fa5a5;
}

.search-box__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: #eef4f4;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.search-box__clear:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
}

.search-box__clear svg {
  width: 16px;
  height: 16px;
}

.search-box__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

/* ─── دکمه‌ها ─── */
.btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 157, 35, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 157, 35, 0.45);
}

.btn--outline {
  display: block;
  margin: 1.5rem auto 0;
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--brand-teal);
}

.btn--outline:hover {
  background: rgba(85, 201, 195, 0.12);
  border-color: var(--brand-teal-dark);
}

/* ─── برچسب‌های سریع ─── */
.quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.quick-tags__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.quick-tag {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--brand-navy);
  cursor: pointer;
  transition: all var(--transition);
}

.quick-tag:hover {
  border-color: var(--brand-orange);
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
}

/* ─── وضعیت بارگذاری ─── */
.status {
  text-align: center;
  padding: 1rem;
}

.status__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--color-border);
  border-top-color: var(--brand-orange);
  border-right-color: var(--brand-teal);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

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

/* ─── بهترین نتیجه ─── */
.best-match {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand-navy-dark) 0%, var(--brand-navy) 50%, var(--brand-navy-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 16px 48px var(--color-shadow-strong);
}

.best-match::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-orange), var(--brand-teal));
}

.best-match__label {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  letter-spacing: 0.03em;
}

.best-match__code-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.best-match__code {
  direction: ltr;
  unicode-bidi: isolate;
}

.hs-code {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.hs-code__seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 3rem;
}

.hs-code__seg-val {
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--brand-orange);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.best-match .hs-code__seg-val {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
}

.hs-code__seg-lbl {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-teal);
  letter-spacing: 0;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
  line-height: 1.35;
}

.hs-code__sep {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.28);
  align-self: center;
  flex-shrink: 0;
  margin: 0 0.1rem;
}

.card .hs-code__sep {
  background: var(--color-border);
  height: 1.6rem;
}

.card .hs-code__seg-val {
  font-size: 1.05rem;
  color: var(--brand-navy);
  text-shadow: none;
}

.card .hs-code__seg-lbl {
  font-size: 0.58rem;
  color: var(--color-text-muted);
}

.best-match__title {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.best-match__desc {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.best-match__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

@media (min-width: 720px) {
  .best-match__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.best-match__meta > div {
  min-height: 5.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.best-match__meta dt {
  font-size: 0.74rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
  color: var(--brand-teal);
  line-height: 1.4;
}

.best-match__meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

.best-match__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(245, 157, 35, 0.25);
  color: var(--brand-orange);
  border: 1px solid rgba(245, 157, 35, 0.45);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.best-match__badge::before {
  content: "✓";
  font-weight: 800;
}

/* ─── ISIC (بهین‌یاب) ─── */
.isic-strip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 0;
  background: linear-gradient(135deg, #e8f6f6 0%, #f0faf8 100%);
  border: 1px solid rgba(0, 128, 128, 0.22);
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--brand-teal);
}

.isic-strip__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-teal-dark);
  letter-spacing: 0.02em;
}

.isic-strip__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.isic-strip__code {
  font-family: "Vazirmatn", ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-teal-dark);
  background: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 128, 128, 0.2);
}

.isic-strip__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
}

.isic-strip__source {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.best-match__isic:not([hidden]) {
  margin-bottom: 1.15rem;
}

.best-match__isic:not([hidden]) + .best-match__meta {
  margin-top: 0;
}

.best-match .isic-strip {
  margin: 0;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(85, 201, 195, 0.35);
  border-right-color: var(--brand-teal);
}

.best-match .isic-strip__label {
  color: var(--brand-teal);
}

.best-match .isic-strip__code {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(85, 201, 195, 0.35);
  color: #fff;
}

.best-match .isic-strip__title {
  color: rgba(255, 255, 255, 0.95);
}

.best-match .isic-strip__source {
  color: rgba(255, 255, 255, 0.55);
}

.card__isic-block:not([hidden]) {
  margin-bottom: 1rem;
}

.card__meta-item.card__isic {
  grid-column: 1 / -1;
}

.card__meta-item.card__isic dd {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
}

.btn--copy {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn--copy:hover {
  background: rgba(245, 157, 35, 0.3);
  border-color: var(--brand-orange);
}

.btn--copy.is-copied {
  background: rgba(85, 201, 195, 0.35);
  border-color: var(--brand-teal);
}

.btn--copy-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  background: var(--brand-orange-light);
  color: var(--brand-orange-dark);
  border: 1px solid rgba(245, 157, 35, 0.35);
}

.btn--copy-sm:hover {
  background: #ffe8c7;
}

.btn--copy-sm.is-copied {
  background: rgba(85, 201, 195, 0.15);
  color: var(--brand-navy);
  border-color: var(--brand-teal);
}

/* ─── نتایج ─── */
.results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.results__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.results__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: rgba(85, 201, 195, 0.15);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
}

.results__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.55rem 1.65rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(85, 201, 195, 0.5);
  box-shadow: 0 8px 28px var(--color-shadow);
  transform: translateY(-2px);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.card__code-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card__code-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__code {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  background: linear-gradient(135deg, rgba(85, 201, 195, 0.15), rgba(245, 157, 35, 0.1));
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  direction: ltr;
  unicode-bidi: isolate;
  border: 1px solid rgba(85, 201, 195, 0.3);
}

.card__sub {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.card__chapter {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.card__essential {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-orange-dark);
  background: var(--brand-orange-light);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 157, 35, 0.3);
}

.card__title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.65;
}

.card__desc {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.card__meta-item {
  background: #f0f6f6;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
}

.card__meta-item dt {
  font-size: 0.74rem;
  color: var(--brand-teal-dark);
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.card__meta-item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.55;
  word-break: break-word;
}

/* ─── خالی ─── */
.empty {
  text-align: center;
  padding: 3rem 1rem;
}

.empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--brand-teal);
  opacity: 0.6;
}

.empty__icon svg {
  width: 100%;
  height: 100%;
}

.empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
}

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

/* ─── سهمیه پلن رایگان ─── */
.quota-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0.85rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 77, 77, 0.06), rgba(85, 201, 195, 0.08));
  border: 1px solid rgba(0, 77, 77, 0.14);
  font-size: 0.86rem;
}

.quota-bar__left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quota-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal, #55c9c3);
  box-shadow: 0 0 0 3px rgba(85, 201, 195, 0.25);
}

.quota-bar__label {
  font-weight: 700;
  color: var(--brand-navy);
}

.quota-bar__text {
  justify-self: end;
  color: var(--color-text-muted);
  font-weight: 500;
}

.quota-bar__track {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 77, 77, 0.1);
  overflow: hidden;
}

.quota-bar__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-teal, #55c9c3), var(--brand-navy));
  transition: width 0.35s ease;
}

.quota-bar--empty .quota-bar__dot {
  background: #e8920a;
  box-shadow: 0 0 0 3px rgba(232, 146, 10, 0.25);
}

.quota-bar--empty .quota-bar__text {
  color: #b45309;
  font-weight: 700;
}

.quota-bar--empty {
  grid-template-columns: auto 1fr auto;
  border-color: rgba(232, 146, 10, 0.35);
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.95), rgba(255, 255, 255, 0.98));
}

.quota-bar__cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .quota-bar--empty {
    grid-template-columns: 1fr auto;
  }

  .quota-bar__cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .quota-bar__text {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.quota-paywall--visible {
  display: block !important;
}

.quota-paywall__upsell {
  position: relative;
  margin: 0 auto 1rem;
  max-width: 46ch;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-navy, #004d4d);
  line-height: 1.7;
}

.quota-paywall__trust {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.85rem;
  margin: 1rem 0 0.25rem;
  font-size: 0.76rem;
  color: var(--color-text-muted, #5a6e6e);
  font-weight: 600;
}

.quota-paywall__trust span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 77, 77, 0.06);
}

.tariff-paywall.quota-paywall--visible {
  margin: 1rem 0 1.5rem;
  animation: kp-paywall-in 0.35s ease;
}

@keyframes kp-paywall-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quota-bar--owner .quota-bar__dot {
  background: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.quota-bar--owner .quota-bar__label,
.quota-bar--owner .quota-bar__text {
  color: #0f766e;
  font-weight: 700;
}

.quota-paywall {
  margin-top: 1.25rem;
}

body.quota-locked .tariff-search__input,
body.quota-locked .tariff-search__btn {
  opacity: 0.55;
  pointer-events: none;
}

body.quota-locked #quota-paywall {
  display: block !important;
}

.quota-paywall__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f4fbfb 55%, #fff8ef 100%);
  border: 1px solid rgba(0, 77, 77, 0.12);
  box-shadow: 0 18px 48px rgba(0, 45, 45, 0.12);
}

.quota-paywall__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(85, 201, 195, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(232, 146, 10, 0.12), transparent 50%);
  pointer-events: none;
}

.quota-paywall__icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  color: var(--brand-navy);
}

.quota-paywall__icon svg {
  width: 100%;
  height: 100%;
}

.quota-paywall__badge {
  position: relative;
  display: table;
  margin: 0 auto 0.65rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(232, 146, 10, 0.12);
  border: 1px solid rgba(232, 146, 10, 0.35);
  border-radius: 999px;
}

.quota-paywall__title {
  position: relative;
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--brand-navy);
}

.quota-paywall__desc {
  position: relative;
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.quota-paywall__meter {
  position: relative;
  max-width: 22rem;
  margin: 0 auto 1.35rem;
}

.quota-paywall__meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.quota-paywall__meter-head strong {
  color: var(--brand-navy);
  font-weight: 800;
}

.quota-paywall__meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 77, 77, 0.1);
  overflow: hidden;
}

.quota-paywall__meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8920a, #c2410c);
}

.quota-paywall__plans {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.quota-plan {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 77, 77, 0.12);
}

.quota-plan--featured {
  border-color: rgba(0, 77, 77, 0.28);
  box-shadow: 0 8px 24px rgba(0, 77, 77, 0.1);
  background: linear-gradient(180deg, #ffffff, rgba(85, 201, 195, 0.08));
}

.quota-plan__tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: rgba(85, 201, 195, 0.2);
  border-radius: 999px;
}

.quota-plan__name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.quota-plan__price {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.quota-plan__price strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.quota-plan__features {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.quota-plan__features li::before {
  content: "✓ ";
  color: var(--brand-teal, #55c9c3);
  font-weight: 700;
}

.quota-plan__cta {
  width: 100%;
  justify-content: center;
}

.quota-paywall__plans--four {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 960px) {
  .quota-paywall__plans--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quota-plan__tagline {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.quota-plan--free {
  opacity: 0.92;
  background: #f8fafc;
}

.quota-plan__cta--disabled {
  width: 100%;
  text-align: center;
  cursor: not-allowed;
  opacity: 0.75;
}

.kp-paywall-login-row {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
}

.kp-paywall-logged {
  font-size: 0.88rem;
  color: #0f766e;
}

.quota-paywall--visible {
  display: block !important;
}

.kp-paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 29, 41, 0.55);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.quota-paywall--overlay {
  max-width: 1100px;
  margin: 2rem auto;
}

body.kp-tool-locked .tariff-search__input,
body.kp-tool-locked .tariff-search__btn,
body.kp-tool-locked .search-box__input,
body.kp-tool-locked #tsc-search-btn,
body.kp-tool-locked #decl-form input,
body.kp-tool-locked #decl-form button,
body.kp-tool-locked #decl-form select {
  opacity: 0.55;
  pointer-events: none;
}

.quota-paywall__footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

.quota-paywall__link {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
}

.quota-paywall__link:hover {
  text-decoration: underline;
}

.quota-paywall__sep {
  opacity: 0.45;
}

.tariff-live__paywall {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 146, 10, 0.1), rgba(0, 77, 77, 0.06));
  border: 1px solid rgba(232, 146, 10, 0.3);
  text-align: center;
}

.tariff-live__paywall-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy, #004d4d);
}

.tariff-live__paywall-text {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted, #5a7070);
  line-height: 1.6;
}

.tariff-live__paywall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy, #004d4d);
  border-radius: 8px;
  text-decoration: none;
}

/* ─── فوتر ─── */
.footer {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 1.5rem;
  margin-top: auto;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-orange);
  font-weight: 800;
  font-size: 1.05rem;
}

.footer__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.footer__text {
  text-align: left;
}

.footer p {
  margin: 0.2rem 0;
  font-size: 0.8rem;
}

.footer__note a {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.footer__note a:hover {
  color: var(--brand-orange);
}

.footer__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer__trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.footer__trust-item--zarinpal,
.footer__trust-item--enamad {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  min-height: 72px;
  min-width: 72px;
}
.footer__zarinpal-link,
.footer__enamad-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.footer__trust-item--zarinpal a,
.footer__zarinpal-link {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.footer__trust-item--zarinpal img,
.footer__zarinpal-img,
.footer__enamad-img {
  display: block;
  width: 72px;
  height: auto;
  cursor: pointer;
}
.footer__enamad-img {
  width: 90px;
}
.footer__bottom--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.site-footer--trust {
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}
.site-footer__bar {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

mark {
  background: rgba(245, 157, 35, 0.35);
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
}

/* ─── ریسپانسیو ─── */
@media (max-width: 720px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__text {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1.25rem;
  }

  .search-box__inner {
    padding: 0.3rem 1rem;
    border-radius: var(--radius);
  }

  .search-box__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card {
    padding: 1rem;
  }

  .site-header__bar {
    padding: 0.75rem 1rem;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .brand {
    justify-content: center;
  }

  .brand__copy {
    display: none;
  }

  .site-header .brand__logo {
    width: 80px;
  }

  .site-header__panel {
    max-width: none;
    text-align: center;
  }

  .site-header__panel-top {
    align-items: center;
  }

  .site-header__badges {
    justify-content: center;
  }

  .trust-strip__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
  }

  .trust-strip__sep {
    display: none;
  }

  .trust-item {
    justify-content: center;
    text-align: center;
  }
}

/* ─── حالت embed داخل iframe سایت ─── */
html.is-embed .site-header,
html.is-embed .trust-strip,
html.is-embed .footer,
html.is-embed .site-footer {
  display: none !important;
}

html.is-embed .page {
  min-height: auto;
}

html.is-embed .main {
  padding-top: 0.75rem;
}

html.is-embed .hero {
  padding-top: 0.5rem;
}

/* ─── باکس لید خدمات اجرایی ─── */
.kp-lead-slot {
  margin: 1.25rem 0;
}

.kp-leadbox {
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, rgba(245, 157, 35, 0.08), rgba(0, 77, 77, 0.05));
  border: 1px solid rgba(245, 157, 35, 0.35);
  border-radius: var(--radius-sm, 12px);
}

.kp-leadbox__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy, #004d4d);
}

.kp-leadbox__desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-muted, #5a6e6e);
}

.kp-leadbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.kp-lead-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #fcd9b0;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a3412;
  cursor: pointer;
  font-family: inherit;
}

.kp-lead-btn:hover {
  background: #ffedd5;
}

.kp-lead-btn--primary {
  background: var(--brand-orange, #f59d23);
  border-color: var(--brand-orange-dark, #d97f0a);
  color: #fff;
}

.kp-lead-btn--primary:hover {
  background: var(--brand-orange-dark, #d97f0a);
}

.kp-lead-all {
  width: 100%;
}
