/* ============ Loyalty add-on section ============ */
.loy .section-head { margin-bottom: 6px; }
.loy-toggle { display: flex; margin: 18px auto 6px; }
.loy-note { text-align: center; font-size: 13px; color: var(--fg-3); margin: 0 0 44px; }

.loy-panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }

/* left copy */
.loy-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.loy-steps li { display: flex; gap: 14px; align-items: flex-start; }
.loy-steps .ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-press); display: flex; align-items: center; justify-content: center; }
.loy-steps .ico i { width: 21px; height: 21px; }
.loy-steps h4 { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--fg-1); margin: 3px 0 4px; letter-spacing: -0.01em; }
.loy-steps p { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin: 0; max-width: 46ch; }

.loy-bullets { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.loy-bullets li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--fg-1); line-height: 1.4; }
.loy-bullets li i { width: 18px; height: 18px; color: var(--brand); flex: 0 0 18px; margin-top: 1px; }

/* right visual */
.loy-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.loy-terminal { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); overflow: hidden; animation: loyFade .32s var(--ease-out); }
@keyframes loyFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loy-terminal__head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--border-1); }
.loy-terminal__head .ttl { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--fg-1); }
.loy-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fg-3); background: var(--bg-subtle); border-radius: 999px; padding: 4px 10px; }
.loy-lock i { width: 12px; height: 12px; }

.loy-terminal__body { padding: 18px; }
.loy-cust { display: flex; align-items: center; gap: 12px; padding: 11px 12px; background: var(--bg-subtle); border-radius: var(--radius-md); }
.loy-cust__av { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 999px; background: var(--brand-gradient); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.loy-cust__name { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.loy-cust__num { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); }
.loy-club { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--brand-press); background: var(--brand-soft); border: 1px solid var(--green-200); border-radius: 999px; padding: 3px 9px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.loy-club i { width: 11px; height: 11px; }

.loy-progress { margin: 18px 2px 4px; }
.loy-progress__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.loy-progress__lbl { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--fg-1); }
.loy-progress__reward { font-size: 12px; color: var(--fg-3); text-align: right; }
.loy-progress__bar { height: 10px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.loy-progress__fill { height: 100%; border-radius: 999px; background: var(--brand-gradient); transition: width .55s var(--ease-out); }

.loy-actions { display: flex; gap: 10px; margin-top: 18px; }
.loy-actions button { flex: 1; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; padding: 11px; border-radius: var(--radius-md); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.loy-actions button i { width: 15px; height: 15px; }
.loy-btn-primary { background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow-1); }
.loy-btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.loy-btn-primary:active { background: var(--brand-press); transform: translateY(0); box-shadow: var(--shadow-1); }
.loy-btn-ghost { background: #fff; color: var(--fg-2); border: 1px solid var(--border-2); }
.loy-btn-ghost:hover { background: var(--bg-subtle); }

/* floating cash/visit stat */
.loy-stat { position: absolute; left: -20px; top: 10px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 12px 16px; z-index: 2; }
.loy-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--brand); line-height: 1; }
.loy-stat .l { font-size: 11px; color: var(--fg-3); margin-top: 3px; }

/* sms confirmation card */
.loy-sms { position: absolute; right: -14px; bottom: -28px; width: 270px; background: var(--ink-900); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-4); z-index: 3; animation: loyFade .32s var(--ease-out); }
.loy-sms__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.loy-sms__av { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 999px; background: var(--brand-gradient); color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; }
.loy-sms__name { font-size: 12px; font-weight: 600; color: #fff; }
.loy-sms__num { font-size: 10px; color: rgba(255,255,255,.5); font-family: var(--font-mono); }
.loy-sms__bubble { background: #fff; color: var(--ink-800); font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 14px 14px 14px 4px; }
.loy-sms__deliver { font-size: 9.5px; color: rgba(255,255,255,.45); text-align: right; margin-top: 5px; }

@media (max-width: 980px) {
  .loy-panel { grid-template-columns: 1fr; gap: 64px; }
  .loy-bullets { grid-template-columns: 1fr 1fr; }
  .loy-visual { min-height: 0; }
}
@media (max-width: 560px) {
  .loy-bullets { grid-template-columns: 1fr; }
  .loy-visual { display: block; }
  .loy-stat { left: 0; top: -14px; }
  .loy-sms { position: static; width: 100%; margin: 22px 0 0; }
}
