/* =====================================================================
   آرمان آی‌سی — استایل اصلی
   هویت بصری: برد مدار چاپی (PCB) + مسیرهای مسی + سیلک‌اسکرین فنی
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ---- رنگ‌ها ---- */
  --bg: #0a0e13;
  --bg-soft: #0d1218;
  --surface: #12181f;
  --surface-2: #1a222b;
  --border: #212a34;
  --border-bright: #2c3846;

  --trace: #35d0b0;          /* مسیر مدار - سبزآبی */
  --trace-dim: #1e7a68;
  --copper: #d98953;         /* رنگ سیم مسی - اکشن اصلی */
  --copper-bright: #f0a868;
  --copper-dim: #8a5a3a;

  --text: #edf1f5;
  --text-muted: #8c97a3;
  --text-faint: #5a6572;

  --danger: #e2665a;
  --success: #35d0b0;

  /* ---- تایپوگرافی ---- */
  --font-display: 'Vazirmatn', sans-serif;
  --font-body: 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- ابعاد ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1180px;

  --shadow-glow-copper: 0 0 0 1px rgba(217, 137, 83, 0.25), 0 8px 24px -8px rgba(217, 137, 83, 0.35);
  --shadow-glow-trace: 0 0 0 1px rgba(53, 208, 176, 0.2), 0 8px 24px -8px rgba(53, 208, 176, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: var(--copper);
  color: #0a0e13;
}

:focus-visible {
  outline: 2px solid var(--trace);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- بافت زمینه‌ی برد مدار ---- */
.circuit-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 90%);
  pointer-events: none;
}

/* eyebrow / لیبل سیلک‌اسکرین */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--trace);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--trace);
}

/* =====================================================================
   هدر
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
}
.logo .logo-mark { width: 34px; height: 34px; }
.logo .logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-copper {
  background: linear-gradient(180deg, var(--copper-bright), var(--copper));
  color: #170e08;
  box-shadow: var(--shadow-glow-copper);
}
.btn-copper:hover { filter: brightness(1.07); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--trace); color: var(--trace); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-cta { gap: 8px; }
  .nav-cta .call-btn { display: none; }
  .logo .logo-sub { display: none; }
}

@media (max-width: 400px) {
  .nav-cta .account-btn,
  .nav-cta .btn-copper {
    padding: 8px 12px;
    font-size: 12.5px;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

/* =====================================================================
   هیرو
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--copper); }

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 7px 14px 7px 10px;
  background: var(--surface);
}
.chip b { color: var(--text); font-weight: 600; font-family: var(--font-body); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--trace); box-shadow: 0 0 8px var(--trace); }

/* --- تصویرسازی هیرو: گوشی با ترک‌های در حال ترمیم --- */
.hero-art {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: 100%; max-width: 420px; }

.trace-path {
  fill: none;
  stroke: var(--trace);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 2.4s ease forwards;
}
.trace-path.delay1 { animation-delay: 0.15s; }
.trace-path.delay2 { animation-delay: 0.4s; }
.trace-path.delay3 { animation-delay: 0.65s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.pulse-node {
  fill: var(--copper-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* =====================================================================
   بخش‌های عمومی
   ===================================================================== */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 15.5px; }

.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* =====================================================================
   خدمات
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--copper-dim);
  transform: translateY(-3px);
}
.service-icon {
  width: 44px; height: 44px;
  margin-bottom: 18px;
  color: var(--trace);
}
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.service-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  position: absolute;
  top: 24px;
  left: 24px;
}
.service-link { font-size: 13.5px; color: var(--copper); font-weight: 600; }
.service-link:hover { color: var(--copper-bright); }

/* =====================================================================
   فرآیند (مراحل واقعاً ترتیبی)
   ===================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding: 0 22px;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -10%;
  width: 20%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-bright) 0 6px, transparent 6px 12px);
}
@media (max-width: 900px) { .process-step:not(:last-child)::after { display: none; } }

.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--copper);
  border: 1px solid var(--copper-dim);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.process-step h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); }

/* =====================================================================
   نمونه‌کار / اعتماد
   ===================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 10px;
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   فرم ثبت درخواست
   ===================================================================== */
.request-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 700px) { .request-wrap { padding: 28px 20px; } }

.request-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .request-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.field label .req { color: var(--copper); }

.field input,
.field select,
.field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--trace);
  box-shadow: 0 0 0 3px rgba(53, 208, 176, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.field-file {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-soft);
}
.field-file:hover { border-color: var(--trace); }

/* هانی‌پات - نامرئی برای انسان، جذاب برای ربات‌های اسپم */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

.alert {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 24px;
  border: 1px solid;
}
.alert-success { background: rgba(53, 208, 176, 0.08); border-color: var(--trace-dim); color: var(--trace); }
.alert-error { background: rgba(226, 102, 90, 0.08); border-color: var(--danger); color: var(--danger); }

