:root {
  --bg: #0E1614;
  --bg-soft: #15201D;
  --card: #182723;
  --gold: #3DD9A8;
  --gold-soft: #2EB389;
  --cream: #E8F7F1;
  --cream-dim: #A9C9BE;
  --line: #233C35;
  --error: #E07B6B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61,217,168,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(61,217,168,0.04), transparent);
  color: var(--cream);
  font-family: 'Vazirmatn', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 80px;
  position: relative;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

header { text-align: center; margin-bottom: 44px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  min-height: calc(2 * clamp(32px, 6vw, 46px) * 1.25);
}

h1 span,
h1 span.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.typing-cursor::after {
  content: '|';
  display: inline-block;
  margin-right: 3px;
  animation: blink 0.8s step-end infinite;
  color: var(--gold);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sub {
  color: var(--cream-dim);
  font-size: 16px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

/* Price widget */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.price-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.price-coin-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-coin-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}

.price-coin-full {
  font-size: 12px;
  color: var(--cream-dim);
}

.price-live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cream-dim);
}

.price-live-dot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.price-main {
  font-size: 30px;
  font-weight: 800;
  color: var(--cream);
  font-family: 'Vazirmatn', sans-serif;
  direction: ltr;
  text-align: right;
}

.price-change {
  font-size: 13px;
  margin-top: 6px;
  color: var(--cream-dim);
}

.price-change.up { color: #5FCF8E; }
.price-change.down { color: var(--error); }

.dollar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.dollar-label {
  color: var(--cream-dim);
}

.dollar-value {
  color: var(--cream);
  font-weight: 600;
  direction: ltr;
}

.calc-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.calc-label {
  display: block;
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 10px;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-input-row input[type="number"] {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.calc-input-row input[type="number"]:focus { border-color: var(--gold-soft); }
.calc-input-row input[type="number"]::placeholder { color: #5A6F68; }

.calc-unit {
  font-size: 13px;
  color: var(--cream-dim);
  font-weight: 600;
}

.calc-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}

.calc-result-label {
  color: var(--cream-dim);
}

.calc-result-value {
  color: var(--gold);
  font-weight: 700;
  direction: ltr;
}

/* بخش‌بندی */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  width: 100%;
}

textarea:focus { border-color: var(--gold-soft); }
textarea::placeholder { color: #5A6F68; }

/* رزومه خروجی */
.cv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
}

.cv-section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-section-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.cv-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 4px;
}

.cv-jobtitle {
  font-size: 15px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.cv-contact {
  font-size: 13px;
  color: var(--cream-dim);
  direction: ltr;
  text-align: right;
}

.cv-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--cream-dim);
  white-space: pre-wrap;
}

.cv-lang-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cv-lang-tab {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  color: var(--cream-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.cv-lang-tab.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 600;
}

.cv-download-btn {
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  border-radius: 10px;
  padding: 12px 20px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}

.cv-download-btn:hover { background: rgba(61,217,168,0.1); }

@media print {
  body > *:not(#cv-print-area) { display: none !important; }
  #cv-print-area {
    display: block !important;
    color: #000 !important;
    background: #fff !important;
    font-family: 'Vazirmatn', sans-serif;
    padding: 40px;
  }
}

.input-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 32px;
}

.input-row { display: flex; flex-direction: column; gap: 14px; }

label {
  font-size: 14px;
  color: var(--cream-dim);
  font-weight: 500;
}

input[type="text"] {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--cream);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus { border-color: var(--gold-soft); }
input[type="text"]::placeholder { color: #6B6259; }

.build-btn {
  margin-top: 8px;
  background: var(--gold);
  color: #1A1614;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.build-btn:hover:not(:disabled) { background: #E0B868; }
.build-btn:active:not(:disabled) { transform: scale(0.98); }
.build-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.error-msg {
  color: var(--error);
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

/* Results */
#results { display: flex; flex-direction: column; gap: 16px; }

.stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.5s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.stage-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--cream);
}

.tagline {
  font-size: 18px;
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
  margin-top: 4px;
}

.name-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.name-option {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
}

.palette { display: flex; gap: 12px; flex-wrap: wrap; }

.swatch {
  flex: 1;
  min-width: 110px;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swatch-name { font-size: 13px; font-weight: 600; }
.swatch-hex { font-size: 12px; opacity: 0.85; font-family: monospace; }

.personality-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--cream-dim);
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-dim);
  border-right: 3px solid var(--gold-soft);
}

