/* ── Ube Card — Eng Bee Tin | app.css ── */

:root {
  --ube:        #8B2A8C;
  --ube-deep:   #6A1A6B;
  --ube-dark:   #3D0C3E;
  --ube-mid:    #A84DAA;
  --ube-light:  #F3E5F4;
  --ube-pale:   #FAF3FA;

  --red:        #C0282C;
  --gold:       #C8922A;
  --gold-lt:    #FDF4E3;
  --gold-mid:   #E8B84B;

  --ink:        #1E0F1F;
  --ink2:       #52275A;
  --ink3:       #9A7AA0;
  --border:     #E2D0E3;
  --cream:      #FDF8F5;
  --white:      #FFFFFF;

  --pattern: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40M10 10h20M10 30h20M10 10v20M30 10v20' stroke='rgba(255,255,255,0.04)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ── Screens ── */
.screen { display: none; flex-direction: column; height: 100%; animation: fadeUp .3s ease; overflow: hidden; }
.screen.active { display: flex; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }

/* ── Splash ── */
#s-splash {
  background: linear-gradient(160deg, var(--ube-dark) 0%, #5A1060 60%, #3D0C3E 100%);
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#s-splash .dots {
  position: absolute; inset: 0;
  background-image: var(--pattern);
}
.splash-logo { position: relative; z-index: 1; text-align: center; }
.splash-icon {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  padding: 12px;
  animation: splashPop .55s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes splashPop { from { opacity: 0; transform: scale(0.5) } to { opacity: 1; transform: scale(1) } }
.splash-brand {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 34px;
  color: #fff;
  letter-spacing: 0.02em;
}
.splash-brand em { font-style: italic; color: var(--gold-mid); }
.splash-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.splash-spinner {
  width: 26px; height: 26px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold-mid);
  border-radius: 50%;
  animation: spin .85s linear infinite;
  margin: 30px auto 0;
  position: relative; z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ── Shared dark header ── */
.reg-header {
  background: linear-gradient(150deg, var(--ube-dark) 0%, #5A1060 70%, var(--ube-deep) 100%);
  padding: 52px 28px 44px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.reg-header .dots {
  position: absolute; inset: 0;
  background-image: var(--pattern);
}
.reg-header::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 40px solid rgba(200,146,42,0.12);
  top: -80px; right: -60px;
}
.reg-header::after {
  content: '';
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(200,146,42,0.2);
  bottom: 24px; left: -20px;
}

.brand-mark { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; position: relative; z-index: 1; }
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(192,40,44,0.4);
}
.brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.reg-title {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 36px;
  color: #fff;
  line-height: 1.15;
  position: relative; z-index: 1;
}
.reg-title em { font-style: italic; color: var(--gold-mid); }
.reg-sub { font-size: 14px; color: rgba(255,255,255,0.45); margin-top: 8px; position: relative; z-index: 1; }

.reg-body { padding: 28px 24px; flex: 1; overflow-y: auto; }

/* ── Tabs ── */
.method-tabs {
  display: flex;
  background: #EDE0EE;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}
.method-tab {
  flex: 1; padding: 10px;
  border: none; background: transparent;
  border-radius: 9px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink3);
  cursor: pointer;
  transition: all .2s;
}
.method-tab.active {
  background: var(--white);
  color: var(--ube);
  box-shadow: 0 1px 4px rgba(139,42,140,0.15);
}

/* ── Form fields ── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink3);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.field input:focus {
  border-color: var(--ube);
  box-shadow: 0 0 0 3px rgba(139,42,140,0.1);
}
.field .hint { font-size: 12px; color: var(--ink3); margin-top: 5px; }
.input-row { display: flex; gap: 10px; }
.input-row .field { flex: 1; }
.hidden { display: none; }

.btn-primary {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--ube) 0%, var(--ube-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity .2s, transform .1s;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px rgba(106,26,107,0.35);
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.login-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink3); }
.login-link a { color: var(--ube); font-weight: 600; cursor: pointer; }

/* ── OTP screen ── */
.otp-body { padding: 40px 24px; flex: 1; overflow-y: auto; }
.back-btn {
  background: none; border: none;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 14px; color: var(--ink3);
  cursor: pointer; margin-bottom: 28px;
  display: flex; align-items: center; gap: 6px; padding: 0;
}
.otp-icon {
  width: 62px; height: 62px;
  background: var(--ube-light);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(139,42,140,0.12);
}
.otp-title {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 27px;
  margin-bottom: 8px;
  color: var(--ink);
}
.otp-sub { font-size: 14px; color: var(--ink3); line-height: 1.6; margin-bottom: 32px; }
.otp-sub strong { color: var(--ink); }

.otp-boxes { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.otp-box {
  width: 50px; height: 60px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 26px;
  text-align: center;
  color: var(--ube-dark);
  background: var(--white);
  outline: none;
  transition: border-color .2s, transform .1s, background .15s;
}
.otp-box:focus { border-color: var(--ube); box-shadow: 0 0 0 3px rgba(139,42,140,0.1); }

@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  90% { transform: translateX(2px); }
}
.otp-box.otp-error {
  animation: otpShake 0.5s ease;
  border-color: var(--red) !important;
  background: #FFF0F0;
}

.resend { text-align: center; font-size: 13px; color: var(--ink3); margin-bottom: 20px; }
.resend a { color: var(--ube); font-weight: 600; cursor: pointer; }

/* ── PWA Install Banner ── */
.install-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--ube-dark) 0%, #5A1060 100%);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 24px 0;
  box-shadow: 0 4px 18px rgba(61,12,62,0.3);
  position: relative;
  overflow: hidden;
  animation: fadeUp .3s ease;
}
.install-banner.visible { display: flex; }
.install-banner::before {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,42,0.15) 0%, transparent 70%);
  top: -50px; right: -30px;
}
.install-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red) 0%, #E0473A 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(192,40,44,0.35);
}
.install-text { flex: 1; position: relative; z-index: 1; }
.install-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.install-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.install-btn {
  background: var(--gold-mid);
  color: var(--ube-dark);
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: opacity .2s, transform .1s;
  letter-spacing: 0.02em;
}
.install-btn:active { transform: scale(0.96); }
.install-dismiss {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  z-index: 2;
}
.install-dismiss:hover { color: rgba(255,255,255,0.6); }

