/* Profile picture and membership presentation. Existing controls and flows stay intact. */
.profile-avatar-view {
  padding: 10px 0 30px;
  color: #20352b;
}
.profile-avatar-stage {
  margin: 0 0 22px;
  padding: 22px 16px 20px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 26px;
  background: linear-gradient(155deg,#e8efea,#f8faf8 78%);
  box-shadow: 0 6px 24px rgba(24,53,34,.06), inset 0 1px rgba(255,255,255,.9);
}
.profile-avatar-large {
  width: 116px;
  height: 116px;
  margin-bottom: 14px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(46,83,55,.12),0 10px 25px rgba(32,66,43,.12);
}
.profile-avatar-large img,
.profile-avatar img,
.profile-thumb img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar-stage h2 { color: #20352b; font-size: 21px; font-weight: 730; }
.profile-avatar-stage p { color: #718078; font-size: 11px; }
.profile-avatar-section { padding: 0 1px 15px; border: 0; }
.profile-avatar-section+.profile-avatar-section { padding-top: 5px; }
.profile-section-heading { margin-bottom: 11px; padding: 0 2px; }
.profile-section-heading strong { color: #273b30; font-size: 13px; font-weight: 720; }
.profile-section-heading span { color: #87948b; font-size: 10px; }
.profile-photo-actions {
  gap: 10px;
  margin-bottom: 9px;
}
.profile-photo-action {
  height: 62px;
  padding: 0 11px;
  border: 1px solid rgba(35,71,47,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 14px rgba(27,48,32,.045);
}
.profile-photo-action strong { font-size: 11px; font-weight: 680; }
.profile-photo-icon { width: 34px; height: 34px; border-radius: 12px; background: #eaf2ec; color: #417e5d; }
.profile-photo-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.profile-avatar-grid {
  gap: 16px 12px;
  padding: 15px 15px 19px;
  border: 1px solid rgba(35,71,47,.08);
  border-radius: 23px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 6px 19px rgba(27,48,32,.045);
}
.profile-avatar-choice {
  min-width: 0;
  padding: 0;
  border: 3px solid #fff;
  background: #edf2ec;
  box-shadow: 0 0 0 1px rgba(35,71,47,.09);
  transition: transform .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.profile-avatar-choice img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar-choice:active { transform: scale(.95); }
.profile-avatar-choice[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #4a8267,0 5px 14px rgba(32,74,47,.18); }
.profile-avatar-choice[aria-pressed="true"]::after { right: -5px; bottom: -5px; width: 21px; height: 21px; background: #3b7758; }
.profile-avatar-save { border-radius: 16px; box-shadow: 0 5px 15px rgba(30,87,52,.13); }

/* A quiet membership card and grouped level controls, with a different finish per tier. */
.profile-level-view {
  --vip-bg: #f2f5f2;
  --vip-ink: #263d31;
  --vip-muted: #718479;
  --vip-accent: #4c7e61;
  --vip-card-a: #537b62;
  --vip-card-b: #294c3b;
  --vip-metal: #e4ebd3;
  --vip-soft-a: #e8efe8;
  --vip-soft-b: #f7faf7;
  --vip-line: #dce5dd;
}
.profile-level-view[data-tier="2"] { --vip-bg:#f0f5f6;--vip-ink:#294751;--vip-muted:#718891;--vip-accent:#517f8a;--vip-card-a:#668d96;--vip-card-b:#355862;--vip-metal:#e0edf0;--vip-soft-a:#e6f0f2;--vip-soft-b:#f7fafa;--vip-line:#d8e6e8; }
.profile-level-view[data-tier="3"] { --vip-bg:#f8f5ef;--vip-ink:#554434;--vip-muted:#8d7e6c;--vip-accent:#a47c4c;--vip-card-a:#b3966f;--vip-card-b:#70583e;--vip-metal:#f5e8c6;--vip-soft-a:#f4ebdc;--vip-soft-b:#fcfaf5;--vip-line:#e9dfcf; }
.profile-level-view[data-tier="4"] { --vip-bg:#f1f4f8;--vip-ink:#2d4260;--vip-muted:#76859a;--vip-accent:#5d7fab;--vip-card-a:#718bad;--vip-card-b:#405578;--vip-metal:#e5eaf5;--vip-soft-a:#e9eef7;--vip-soft-b:#f8faff;--vip-line:#dce3ef; }
.profile-level-view[data-tier="5"] { --vip-bg:#f5f2f6;--vip-ink:#4a3d55;--vip-muted:#887b90;--vip-accent:#8a739b;--vip-card-a:#917b9f;--vip-card-b:#584667;--vip-metal:#f0e4f3;--vip-soft-a:#eee7f1;--vip-soft-b:#fbf8fc;--vip-line:#e5dce8; }
.profile-level-view[data-tier="6"] { --vip-bg:#f2f2f0;--vip-ink:#353b3d;--vip-muted:#7c8382;--vip-accent:#8c7656;--vip-card-a:#596167;--vip-card-b:#30383d;--vip-metal:#f2e7c7;--vip-soft-a:#ecece9;--vip-soft-b:#faf9f6;--vip-line:#dddfdc; }
.profile-vip-hero {
  margin: 11px 12px 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 26px;
  background: radial-gradient(circle at 93% 9%,rgba(255,255,255,.18),transparent 35%),linear-gradient(145deg,var(--vip-card-a),var(--vip-card-b));
  box-shadow: 0 11px 25px rgba(24,40,32,.14),inset 0 1px rgba(255,255,255,.3);
}
.profile-vip-hero::before,.profile-vip-hero::after { display: none; }
.profile-vip-hero-top>span:first-child { font-size: 9px; font-weight: 720; letter-spacing: .1em; color: rgba(255,255,255,.82); }
.profile-vip-current-chip { padding: 6px 10px; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.14); font-size: 9px; font-weight: 720; letter-spacing: .04em; }
.profile-vip-hero-main { min-height: 105px; margin: 6px 0 10px; }
.profile-vip-overline { margin-bottom: 6px; color: rgba(255,255,255,.77); font-size: 9px; font-weight: 720; letter-spacing: .09em; }
.profile-vip-hero-main strong.profile-vip-display { font-size: 48px; font-weight: 760; letter-spacing: -.055em; text-shadow: none; }
.profile-level-view .profile-vip-hero-main strong .profile-vip-display-number { margin-left: 2px; color: var(--vip-metal); font-family: inherit; font-size: 51px; font-weight: 770; font-style: normal; letter-spacing: -.06em; }
.profile-vip-hero-main p.profile-vip-hero-subtitle { margin-top: 7px; color: rgba(255,255,255,.83); font-size: 10px; }
.profile-vip-medallion { width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.35); border-radius: 22px; background: rgba(255,255,255,.14); box-shadow: inset 0 1px rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.profile-vip-medallion::before { display: none; }
.profile-vip-medallion span { color: #fff; font-size: 34px; text-shadow: none; }
.profile-vip-progress-card { min-height: 65px; padding: 10px 12px; border-color: rgba(255,255,255,.24); border-radius: 17px; background: rgba(255,255,255,.13); box-shadow: inset 0 1px rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.profile-vip-progress-head span { color: rgba(255,255,255,.75); font-size: 8px; }
.profile-vip-progress-head strong { font-size: 21px; }
.profile-vip-progress-track { height: 5px; margin-top: 10px; background: rgba(255,255,255,.3); }
.profile-vip-progress-track i { background: var(--vip-metal); box-shadow: none; }
.profile-vip-progress-card p { color: rgba(255,255,255,.78); }
.profile-vip-body { padding: 12px 13px 28px; }
.profile-vip-body>section+section { margin-top: 16px; }
.profile-vip-milestones { padding: 16px 13px 14px; border-color: rgba(42,67,48,.075); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 5px 18px rgba(25,44,32,.045); }
.profile-vip-section-heading>span { color: var(--vip-accent); font-size: 8px; letter-spacing: .1em; }
.profile-vip-section-heading h2 { color: var(--vip-ink); font-size: 18px; font-weight: 730; }
.profile-vip-rules-open { height: 31px; padding: 0 12px; border: 1px solid var(--vip-line); border-radius: 10px; background: var(--vip-soft-b); color: var(--vip-accent); font-size: 11px; font-weight: 690; }
.profile-vip-tiers { margin-top: 16px; }
.profile-vip-tiers::before { height: 1px; background: var(--vip-line); }
.profile-vip-tier-step .profile-vip-node { width: 34px; height: 34px; border-width: 1px; box-shadow: 0 0 0 3px #fff; font-size: 11px; font-weight: 700; }
.profile-level-view .profile-vip-tiers button.profile-vip-tier-step[aria-selected="true"] .profile-vip-node { box-shadow: 0 0 0 3px #fff,0 3px 9px color-mix(in srgb,var(--vip-accent) 20%,transparent); }
.profile-vip-tier-step b { font-size: 9px; font-weight: 700; }
.profile-vip-swipe-hint { margin-top: 13px; border: 0; background: transparent; color: var(--vip-muted); font-size: 9px; font-weight: 580; }
.profile-vip-benefits-section { padding: 3px 2px 0; }
.profile-vip-benefits-section .profile-vip-section-heading p { color: var(--vip-muted); }
.profile-vip-benefits { gap: 8px; margin-top: 11px; }
.profile-vip-benefit,.profile-vip-benefit.profile-vip-cashback { min-height: 110px; padding: 10px 5px 9px; border: 1px solid rgba(42,67,48,.075); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 5px 15px rgba(25,44,32,.045); }
.profile-vip-benefit>span.profile-vip-benefit-icon { width: 33px; height: 33px; border: 0; border-radius: 11px; background: var(--vip-soft-a); color: var(--vip-accent); box-shadow: none; }
.profile-vip-benefit-icon svg { width: 21px; height: 21px; stroke-width: 1.65; }
.profile-vip-benefit small { min-height: 27px; color: var(--vip-muted); font-size: 9px; font-weight: 620; }
.profile-vip-benefit strong,.profile-vip-cashback strong.profile-vip-rate { color: var(--vip-ink); font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.profile-vip-cashback strong.profile-vip-rate { font-size: 19px; }
.profile-vip-rules-overlay { background: rgba(22,34,28,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.profile-vip-rules-sheet { border-radius: 26px 26px 0 0; background: #f7f9f7; }
.profile-vip-rules-header { border-bottom-color: rgba(29,59,43,.09); }
.profile-vip-rules-scroll section { border-bottom-color: rgba(29,59,43,.09); }
.profile-vip-rules-upgrades,.profile-vip-rules-table { border-color: rgba(29,59,43,.1); background: #fff; }
@media (max-width: 365px) {
  .profile-avatar-grid { gap: 12px 9px; padding: 14px 11px 18px; }
  .profile-vip-benefit,.profile-vip-benefit.profile-vip-cashback { min-height: 105px; }
}
