:root{
    --brand:#ff6a00;
    --ink:#1c1f25;
    --muted:#80889a;
    --card:#ffffff;
    --bg:#f2f3f7;
    --shadow: 0 10px 25px rgba(0,0,0,.08);
  }
  *{box-sizing:border-box}
  body{
    margin:0;background:var(--bg);color:var(--ink);
    font-family: ui-sans-serif,-apple-system,"Segoe UI",Roboto,Helvetica,Arial;
    display:flex;justify-content:center; min-width:320px;
  }
  .app{
    width:100%;max-width:500px;min-height:100vh;background:#fff;position:relative;
    box-shadow: 0 0 0 1px rgba(0,0,0,.03);
  }

  /* Top bar */
  .topbar{
    height:54px;display:flex;align-items:center;justify-content:space-between;
    padding:0 5px;background:linear-gradient(180deg,#fff 0,#f7f7f9 100%);
    position:sticky;top:0;z-index:100;box-shadow:0 1px 0 rgba(0,0,0,.06)
  }
  .brand{display:flex;align-items:center;gap:8px;font-weight:700;user-select:none;}
  .logo-bag{width:22px;height:22px;border-radius:4px;background:linear-gradient(135deg,#ffb700,#ff6a00);display:grid;place-items:center;color:#fff}
  .icon-btn{width:34px;height:34px;display:grid;place-items:center;color:#636b7b;}
  
  .cross{background:transparent; border:none; font-size:20px;}

  /* Hero */
  .hero {
  position: relative;
  height: 180px;
  z-index: 1;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero img.active {
  opacity: 1;
}

  /* CTA floats across hero edge */
  .cta{
    position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);
    background:linear-gradient(90deg,#6f54ff,#b11cff);color:#fff;border:none;
    padding:16px 26px;border-radius:28px;font-weight:700;display:inline-flex;gap:10px;align-items:center;
    box-shadow:0 14px 32px rgba(138,72,255,.38);
    z-index:1000; white-space:nowrap;
  }
  .cta i{font-size:18px}
  .after-cta-space{height:38px}

  /* Quick actions */
  .quick-wrap{padding:0 12px}
  .quick{
    display:grid;grid-template-columns:repeat(4,1fr);
    background:var(--card);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);
    position:relative; z-index:0;
  }
  .quick .item{
    display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;
    padding:18px 8px;font-size:13px;color:#394153;background:#fff
  }
  .quick .item + .item{box-shadow:inset 1px 0 0 #f0f1f5}
  .quick::after{content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:#eef0f5;}
  .qicon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#f5f6fb;color:#6b58ff;font-size:18px}

  /* Stats panel */
  .stats{position:relative;margin:12px;padding:10px;background:#2b3d53;color:#e9eef6;border-radius:16px;box-shadow:var(--shadow)}
  .srow{display:flex;align-items:center;justify-content:space-between;padding:10px 4px;font-size:14px;border-bottom:1px dashed rgba(255,255,255,.12)}
  .srow:last-child{border-bottom:none}
  .chart-badge{padding:5px 6px;border-radius:8px;background:#3f536e;color:#cfe1ff;font-size:13px; margin-right:5px;}

  /* ===========================
     MEMBERSHIP LEVEL SECTION
     =========================== */
  .levels-wrap{padding:10px 12px 20px;}
  .levels-card{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:8px 0}
  .levels-title{font-weight:700;color:#5b6475;font-size:20px;padding:12px 14px 6px}

  .level{
    background:#f8f9fc;border-radius:14px;margin:10px 10px; padding:10px;
    display:grid; grid-template-columns:108px 1fr; gap:12px; align-items:center;
    box-shadow: 0 6px 12px rgba(0,0,0,.06);
  }

  .badge{
    height:70px;border-radius:12px;color:#ffffffaa;display:flex;align-items:center;justify-content:center;
    font-weight:700;font-size:24px;letter-spacing:.5px;text-transform:uppercase;user-select:none;
  }
  .b-general{background:linear-gradient(135deg,#5660b3,#3e4e9e); font-size:18px;}
  .b-vip1{background:linear-gradient(135deg,#ff8a00,#ff4d00)}
  .b-vip2{background:linear-gradient(135deg,#9aa0a6,#6f757c)}
  .b-vip3{background:linear-gradient(135deg,#ff6e7f,#fbb03b)}
  .b-vip4{background:linear-gradient(135deg,#00c2ff,#0060ff)}

  .info{display:flex;flex-direction:column;gap:8px}
  .topline{display:flex;align-items:left;justify-content:space-between;gap:8px; flex-direction:column;}
  .amt{color:#2f3a4c;font-weight:600}
  .meta{color:#6a7387;font-size:13px}
  .current{color:#1f2737;font-weight:600}
  .join {
  border: 2px solid #ff6a00;
  padding: 7px 10px;
  border-radius: 30px;
  font-weight: 700;
  color: #ff6a00;
  background: #fff;
  transition: all .2s ease;
  max-width:200px;
  font-size:14px;
}
.join:hover {
  background: #ff6a00;
  color: #fff;
}

  .dim{opacity:.9}

  /* Sidebar (drawer) */
  .drawer{position:fixed;inset:0;display:flex;pointer-events:none;z-index:999;}
  .drawer.open{pointer-events:auto}
  .drawer .overlay{flex:1;background:rgba(0,0,0,.35);opacity:0;transition:opacity .25s ease}
  .drawer.open .overlay{opacity:1}
  .panel{
    width:min(80vw,280px);max-width:320px;background:#fff;height:100%;
    box-shadow:8px 0 24px rgba(0,0,0,.18);transform:translateX(-100%);
    transition:transform .28s cubic-bezier(.2,.8,.2,1)
  }
  .drawer.open .panel{transform:none}
  .panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #f0f1f5}
  .panel-head .brand-mini{display:flex;align-items:center;gap:8px;font-weight:700;user-select:none;}
  .panel ul{list-style:none;margin:0;padding:0}
  .panel li a{
    display:flex;align-items:center;gap:12px;padding:20px 16px;color:#2b3242;text-decoration:none;
    border-bottom:1px solid #eff1f6;
  }
  .panel li:last-child a{border-bottom:none}
  .panel li a:hover{background:#f6f7fb}
  .panel li i{width:18px;text-align:center;color:#6b58ff}
  
  /* ===== ABOUT + MALL SECTIONS ===== */
.section-wrap{padding:10px 12px 20px;}
.section-title{
  text-align:center;font-weight:800;letter-spacing:.3px;
  color:#606b7b;font-size:18px;margin:6px 0 12px;
}

/* ABOUT US (2-column cards) */
.about-grid{
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.about-card{
  background:#fff;border-radius:12px;padding:18px 10px;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  box-shadow:0 12px 18px rgba(0,0,0,.08);
}
.about-icon{
  width:48px;height:48px;border-radius:10px;background:#f2f6fb;
  color:#6a7788;display:grid;place-items:center;font-size:24px
}
.about-text{color:#6a7387;font-weight:600}

/* COOPERATIVE MALL (3-column brand tiles) */
.mall-grid{
  margin-top:10px;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.mall-grid img { width:100%; box-shadow:0 3px 5px rgba(0,0,0,.2); border-radius:12px;}

body{display:flex;justify-content:center}
.app{width:100%;max-width:500px}

.regx-alert {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .72);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease; /* fade effect */
}

.regx-alert.show {
  opacity: 1;
  pointer-events: auto;
}