/* ═══════════════════════════════════════════════════════════════════════
   مازاری اوث — استایل فرانت‌اند
   رنگ‌های برند: navy #111827  |  gold #c8a96e
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --mz-navy:    #111827;
  --mz-navy2:   #1e2d4a;
  --mz-navy3:   #0a0f1a;
  --mz-gold:    #c8a96e;
  --mz-gold-l:  #e2c98a;
  --mz-gold-p:  #f5edda;
  --mz-red:     #c0392b;
  --mz-green:   #4caf78;
  --mz-border:  #e8e4de;
  --mz-cream:   #faf8f4;
  --mz-tr:      0.3s ease;
}

/* ── ریست پایه ── */
.mz-page *, .mz-db * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── خنثی‌سازی padding/margin تم وردپرس ── */
/* حذف فاصله‌های معمول تم */
body:has(.mz-page) .site-content,
body:has(.mz-page) .content-area,
body:has(.mz-page) main,
body:has(.mz-page) #main,
body:has(.mz-page) #content,
body:has(.mz-page) .entry-content,
body:has(.mz-page) .post-content,
body:has(.mz-page) .page-content,
body:has(.mz-page) article,
body:has(.mz-page) .container,
body:has(.mz-page) .wp-block-group {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ════════════════════════════════════════════
   صفحه ورود / ثبت‌نام
   ════════════════════════════════════════════ */

.mz-page {
  direction: rtl;
  font-family: inherit;
  background: linear-gradient(135deg, #060b14 0%, #0d1520 40%, #0a1628 70%, #060e1a 100%);
  /* پوشاندن کامل صفحه بدون فضای اضافی تم */
  width: 100vw;
  min-height: 100vh;
  margin: 0 !important;
  padding: 28px 20px 80px !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}


/* ── همه بچه‌های مستقیم روی لایه ── */
.mz-page > * { position: relative; z-index: 1; }

/* ── لوگو ── */
.mz-logo {
  text-align: center;
  margin-bottom: 28px;
}
.mz-logo img {
  height: 56px; width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  filter: brightness(0) invert(1);
}
.mz-logo-name {
  font-size: 22px; font-weight: 800;
  color: #fff;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.mz-logo-sub {
  font-size: 9px; color: rgba(255,255,255,.3);
  letter-spacing: .35em; text-transform: uppercase;
  margin-bottom: 14px;
}
.mz-logo-line {
  width: 50px; height: 2px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--mz-gold), transparent);
}

/* ════════════════════════════════════════════
   کارت glassmorphism
   ════════════════════════════════════════════ */
.mz-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  padding: 36px 32px 28px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 12px 50px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.2);
}

/* ════════════════════════════════════════════
   مراحل (steps)
   ════════════════════════════════════════════ */
.mz-step { display: none; }
.mz-step.active { display: block; animation: mzFadeIn .4s ease; }
@keyframes mzFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── آیکون مرحله ── */
.mz-step-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(200,169,110,.2), rgba(200,169,110,.08));
  border: 1px solid rgba(200,169,110,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(200,169,110,.15);
}
.mz-step-icon svg { width: 34px; height: 34px; color: var(--mz-gold); }
.mz-step-icon--otp { background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(99,102,241,.08)); border-color: rgba(99,102,241,.3); }
.mz-step-icon--otp svg { color: #818cf8; }
.mz-step-icon--reg { background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(5,150,105,.08)); border-color: rgba(16,185,129,.3); }
.mz-step-icon--reg svg { color: #34d399; }

.mz-step-title {
  text-align: center;
  font-size: 20px; font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.mz-step-desc {
  text-align: center;
  font-size: 13px; color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════
   فیلدهای ورودی
   ════════════════════════════════════════════ */
.mz-field { margin-bottom: 16px; }
.mz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mz-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mz-req { color: var(--mz-red); }
.mz-inp-wrap { position: relative; }
.mz-inp {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,.07);
  outline: none;
  transition: all var(--mz-tr);
  -webkit-appearance: none;
}
.mz-inp::placeholder { color: rgba(255,255,255,.2); }
.mz-inp:focus {
  border-color: var(--mz-gold);
  box-shadow: 0 0 0 4px rgba(200,169,110,.12);
  background: rgba(255,255,255,.1);
}
.mz-inp-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.2);
  pointer-events: none;
}
.mz-inp-icon svg { width: 17px; height: 17px; }

/* ════════════════════════════════════════════
   باکس‌های OTP
   ════════════════════════════════════════════ */
.mz-otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 24px;
  direction: ltr;
}
.mz-otp-box {
  width: 56px; height: 64px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 24px; font-weight: 800;
  text-align: center;
  outline: none;
  transition: all var(--mz-tr);
  caret-color: var(--mz-gold);
  font-family: inherit;
}
.mz-otp-box:focus {
  border-color: var(--mz-gold);
  box-shadow: 0 0 0 4px rgba(200,169,110,.15), 0 0 20px rgba(200,169,110,.1);
  background: rgba(200,169,110,.08);
  transform: scale(1.06);
}
.mz-otp-box.filled {
  border-color: rgba(200,169,110,.5);
  background: rgba(200,169,110,.1);
}
.mz-otp-box.shake {
  animation: mzShake .4s ease;
}
@keyframes mzShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* ════════════════════════════════════════════
   تایمر OTP
   ════════════════════════════════════════════ */
