/* ── LOYALTY & CUSTOMER AUTH STYLES ──────────────────────────────────────────*/

/* Customer nav in main navbar */
.customer-nav-area { display: flex; align-items: center; gap: 0.5rem; }

.customer-points-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(232,160,32,0.12); border: 1px solid rgba(232,160,32,0.3);
  color: var(--accent); font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  text-decoration: none; transition: var(--transition);
}
.customer-points-badge:hover { background: rgba(232,160,32,0.2); }
.customer-points-badge svg { flex-shrink: 0; }

.nav-customer-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.nav-customer-name:hover { color: var(--text-primary); }

.nav-login-btn {
  font-size: 0.8rem !important; padding: 0.35rem 0.9rem !important;
  white-space: nowrap;
}

/* ── HOME LOYALTY BANNER ──────────────────────────────────────────────────────*/
.loyalty-home-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(232,160,32,0.06) 0%, rgba(0,0,0,0) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.loyalty-home-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.loyalty-home-text .loyalty-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(232,160,32,0.12); border: 1px solid rgba(232,160,32,0.25);
  color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.loyalty-home-text h2 {
  font-size: 1.6rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 0.5rem; line-height: 1.25;
}
.loyalty-home-text p {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.25rem;
}
.loyalty-home-steps {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.loyalty-home-step {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.loyalty-home-step strong { color: var(--text-secondary); }
.loyalty-home-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.loyalty-home-hero-pts {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 2rem 2.5rem; text-align: center; flex-shrink: 0;
}
.loyalty-home-hero-pts .pts-big {
  font-size: 2.5rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.loyalty-home-hero-pts .pts-label {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 600; letter-spacing: 0.06em;
}
.loyalty-home-hero-pts .pts-prog {
  margin-top: 0.75rem; width: 100%; background: var(--bg-secondary);
  border-radius: 999px; height: 5px; overflow: hidden;
}
.loyalty-home-hero-pts .pts-prog-bar {
  height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.6s ease;
}

/* ── AUTH PAGES ───────────────────────────────────────────────────────────────*/
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px); padding: 2.5rem;
  width: 100%; max-width: 440px; box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.auth-logo {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem;
  text-decoration: none;
}
.auth-logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #d4971a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: #000;
}
.auth-form-title { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.35rem; }
.auth-form-sub   { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.auth-error {
  display: none; color: var(--red); font-size: 0.84rem;
  padding: 0.7rem 0.9rem; background: rgba(232,64,64,0.08);
  border: 1px solid rgba(232,64,64,0.2); border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.auth-footer {
  text-align: center; margin-top: 1.75rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ── LOYALTY PAGE ─────────────────────────────────────────────────────────────*/
.loyalty-page { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.loyalty-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.loyalty-topbar-left { display: flex; align-items: center; gap: 1rem; }
.loyalty-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d4971a);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #000; flex-shrink: 0;
}
.loyalty-name  { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.loyalty-email { font-size: 0.8rem; color: var(--text-muted); }
.loyalty-since { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Points hero */
.loyalty-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,160,32,0.04) 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 2rem; margin-bottom: 1.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.loyalty-pts-number {
  font-size: 4rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.loyalty-pts-label {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.loyalty-progress-wrap { margin-bottom: 0.5rem; }
.loyalty-progress-bar-bg {
  width: 100%; height: 8px; background: var(--bg-secondary);
  border-radius: 999px; overflow: hidden; margin-bottom: 0.4rem;
}
.loyalty-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--accent), #f5a623);
  border-radius: 999px; transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.loyalty-progress-text {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; justify-content: space-between;
}
.loyalty-hero-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.loyalty-redeem-btn {
  background: linear-gradient(135deg, var(--accent), #d4971a);
  color: #000; font-weight: 800; font-size: 0.9rem;
  border: none; padding: 0.8rem 1.5rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.loyalty-redeem-btn:disabled {
  opacity: 0.4; cursor: not-allowed; background: var(--bg-secondary); color: var(--text-muted);
}
.loyalty-redeem-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,160,32,0.3); }
.loyalty-need-more { font-size: 0.78rem; color: var(--text-muted); text-align: center; }

/* Stats row */
.loyalty-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.loyalty-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; text-align: center;
}
.loyalty-stat-val { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.loyalty-stat-lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Coupons */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.coupon-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 1.25rem;
  position: relative; overflow: hidden;
}
.coupon-card.used { opacity: 0.5; filter: grayscale(0.6); }
.coupon-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #f5a623);
}
.coupon-card.used::before { background: var(--border); }
.coupon-value  { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.coupon-code   { font-family: monospace; font-size: 1rem; color: var(--text-primary); font-weight: 700; margin: 0.5rem 0; letter-spacing: 0.05em; }
.coupon-status { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.2rem 0.6rem; border-radius: 999px; display: inline-block; margin-bottom: 0.75rem; }
.coupon-status.avail { background: rgba(52,211,153,0.15); color: var(--green); }
.coupon-status.used  { background: var(--bg-secondary); color: var(--text-muted); }
.coupon-copy {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
}
.coupon-copy:hover { background: rgba(232,160,32,0.1); color: var(--accent); border-color: var(--accent); }

/* How it works */
.loyalty-how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem;
}
.loyalty-how-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.5rem; text-align: center;
}
.loyalty-how-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(232,160,32,0.12); border: 1px solid rgba(232,160,32,0.3);
  color: var(--accent); font-weight: 900; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem;
}
.loyalty-how-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.loyalty-how-desc  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Order history */
.loyalty-order-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border); gap: 1rem;
}
.loyalty-order-row:last-child { border-bottom: none; }
.loyalty-order-id   { font-family: monospace; font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.loyalty-order-date { font-size: 0.8rem; color: var(--text-muted); }
.loyalty-order-pts  { font-size: 0.85rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Cart loyalty banner */
.cart-loyalty-banner {
  background: linear-gradient(135deg, rgba(232,160,32,0.08), rgba(232,160,32,0.03));
  border: 1px solid rgba(232,160,32,0.2); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem;
}
.cart-loyalty-banner svg { color: var(--accent); flex-shrink: 0; }
.cart-loyalty-banner a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Coupon input row */
.coupon-row {
  display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}
.coupon-row .form-input { flex: 1; font-family: monospace; font-size: 0.9rem; font-weight: 600; }
.coupon-row .btn { flex-shrink: 0; }

/* Coupon input area in cart */
.coupon-input-wrap {
  background: rgba(232,160,32,0.04);
  border: 1px dashed rgba(232,160,32,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-secondary);
}
.coupon-applied strong { color: var(--accent); font-family: monospace; }
.coupon-remove-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1rem; padding: 0.1rem 0.4rem; border-radius: var(--radius-sm);
  transition: var(--transition); line-height: 1;
}
.coupon-remove-btn:hover { color: var(--red); background: rgba(232,64,64,0.08); }

@media (max-width: 768px) {
  .loyalty-page { padding: 1.5rem 1.25rem; max-width: 100%; }
  .loyalty-topbar { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
  .loyalty-hero { padding: 1.5rem; gap: 1.25rem; }
  .loyalty-pts-number { font-size: clamp(2.5rem, 12vw, 4rem); }
  .coupon-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; margin: 1rem; }
  .auth-page { padding: 1rem; }
  .loyalty-order-row { flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 640px) {
  .loyalty-hero    { grid-template-columns: 1fr; }
  .loyalty-stats   { grid-template-columns: 1fr 1fr; }
  .loyalty-how-grid { grid-template-columns: 1fr; }
  .loyalty-home-inner { grid-template-columns: 1fr; }
  .loyalty-home-hero-pts { display: none; }
}

@media (max-width: 480px) {
  .loyalty-page { padding: 1rem; }
  .loyalty-topbar { padding: 0.85rem 1rem; }
  .loyalty-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .loyalty-stat { padding: 0.85rem 0.5rem; }
  .loyalty-stat-val { font-size: 1.4rem; }
  .loyalty-hero { padding: 1.1rem; border-radius: var(--radius); }
  .loyalty-pts-number { font-size: clamp(2rem, 14vw, 3rem); }
  .loyalty-redeem-btn { width: 100%; padding: 0.85rem; font-size: 0.88rem; }
  .loyalty-hero-actions { width: 100%; }
  .coupon-card { padding: 1rem; }
  .coupon-value { font-size: 1.5rem; }
  .loyalty-how-step { padding: 1.25rem 1rem; }
  .auth-card { padding: 1.25rem; margin: 0.75rem; }
  .auth-card h1 { font-size: 1.3rem; }
  .loyalty-name { font-size: 1rem; }
  .loyalty-avatar { width: 40px; height: 40px; font-size: 1.1rem; }
  .loyalty-home-card { padding: 1.25rem 1rem; border-radius: var(--radius); }
  .loyalty-home-cta { flex-direction: column; gap: 0.5rem; }
  .loyalty-home-cta .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   NEW LOYALTY DASHBOARD (loyalty page redesign)
   ═══════════════════════════════════════════════════════════ */

.lp-page { min-height: 100svh; background: var(--bg-primary); }
.lp-loading { display: flex; justify-content: center; align-items: center; height: 60vh; }
.lp-spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lp-wrap {
  max-width: 680px; margin: 0 auto;
  padding: 1.25rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* ── HERO CARD ── */
.lp-hero-card {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(232,160,32,0.06) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.lp-hero-top {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem;
}
.lp-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #b8860b);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: #000;
  box-shadow: 0 0 0 3px rgba(232,160,32,0.25);
}
.lp-hero-info { flex: 1; min-width: 0; }
.lp-hero-name  { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hero-email { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-tier-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border: 1px solid; border-radius: 999px;
}
.lp-logout-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: var(--radius-sm); padding: 0.45rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 44px; min-height: 44px; transition: var(--transition);
}
.lp-logout-btn:hover { border-color: var(--red, #ef4444); color: var(--red, #ef4444); }

/* ── POINTS RING + STATS ── */
.lp-pts-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.lp-pts-ring { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.lp-ring-svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.lp-ring-bg   { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.lp-ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 8;
  stroke-linecap: round; transition: stroke-dashoffset 1s ease;
}
.lp-ring-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lp-ring-pts { font-size: 1.55rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.lp-ring-lbl  { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lp-pts-stats { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.lp-pts-stat { display: flex; justify-content: space-between; align-items: center; }
.lp-pts-stat-val { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.lp-pts-stat-lbl { font-size: 0.75rem; color: var(--text-muted); }

/* ── COUPON PROGRESS BAR ── */
.lp-coupon-progress { margin-top: 0.25rem; }
.lp-cp-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.lp-cp-bar-bg { background: rgba(255,255,255,0.06); border-radius: 999px; height: 8px; overflow: hidden; }
.lp-cp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #f0c040); border-radius: 999px; transition: width 1s ease; }

/* ── REDEEM BUTTON ── */
.lp-redeem-btn {
  background: var(--accent); color: #000; border: none;
  border-radius: var(--radius-sm); padding: 0.45rem 0.85rem;
  font-size: 0.8rem; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: var(--transition); white-space: nowrap;
  min-height: 36px;
}
.lp-redeem-btn:disabled {
  background: rgba(232,160,32,0.15); color: var(--text-muted); cursor: not-allowed;
}
.lp-redeem-btn:not(:disabled):hover { background: #f0c040; }

/* ── SECTION ── */
.lp-section { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.lp-section-title { font-size: 0.9rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.lp-badge { background: rgba(232,160,32,0.15); color: var(--accent); font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 700; }
.lp-empty { text-align: center; padding: 1.5rem 0; font-size: 0.85rem; color: var(--text-muted); }

/* ── REWARDS LIST ── */
.lp-rewards-list { display: flex; flex-direction: column; gap: 0.75rem; }
.lp-reward-card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; position: relative; overflow: hidden;
  transition: var(--transition);
}
.lp-reward-card.lp-reward-next { border-color: rgba(232,160,32,0.4); background: rgba(232,160,32,0.04); }
.lp-reward-card.lp-reward-ready { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.04); }
.lp-next-badge, .lp-ready-badge {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem; border-radius: 999px; margin-bottom: 0.6rem; display: inline-block;
}
.lp-next-badge  { background: rgba(232,160,32,0.15); color: var(--accent); }
.lp-ready-badge { background: rgba(16,185,129,0.15); color: #10b981; }
.lp-reward-top  { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.lp-reward-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.lp-reward-info { flex: 1; min-width: 0; }
.lp-reward-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.lp-reward-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.lp-reward-pts-req { font-size: 1.4rem; font-weight: 900; color: var(--accent); line-height: 1; text-align: right; }
.lp-reward-pts-req span { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; display: block; }
.lp-reward-bar-bg { background: rgba(255,255,255,0.06); border-radius: 999px; height: 6px; overflow: hidden; margin-bottom: 0.6rem; }
.lp-reward-bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, var(--accent)); border-radius: 999px; transition: width 1s ease; }
.lp-reward-bar-fill.full { background: linear-gradient(90deg, #10b981, #34d399); }
.lp-reward-bottom { display: flex; align-items: center; justify-content: space-between; }

/* ── COUPONS ── */
.lp-coupon-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.lp-coupon-card {
  display: flex; align-items: stretch; border: 1px dashed rgba(232,160,32,0.4);
  border-radius: var(--radius-sm); overflow: hidden; background: rgba(232,160,32,0.04);
}
.lp-coupon-card.used { border-color: var(--border); background: transparent; opacity: 0.55; }
.lp-coupon-card.gifted { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.04); opacity: 0.7; }
.lp-coupon-left {
  background: rgba(232,160,32,0.12); padding: 1rem 0.85rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 72px; gap: 0.2rem;
}
.lp-coupon-val   { font-size: 1.15rem; font-weight: 900; color: var(--accent); line-height: 1; }
.lp-coupon-label { font-size: 0.62rem; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.05em; }
.lp-coupon-right { flex: 1; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.lp-coupon-code  { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.12em; color: var(--text-primary); font-family: monospace; }
.lp-coupon-date  { font-size: 0.72rem; color: var(--text-muted); }
.lp-copy-btn {
  margin-top: 0.35rem; align-self: flex-start;
  background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.25);
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.65rem; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; transition: var(--transition); min-height: 36px;
}
.lp-copy-btn:hover { background: rgba(232,160,32,0.18); }

/* ── ORDER HISTORY ── */
.lp-orders-list { display: flex; flex-direction: column; gap: 0; }
.lp-order-row {
  display: flex; gap: 0.85rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--border); position: relative;
}
.lp-order-row:last-child { border-bottom: none; }
.lp-order-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 0.3rem; }
.lp-order-body { flex: 1; min-width: 0; }
.lp-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.2rem; }
.lp-order-id   { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }
.lp-order-status { font-size: 0.72rem; font-weight: 700; }
.lp-order-items { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-order-foot  { display: flex; justify-content: space-between; align-items: center; }
.lp-order-foot span:first-child { font-size: 0.75rem; color: var(--text-muted); }
.lp-order-pts {
  font-size: 0.75rem; font-weight: 800; color: var(--accent);
  background: rgba(232,160,32,0.1); padding: 0.15rem 0.45rem; border-radius: 999px;
}

/* ── HOW IT WORKS ── */
.lp-how { background: linear-gradient(135deg, rgba(232,160,32,0.05), transparent); }
.lp-how-steps { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.lp-how-step  { flex: 1; min-width: 70px; text-align: center; }
.lp-how-icon  { font-size: 1.8rem; margin-bottom: 0.4rem; }
.lp-how-t     { font-size: 0.78rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.15rem; }
.lp-how-d     { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; }
.lp-how-arrow { font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; }

@media (max-width: 400px) {
  .lp-how-steps { flex-direction: column; align-items: flex-start; }
  .lp-how-arrow { transform: rotate(90deg); align-self: center; }
  .lp-pts-ring  { width: 90px; height: 90px; }
  .lp-ring-svg  { width: 90px; height: 90px; }
  .lp-ring-pts  { font-size: 1.25rem; }
}