/* ── Wallet home ── */
.wallet-top {
  background: linear-gradient(150deg, var(--ube-dark) 0%, #5A1060 65%, var(--ube-deep) 100%);
  padding: 52px 24px 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.wallet-top .dots {
  position: absolute; inset: 0;
  background-image: var(--pattern);
  pointer-events: none;
}
.wallet-top::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 48px solid rgba(200,146,42,0.1);
  top: -100px; right: -80px;
}
.wallet-greeting { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 2px; position: relative; z-index: 1; }
.wallet-name {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 24px; color: #fff;
  position: relative; z-index: 1;
  margin-bottom: 20px;
}

/* ── THE CARD ── */
.ube-card {
  border-radius: 22px 22px 0 0;
  padding: 26px 24px 32px;
  position: relative;
  overflow: hidden;
  transition: background .5s ease, box-shadow .4s ease;
}
.ube-card::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--card-orb);
  top: -70px; right: -50px;
}
.ube-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-stripe);
  opacity: 0.85;
}
.card-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; opacity: 0.07; }
.ube-card.tier-member {
  background: linear-gradient(145deg, #5A0D60 0%, #8B2A8C 45%, #6A1A6B 100%);
  box-shadow: 0 -6px 30px rgba(61,12,62,0.50);
  --card-orb:    radial-gradient(circle, rgba(168,77,170,0.25) 0%, transparent 65%);
  --card-stripe: linear-gradient(90deg, transparent 0%, #C0282C 30%, #E8B84B 65%, transparent 100%);
  --card-badge-bg:     rgba(168,77,170,0.25);
  --card-badge-border: rgba(200,160,210,0.45);
  --card-badge-text:   #E8C8F0;
  --card-pts-color:    #FFFFFF;
  --card-pts-sup:      rgba(255,255,255,0.50);
  --card-label:        rgba(255,255,255,0.38);
  --card-strong:       rgba(255,255,255,0.65);
  --card-member-name:  rgba(255,255,255,0.85);
  --card-member-label: rgba(255,255,255,0.32);
  --card-id:           rgba(255,255,255,0.25);
  --card-logo:         rgba(255,255,255,0.60);
}
.ube-card.tier-gold {
  background: linear-gradient(145deg, #3D2800 0%, #7A5010 40%, #B8820A 75%, #8A6008 100%);
  box-shadow: 0 -6px 32px rgba(90,55,0,0.55);
  --card-orb:    radial-gradient(circle, rgba(240,185,60,0.22) 0%, transparent 65%);
  --card-stripe: linear-gradient(90deg, transparent 0%, #F0C040 25%, #FFFFFF 55%, #F0C040 80%, transparent 100%);
  --card-badge-bg:     rgba(240,185,60,0.22);
  --card-badge-border: rgba(240,185,60,0.60);
  --card-badge-text:   #FFE585;
  --card-pts-color:    #FFF8E8;
  --card-pts-sup:      rgba(255,230,140,0.55);
  --card-label:        rgba(255,220,120,0.45);
  --card-strong:       rgba(255,230,150,0.75);
  --card-member-name:  rgba(255,240,190,0.92);
  --card-member-label: rgba(255,210,100,0.38);
  --card-id:           rgba(255,220,130,0.28);
  --card-logo:         rgba(255,230,150,0.65);
}
.ube-card.tier-platinum {
  background: linear-gradient(145deg, #C8CDD6 0%, #E8ECF2 35%, #F5F7FA 60%, #D0D6E0 100%);
  box-shadow: 0 -6px 32px rgba(80,90,110,0.30);
  --card-orb:    radial-gradient(circle, rgba(255,255,255,0.55) 0%, transparent 65%);
  --card-stripe: linear-gradient(90deg, transparent 0%, #8B9BB0 20%, #FFFFFF 50%, #8B9BB0 80%, transparent 100%);
  --card-badge-bg:     rgba(100,115,140,0.14);
  --card-badge-border: rgba(100,115,140,0.38);
  --card-badge-text:   #3A4A60;
  --card-pts-color:    #1A2235;
  --card-pts-sup:      rgba(30,45,75,0.45);
  --card-label:        rgba(30,45,75,0.40);
  --card-strong:       rgba(30,45,75,0.70);
  --card-member-name:  rgba(20,35,65,0.88);
  --card-member-label: rgba(30,45,75,0.38);
  --card-id:           rgba(30,45,75,0.30);
  --card-logo:         rgba(30,45,75,0.50);
}
.card-header-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.card-logo { display: flex; align-items: center; gap: 8px; }
.card-logo-img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: filter .4s, opacity .4s;
}
.card-logo-text {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 15px;
  color: var(--card-logo);
  letter-spacing: 0.06em;
}
.card-tier-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--card-badge-bg);
  border: 1px solid var(--card-badge-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--card-badge-text);
  text-transform: uppercase;
  transition: background .4s, border .4s, color .4s;
}
.card-points-label {
  font-size: 10px;
  color: var(--card-label);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 2px; position: relative; z-index: 1;
}
.card-points {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 50px;
  color: var(--card-pts-color);
  line-height: 1; margin-bottom: 2px;
  position: relative; z-index: 1;
}
.card-points sup {
  font-size: 18px; font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--card-pts-sup);
  vertical-align: super;
}
.card-equiv {
  font-size: 12px;
  color: var(--card-label);
  margin-bottom: 18px; position: relative; z-index: 1;
}
.card-equiv strong { color: var(--card-strong); }
.card-footer-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  position: relative; z-index: 1;
}
.card-member-label {
  font-size: 10px;
  color: var(--card-member-label);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.card-member-name {
  font-size: 14px; font-weight: 500;
  color: var(--card-member-name);
  margin-top: 2px;
}
.card-id {
  font-size: 11px;
  color: var(--card-id);
  letter-spacing: 0.12em;
}
@keyframes platinumShimmer {
  0%   { transform: translateX(-140%) skewX(-18deg); }
  100% { transform: translateX(280%)  skewX(-18deg); }
}
.ube-card.tier-platinum::before {
  width: 60px; height: 200%;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  top: -50%; right: auto; left: 0;
  animation: platinumShimmer 3.2s ease-in-out infinite;
}
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 -6px 32px rgba(90,55,0,0.55), 0 0 0 0px rgba(200,150,10,0); }
  50%       { box-shadow: 0 -6px 40px rgba(90,55,0,0.65), 0 0 22px 4px rgba(200,150,10,0.18); }
}
.ube-card.tier-gold { animation: goldGlow 3s ease-in-out infinite; }