.mz-timer-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 22px;
}
.mz-timer-ring {
  position: relative;
  width: 60px; height: 60px;
  flex-shrink: 0;
}
.mz-timer-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.mz-timer-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3; }
.mz-timer-arc {
  fill: none;
  stroke: var(--mz-gold);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear, stroke .5s;
}
.mz-timer-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 15px; font-weight: 800;
  color: var(--mz-gold-l);
}
.mz-timer-labels { text-align: right; }
.mz-resend-txt { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6; }
.mz-resend-btn {
  background: none; border: none;
  color: var(--mz-gold); font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 0;
  text-decoration: underline;
  transition: color var(--mz-tr);
  font-family: inherit;
}
.mz-resend-btn:hover { color: var(--mz-gold-l); }

/* ════════════════════════════════════════════
   دکمه‌ها
   ════════════════════════════════════════════ */
.mz-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  transition: all var(--mz-tr);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: none;
  margin-bottom: 10px;
  letter-spacing: .03em;
  background: linear-gradient(135deg, var(--mz-gold), var(--mz-gold-l));
  color: #111827;
  box-shadow: 0 4px 20px rgba(200,169,110,.3);
}
.mz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,.4);
  filter: brightness(1.06);
}
.mz-btn:active { transform: translateY(0); }
.mz-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; filter: none; }
.mz-btn svg { width: 18px; height: 18px; }
.mz-btn-ghost {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}
.mz-btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  box-shadow: none;
  filter: none;
}

/* ── spinner ── */
@keyframes mzSpin { to { transform: rotate(360deg); } }
.mz-spin {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: #111827;
  animation: mzSpin .65s linear infinite;
  display: inline-block;
}
.mz-btn-ghost .mz-spin { border-color: rgba(255,255,255,.2); border-top-color: #fff; }

/* ════════════════════════════════════════════
   پیام‌ها
   ════════════════════════════════════════════ */
.mz-msg {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}
.mz-msg.show { display: flex; animation: mzFadeIn .3s ease; }
.mz-msg.err { background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.3); color: #f08080; }
.mz-msg.ok  { background: rgba(76,175,120,.12); border: 1px solid rgba(76,175,120,.28); color: #6ee7a8; }
.mz-msg svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ════════════════════════════════════════════
   انیمیشن موفقیت (checkmark)
   ════════════════════════════════════════════ */
.mz-success-anim {
  display: flex; justify-content: center;
  margin: 10px 0 24px;
}
.mz-checkmark {
  width: 84px; height: 84px;
}
.mz-checkmark-circle {
  stroke: var(--mz-green);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: mzStroke .6s cubic-bezier(.65,0,.45,1) forwards;
}
.mz-checkmark-check {
  stroke: var(--mz-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: mzStroke .4s cubic-bezier(.65,0,.45,1) .6s forwards;
}
@keyframes mzStroke {
  100% { stroke-dashoffset: 0; }
}
.mz-success-title { color: var(--mz-green) !important; }
.mz-loading-bar {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}
.mz-loading-fill {
  height: 100%;
  background: linear-gradient(to right, var(--mz-gold), var(--mz-gold-l));
  border-radius: 2px;
  animation: mzLoad 1.2s ease forwards;
}
@keyframes mzLoad {
  from { width: 0; }
  to   { width: 100%; }
}

/* ════════════════════════════════════════════
   Trust و Privacy
   ════════════════════════════════════════════ */
.mz-trust {
  display: flex; gap: 8px;
  flex-wrap: wrap; justify-content: center;
  margin-top: 20px;
}
.mz-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
}
.mz-trust-item svg { width: 12px; height: 12px; color: var(--mz-gold); }
.mz-privacy {
  font-size: 11px; color: rgba(255,255,255,.35);
  line-height: 1.7; margin-bottom: 16px;
  padding: 12px; border-radius: 10px;
  background: rgba(200,169,110,.07);
  border: 1px solid rgba(200,169,110,.14);
}
.mz-privacy a { color: var(--mz-gold); text-decoration: none; }

/* ════════════════════════════════════════════
   آمار پایین صفحه
   ════════════════════════════════════════════ */
.mz-stats-bar {
  display: flex; gap: 0;
  margin-top: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%; max-width: 460px;
}
.mz-stats-item {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 3px;
}
.mz-stats-item:last-child { border-left: none; }
.mz-stats-num { font-size: 22px; font-weight: 800; color: var(--mz-gold-l); }
.mz-stats-lbl { font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: .06em; }

/* ════════════════════════════════════════════
   داشبورد کاربری
   ════════════════════════════════════════════ */
.mz-db {
  direction: rtl;
  font-family: inherit;
  background: var(--mz-cream);
  min-height: 100vh;
  padding: 28px 24px 80px;
}
.mz-db-inner { max-width: 960px; margin: 0 auto; }

/* ── هدر داشبورد ── */
.mz-db-header {
  background: var(--mz-navy);
  border-radius: 22px;
  padding: 26px 30px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.mz-db-header::before {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,110,.08);
  top: -160px; right: -90px;
  pointer-events: none;
}
.mz-db-header::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.06) 0%, transparent 70%);
  bottom: -80px; left: 60px;
  pointer-events: none;
}
.mz-db-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(200,169,110,.15);
  border: 2px solid rgba(200,169,110,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  color: var(--mz-gold);
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(200,169,110,.07);
}
.mz-db-user-info { flex: 1; position: relative; z-index: 1; }
.mz-db-username { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.mz-db-email    { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 2px; }
.mz-db-phone    { font-size: 11px; color: rgba(200,169,110,.65); }
.mz-db-logout-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 12px; font-weight: 700;
  transition: all var(--mz-tr);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.mz-db-logout-btn svg { width: 14px; height: 14px; }
.mz-db-logout-btn:hover {
  background: rgba(192,57,43,.2);
  border-color: rgba(192,57,43,.3);
  color: #f08080;
}

/* ── آمار ── */
.mz-db-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.mz-db-stat {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--mz-border);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 13px;
  transition: all var(--mz-tr);
  cursor: default;
}
.mz-db-stat:hover {
  border-color: var(--mz-gold);
  box-shadow: 0 4px 20px rgba(200,169,110,.12);
  transform: translateY(-3px);
}
.mz-db-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mz-gold-p);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mz-db-stat-icon svg { width: 20px; height: 20px; color: var(--mz-gold); }
.mz-db-stat-num   { font-size: 22px; font-weight: 900; color: var(--mz-navy); }
.mz-db-stat-label { font-size: 11px; color: #888; margin-top: 2px; }

/* ── گرید داشبورد ── */
.mz-db-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}
.mz-db-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--mz-border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,35,64,.05);
}
.mz-db-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mz-border);
  background: var(--mz-cream);
}
.mz-db-card-header h3 {
  font-size: 14px; font-weight: 800;
  color: var(--mz-navy);
  display: flex; align-items: center; gap: 8px;
}
.mz-db-card-header h3 svg { width: 15px; height: 15px; color: var(--mz-gold); }
.mz-db-card-header a {
  font-size: 12px; color: var(--mz-gold);
  text-decoration: none; font-weight: 700;
  transition: color var(--mz-tr);
}
.mz-db-card-header a:hover { color: var(--mz-navy); }