/* =====================================================================
   فوتر
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--trace); }

.footer-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(1) invert(0.92) contrast(0.9);
}
.footer-map iframe { width: 100%; height: 180px; border: 0; display: block; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* =====================================================================
   گیت تایید شماره موبایل (OTP)
   ===================================================================== */
.otp-gate {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.otp-gate .otp-icon {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  color: var(--trace);
}
.otp-gate h3 { font-size: 19px; margin-bottom: 10px; }
.otp-gate p.sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.otp-gate input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.otp-gate input:focus { outline: none; border-color: var(--trace); box-shadow: 0 0 0 3px rgba(53,208,176,0.15); }
.otp-message { min-height: 20px; font-size: 13.5px; margin-bottom: 10px; }
.otp-dev-code {
  display: none;
  font-family: var(--font-mono);
  background: rgba(53, 208, 176, 0.1);
  border: 1px dashed var(--trace-dim);
  color: var(--trace);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* =====================================================================
   لیست قیمت
   ===================================================================== */
.price-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.price-filters select,
.price-filters input {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
.price-filters input { flex: 1; min-width: 200px; }

.scroll-hint {
  display: none;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
@media (max-width: 700px) { .scroll-hint { display: block; } }

.price-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.price-table { width: 100%; min-width: 620px; border-collapse: collapse; }
table.price-table th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
  padding: 14px 18px;
}
table.price-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
table.price-table td.price-cell { color: var(--copper-bright); font-family: var(--font-mono); font-weight: 600; }
table.price-table tr:hover td { background: rgba(255,255,255,0.02); }
.price-empty { padding: 40px; text-align: center; color: var(--text-faint); }

.quote-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.quote-status-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
}
.quote-status-badge.pending { color: var(--copper-bright); border-color: var(--copper-dim); }
.quote-status-badge.quoted { color: var(--trace); border-color: var(--trace-dim); }

/* =====================================================================
   نشان تخصص ویژه (Flagship)
   ===================================================================== */
.flagship-banner {
  position: relative;
  border: 1px solid var(--copper-dim);
  background: linear-gradient(135deg, rgba(217,137,83,0.08), transparent 60%), var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 800px) { .flagship-banner { grid-template-columns: 1fr; text-align: center; } }
.flagship-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--copper-bright);
  border: 1px solid var(--copper-dim);
  border-radius: 100px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 14px;
}
.flagship-banner h3 { font-size: 22px; margin-bottom: 10px; }
.flagship-banner p { color: var(--text-muted); font-size: 14.5px; max-width: 60ch; margin-bottom: 12px; }
.flagship-banner p:last-child { margin-bottom: 0; }
.flagship-icon {
  width: 64px; height: 64px;
  color: var(--copper-bright);
  flex-shrink: 0;
}

/* =====================================================================
   صفحات خدمات
   ===================================================================== */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--trace); }

.content-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .content-columns { grid-template-columns: 1fr; } }

.prose h2 { font-size: 22px; margin: 36px 0 14px; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; }
.prose ul { color: var(--text-muted); font-size: 15px; padding-inline-start: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 20px;
}
.side-card h4 { font-size: 14px; margin-bottom: 14px; }
.side-card .price-row {
  display: flex; justify-content: space-between;
  font-size: 13.5px; color: var(--text-muted);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.side-card .price-row b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }

.related-services {
  list-style: none; padding: 0; margin: 0;
}
.related-services li { border-bottom: 1px solid var(--border); }
.related-services a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; font-size: 14px; color: var(--text-muted);
}
.related-services a:hover { color: var(--trace); }

/* =====================================================================
   پنل کاربری (حساب من)
   ===================================================================== */
.account-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) { .account-shell { grid-template-columns: 1fr; } }

.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 96px;
}
@media (max-width: 800px) {
  .account-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.account-sidebar a {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.account-sidebar a:hover { background: var(--surface-2); color: var(--text); border-color: var(--copper-dim); }
.account-sidebar a.active { background: var(--surface-2); color: var(--trace); border-color: var(--trace-dim); font-weight: 600; }
.account-sidebar a.logout-link { color: var(--danger); border-color: rgba(226,102,90,0.35); margin-top: 8px; }
@media (max-width: 800px) { .account-sidebar a.logout-link { margin-top: 0; } }

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
}
.account-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

.account-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.account-table th {
  text-align: right; padding: 10px 8px; color: var(--text-faint);
  font-family: var(--font-mono); font-size: 11px; border-bottom: 1px solid var(--border-bright);
}
.account-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); }

.address-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.address-card .default-badge {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--trace);
  border: 1px solid var(--trace-dim); border-radius: 100px; padding: 3px 9px; margin-inline-start: 8px;
}
.address-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* =====================================================================
   سوییچ بین صفحات ورود/ثبت‌نام
   ===================================================================== */
.auth-switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.auth-switch span { font-size: 14px; color: var(--text-muted); }
.auth-switch .btn { width: 100%; }

/* =====================================================================
   اسکرول افقی جدول‌ها در موبایل (به‌جای بریده‌شدن محتوا)
   ===================================================================== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 560px; }
