/* ============================================
   حساب کاربری — ورود / عضویت / پیشخوان
   ============================================ */

body.ll-account { background: #040B08 !important; color: var(--lux-ivory); }

.ll-acc {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  padding: 150px clamp(16px, 4vw, 48px) clamp(80px, 9vw, 130px);
  box-sizing: border-box;
  font-family: var(--font-body);
  color: var(--lux-ivory);
  background: linear-gradient(180deg, #040B08 0%, #06130D 60%, #040B08 100%);
}
.ll-acc a { text-decoration: none; }

/* فضا (آینه‌کاری + غبار): light.css → .ll-atmos */

/* ---------- سرتیتر (زیر دریچه‌ی نور) ---------- */
.ll-acc__head {
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto 40px;
  padding: 26px clamp(20px, 4vw, 50px) 8px;
  text-align: center;
  --sky-x: 70px;
  --sky-top: 170px;
  --sky-bottom: 50px;
  --sky-a: .12;
}
.ll-acc__eyebrow {
  display: block;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 10.5px;
  letter-spacing: .4em;
  color: rgba(199, 164, 106, .8);
  margin-bottom: 14px;
  direction: ltr;
}
.ll-acc__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.3;
  background: linear-gradient(180deg, #F6E7C3 0%, #E2C48C 45%, #B48F55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.ll-acc__sub {
  margin: 12px auto 0;
  max-width: 30em;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--lux-ivory-dim);
}
@keyframes llAccRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.ll-acc__body { max-width: 1120px; margin: 0 auto; width: 100%; min-width: 0; }

/* ---------- مهمان، دسکتاپ: دو ستون (راست: کارت، چپ: تالار خصوصی) ---------- */
@media (min-width: 980px) {
  .ll-acc--out .ll-acc__layout {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 110px);
    max-width: 1180px;
    margin: 0 auto;
    min-height: calc(100vh - 230px);
  }
  .ll-acc--out .ll-acc__body { grid-column: 1; grid-row: 1; }
  .ll-acc--out .ll-acc__head {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 70px 30px 60px;
    --sky-x: 0px;
    --sky-top: 260px;
    --sky-bottom: 80px;
  }
  .ll-acc--out .ll-acc__title { font-size: clamp(44px, 4.4vw, 64px); }
  .ll-acc--out .ll-auth { margin: 0; max-width: none; }
}
.ll-acc .woocommerce { width: 100%; }

/* پیام‌ها (خطا، موفقیت) */
.ll-acc .woocommerce-notices-wrapper:empty { display: none; }
.ll-acc .woocommerce-error,
.ll-acc .woocommerce-message,
.ll-acc .woocommerce-info {
  max-width: 560px;
  margin: 0 auto 22px !important;
  padding: 14px 20px !important;
  list-style: none;
  border: 1px solid rgba(199, 164, 106, .3) !important;
  border-radius: 14px;
  background: rgba(20, 51, 37, .6) !important;
  color: var(--lux-ivory) !important;
  font-size: 14px;
  line-height: 1.9;
}
.ll-acc .woocommerce-error { border-color: rgba(200, 110, 100, .45) !important; background: rgba(60, 20, 18, .55) !important; }
.ll-acc .woocommerce-error::before,
.ll-acc .woocommerce-message::before,
.ll-acc .woocommerce-info::before { display: none; }
.ll-acc .woocommerce-error li { margin: 0; }
.ll-acc .woocommerce-message a,
.ll-acc .woocommerce-info a { color: var(--lux-champagne); }

/* ============================================
   فیلدها (همه‌ی فرم‌های حساب)
   ============================================ */
.ll-acc label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 400;
  color: var(--lux-ivory-dim);
}
.ll-acc .required { color: var(--lux-gold); border: 0; text-decoration: none; }
.ll-acc .form-row { margin: 0 0 16px; padding: 0; }

