/* vip.css — Membership Level */

.app{padding-bottom:190px}

.page-head{
  height:56px;display:grid;place-items:center;
  border-bottom:1px solid var(--line-soft);
}
.page-head h1{
  margin:0;font-size:19px;font-weight:700;letter-spacing:-.3px;
}

/* ---------- Hero ---------- */
.hero{
  height:150px;position:relative;overflow:hidden;
  background:linear-gradient(110deg,#c8e8ff,#70c1f6,#56b5f0);
  transition:background .3s ease;
}
.hero.inactive{
  background:linear-gradient(110deg,#e8e8e8,#d5d5d5,#c8c8c8);
}
.hero-text{position:absolute;z-index:2;left:7%;top:24px}
.hero-name{
  font-size:34px;font-weight:800;line-height:1;
  color:#0874c9;
}
.hero.inactive .hero-name{color:#888}
.hero-price{
  font-size:15px;font-weight:800;color:#084e99;
  margin-top:10px;
}
.hero.inactive .hero-price{color:#666}
.hero-price small{font-size:11px;margin-right:3px}
.hero-badge{
  position:absolute;right:5%;top:8px;
  height:126px;width:42%;
  object-fit:contain;opacity:.55;
}
.hero-fallback{
  position:absolute;right:8%;top:22px;
  width:108px;height:108px;border-radius:50%;
  background:rgba(255,255,255,.35);
  display:grid;place-items:center;
}
.hero.inactive .hero-fallback{background:rgba(255,255,255,.5)}
.hero-fallback svg{width:62px;height:62px;opacity:.55}
.hero-unavailable{
  display:none;
  position:absolute;z-index:3;left:7%;bottom:12px;
  font-size:11px;font-weight:700;color:var(--err);
  background:rgba(255,255,255,.85);
  padding:3px 10px;border-radius:10px;
}
.hero.inactive .hero-unavailable{display:inline-block}

/* ---------- Level selector ---------- */
.level-progress{
  position:relative;
  padding:16px 8% 4px;
}
.level-line{
  position:absolute;left:13%;right:13%;top:31px;
  height:3px;background:#d8dce0;
}
.level-steps{
  display:flex;justify-content:space-between;
  position:relative;
}
.step{
  padding:0;background:none;border:0;cursor:pointer;
  text-align:center;
  font-size:12.5px;font-weight:600;color:var(--muted);
  transition:color var(--t-fast);
}
.step .dot{
  width:16px;height:16px;border-radius:50%;
  background:#d5d5d5;border:2px solid #d5d5d5;
  margin:6px auto 0;
  transition:all .18s ease;
}
.step.active{color:#075fd0;font-weight:700}
.step.active .dot{
  background:#1679ed;border-color:#1679ed;
  box-shadow:0 0 0 3px #dbeeff;
}
.step.inactive-level{color:#aaa}
.step.inactive-level .dot{
  background:#eceef2;border:2px dashed #b8bcc4;
  box-shadow:none;
}

/* ---------- Content / tables ---------- */
.content{padding:4px 14px 8px}
.title{
  font-size:15.5px;font-weight:800;
  margin:14px 0 10px;
  display:flex;align-items:center;gap:9px;
  color:var(--text);
}
.title::before{
  content:"";width:4px;height:18px;
  background:var(--blue);border-radius:2px;
}

.tbl{
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  margin-bottom:4px;
}
.tbl table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:12px;
}
.tbl th,.tbl td{
  border-right:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
  padding:7px 5px;text-align:center;
  line-height:1.25;overflow-wrap:anywhere;
}
.tbl th:last-child,.tbl td:last-child{border-right:0}
.tbl tr:last-child td{border-bottom:0}
.tbl th{background:var(--bg-soft);font-weight:600;color:var(--text-2)}

.tbl-note{
  font-size:11px;color:var(--muted);
  margin:7px 2px 0;line-height:1.5;
}

/* Muted when level is inactive */
.content.inactive .tbl{border-color:#e0e0e0;opacity:.75}
.content.inactive td{color:#888}
.content.inactive .tbl-note{color:#aaa}

/* ---------- Floating action bar ---------- */
.join-float{
  position:fixed;z-index:15;
  left:50%;transform:translateX(-50%);
  bottom:calc(var(--nav-h) + 16px);
  width:min(var(--app-max),calc(100% - 24px));
  display:flex;flex-direction:column;
  gap:8px;
}
.join{
  width:100%;height:52px;border:0;border-radius:14px;
  background:linear-gradient(135deg,#1678ed,#0873ef);
  color:#fff;font-size:17px;font-weight:800;
  box-shadow:0 10px 26px rgba(8,115,239,.4);
  transition:transform var(--t-fast),background var(--t-fast);
}
.join:active{transform:scale(.97)}
.join:disabled{opacity:.6;cursor:not-allowed}
.join.inactive{
  background:linear-gradient(135deg,#b0b4bb,#9aa0a8);
  color:rgba(255,255,255,.85);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  cursor:not-allowed;
}
.join.inactive:active{transform:none}

.join-note{
  margin:0;text-align:center;
  font-size:11px;color:var(--muted);font-weight:600;
}

.status-pill{
  width:100%;padding:14px;border-radius:14px;
  text-align:center;
  font-size:15px;font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.status-pill.warn{background:var(--warn-bg);color:var(--warn)}

.msg{
  display:none;
  margin:0;
  padding:9px 14px;border-radius:11px;
  background:#111;color:#fff;
  font-size:12.5px;font-weight:700;
  text-align:center;line-height:1.4;
}
.msg:not(:empty){display:block}
.msg.ok {background:var(--ok)}
.msg.err{background:var(--err)}

/* ---------- Modal ---------- */
.modal-bg{
  position:fixed;inset:0;z-index:60;
  background:rgba(0,0,0,.45);
  display:grid;place-items:center;padding:20px;
  opacity:0;visibility:hidden;
  transition:opacity var(--t-med),visibility var(--t-med);
}
.modal-bg.show{opacity:1;visibility:visible}
.modal{
  width:min(320px,100%);
  background:var(--surface);
  border-radius:16px;
  padding:20px 18px;
  box-shadow:var(--shadow-lg);
  text-align:center;
}
.modal h3{margin:0 0 10px;font-size:17px;font-weight:800}
.modal p{margin:0 0 16px;font-size:13px;color:var(--text-2);line-height:1.5}
.modal-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.modal-btns button,.modal-btns a{
  height:42px;border-radius:11px;
  display:grid;place-items:center;
  font-size:14px;font-weight:700;
}
.m-cancel{border:1.5px solid var(--line);background:var(--surface);color:var(--text-2)}
.m-add{border:0;background:var(--blue);color:#fff}

/* ---------- Mobile ---------- */
@media (max-width:650px){
  .app{padding-bottom:175px}
  .page-head{height:50px}
  .page-head h1{font-size:17px}
  .hero{height:128px}
  .hero-name{font-size:28px}
  .hero-price{font-size:13px}
  .hero-badge{height:104px;width:40%}
  .hero-fallback{width:88px;height:88px;top:18px}
  .hero-fallback svg{width:50px;height:50px}
  .level-progress{padding:12px 7% 2px}
  .level-line{top:27px}
  .step{font-size:11.5px}
  .content{padding:2px 12px 6px}
  .title{font-size:14px;margin:12px 0 8px}
  .tbl th,.tbl td{padding:6px 4px;font-size:11px}
  .tbl-note{font-size:10px}
  .join{height:48px;font-size:15.5px}
  .status-pill{font-size:13.5px;padding:12px}
  .msg{font-size:11.5px;padding:8px 12px}
}
/* Hide the broken VIP badge image, keep the fallback star */
.hero-badge{display:none !important}
.hero-fallback{display:grid !important}