/* ═══════════════════════════════════════════════════════════
   هدر مدرن — خوشه اکشن‌های آیکونی (جستجو، ورود، ثبت‌نام، رزرو)
   تکمیلی بر main.css — بارگذاری بعد از آن
   ═══════════════════════════════════════════════════════════ */

.header__actions { gap: 9px; }

/* ── دکمه آیکونی شیشه‌ای ─────────────────────────────────── */
.actionbtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 13px;
  color: var(--on-navy-2);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .25s var(--ease), background .25s, color .25s,
              border-color .25s, box-shadow .25s;
}
.actionbtn svg { transition: transform .25s var(--ease); }
.actionbtn:hover {
  color: var(--gold-400);
  background: rgba(201,162,75,.13);
  border-color: rgba(201,162,75,.38);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201,162,75,.18);
}
.actionbtn:hover svg { transform: scale(1.08); }
.actionbtn:active { transform: translateY(0) scale(.95); }
.actionbtn[aria-expanded="true"] {
  color: var(--gold-400);
  background: rgba(201,162,75,.16);
  border-color: rgba(201,162,75,.42);
}
.actionbtn:focus-visible, .ctabtn:focus-visible {
  outline: 2px solid var(--gold-400); outline-offset: 3px;
}

/* جداکننده ظریف میان جستجو و اکشن‌های حساب کاربری */
.actionsep {
  width: 1px; height: 22px; flex-shrink: 0;
  background: rgba(255,255,255,.13); margin-inline: 2px;
}

/* همبرگر: در دسکتاپ پنهان — اصلاح اولویت با main.css */
.actionbtn.nav-toggle { display: none; }
@media (max-width: 992px) {
  .actionbtn.nav-toggle { display: inline-flex; }
}

/* نکات منو: جلوگیری از شکستن متن لینک‌ها در عرض‌های میانی */
.nav__link { white-space: nowrap; }
@media (max-width: 1120px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 10px 11px; font-size: 14px; }
  .header__in { gap: 12px; }
  .header__actions { gap: 7px; }
  .actionbtn, .ctabtn { width: 40px; height: 40px; }
}

/* ── دکمه طلایی آیکونی — رزرو مشاوره ────────────────────── */
.ctabtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 13px;
  background: var(--gold-grad);
  color: #17223f;
  box-shadow: 0 6px 20px rgba(201,162,75,.38), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: ctaGlow 3.4s ease-in-out infinite;
}
/* برق عبوری هنگام هاور — لایه داخلی با گِردی خود دکمه، تا بیرون نزند */
.ctabtn__fx {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.ctabtn__fx::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(160%);
  transition: transform .65s var(--ease);
}
.ctabtn:hover { transform: translateY(-2px); animation: none; box-shadow: 0 12px 30px rgba(201,162,75,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.ctabtn:hover .ctabtn__fx::before { transform: translateX(-160%); }
.ctabtn:active { transform: translateY(0) scale(.95); }
.ctabtn svg { position: relative; z-index: 1; }

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(201,162,75,.38), inset 0 1px 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 6px 28px rgba(201,162,75,.58), inset 0 1px 0 rgba(255,255,255,.35); }
}

/* ── تولتیپ آیکون‌ها (فقط دستگاه‌های دارای ماوس) ─────────── */
@media (hover: hover) and (pointer: fine) {
  .actionbtn[data-tip]::after, .ctabtn[data-tip]::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 12px); right: 50%;
    transform: translateX(50%) translateY(-5px);
    background: #f4f6fc;
    color: var(--navy-900);
    font-size: 12px; font-weight: 600; line-height: 1;
    padding: 8px 13px; border-radius: 9px;
    white-space: nowrap;
    opacity: 0; visibility: hidden; pointer-events: none;
    box-shadow: 0 10px 26px rgba(4,10,26,.4);
    z-index: 130;
    transition: opacity .18s ease .5s, transform .18s var(--ease) .5s, visibility 0s .5s;
  }
  .actionbtn:hover::after, .actionbtn:focus-visible::after,
  .ctabtn:hover::after, .ctabtn:focus-visible::after {
    opacity: 1; visibility: visible;
    transform: translateX(50%) translateY(0);
    transition-delay: 0s;
  }
}

/* ── ردیف حساب کاربری در منوی موبایل ────────────────────── */
.drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.drawer__auth .btn { justify-content: center; padding-inline: 10px; }

/* ── واکنش‌گرایی ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .header__actions { gap: 7px; }
  .actionbtn, .ctabtn { width: 40px; height: 40px; border-radius: 12px; }
  /* در موبایل، ورود/ثبت‌نام با برچسب متنی داخل کشوی منو هستند */
  .header__actions .header-auth, .header__actions .actionsep { display: none; }
}
@media (max-width: 380px) {
  .header__actions { gap: 6px; }
  .actionbtn, .ctabtn { width: 38px; height: 38px; border-radius: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   صفحات ورود / ثبت‌نام — پایه پنل کاربری موکلین
   ═══════════════════════════════════════════════════════════ */
.auth-wrap { max-width: 540px; margin-inline: auto; }
.auth-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 46px 38px 38px;
  text-align: center;
}
.auth-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--gold-grad);
}
.auth-icon {
  width: 78px; height: 78px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy-850), var(--navy-700));
  color: var(--gold-400);
  box-shadow: var(--sh-md);
}
.auth-card h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.auth-card p { color: var(--text-2); font-size: 15px; }
.auth-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.auth-note {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.auth-note svg { color: var(--gold-500); flex-shrink: 0; }

@media (max-width: 640px) {
  .auth-card { padding: 36px 22px 30px; }
  .auth-icon { width: 64px; height: 64px; border-radius: 19px; }
  .auth-icon svg { width: 30px; height: 30px; }
  .auth-actions .btn { width: 100%; }
}