.ll-acc .woocommerce form .form-row input.input-text,
.ll-acc .woocommerce form .form-row textarea,
.ll-acc input[type="text"],
.ll-acc input[type="email"],
.ll-acc input[type="password"],
.ll-acc input[type="tel"],
.ll-acc input[type="number"],
.ll-acc select,
.ll-acc textarea,
.ll-acc .select2-container .select2-selection--single {
  width: 100%;
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 16px !important;
  border: 1px solid rgba(199, 164, 106, .22) !important;
  border-radius: 12px !important;
  background: rgba(4, 11, 8, .6) !important;
  color: var(--lux-ivory) !important;
  font-family: var(--font-body);
  font-size: 15px !important;
  line-height: 48px;
  box-shadow: none !important;
  transition: border-color .35s var(--lux-transition), box-shadow .35s var(--lux-transition), background .35s;
  outline: none;
}
.ll-acc textarea, .ll-acc .woocommerce form .form-row textarea { height: auto; line-height: 1.8; padding: 12px 16px !important; min-height: 110px; }
.ll-acc .woocommerce form .form-row input.input-text:focus,
.ll-acc input:focus,
.ll-acc select:focus,
.ll-acc textarea:focus {
  border-color: var(--lux-gold) !important;
  box-shadow: 0 0 0 4px rgba(199, 164, 106, .12) !important;
  background: rgba(4, 11, 8, .8) !important;
}
.ll-acc input::placeholder { color: rgba(245, 240, 232, .3); }
.ll-acc .select2-container .select2-selection__rendered { color: var(--lux-ivory) !important; line-height: 48px !important; padding: 0 !important; }
.ll-acc .select2-container .select2-selection__arrow { height: 48px !important; left: 10px !important; right: auto !important; }

/* نمایش رمز (دکمه‌ی چشم ووکامرس) */
.ll-acc .password-input { position: relative; display: block; width: 100%; }
.ll-acc .password-input input { padding-left: 50px !important; }
.ll-acc .show-password-input,
.ll-acc .show-password-input:hover {
  position: absolute !important;
  top: 50% !important;
  left: 8px !important;
  right: auto !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: translateY(-50%);
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  color: rgba(199, 164, 106, .8);
}
.ll-acc .show-password-input::after { display: none !important; }
.ll-acc .show-password-input::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ll-acc .show-password-input.display-password::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A9.7 9.7 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4M6.6 6.6C3.7 8.5 2 12 2 12s3.6 7 10 7a9.4 9.4 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A9.7 9.7 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4M6.6 6.6C3.7 8.5 2 12 2 12s3.6 7 10 7a9.4 9.4 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}
.ll-acc .show-password-input:hover { color: var(--lux-champagne); }

/* چک‌باکس */
.ll-acc input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  border: 1px solid rgba(199, 164, 106, .5);
  border-radius: 5px;
  background: rgba(4, 11, 8, .6);
  cursor: pointer;
  position: relative;
  transition: background .3s, border-color .3s;
}
.ll-acc input[type="checkbox"]:checked { background: var(--lux-gold); border-color: var(--lux-gold); }
.ll-acc input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid #06130D;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ll-acc .ll-check { display: inline-flex !important; align-items: center; gap: 9px; margin: 0 !important; cursor: pointer; font-size: 13px; }

/* دکمه‌ها داخل حساب */
.ll-acc .ll-btn--gold,
.ll-acc button.ll-btn--gold,
.ll-acc .woocommerce-Button.button,
.ll-acc button[type="submit"].button,
.ll-acc .woocommerce-ResetPassword .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #F0DCAE 0%, #C7A46A 55%, #A9864F 100%) !important;
  color: #06130D !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .02em;
  box-shadow: 0 18px 40px -18px rgba(199, 164, 106, .6) !important;
  cursor: pointer;
  transition: transform .4s var(--lux-transition), box-shadow .4s, filter .4s !important;
}
.ll-acc .ll-btn--gold:hover,
.ll-acc .woocommerce-Button.button:hover,
.ll-acc button[type="submit"].button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 22px 46px -18px rgba(199, 164, 106, .75) !important;
}