/* ── Wallet body ── */
.wallet-body { padding: 0 24px; flex: 1; overflow-y: auto; padding-bottom: 80px; background: var(--cream); }
.actions-row { display: flex; gap: 10px; padding: 18px 0 0; }
.action-btn {
  flex: 1;
  background: var(--white);
  border: none;
  border-radius: 16px;
  padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(139,42,140,0.07);
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139,42,140,0.13); }
.action-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.action-icon.ube { background: var(--ube-light); }
.action-icon.gold { background: var(--gold-lt); }
.action-icon.soft { background: #F0E8F2; }
.action-label { font-size: 11px; font-weight: 700; color: var(--ink2); letter-spacing: 0.02em; }

.tier-progress {
  margin: 14px 0 0;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(139,42,140,0.06);
}
.tier-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.tier-label { font-size: 12px; font-weight: 500; color: var(--ink3); }
.tier-value { font-size: 12px; font-weight: 700; color: var(--ube); }
.tier-bar { height: 5px; background: var(--ube-light); border-radius: 99px; overflow: hidden; }
.tier-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--ube) 40%, var(--gold-mid) 100%);
  border-radius: 99px;
  transition: width .6s cubic-bezier(0.25,1,0.5,1);
}

.section { padding: 18px 0 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title { font-family: 'Noto Serif', 'Playfair Display', serif; font-size: 19px; color: var(--ink); }
.see-all { font-size: 12px; color: var(--ube); font-weight: 700; cursor: pointer; letter-spacing: 0.03em; }

.txn-list { display: flex; flex-direction: column; gap: 8px; }
.txn-item {
  background: var(--white);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 6px rgba(139,42,140,0.05);
  border-left: 3px solid transparent;
}
.txn-item:has(.txn-pts.plus) { border-left-color: #2E7D50; }
.txn-item:has(.txn-pts.minus) { border-left-color: var(--ube); }
.txn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.txn-icon.earn { background: #EDF6F1; }
.txn-icon.redeem { background: var(--ube-light); }
.txn-icon.bday { background: var(--gold-lt); }
.txn-info { flex: 1; }
.txn-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.txn-date { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.txn-pts { font-family: 'Noto Serif', 'Playfair Display', serif; font-size: 17px; }
.txn-pts.plus { color: #2E7D50; }
.txn-pts.minus { color: var(--ube); }

/* ── QR screen ── */
.plain-header { padding: 52px 24px 20px; flex-shrink: 0; background: var(--cream); }
.plain-title { font-family: 'Noto Serif', 'Playfair Display', serif; font-size: 27px; color: var(--ink); }
.plain-sub { font-size: 13px; color: var(--ink3); margin-top: 3px; }

.qr-body { padding: 0 24px; flex: 1; overflow-y: auto; padding-bottom: 80px; }
.qr-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 4px 22px rgba(139,42,140,0.1);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.qr-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold-mid));
}
.qr-card.tier-gold::before {
  background: linear-gradient(90deg, #B8820A, #F0C040, #FFE585, #F0C040, #B8820A);
}
.qr-card.tier-platinum::before {
  background: linear-gradient(90deg, #8B9BB0, #FFFFFF, #C8CDD6, #FFFFFF, #8B9BB0);
}
.ube-card.tier-platinum .card-logo-img {
  filter: brightness(0) invert(0);
  opacity: 0.55;
}
.qr-wrap {
  width: 190px; height: 190px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ube-light);
  overflow: hidden;
}
.qr-card.tier-gold .qr-wrap    { border-color: rgba(200,146,42,0.30); }
.qr-card.tier-platinum .qr-wrap { border-color: rgba(100,115,140,0.22); }
.qr-wrap canvas, .qr-wrap img { width: 174px !important; height: 174px !important; display: block; }
.qr-member-name { font-family: 'Noto Serif', 'Playfair Display', serif; font-size: 19px; color: var(--ink); }
.qr-member-id { font-size: 12px; color: var(--ink3); letter-spacing: 0.12em; }
.qr-badge {
  display: flex; align-items: center; gap: 6px;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  background: var(--ube-light);
  color: var(--ube);
}
.qr-card.tier-gold .qr-badge {
  background: var(--gold-lt);
  color: #7A5010;
  border: 1px solid rgba(200,146,42,0.30);
}
.qr-card.tier-platinum .qr-badge {
  background: #EEF0F4;
  color: #3A4A60;
  border: 1px solid rgba(100,115,140,0.22);
}
.qr-note {
  background: var(--ube-light);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13px;
  color: var(--ube-deep);
  line-height: 1.65;
}

/* ── Profile ── */
.profile-top {
  background: linear-gradient(150deg, var(--ube-dark) 0%, #5A1060 65%, var(--ube-deep) 100%);
  padding: 52px 24px 28px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.profile-top .dots {
  position: absolute; inset: 0;
  background-image: var(--pattern);
}
.profile-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--ube-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 26px; color: #fff;
  margin-bottom: 10px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(192,40,44,0.35);
}
.profile-name-top {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 22px; color: #fff;
  position: relative; z-index: 1;
}
.profile-since { font-size: 12px; color: rgba(255,255,255,0.45); position: relative; z-index: 1; }
.profile-body { padding: 0 24px; flex: 1; overflow-y: auto; padding-bottom: 80px; }
.profile-card {
  background: var(--white);
  border-radius: 18px;
  padding: 4px 18px;
  box-shadow: 0 4px 18px rgba(139,42,140,0.07);
  margin-top: 16px;
  border: 1px solid var(--border);
}
.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--ube-pale);
}
.profile-row:last-child { border-bottom: none; }
.profile-key { font-size: 12px; color: var(--ink3); }
.profile-val { font-size: 14px; font-weight: 600; color: var(--ink); }
.logout-btn {
  width: 100%; padding: 14px;
  margin-top: 14px;
  background: var(--ube-light);
  color: var(--ube);
  border: none;
  border-radius: 14px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.logout-btn:hover { background: #E8D5EA; }

/* ── Bottom nav ── */
.bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid rgba(139,42,140,0.1);
  display: flex;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(139,42,140,0.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; border: none; background: none;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  color: var(--ink3);
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0 2px;
  transition: color .2s;
}
.nav-item.active { color: var(--ube); }
.nav-icon { font-size: 18px; line-height: 1; }
.nav-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 2px;
  opacity: 0;
  transition: opacity .2s;
}
.nav-item.active .nav-dot { opacity: 1; }

/* ── Modals / bottom sheets ── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(61,12,62,0.6);
  z-index: 200;
  align-items: flex-end; justify-content: center;
  display: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-bg.open { display: flex; animation: bgFade .25s ease; }
@keyframes bgFade { from { opacity: 0 } to { opacity: 1 } }

.redeem-sheet {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%; max-width: 420px;
  padding: 0;
  overflow: hidden;
  animation: sheetUp .32s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: translateY(0) } }

.redeem-sheet-hero {
  background: linear-gradient(145deg, #5A0D60 0%, #8B2A8C 50%, var(--ube-mid) 100%);
  padding: 32px 28px 28px;
  position: relative; overflow: hidden;
}
.redeem-sheet-hero::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,42,0.2) 0%, transparent 70%);
  top: -60px; right: -40px;
}
.redeem-sheet-hero::after {
  content: 'REDEEM';
  position: absolute; bottom: -8px; right: 20px;
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 52px; color: rgba(255,255,255,0.05);
  letter-spacing: 3px; white-space: nowrap;
}
.redeem-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,146,42,0.22);
  border: 1px solid rgba(200,146,42,0.42);
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: #F5CE6A; text-transform: uppercase; margin-bottom: 14px;
}
.redeem-sheet-title {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 28px; color: #fff; line-height: 1.2;
  margin-bottom: 6px; position: relative; z-index: 1;
}
.redeem-sheet-title em { font-style: italic; color: var(--gold-mid); }
.redeem-sheet-sub { font-size: 13px; color: rgba(255,255,255,0.45); position: relative; z-index: 1; }

.redeem-sheet-body { padding: 24px 28px 32px; }
.redeem-steps { display: flex; flex-direction: column; gap: 0; }
.redeem-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--ube-pale);
}
.redeem-step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--ube-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: var(--ube);
  flex-shrink: 0;
}
.step-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.step-desc { font-size: 13px; color: var(--ink3); line-height: 1.55; }
.step-desc strong { color: var(--ink2); }

.redeem-note {
  background: var(--gold-lt);
  border: 1px solid rgba(200,146,42,0.28);
  border-radius: 14px; padding: 13px 16px;
  margin-top: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.redeem-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.redeem-note-text { font-size: 12px; color: #7A5A1A; line-height: 1.6; }

.redeem-close {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--ube) 0%, var(--ube-deep) 100%);
  color: #fff; border: none; border-radius: 14px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 20px;
  transition: opacity .2s, transform .1s;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px rgba(106,26,107,0.3);
}
.redeem-close:hover { opacity: 0.9; }
.redeem-close:active { transform: scale(0.98); }
.redeem-close-secondary {
  width: 100%; padding: 12px;
  background: none; border: none;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 13px; color: var(--ink3);
  cursor: pointer; margin-top: 6px;
}

/* ── Promos / Branches iframe sheets ── */
.promos-sheet-bg, .branches-sheet-bg {
  position: fixed; inset: 0;
  background: rgba(61,12,62,0.6);
  z-index: 200; display: none; flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.promos-sheet-bg.open, .branches-sheet-bg.open {
  display: flex; animation: bgFade .25s ease;
}
.promos-sheet, .branches-sheet {
  background: linear-gradient(160deg, var(--ube-dark) 0%, #5A1060 100%);
  border-radius: 28px 28px 0 0;
  width: 100%; max-width: 420px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden;
  animation: sheetUp .32s cubic-bezier(0.34,1.56,0.64,1);
  transition: transform .25s ease;
}
.promos-sheet { height: 88%; }
.branches-sheet { height: 92%; }
.promos-sheet-iframe, .branches-sheet-iframe {
  flex: 1; border: none; width: 100%; display: block;
}
.sheet-handle-bar {
  flex-shrink: 0; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
}
.sheet-handle-bar:active { cursor: grabbing; }
.sheet-handle-pill {
  width: 36px; height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.22);
  pointer-events: none;
}

/* ── Nearest Reward Progress ── */
.nearest-reward {
  margin: 14px 0 0;
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(139,42,140,0.06);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.nearest-reward::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ube), var(--gold-mid));
  opacity: 0.7;
}
.nearest-reward-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nearest-reward-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gold-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nearest-reward-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--ink3);
  text-transform: uppercase;
}
.nearest-reward-item {
  font-family: 'Noto Serif', 'Playfair Display', serif;
  font-size: 17px; color: var(--ink); margin-bottom: 4px;
}
.nearest-reward-detail {
  font-size: 13px; color: var(--ink3); margin-bottom: 12px; line-height: 1.5;
}
.nearest-reward-detail strong { color: var(--ube); font-weight: 700; }
.nearest-reward-detail .pts-away { color: var(--gold); font-weight: 700; }
.nearest-reward-bar {
  height: 8px; background: var(--ube-light);
  border-radius: 99px; overflow: hidden; position: relative;
}
.nearest-reward-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ube) 0%, var(--gold-mid) 100%);
  border-radius: 99px;
  transition: width .8s cubic-bezier(0.25,1,0.5,1);
  position: relative;
}
.nearest-reward-fill::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35));
  border-radius: 0 99px 99px 0;
}
.nearest-reward-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 11px; color: var(--ink3);
}
.nearest-reward-labels strong { color: var(--ink); }
.nearest-reward-ready {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(46,125,80,0.08), rgba(46,125,80,0.04));
  border: 1px solid rgba(46,125,80,0.20);
  border-radius: 12px; padding: 10px 14px; margin-top: 10px;
}
.nearest-reward-ready-icon { font-size: 18px; }
.nearest-reward-ready-text { font-size: 13px; color: #2E7D50; font-weight: 600; }

/* ── Redeem ready label ── */
.redeem-ready-label {
  text-align: center;
  font-size: 13px;
  color: var(--ink3);
  margin: 12px 0 6px;
}

/* ══════════════════════════════════════════════
   HISTORY SCREEN — REDESIGN
   ══════════════════════════════════════════════ */

/* Summary card — rounded floating card */
.history-summary-card {
  flex-shrink: 0;
  background: linear-gradient(135deg, #3B0764 0%, #9021b6 55%, #3b0646 100%);
  padding: 18px 24px 16px;
  margin: 0 16px 4px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.history-summary-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hsc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.hsc-label {
  font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; opacity: .6; color: #fff;
  margin-bottom: 4px;
}
.hsc-balance {
  font-size: 30px; font-weight: 700;
  color: #fff; letter-spacing: -.5px; line-height: 1;
}
.hsc-equiv { font-size: 12px; opacity: .55; color: #fff; margin-top: 4px; }
.hsc-month-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 8px 14px;
  text-align: right; flex-shrink: 0;
}
.hsc-month-val { font-size: 18px; font-weight: 700; color: #C4B5FD; }
.hsc-month-lbl { font-size: 10px; opacity: .6; color: #fff; margin-top: 1px; white-space: nowrap; }
.hsc-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.55);
  margin-bottom: 6px; position: relative; z-index: 1;
}
.hsc-bar {
  height: 5px; background: rgba(255,255,255,.18);
  border-radius: 3px; overflow: hidden;
  position: relative; z-index: 1;
}
.hsc-bar-fill {
  height: 100%; background: #A78BFA;
  border-radius: 3px; transition: width .6s ease;
}

/* History scrollable body */
.history-body {
  padding: 12px 16px 0;
  flex: 1; overflow-y: auto;
  padding-bottom: 80px;
}

/* Date groups */
.h-group { margin-bottom: 12px; }
.h-group-label {
  font-size: 11px; font-weight: 700;
  color: var(--ink3);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 0 4px 7px;
}
.h-txn-list {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Transaction rows */
.h-txn-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--ube-pale);
  animation: hTxnIn .22s ease both;
}
.h-txn-item:last-child { border-bottom: none; }
@keyframes hTxnIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.h-txn-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.h-txn-icon.earn   { background: #EDF6F1; }
.h-txn-icon.redeem { background: var(--ube-light); }
.h-txn-icon.bday   { background: var(--gold-lt); }
.h-txn-main { flex: 1; min-width: 0; }
.h-txn-primary {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h-txn-secondary {
  font-size: 12px; color: var(--ink3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h-txn-right { text-align: right; flex-shrink: 0; }
.h-txn-pts { font-size: 13px; font-weight: 700; white-space: nowrap; }
.h-txn-pts.earn   { color: #2E7D50; }
.h-txn-pts.redeem { color: var(--ube); }
.h-txn-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.h-txn-sub.redeem-sub { color: var(--ube); opacity: .7; }
.h-txn-sub.bday { color: var(--gold); }

/* Load more */
.load-more-wrap { padding: 4px 0 8px; }
.load-more-btn {
  width: 100%; padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: 'Noto Sans', 'DM Sans', sans-serif;
  font-size: 13px; color: var(--ink3);
  cursor: pointer; transition: background .15s, color .15s;
}
.load-more-btn:hover { background: var(--ube-light); color: var(--ube); }
.load-more-btn:active { transform: scale(.98); }

/* Empty state */
.h-empty {
  text-align: center; padding: 48px 20px;
  color: var(--ink3); font-size: 13px;
}
.h-empty-icon { font-size: 32px; margin-bottom: 10px; display: block; }

/* ════════════════════════════════════
   SETTINGS SCREEN
   ════════════════════════════════════ */

.settings-body {
  padding: 0 16px 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.settings-section {
  margin-bottom: 22px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink3);
  margin-bottom: 8px;
  padding-left: 2px;
}

.settings-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
  font-size: 11px;
}

.settings-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.settings-field {
  margin-bottom: 12px;
}
.settings-field:last-child {
  margin-bottom: 0;
}

.settings-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 4px;
  display: block;
}

.settings-field input,
.settings-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1.5px solid var(--border, #e0dde5);
  border-radius: 10px;
  background: var(--bg, #faf8fc);
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  transition: border-color .2s;
  box-sizing: border-box;
}

.settings-field input:focus,
.settings-field select:focus {
  outline: none;
  border-color: var(--ube);
  box-shadow: 0 0 0 3px rgba(61,12,62,0.08);
}

.settings-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.settings-inline-row {
  display: flex;
  gap: 10px;
}

/* ── Toggle switch ── */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.settings-toggle-info {
  flex: 1;
  min-width: 0;
}

.settings-toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.settings-toggle-hint {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 1px;
}

.settings-divider {
  height: 1px;
  background: var(--border, #e8e5ec);
  margin: 4px 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 12px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: background .25s;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--ube, #3D0C3E);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ── Save button & message ── */
.settings-save-btn {
  margin-top: 6px;
  width: 100%;
  position: relative;
}

.settings-save-btn.saving {
  opacity: 0.7;
  pointer-events: none;
}

.settings-saved-msg {
  text-align: center;
  color: #22a867;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}

.settings-saved-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Settings button on Profile ── */
.settings-open-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Noto Sans', sans-serif;
  color: var(--ube, #3D0C3E);
  background: var(--surface, #fff);
  border: 1.5px solid var(--border, #e0dde5);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}

.settings-open-btn:active {
  background: #f3f0f6;
}

/* ── Contact OTP inline in Settings ── */
.settings-otp-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e8e5ec);
}

.settings-otp-prompt {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 10px;
  text-align: center;
}

.settings-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.settings-verify-btn {
  margin-top: 14px;
  width: 100%;
}

.btn-link {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans', sans-serif;
  color: var(--ink3);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-link:active {
  opacity: 0.6;
}

/* ── Contact info row in Settings ── */
.settings-contact-row {
  position: relative;
}

.settings-contact-row input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  font-size: 15px;
  border: 1.5px solid var(--border, #e0dde5);
  border-radius: 10px;
  background: var(--bg, #faf8fc);
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  transition: border-color .2s;
  box-sizing: border-box;
}

.settings-contact-row input:focus {
  outline: none;
  border-color: var(--ube);
  box-shadow: 0 0 0 3px rgba(61,12,62,0.08);
}

.settings-contact-row input:disabled {
  background: #f0edf3;
  color: var(--ink2);
  opacity: 0.8;
}

.settings-verified-badge {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22a867;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}

.settings-verified-badge.visible {
  display: block;
}

/* ════ PRIVACY SHEET ════ */

.privacy-sheet-bg {
  position: fixed; inset: 0;
  background: rgba(61,12,62,0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}



.privacy-sheet-bg.open {
  opacity: 1;
  pointer-events: auto;
}
.privacy-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 85vh;
  background:  rgba(61,12,62,1); // var(--surface, #fff);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.privacy-sheet-bg.open .privacy-sheet {
  transform: translateY(0);
}
.privacy-sheet-iframe {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 0 0 0 0;
}

.reg-footer {
  text-align: center;
  font-size: 12px;
  color: var(--ink3);
  margin-top: 14px;
  line-height: 1.5;
}
.reg-footer a {
  color: var(--ube, #3D0C3E);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}