/* Trang khách */
.hero { margin: 0 -16px; padding: 20px 16px 72px; background: radial-gradient(120% 90% at 85% 0%, #6b3f24 0%, var(--espresso) 55%, #1a100b 100%); color: #fff; border-radius: 0 0 28px 28px; }
.hero .brand-mark { background: rgba(255,255,255,.1); }
.hero .brand-name { color: #fff; }
.hero h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.7px; margin: 26px 0 8px; font-weight: 800; }
.hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.hero .gold { color: var(--gold); }
.lift { margin-top: -52px; position: relative; }
.join { display: flex; align-items: center; gap: 14px; }
.join .grow { flex: 1; }
.join .t { font-weight: 700; font-size: 16px; }
.steps { display: grid; gap: 10px; margin-top: 18px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-weight: 750; font-size: 14px; flex: none; }
.step .t { font-weight: 650; font-size: 15px; }
.step .d { color: var(--ink-3); font-size: 13px; }
.addr { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 14px; margin-top: 18px; }

/* thẻ thành viên */
.mcard { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 16px; color: #fff; background: linear-gradient(140deg, #3b2418 0%, var(--espresso) 45%, #140c08 100%); box-shadow: 0 14px 34px rgba(42, 26, 18, .35); }
.mcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(231,183,90,.22), transparent 60%); pointer-events: none; }
.mcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.mcard .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.mcard .cn { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .3px; }
.mcard .tier { height: 26px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; background: rgba(255,255,255,.14); }
.mcard .tier.gold { background: var(--gold); color: #3a2600; }
.mcard .tier.silver { background: #d9dde4; color: #2b313a; }
.mcard .tier.bronze { background: #c98a59; color: #2b1606; }
.mcard .lbl { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.7); position: relative; }
.mcard .pts { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; position: relative; }
.mcard .pts small { font-size: 18px; font-weight: 650; color: var(--gold); margin-left: 6px; letter-spacing: 0; }
.mcard .bot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.75); position: relative; }
.mcard .name { font-weight: 650; color: #fff; }
.prog { height: 6px; border-radius: 99px; background: rgba(255,255,255,.16); margin-top: 12px; overflow: hidden; position: relative; }
.prog > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .6s ease; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile { background: var(--surface); border: 0; border-radius: 18px; box-shadow: var(--shadow); min-height: 96px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; cursor: pointer; }
.tile:active { transform: scale(.98); }
.tile .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.tile.primary { background: var(--ink); color: #fff; }
.tile.primary .ic { background: rgba(255,255,255,.12); }
.tile .t { font-weight: 650; font-size: 15px; }

/* màn mã */
.code-wrap { text-align: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 14px 0; }
.tab { height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.qrbox { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: grid; place-items: center; min-height: 290px; position: relative; }
.qrbox canvas { width: 260px; height: 260px; image-rendering: pixelated; }
.qrbox canvas.bar { width: 100%; height: 130px; }
.qrbox.expired canvas { filter: blur(6px); opacity: .35; }
.qrbox .over { position: absolute; inset: 0; display: grid; place-items: center; }
.short { font-size: 26px; font-weight: 800; letter-spacing: 3px; margin-top: 10px; }
.count { font-size: 15px; color: var(--ink-2); }
.count b { font-variant-numeric: tabular-nums; }
.ring { width: 100%; height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.ring > i { display: block; height: 100%; background: var(--caramel); transition: width 1s linear; }

.success { text-align: center; padding: 28px 8px; }
.success .big { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; color: var(--ok); }
.success .ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.success .ok-ic svg { width: 40px; height: 40px; }

.reward { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reward:last-child { border-bottom: 0; }
.reward .cost { min-width: 64px; height: 64px; border-radius: 16px; background: var(--espresso); color: var(--gold); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 18px; line-height: 1; }
.reward .cost small { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); margin-top: 3px; }
.reward .grow { flex: 1; min-width: 0; }
.reward .t { font-weight: 650; }
.reward .d { color: var(--ink-3); font-size: 13px; }