/* ============================================
   ورود / عضویت — کارت سه‌بعدی دورو
   ============================================ */
.ll-auth {
  max-width: 560px;
  margin: 0 auto;
  perspective: 1800px;
}
.ll-auth__rig {
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.ll-auth__card {
  display: grid;
  gap: 28px;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(.7, 0, .2, 1);
}

.ll-auth__face {
  position: relative;
  padding: 32px clamp(20px, 4vw, 38px) 24px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(240, 220, 174, .08), transparent 60%),
    linear-gradient(165deg, #12301F 0%, #0A1E15 55%, #061109 100%);
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 240, 210, .1);
  transform-style: preserve-3d;
  animation: llAccRise 1.1s .3s cubic-bezier(.22, 1, .36, 1) both;
}
/* لبه‌ی طلایی، از بالا روشن و پایین محو */
.ll-auth__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(170deg, rgba(246, 231, 195, .7), rgba(199, 164, 106, .12) 42%, rgba(199, 164, 106, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
/* برق آینه که یک‌بار از روی کارت رد می‌شود */
.ll-auth__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 246, 222, .09) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  pointer-events: none;
  animation: llAuthSheen 2.6s 1.1s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes llAuthSheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* درخشش دنبال نشانگر (account.js → --gx/--gy) */
.ll-auth__face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 0%), rgba(246, 231, 195, .09), transparent 60%);
  opacity: 0;
  transition: opacity .6s var(--lux-transition);
  pointer-events: none;
}
.ll-auth__face.is-lit::before { opacity: 1; }

.ll-auth__logo {
  display: block;
  width: 74px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(240, 220, 174, .25));
  transform: translateZ(50px);
}
.ll-auth__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.3;
  background: linear-gradient(180deg, #F6E7C3, #B48F55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform: translateZ(36px);
}
.ll-auth__lead {
  margin: 2px 0 20px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--lux-ivory-dim);
  transform: translateZ(24px);
}
.ll-auth form { text-align: right; margin: 0 !important; padding: 0 !important; border: 0 !important; transform: translateZ(18px); }

.ll-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  align-items: start;
}
.ll-auth__grid .form-row { margin-bottom: 14px; }
@media (max-width: 560px) { .ll-auth__grid { grid-template-columns: 1fr; } }

/* تاریخ تولد (اختیاری) */
.ll-acc .ll-bd { margin: 0 0 14px; padding: 0; border: 0; }
.ll-acc .ll-bd legend {
  padding: 0;
  margin: 0 0 7px;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  color: var(--lux-ivory-dim) !important;
}
.ll-bd__opt { color: rgba(245, 240, 232, .4); font-size: 12px; }
.ll-bd__row { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr; gap: 10px; }
.ll-acc .ll-bd select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0 14px 0 34px !important;
  background: rgba(4, 11, 8, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7A46A' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center / 13px !important;
  cursor: pointer;
}
.ll-acc .ll-bd select option { background: #06130D; color: var(--lux-ivory); }
.ll-acc .woocommerce-EditAccountForm .ll-bd { margin-top: 10px; }

.ll-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.ll-auth__forgot { font-size: 13px; color: rgba(199, 164, 106, .9) !important; transition: color .3s; }
.ll-auth__forgot:hover { color: var(--lux-champagne) !important; }
.ll-auth .ll-auth__submit { float: none !important; width: 100% !important; margin: 0 !important; }
.ll-auth form::after { content: ""; display: block; clear: both; }
.ll-auth__note { font-size: 13px; color: var(--lux-ivory-dim); }
.ll-auth .woocommerce-privacy-policy-text p {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(245, 240, 232, .45);
}
.ll-auth .woocommerce-privacy-policy-text a { color: rgba(199, 164, 106, .9); }

.ll-auth__switch {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(199, 164, 106, .12);
  font-size: 13.5px;
  color: var(--lux-ivory-dim);
  transform: translateZ(14px);
}
.ll-auth__switch a {
  margin-right: 4px;
  color: var(--lux-champagne) !important;
  background: linear-gradient(90deg, var(--lux-gold), var(--lux-gold)) 100% 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--lux-transition);
}
.ll-auth__switch a:hover { background-size: 100% 1px; }