.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--cream-dim);
  font-size: 15px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.restart-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  border-radius: 10px;
  padding: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color 0.2s, color 0.2s;
}

.restart-btn:hover { border-color: var(--gold-soft); color: var(--cream); }

footer {
  text-align: center;
  color: #5A5249;
  font-size: 13px;
  margin-top: 40px;
}

/* Logo section */
.logo-btn {
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  border-radius: 10px;
  padding: 14px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
}

.logo-btn:hover:not(:disabled) { background: rgba(61,217,168,0.1); }
.logo-btn:active:not(:disabled) { transform: scale(0.98); }
.logo-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.logo-cost-note {
  font-size: 12px;
  color: var(--cream-dim);
  text-align: center;
  margin-top: 10px;
  opacity: 0.75;
}

.logo-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.logo-image-wrap img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.logo-loading {
  text-align: center;
  padding: 30px 20px;
  color: var(--cream-dim);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .stage { animation: none; opacity: 1; transform: none; }
  .spinner { animation: none; }
  #bg-canvas { opacity: 0.3; }
  .typing-cursor::after { animation: none; }
}

/* ===== منوی ناوبری ===== */
.main-nav {
  position: relative;
  z-index: 10;
  background: rgba(14, 22, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  margin-bottom: 0;
}

.nav-wrap {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover { color: var(--cream); background: var(--line); }
.nav-link.active { color: var(--gold); background: rgba(61,217,168,0.1); }

/* ===== انتخاب قالب رزومه ===== */
.template-picker {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.template-label {
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.template-options {
  display: flex;
  gap: 10px;
}

.tpl-btn {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  color: var(--cream-dim);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tpl-btn:hover { border-color: var(--gold-soft); color: var(--cream); }
.tpl-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(61,217,168,0.08); }
.tpl-icon { font-size: 20px; }

/* ===== فرم رزومه ===== */
.form-section-title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.input-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lang-picker {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cream-dim);
  cursor: pointer;
}

.lang-opt input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .input-2col { grid-template-columns: 1fr; }
  .template-options { gap: 8px; }
  .tpl-btn { font-size: 12px; padding: 10px 6px; }
}

/* ===== محتوای SEO ===== */
.seo-content {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
}

.seo-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.5;
}

.seo-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin: 24px 0 10px;
}

.seo-content p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.seo-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.seo-faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.seo-faq-item strong {
  display: block;
  font-size: 14px;
  color: var(--cream);
  margin-bottom: 8px;
}

.seo-faq-item p {
  font-size: 13px;
  color: var(--cream-dim);
  margin: 0;
  line-height: 1.7;
}

/* ===== بنر UVM در صفحه برندساز ===== */
.uvm-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(61,217,168,0.06);
  border: 1px solid rgba(61,217,168,0.2);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.uvm-banner:hover { background: rgba(61,217,168,0.12); }

.uvm-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.uvm-banner-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

/* ===== فوتر یکپارچه با آیکون شبکه‌های اجتماعی ===== */
.site-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.site-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.site-social a:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}

.site-social svg {
  width: 16px;
  height: 16px;
}

/* ===== افکت شیشه‌ای (Glassmorphism) ===== */
.glass-card {
  background: rgba(24, 39, 35, 0.55);
  border: 1px solid rgba(61, 217, 168, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ===== فونت اعداد یکسان‌عرض (حرفه‌ای‌تر برای قیمت‌ها) ===== */
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ===== انیمیشن ورود نرم موقع اسکرول ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
