/* ─────────────────────────────────────────────────────────────────────────
 * Pradnya Bali · brand.css
 * Brand layer (overrides wf-mobile tokens). Warm, professional, sleek.
 * ───────────────────────────────────────────────────────────────────────── */

:root {
  --brand:      #e81c21;
  --brand-600:  #e81c21;
  --brand-700:  #b91619;
  --brand-800:  #8c0f12;
  --brand-100:  #fee2e2;
  --brand-50:   #fef2f2;
  --brand-ink:  #2a0708;  /* deep red-black for tier text on warm bgs */

  --pb-cream:   #faf6ef;
  --pb-sand:    #f1e7d6;
  --pb-clay:    #c46b3a;
  --pb-gold:    #b8902f;
}

/* ─── Membership card ─── */
.pb-card-wrap {
  perspective: 1400px;
  width: 100%;
}
.pb-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;
  border-radius: 20px;
  color: #fff;
  padding: 20px 22px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(135deg, #e81c21 0%, #b91619 55%, #7a0d10 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -1px 0 rgba(0,0,0,.25) inset,
    0 18px 36px -12px rgba(122,13,16,.55),
    0 4px 10px -4px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  isolation: isolate;
}
.pb-card::before {
  /* holographic foil sheen */
  content: '';
  position: absolute; inset: 0;
  background:
    conic-gradient(from 200deg at 30% 20%,
      rgba(255,255,255,.0) 0deg,
      rgba(255,210,180,.18) 60deg,
      rgba(180,210,255,.14) 120deg,
      rgba(255,255,255,.0) 200deg,
      rgba(255,220,200,.10) 280deg,
      rgba(255,255,255,.0) 360deg);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.pb-card::after {
  /* lotus ornament watermark */
  content: '';
  position: absolute;
  right: -40px; bottom: -50px;
  width: 240px; height: 240px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='white' stroke-width='1.2' opacity='0.35'><path d='M100 30c-12 22-12 44 0 66 12-22 12-44 0-66z'/><path d='M100 30c10 22 30 30 50 26-10 22-30 30-50 26-20 4-40-4-50-26 20 4 40-4 50-26z'/><path d='M100 96c-12 22-12 44 0 66 12-22 12-44 0-66z'/><path d='M100 96c10 22 30 30 50 26-10 22-30 30-50 26-20 4-40-4-50-26 20 4 40-4 50-26z'/><circle cx='100' cy='96' r='8'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.pb-card > * { position: relative; z-index: 2; }

.pb-card .pb-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.pb-card .pb-card-logo {
  display: flex; align-items: center; gap: 10px;
}
.pb-card .pb-card-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
}
.pb-card .pb-card-brand {
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: .2em; text-transform: uppercase;
  opacity: .9;
}
.pb-card .pb-card-brand small { display: block; margin-top: 4px; font-weight: 400; letter-spacing: .14em; font-size: 9px; opacity: .7; }
.pb-card .pb-card-tier {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5ead2, #b8902f);
  color: #4a3a14;
  font: 600 10px/1 'Inter', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.5);
}
.pb-card .pb-card-tier.platinum { background: linear-gradient(135deg, #e8e8e8, #9a9a9a); color: #1c1c1c; }
.pb-card .pb-card-tier.gold     { background: linear-gradient(135deg, #f8d97a, #b8902f); color: #3a2c0a; }

.pb-card .pb-card-chip {
  width: 36px; height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg,#d4af37,#8a6e1f);
  position: relative;
  margin: 4px 0 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.3);
}
.pb-card .pb-card-chip::before, .pb-card .pb-card-chip::after {
  content: ''; position: absolute; left: 4px; right: 4px;
  border-top: 1px solid rgba(0,0,0,.25);
}
.pb-card .pb-card-chip::before { top: 8px; }
.pb-card .pb-card-chip::after  { top: 16px; }

.pb-card .pb-card-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-top: 6px;
}
.pb-card .pb-card-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 8px;
}
.pb-card .pb-card-row .lbl {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 2px;
}
.pb-card .pb-card-row .val {
  font: 500 13px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
}

/* Quick action pills (Apple Wallet style) */
.pb-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pb-quick .qa {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px;
  background: var(--surface);
  border: .5px solid var(--ink-200);
  border-radius: 16px;
  font: 500 11px/1.1 'Inter', sans-serif;
  color: var(--ink-800);
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .15s var(--ease-ios), background .15s var(--ease-ios);
}
.pb-quick .qa:active { transform: scale(.96); background: var(--ink-100); }
.pb-quick .qa .ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid; place-items: center;
}

/* Promo carousel */
.pb-promos { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 6px; margin: 0 -20px; scrollbar-width: none; }
.pb-promos::-webkit-scrollbar { display: none; }
.pb-promo {
  flex: 0 0 260px;
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2a0708, #7a0d10 60%, #b91619 110%);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pb-promo.alt { background: linear-gradient(135deg, #1f3a2b 0%, #2f5a40 60%, #3d7a55 110%); }
.pb-promo.warm { background: linear-gradient(135deg, #3a1f0a 0%, #8a4a1c 60%, #c46b3a 110%); }
.pb-promo .badge { font: 600 10px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pb-promo .title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.pb-promo .sub { font-size: 12px; opacity: .85; margin-top: 6px; }
.pb-promo .cta { align-self: flex-start; margin-top: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: .5px solid rgba(255,255,255,.3); font-size: 11px; font-weight: 600; backdrop-filter: blur(8px); }

/* Tier progress widget */
.pb-tier {
  background: var(--surface);
  border: .5px solid var(--ink-200);
  border-radius: 18px;
  padding: 16px;
}
.pb-tier .pb-tier-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pb-tier .pb-tier-from { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; }
.pb-tier .pb-tier-to { font-size: 12px; color: var(--ink-500); }

/* Reward card */
.pb-reward {
  background: var(--surface);
  border: .5px solid var(--ink-200);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pb-reward .pb-reward-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-700);
  display: grid; place-items: center;
  position: relative;
}
.pb-reward .pb-reward-img svg { opacity: .7; }
.pb-reward.locked .pb-reward-img { background: linear-gradient(135deg, #ececec, #d6d3d1); color: #a8a29e; }
.pb-reward .pb-reward-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pb-reward .pb-reward-title { font: 600 13px/1.25 'Inter', sans-serif; color: var(--ink-900); }
.pb-reward .pb-reward-pts { font: 600 12px/1 'Inter', sans-serif; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.pb-reward .pb-reward-pts.locked { color: var(--ink-500); }

/* Profile */
.pb-profile-hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 0 16px;
}
.pb-profile-hero .name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.pb-profile-hero .meta { font-size: 12px; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }

/* Wallpapers for screen content */
.wm-bg-warm {
  background:
    radial-gradient(180% 80% at 50% -10%, rgba(232,28,33,.10) 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 100%, rgba(184,144,47,.10) 0%, transparent 55%),
    var(--pb-cream);
}