/* حالت سه‌بعدی (account.js) */
.ll-auth.is-3d .ll-auth__face {
  grid-area: 1 / 1;
  align-self: start; /* هر رو به اندازه‌ی محتوای خودش */
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.ll-auth.is-3d .ll-auth__face--register { transform: rotateY(180deg); }
.ll-auth.is-3d .ll-auth__face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* طرفی که پشت است اصلاً کلیک‌پذیر نیست؛ وسط چرخش پنهان/پیدا می‌شود */
.ll-auth.is-3d .ll-auth__face { transition: visibility 0s .62s; }
.ll-auth.is-3d:not(.is-flipped) .ll-auth__face--register,
.ll-auth.is-3d.is-flipped .ll-auth__face--login { visibility: hidden; pointer-events: none; }
.ll-auth.is-3d.is-flipped .ll-auth__card { transform: rotateY(-180deg); }
.ll-auth.is-3d .ll-auth__face--register { animation: none; }
/* بعد از تمام شدن چرخش، کارت «تخت» می‌شود: مرورگر رویِ چرخیده (۱۸۰ درجه) و لایه‌های عمق‌دار
   را با کیفیت پایین رسم می‌کرد و پشت کارت (عضویت) مات دیده می‌شد. حالت تخت = متن کاملاً شفاف. account.js → is-settled */
.ll-auth.is-3d.is-settled .ll-auth__rig,
.ll-auth.is-3d.is-settled .ll-auth__card,
.ll-auth.is-3d.is-settled .ll-auth__face--register { transform: none; transition: none; will-change: auto; }
.ll-auth.is-3d.is-settled .ll-auth__rig,
.ll-auth.is-3d.is-settled .ll-auth__card,
.ll-auth.is-3d.is-settled .ll-auth__face { transform-style: flat; }
.ll-auth.is-3d.is-settled .ll-auth__face * { -webkit-backface-visibility: visible; backface-visibility: visible; }
.ll-auth.is-3d.is-settled .ll-auth__logo,
.ll-auth.is-3d.is-settled .ll-auth__title,
.ll-auth.is-3d.is-settled .ll-auth__lead,
.ll-auth.is-3d.is-settled form,
.ll-auth.is-3d.is-settled .ll-auth__switch { transform: none; }
.ll-auth.is-snap .ll-auth__rig,
.ll-auth.is-snap .ll-auth__card,
.ll-auth.is-snap .ll-auth__face { transition: none !important; }

/* ============================================
   عضو: منو + محتوا
   ============================================ */
.ll-acc--in .woocommerce-MyAccount-navigation,
.ll-acc--in .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0;
}

.ll-acc-nav { margin: 0 auto 34px !important; animation: llAccRise 1s .25s cubic-bezier(.22, 1, .36, 1) both; }
.ll-acc-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid rgba(199, 164, 106, .14);
  border-radius: 999px;
  background: rgba(6, 19, 13, .6);
  box-sizing: border-box;
}
.ll-acc-nav li { margin: 0; }
.ll-acc-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  white-space: nowrap;
  color: rgba(245, 240, 232, .62) !important;
  transition: color .4s var(--lux-transition), background .5s var(--lux-transition);
}
.ll-acc-nav svg { width: 18px; height: 18px; color: rgba(199, 164, 106, .7); transition: color .4s; }
.ll-acc-nav a:hover { color: var(--lux-ivory) !important; }
.ll-acc-nav a:hover svg { color: var(--lux-champagne); }
/* بخش فعال: زیر نور */
.ll-acc-nav .is-active a {
  color: var(--lux-champagne) !important;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(240, 220, 174, .22), transparent 70%),
    rgba(20, 51, 37, .7);
  box-shadow: inset 0 0 0 1px rgba(199, 164, 106, .3);
}
.ll-acc-nav .is-active svg { color: var(--lux-champagne); }
.ll-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: rgba(245, 240, 232, .45) !important; }

