/* ولاء — تصميم البطاقة الجديد (أهدأ وأفخم). يُحمَّل بعد app.css ويغطي على شكل البطاقة القديم.
   ألوان كل محل وخياراته من المصمم تبقى كما هي. */
.lcard {
  padding: 26px 26px 22px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2px 4px rgba(7, 29, 22, 0.12),
    0 18px 36px -14px rgba(7, 29, 22, 0.45),
    0 50px 90px -40px rgba(7, 29, 22, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* عمق: ضوء ناعم من فوق + حبيبات خفيفة */
.lcard::before {
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.2px) 0 0 / 3px 3px,
    linear-gradient(170deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(0, 0, 0, 0.18));
}
.lcard.dark::before {
  background:
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1.2px) 0 0 / 3px 3px,
    linear-gradient(170deg, rgba(255, 255, 255, 0.45), transparent 50%);
}
/* لمعة تمر كل كم ثانية */
.lcard .gl {
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  animation: wl-shine 6s ease-in-out 1.2s infinite;
}
@keyframes wl-shine {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

/* الرأس: الشعار والاسم، والرقم الكبير ينزل تحته */
.lc-top:not(.col) {
  flex-wrap: wrap;
}
.lc-logo {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.lc-name {
  font-weight: 500;
  font-size: 16px;
}
.lc-kind {
  font-size: 11.5px;
  opacity: 0.6;
  order: 2;
}
.lc-title {
  display: flex;
  flex-direction: column;
}
.lc-top:not(.col) .lc-count {
  flex-basis: 100%;
  order: 9;
  margin: 30px 0 0;
  text-align: start;
}
.lc-top.rev .lc-count {
  text-align: start;
}
.lc-count b {
  font-family: 'Alexandria', var(--f);
  font-weight: 200;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline;
}
.lc-count b small {
  font-size: 0.42em;
  font-weight: 200;
  opacity: 0.45;
}
.lc-count span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.7;
}
.lc-big {
  font-family: 'Alexandria', var(--f);
  font-weight: 200 !important;
  font-size: 64px !important;
  letter-spacing: -0.02em;
}

/* الأختام: دوائر رفيعة، والمليانة بيها الأيقونة */
.lc-stamps {
  margin: 26px 0 18px;
}
.stp.e-dashed {
  border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent);
}
.stp svg.lucide {
  width: 44%;
  height: 44%;
  stroke-width: 1.7;
}
.stp.s-solid.on {
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35);
}
.stp.gift:not(.on) {
  border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
/* الختم الجديد: يطلع بحركة ختم وحلقة ضوء */
.stp.fresh {
  animation:
    wl-pop 0.6s cubic-bezier(0.34, 1.5, 0.64, 1) both,
    wl-ring 1s 0.15s ease-out;
}
@keyframes wl-pop {
  0% { transform: scale(0.4); opacity: 0; }
  55% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes wl-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}
/* اكتملت الأختام: تضوي وحدة ورا الثانية */
.lcard.full .stp {
  animation: wl-glow 1.6s calc(var(--i) * 0.12s) ease-in-out 2;
}
@keyframes wl-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 236, 190, 0); }
  50% { box-shadow: 0 0 16px 3px rgba(255, 236, 190, 0.75); }
}

/* النقاط والرصيد */
.lc-meter {
  height: 5px !important;
  background: rgba(255, 255, 255, 0.14) !important;
}
.lc-meter i {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  transition: width 1.2s cubic-bezier(0.22, 0.8, 0.24, 1);
}

/* أسفل البطاقة */
.lc-foot {
  margin-top: auto;
  align-items: flex-end;
}
.lc-qr {
  border-radius: 12px !important;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}

/* البطاقة صارت أكبر بالصفحة الرئيسية */
.bcard {
  width: min(380px, 100%);
}

@media (prefers-reduced-motion: reduce) {
  .lcard .gl,
  .stp.fresh,
  .lcard.full .stp {
    animation: none;
  }
}

/* الأختام صغيرة وبصف واحد مثل التصميم (تلتف إذا جانت أكثر من ٨) */
.lcard .lc-stamps {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px !important;
}
.lcard .lc-stamps .stp {
  flex: 1 1 0;
  min-width: 24px;
  max-width: 46px;
}
.lcard .stp.gift em {
  bottom: -16px;
  font-size: 9.5px;
}
/* بالنقاط والرصيد: الرقم الكبير واحد بس */
.lcard:has(.lc-pts) .lc-top .lc-count {
  display: none;
}
.lcard .lc-pts {
  margin-top: 30px;
}