/* ── ردیف سفارش ── */
.mz-db-order-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f5f2ee;
  transition: background var(--mz-tr);
}
.mz-db-order-row:last-child { border-bottom: none; }
.mz-db-order-row:hover { background: var(--mz-cream); }
.mz-db-order-num  { font-size: 13px; font-weight: 800; color: var(--mz-navy); }
.mz-db-order-date { font-size: 11px; color: #999; margin-top: 2px; }
.mz-db-status-badge {
  font-size: 10px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.mz-db-order-total {
  font-size: 13px; font-weight: 800;
  color: var(--mz-gold);
  margin-right: auto;
  white-space: nowrap;
}
.mz-db-order-view {
  font-size: 11px; color: #bbb;
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--mz-tr);
}
.mz-db-order-view:hover { color: var(--mz-navy); }
.mz-db-empty {
  text-align: center;
  padding: 40px 20px;
  color: #aaa; font-size: 13px;
  line-height: 1.8;
}

/* ── منوی حساب ── */
.mz-db-menu { display: flex; flex-direction: column; gap: 3px; padding: 8px; }
.mz-db-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  color: #777;
  transition: all var(--mz-tr);
}
.mz-db-menu-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.mz-db-menu-item:hover { background: var(--mz-cream); color: var(--mz-navy); }
.mz-db-menu-item.mz-danger { color: #e05c5c; }
.mz-db-menu-item.mz-danger:hover { background: #fdf0ef; }

/* ════════════════════════════════════════════
   ریسپانسیو
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mz-db { padding: 16px 14px 60px; }
  .mz-db-stats { grid-template-columns: 1fr 1fr; }
  .mz-db-grid  { grid-template-columns: 1fr; }
  .mz-db-header { flex-wrap: wrap; padding: 20px; }
  .mz-db-logout-btn { order: -1; margin-right: auto; }
}
@media (max-width: 520px) {
  .mz-page { padding: 20px 14px 60px !important; }
  .mz-card { padding: 24px 16px 20px; border-radius: 20px; }
  .mz-otp-box { width: 48px; height: 56px; font-size: 20px; border-radius: 12px; }
  .mz-field-row { grid-template-columns: 1fr; }
  .mz-db-stats { grid-template-columns: 1fr; }
  .mz-stats-bar { max-width: 100%; }
  .mz-stats-num { font-size: 18px; }
}