.ll-acc--in .woocommerce-MyAccount-content {
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: 26px;
  border: 1px solid rgba(199, 164, 106, .12);
  background: linear-gradient(165deg, rgba(20, 51, 37, .45), rgba(6, 17, 11, .7));
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8);
  animation: llAccRise 1s .35s cubic-bezier(.22, 1, .36, 1) both;
}
.ll-acc--in .woocommerce-MyAccount-content:has(.ll-dash) {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.ll-acc .woocommerce-MyAccount-content h2,
.ll-acc .woocommerce-MyAccount-content h3,
.ll-acc .woocommerce-MyAccount-content legend {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--lux-champagne);
  margin: 0 0 18px;
}
.ll-acc .woocommerce-MyAccount-content p { line-height: 2; color: rgba(245, 240, 232, .75); }
.ll-acc .woocommerce-MyAccount-content a:not(.button):not(.ll-btn):not(.ll-dash__card):not(.ll-link) { color: var(--lux-champagne); }

/* ---------- پیشخوان ---------- */
.ll-dash__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  perspective: 1200px;
}
.ll-dash__card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 28px 26px 24px;
  border-radius: 22px;
  color: var(--lux-ivory) !important;
  background:
    radial-gradient(100% 80% at 50% -10%, rgba(240, 220, 174, .1), transparent 60%),
    linear-gradient(165deg, #12301F, #08180F);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 210, .08);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s;
  animation: llAccRise 1s calc(.35s + var(--d, 0) * .1s) cubic-bezier(.22, 1, .36, 1) both;
}
.ll-dash__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(170deg, rgba(246, 231, 195, .5), rgba(199, 164, 106, .08) 45%, rgba(199, 164, 106, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  transition: opacity .5s;
  opacity: .7;
}
.ll-dash__card:hover { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 50px -20px rgba(199, 164, 106, .35); }
.ll-dash__card:hover::before { opacity: 1; }
.ll-dash__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(240, 220, 174, .2), rgba(199, 164, 106, .05));
  box-shadow: inset 0 0 0 1px rgba(199, 164, 106, .3);
  transform: translateZ(30px);
}
.ll-dash__icon svg { width: 22px; height: 22px; color: var(--lux-champagne); }
.ll-dash__label { font-size: 13px; color: var(--lux-ivory-dim); transform: translateZ(20px); }
.ll-dash__value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--lux-champagne);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateZ(26px);
}
.ll-dash__value[dir="ltr"] { font-family: var(--font-body); font-size: 15px; text-align: right; }
.ll-dash__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(199, 164, 106, .9);
  transition: gap .4s var(--lux-transition), color .4s;
  transform: translateZ(18px);
}
.ll-dash__cta svg { width: 15px; height: 15px; }
.ll-dash__card:hover .ll-dash__cta { gap: 10px; color: var(--lux-champagne); }

