/* ==========================================================================
   فونت‌های آفلاین لوکال (بدون وابستگی به CDN خارجی)
   ========================================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("/fonts/Orbitron.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   متغیرهای سیستم طراحی (Apple-Inspired Dark • پالت خانه هوش مصنوعی جهرم)
   ========================================================================== */
:root {
  --bg-base: #000308;
  --bg-elevated: rgba(14, 21, 35, 0.72);
  --bg-card-subtle: rgba(16, 24, 40, 0.56);
  --bg-input: rgba(6, 11, 21, 0.78);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text-primary: #f5f7fb;
  --text-secondary: #9aa7bd;
  --text-muted: #6c7a93;

  --accent-sky: #38bdf8;
  --accent-blue: #2563eb;
  --accent-emerald: #34d399;
  --accent-emerald-deep: #10b981;
  --accent-amber: #ff9f0a;
  --accent-red: #ff453a;

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glass: 0 24px 64px rgba(0, 0, 0, 0.58), 0 4px 16px rgba(0, 0, 0, 0.36);
}

/* ==========================================================================
   تنظیمات پایه و ریست ایمن
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   پس‌زمینه محیطی بسیار ملایم
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  will-change: transform;
}

.orb-cyan {
  width: min(620px, 85vw);
  height: min(620px, 85vw);
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(37, 99, 235, 0.12) 48%, transparent 72%);
}

.orb-emerald {
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(56, 189, 248, 0.08) 52%, transparent 74%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 15%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 15%, transparent 85%);
}

/* ==========================================================================
   کانتینر اصلی و گرید دو ستونه دسکتاپ / تک‌ستونه موبایل
   ========================================================================== */
.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 28px) clamp(24px, 4vw, 44px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 36px);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.2vw, 40px);
  align-items: start;
}

@media (min-width: 960px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
    align-items: start;
  }

  .form-column {
    position: sticky;
    top: 28px;
  }
}

/* ==========================================================================
   ستون راست: برند، تیتر، تگ‌ها، بنتو و ماژول ظرفیت
   ========================================================================== */
.hero-column {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 24px);
  min-width: 0;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-frame {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, #061831 0%, #020814 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
  transform: scale(1.16);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-partner {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.free-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}

/* تیتر اصلی */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--accent-sky);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(1.95rem, 4.2vw, 3.05rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.title-gradient {
  background: linear-gradient(105deg, #38bdf8 0%, #60a5fa 44%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.04rem, 1.8vw, 1.26rem);
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.55;
}

.subtitle-emphasis {
  color: var(--accent-sky);
  font-weight: 800;
}

.latin-inline {
  font-family: "Orbitron", "Vazirmatn", sans-serif;
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0.04em;
}

.hero-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 58ch;
}

/* تگ‌های محورهای رویداد */
.topic-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: #d6e0f0;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-blue { background: #60a5fa; }
.dot-cyan { background: #38bdf8; }
.dot-emerald { background: #34d399; }
.dot-indigo { background: #818cf8; }

/* گرید کارت‌های Bento */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-wide {
    grid-column: span 2;
  }
}

.bento-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.25s var(--ease-apple), transform 0.25s var(--ease-apple);
}

.bento-card:hover {
  border-color: rgba(56, 189, 248, 0.24);
}

.bento-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.bento-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-sky);
  flex-shrink: 0;
}

.bento-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
}

.bento-note {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.instructor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (min-width: 540px) {
  .instructor-row {
    flex-wrap: nowrap;
  }
}

.phone-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.phone-chip:hover {
  background: rgba(56, 189, 248, 0.16);
  transform: translateY(-1px);
}

.phone-chip-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-sky);
}

.phone-chip-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ماژول زنده ظرفیت
   ========================================================================== */
.capacity-card {
  position: relative;
  background: linear-gradient(155deg, rgba(14, 23, 39, 0.82) 0%, rgba(9, 15, 27, 0.78) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.capacity-card.state-extended {
  border-color: rgba(255, 159, 10, 0.42);
  box-shadow: 0 12px 36px rgba(255, 159, 10, 0.1);
}

.capacity-card.state-closed {
  border-color: rgba(255, 159, 10, 0.32);
}

.capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.capacity-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulseRing 2.2s infinite;
  flex-shrink: 0;
}

.capacity-card.state-extended .status-pulse {
  background: var(--accent-amber);
  box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.55);
}

.capacity-card.state-closed .status-pulse {
  background: var(--accent-amber);
  animation: none;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.capacity-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.refresh-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease-apple);
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
}

.refresh-btn.is-spinning svg {
  animation: spin 0.7s linear infinite;
}

.refresh-btn svg {
  width: 15px;
  height: 15px;
}

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

.extension-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 159, 10, 0.13);
  border: 1px solid rgba(255, 159, 10, 0.34);
  color: #ffd080;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.extension-icon {
  width: 17px;
  height: 17px;
  color: var(--accent-amber);
  flex-shrink: 0;
}

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

.capacity-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.counter-big {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-sky);
  font-variant-numeric: tabular-nums;
}

.capacity-card.state-extended .counter-big {
  color: var(--accent-amber);
}

.capacity-card.state-closed .counter-big {
  color: var(--text-secondary);
}

.counter-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: #d5e0f0;
}