.ll-dash__recent {
  margin-top: clamp(26px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  border: 1px solid rgba(199, 164, 106, .12);
  background: rgba(6, 19, 13, .55);
  animation: llAccRise 1s .7s cubic-bezier(.22, 1, .36, 1) both;
}
.ll-dash__recent h2 { font-size: 22px !important; margin-bottom: 14px !important; }
.ll-dash__orders { list-style: none; margin: 0; padding: 0; }
.ll-dash__orders li + li { border-top: 1px solid rgba(199, 164, 106, .1); }
.ll-dash__orders a {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr .6fr;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  color: var(--lux-ivory) !important;
  font-size: 14px;
  transition: background .4s;
}
.ll-dash__orders a:hover { background: rgba(240, 220, 174, .05); }
.ll-dash__num { color: var(--lux-champagne); }
.ll-dash__date, .ll-dash__items { color: var(--lux-ivory-dim); font-size: 13px; }
.ll-dash__total { color: var(--lux-ivory); }
.ll-dash__status {
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--lux-champagne);
  background: rgba(199, 164, 106, .12);
  box-shadow: inset 0 0 0 1px rgba(199, 164, 106, .3);
}
.ll-dash__status--completed { color: #A8D5BA; background: rgba(80, 160, 110, .12); box-shadow: inset 0 0 0 1px rgba(120, 190, 150, .3); }
.ll-dash__status--cancelled,
.ll-dash__status--failed,
.ll-dash__status--refunded { color: #E3A9A0; background: rgba(170, 70, 60, .12); box-shadow: inset 0 0 0 1px rgba(200, 110, 100, .3); }
.ll-dash__status--pending,
.ll-dash__status--on-hold { color: var(--lux-silver); background: rgba(232, 228, 220, .08); box-shadow: inset 0 0 0 1px rgba(232, 228, 220, .2); }

.ll-dash__empty { text-align: center; padding: 20px 0 6px; }
.ll-dash__empty p { margin: 0 0 20px !important; }

.ll-dash__help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px 6px 0;
  font-size: 14px;
  color: var(--lux-ivory-dim);
  animation: llAccRise 1s .85s cubic-bezier(.22, 1, .36, 1) both;
}

/* ---------- جدول سفارش‌ها و جزئیات سفارش ---------- */
.ll-acc table.shop_table,
.ll-acc table.woocommerce-orders-table,
.ll-acc table.woocommerce-table {
  width: 100%;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  margin: 0 0 24px;
}
.ll-acc table th {
  padding: 12px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(199, 164, 106, .2) !important;
  background: transparent !important;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(199, 164, 106, .9);
  text-align: right;
}
.ll-acc table td {
  padding: 16px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(199, 164, 106, .08) !important;
  background: transparent !important;
  color: var(--lux-ivory);
  font-size: 14px;
  vertical-align: middle;
  text-align: right;
}
.ll-acc table tfoot th, .ll-acc table tfoot td { border-bottom: 0 !important; }
.ll-acc table td a { color: var(--lux-champagne); }
.ll-acc table .button,
.ll-acc .woocommerce-pagination .button,
.ll-acc .order-again .button {
  display: inline-flex !important;
  align-items: center;
  min-height: 36px !important;
  margin: 2px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(199, 164, 106, .35) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--lux-champagne) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  transition: background .4s, border-color .4s;
}
.ll-acc table .button:hover { background: rgba(199, 164, 106, .12) !important; border-color: var(--lux-gold) !important; }
.ll-acc mark { background: none; color: var(--lux-champagne); font-weight: 500; }
.ll-acc address {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(199, 164, 106, .14) !important;
  background: rgba(6, 19, 13, .5);
  font-style: normal;
  text-align: right;
  line-height: 2;
  color: rgba(245, 240, 232, .8);
}

/* آدرس‌ها (دو ستون صورتحساب/ارسال) */
.ll-acc .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ll-acc .woocommerce-Addresses::before, .ll-acc .woocommerce-Addresses::after { display: none; }
.ll-acc .woocommerce-Address { float: none !important; width: auto !important; }
.ll-acc .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ll-acc .woocommerce-Address-title h2 { margin: 0 !important; font-size: 20px !important; }
.ll-acc .woocommerce-Address-title .edit { font-size: 13px; }

.ll-acc fieldset {
  margin: 28px 0 10px;
  padding: 22px 22px 6px;
  border: 1px solid rgba(199, 164, 106, .14);
  border-radius: 18px;
}
.ll-acc fieldset legend { padding: 0 10px; font-size: 18px !important; }
.ll-acc .form-row-first, .ll-acc .form-row-last { width: calc(50% - 8px); }
.ll-acc .woocommerce-form-row em { display: block; margin-top: 6px; font-size: 12px; color: rgba(245, 240, 232, .45); }