.capacity-percent {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 55%, #34d399 100%);
  transition: width 0.55s var(--ease-apple), background 0.35s var(--ease-apple);
}

.capacity-card.state-extended .progress-fill,
.capacity-card.state-closed .progress-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #ff9f0a 100%);
}

.capacity-footnote {
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ستون چپ: کارت شیشه‌ای فرم ثبت‌نام (Frosted Glass + Specular Top Edge)
   ========================================================================== */
.glass-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

/* خط نوری ظریف بالای کارت شیشه‌ای (Specular Top Edge) */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.58) 38%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(52, 211, 153, 0.52) 62%,
    transparent 100%
  );
  pointer-events: none;
}

.card-view {
  animation: fadeSlideIn 0.4s var(--ease-apple) both;
}

.card-view[hidden] {
  display: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  margin-bottom: 20px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-sky);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stage-pill.pill-extended,
.stage-pill.pill-closed {
  background: rgba(255, 159, 10, 0.14);
  border-color: rgba(255, 159, 10, 0.36);
  color: #ffc566;
}

.card-title {
  font-size: 1.38rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
}

.card-subtitle {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* هشدارهای داخل فرم */
.inline-alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.alert-extended {
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.34);
  color: #ffd694;
}

.inline-alert-title {
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 2px;
}

.inline-alert-body {
  font-size: 0.82rem;
  color: #fde3b4;
}

.alert-error {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.38);
  color: #ff9c96;
  font-weight: 600;
}

/* فیلد مخفی Honeypot */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* فیلدهای فرم */
.field-group {
  margin-bottom: 15px;
}

.fieldset-reset {
  border: 0;
  padding: 0;
  min-width: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #dbe4f2;
  margin-bottom: 7px;
  width: 100%;
}

.req-mark {
  color: var(--accent-sky);
  font-weight: 800;
}

.opt-tag {
  margin-right: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 999px;
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease-apple), box-shadow 0.2s var(--ease-apple), background-color 0.2s;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:hover {
  border-color: rgba(148, 163, 184, 0.36);
}

.field-input:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  background: rgba(8, 15, 29, 0.92);
}

.field-input.is-invalid {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.16);
}

.input-phone {
  text-align: left;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

select.field-select {
  cursor: pointer;
}

.field-select option {
  background: #0b1324;
  color: #f8fafc;
}

/* دکمه‌های انتخاب سطح آشنایی با AI */
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.level-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s var(--ease-apple), background-color 0.2s, transform 0.18s var(--ease-apple);
}

.level-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.level-pill-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.35;
}

.level-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.level-pill:has(input:checked) {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.level-pill:has(input:checked) .level-pill-text {
  color: #ffffff;
}

.level-pill:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.field-error {
  min-height: 0;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-red);
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

/* دکمه اصلی ثبت‌نام */
.submit-btn {
  margin-top: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(105deg, #0ea5e9 0%, #38bdf8 48%, #34d399 100%);
  color: #02111d;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.26);
  transition: transform 0.2s var(--ease-apple), box-shadow 0.25s var(--ease-apple), filter 0.2s;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.34);
  filter: brightness(1.04);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.submit-btn.is-extended {
  background: linear-gradient(105deg, #f59e0b 0%, #ff9f0a 55%, #fbbf24 100%);
  color: #1f1100;
  box-shadow: 0 12px 30px rgba(255, 159, 10, 0.28);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(2, 17, 29, 0.25);
  border-top-color: #02111d;
  animation: spin 0.75s linear infinite;
}

.submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

.form-privacy-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   نمای رسید تایید و حالت تکمیل ظرفیت
   ========================================================================== */
.state-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.state-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-icon svg {
  width: 34px;
  height: 34px;
}

.icon-success {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.24) 0%, rgba(56, 189, 248, 0.1) 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--accent-emerald);
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.22);
}

.icon-amber {
  background: rgba(255, 159, 10, 0.14);
  border: 1px solid rgba(255, 159, 10, 0.42);
  color: var(--accent-amber);
  box-shadow: 0 0 30px rgba(255, 159, 10, 0.16);
}

.state-title {
  font-size: 1.32rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
}

.state-message {
  font-size: 0.92rem;
  color: #d6e0f0;
  line-height: 1.8;
  max-width: 40ch;
}

.tracking-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.tracking-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.tracking-label {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.tracking-code {
  font-family: "Orbitron", monospace;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.copy-btn {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-sky);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.copy-btn:hover {
  background: rgba(56, 189, 248, 0.24);
  color: #ffffff;
}

.receipt-summary,
.reminder-box {
  width: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: right;
}

.summary-row,
.reminder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.summary-row dt,
.reminder-key {
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.summary-row dd,
.reminder-val {
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
}

.secondary-btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-phone-num {
  color: var(--accent-sky);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   فوتر مینیمال
   ========================================================================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-domain {
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-sky);
}

/* ==========================================================================
   تنظیمات تکمیلی موبایل (صفر اسکرول افقی و راحتی لمس)
   ========================================================================== */
@media (max-width: 480px) {
  .brand-header {
    align-items: flex-start;
  }

  .logo-frame {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  .level-grid {
    grid-template-columns: 1fr;
  }

  .level-pill {
    min-height: 48px;
  }

  .tracking-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .tracking-meta {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