/* بازیابی رمز (مهمان) */
.ll-acc .woocommerce-ResetPassword {
  max-width: 470px;
  margin: 0 auto !important;
  padding: 36px clamp(22px, 5vw, 40px) 30px !important;
  border: 0 !important;
  border-radius: 26px;
  background: linear-gradient(165deg, #12301F 0%, #0A1E15 55%, #061109 100%);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(199, 164, 106, .2);
}
.ll-acc .woocommerce-ResetPassword .form-row-first,
.ll-acc .woocommerce-ResetPassword .form-row-last { width: 100% !important; float: none; }
.ll-acc .woocommerce-ResetPassword .button { width: 100%; }

/* ============================================
   موبایل
   ============================================ */
@media (max-width: 860px) {
  .ll-dash__cards { grid-template-columns: 1fr; }
  .ll-dash__card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 20px; }
  .ll-dash__icon { margin: 0; width: 44px; height: 44px; }
  .ll-dash__label { flex: 1 1 auto; }
  .ll-dash__value { flex: 1 1 100%; }
  .ll-dash__cta { margin-top: 2px; }
  .ll-acc .woocommerce-Addresses { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ll-acc { padding-top: 118px; }
  .ll-acc__head { margin-bottom: 28px; --sky-x: 20px; --sky-top: 130px; }
  .ll-acc-nav ul {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ll-acc-nav ul::-webkit-scrollbar { display: none; }
  .ll-acc-nav a { padding: 10px 14px; }
  .ll-dash__orders a { grid-template-columns: 1fr auto; row-gap: 6px; }
  .ll-dash__orders .ll-dash__date { grid-column: 1; }
  .ll-dash__orders .ll-dash__items { display: none; }
  .ll-acc .form-row-first, .ll-acc .form-row-last { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ll-auth__card, .ll-auth__rig, .ll-dash__card { transition: none; }
  .ll-acc__head, .ll-acc-nav, .ll-auth__face, .ll-dash__card, .ll-dash__recent, .ll-dash__help, .ll-acc--in .woocommerce-MyAccount-content { animation: none; }
  .ll-auth__face::after { animation: none; }
}

/* سنجش قدرت رمز (ووکامرس، هنگام عضویت)
   جای آن از قبل نگه داشته می‌شود: وقتی ظاهر می‌شود دکمه‌ی «ساخت حساب» جابه‌جا نمی‌شود
   (وگرنه اولین کلیک روی دکمه گم می‌شد) */
.ll-auth .ll-field--pw { position: relative; padding-bottom: 38px !important; }
.ll-auth .ll-field--pw .woocommerce-password-strength {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 !important;
}
.ll-auth .ll-field--pw .woocommerce-password-hint { display: none !important; }
.ll-acc .woocommerce-password-strength {
  margin: 8px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  border: 1px solid rgba(199, 164, 106, .2);
  background: rgba(4, 11, 8, .5) !important;
  color: var(--lux-ivory-dim) !important;
}
.ll-acc .woocommerce-password-strength.short,
.ll-acc .woocommerce-password-strength.bad { color: #E3A9A0 !important; border-color: rgba(200, 110, 100, .35); }
.ll-acc .woocommerce-password-strength.good { color: var(--lux-champagne) !important; border-color: rgba(199, 164, 106, .4); }
.ll-acc .woocommerce-password-strength.strong { color: #A8D5BA !important; border-color: rgba(120, 190, 150, .35); }
.ll-acc .woocommerce-password-hint { display: block; margin-top: 8px; font-size: 12px; line-height: 1.8; color: rgba(245, 240, 232, .45); }
.ll-acc button[disabled].ll-btn--gold { opacity: .55; cursor: not-allowed; }

/* جزئیات سفارش: آیکن تلفن/ایمیل ووکامرس روی متن نیفتد */
.ll-acc .woocommerce-customer-details--phone,
.ll-acc .woocommerce-customer-details--email { padding: 0 !important; margin: 6px 0 0 !important; direction: ltr; text-align: right; }
.ll-acc .woocommerce-customer-details--phone::before,
.ll-acc .woocommerce-customer-details--email::before { display: none !important; }
