/* ==========================================================================
   iShare 舍得 — Member portal design system
   Source: iShare Brand Guidelines v1.0 (pp. 01, 05, 06, 07) + member mockups.
   Colour values follow the Colour System page (05). Page 01 shows #0F5B32 /
   #7A1F26 — treated as typos of #0F5132 / #7A1F2B.
   ========================================================================== */

:root {
  /* Primary */
  --is-green: #0F5132;          /* Growth Green 成长绿 */
  --is-green-deep: #073A28;     /* Deep Green 深绿 */
  --is-burgundy: #7A1F2B;       /* Burgundy 酒红 */
  --is-burgundy-deep: #54121B;  /* Deep Burgundy 深酒红 */
  /* Support */
  --is-gold: #D4AF37;           /* Royal Gold 皇家金 */
  --is-champagne: #F2D58A;      /* Champagne Gold 香槟金 */
  --is-gold-dark: #A8841F;      /* derived: gold text on light bg (AA on cream) */
  /* Neutral */
  --is-black: #111111;
  --is-grey: #666666;
  --is-cream: #F8F5ED;          /* Warm White 暖白 */
  /* Derived surfaces */
  --is-card: #FFFDF8;
  --is-line: #E9E1CF;
  --is-line-soft: #F0EBDD;
  --is-muted: #8A8272;
  --is-success: #1E7B4F;
  --is-danger: #A3262F;
  --is-warning: #B7862A;

  --is-grad-gold: linear-gradient(135deg, #F6E3A6 0%, #E2BF58 38%, #D4AF37 62%, #B08A24 100%);
  --is-grad-green: linear-gradient(145deg, #13603C 0%, #0F5132 45%, #073A28 100%);
  --is-grad-burgundy: linear-gradient(145deg, #8E2634 0%, #7A1F2B 45%, #54121B 100%);

  --font-sans: "Montserrat", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-cjk: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* Display serif for hero lines & greetings, as used in the mockups */
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .04), 0 2px 8px rgba(60, 45, 10, .05);
  --shadow: 0 2px 6px rgba(17, 17, 17, .04), 0 10px 28px rgba(60, 45, 10, .08);
  --sidebar-w: 248px;
  --topbar-h: 68px;
  --bottomnav-h: 68px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--is-black);
  --bs-body-bg: var(--is-cream);
  --bs-border-color: var(--is-line);
  --bs-primary: var(--is-green);
  --bs-primary-rgb: 15, 81, 50;
  --bs-link-color: var(--is-green);
  --bs-link-color-rgb: 15, 81, 50;
  --bs-link-hover-color: var(--is-green-deep);
  --bs-secondary-color: var(--is-grey);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--is-cream);
  color: var(--is-black);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
:lang(zh) body, .cjk { font-family: var(--font-cjk); }
a { text-decoration: none; }
.merchant-privacy-ms { display:none; }
html[lang="ms"] .merchant-privacy-en { display:none; }
html[lang="ms"] .merchant-privacy-ms { display:block; }
.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.text-gold { color: var(--is-gold) !important; }
.text-gold-dark { color: var(--is-gold-dark) !important; }
.text-green { color: var(--is-green) !important; }
.text-burgundy { color: var(--is-burgundy) !important; }
.text-muted { color: var(--is-muted) !important; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--is-muted); }
.tabular { font-variant-numeric: lining-nums tabular-nums; }
.gold-rule { width: 28px; height: 2px; background: var(--is-gold); border: 0; opacity: 1; margin: .5rem 0 .75rem; }
.min-w-0 { min-width: 0; }

/* ---------- App shell ---------- */
.app { min-height: 100vh; }
.app-sidebar { display: none; }
.app-topbar { display: none; }
.app-main { padding: 0 0 calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom)); }
.app-content { padding: 16px; max-width: 1360px; margin: 0 auto; }

@media (min-width: 992px) {
  .app-topbar {
    display: flex; align-items: center; gap: 24px;
    position: sticky; top: 0; z-index: 1020;
    height: var(--topbar-h); padding: 0 28px;
    background: rgba(248, 245, 237, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--is-line);
  }
  .app-sidebar {
    display: flex; flex-direction: column;
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w);
    background: var(--is-grad-green); color: #fff; overflow: hidden; z-index: 1010;
  }
  .app-main { margin-left: var(--sidebar-w); padding-bottom: 32px; }
  .app-content { padding: 24px 28px; }
  .app-bottomnav, .m-header { display: none !important; }
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--is-black); }
.brand img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.brand-name .zh { font-family: var(--font-cjk); font-weight: 700; font-size: .84em; margin-left: .3em; }
.brand-tag { font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--is-muted); margin-top: 3px; }
.brand.on-dark { color: var(--is-champagne); }
.brand.on-dark .brand-tag { color: rgba(255, 255, 255, .75); }

/* Topbar */
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.topbar-search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--is-line);
  background: #fff; padding: 0 16px 0 40px; font-size: 13px;
}
.topbar-search input:focus { outline: none; border-color: var(--is-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.topbar-search .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--is-muted); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: inherit; background: transparent; border: 0; font-size: 19px;
}
.icon-btn:hover { background: rgba(15, 81, 50, .07); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--is-burgundy); box-shadow: 0 0 0 2px var(--is-cream); }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--is-black); }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--is-grad-gold); display: inline-grid; place-items: center; color: var(--is-green-deep); font-weight: 700; flex: none; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

/* Sidebar */
.side-nav { list-style: none; margin: 0; padding: 18px 12px; }
.side-nav a {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; margin-bottom: 4px;
  color: rgba(255, 255, 255, .86); border-radius: 10px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: background .15s;
}
.side-nav a .bi { font-size: 18px; color: var(--is-champagne); width: 20px; text-align: center; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, .22), rgba(212, 175, 55, .06));
  border-color: rgba(212, 175, 55, .35); color: #fff;
}
.side-nav a.active::before { content: ""; position: absolute; }
.side-nav .nav-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45); padding: 16px 14px 6px; }
.side-foot { margin-top: auto; padding: 24px 26px 28px; position: relative; }
.side-foot .lines { font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.25; color: var(--is-champagne); }
.side-foot .zh { font-family: var(--font-cjk); letter-spacing: .3em; font-size: 13px; color: var(--is-champagne); margin-top: 18px; }
.side-foot .en { font-size: 9px; letter-spacing: .24em; color: rgba(255, 255, 255, .55); margin-top: 10px; }
.side-leaf { position: absolute; right: -30px; bottom: 110px; width: 170px; opacity: .14; pointer-events: none; }

/* Mobile header */
.m-header {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 8px; background: rgba(248, 245, 237, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--is-line-soft);
}
.m-header h1 { font-size: 16px; font-weight: 600; margin: 0; flex: 1; text-align: center; }
.m-header .spacer { width: 40px; }

/* Bottom nav */
.app-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--is-grad-green); border-top: 1px solid rgba(212, 175, 55, .35);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px rgba(7, 58, 40, .18);
}
.app-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255, 255, 255, .72); font-size: 11px; padding-top: 6px; }
.app-bottomnav a .bi { font-size: 21px; line-height: 1; }
.app-bottomnav a.active { color: var(--is-champagne); }
.app-bottomnav a.active .bi { color: var(--is-gold); }
.app-bottomnav .fab { margin-top: -30px; gap: 6px; color: #fff; }
.app-bottomnav .fab span.ring {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--is-grad-gold); color: var(--is-green-deep); font-size: 26px;
  box-shadow: 0 0 0 5px var(--is-green-deep), 0 6px 18px rgba(0, 0, 0, .3);
}

/* ---------- Cards ---------- */
.card-is {
  background: var(--is-card); border: 1px solid var(--is-line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px;
}
.card-is.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .bi { font-size: 20px; color: var(--is-burgundy); }
.card-head h2, .card-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0; line-height: 1.1; }
.card-head .sub { font-size: 12px; color: var(--is-muted); margin-top: 2px; }
.card-head .more { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--is-black); white-space: nowrap; }
.card-head .more:hover { color: var(--is-green); }

.card-dark {
  background: var(--is-grad-green); color: #fff; border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, .28);
}
.card-dark.burgundy { background: var(--is-grad-burgundy); }
.card-dark .ribbon-bg { position: absolute; inset: auto -10% -18% -10%; width: 120%; height: 70%; opacity: .9; pointer-events: none; }
.card-dark > * { position: relative; }
.card-dark .label { color: rgba(255, 255, 255, .8); font-size: 12px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; padding: .6rem 1.35rem; font-size: 14px; }
.btn-sm { padding: .38rem .95rem; font-size: 12.5px; }
.btn-lg { padding: .8rem 1.6rem; font-size: 15px; }
.btn-gold {
  background: var(--is-grad-gold); color: var(--is-green-deep); border: 0;
  box-shadow: 0 4px 14px rgba(176, 138, 36, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover, .btn-gold:focus { color: var(--is-green-deep); filter: brightness(1.04); }
.btn-green { background: var(--is-green); color: #fff; border: 0; }
.btn-green:hover, .btn-green:focus { background: var(--is-green-deep); color: #fff; }
.btn-burgundy { background: var(--is-burgundy); color: #fff; border: 0; }
.btn-burgundy:hover { background: var(--is-burgundy-deep); color: #fff; }
.btn-outline-green { border: 1px solid var(--is-green); color: var(--is-green); background: transparent; }
.btn-outline-green:hover { background: var(--is-green); color: #fff; }
.btn-outline-gold { border: 1px solid rgba(212, 175, 55, .7); color: var(--is-champagne); background: rgba(255, 255, 255, .04); }
.btn-outline-gold:hover { background: rgba(212, 175, 55, .16); color: #fff; }
.btn-ghost { border: 1px solid var(--is-line); background: #fff; color: var(--is-black); }
.btn-ghost:hover { border-color: var(--is-gold); }
.btn .bi-arrow-right { margin-left: .35rem; }
.btn:disabled, .btn.disabled { opacity: .55; }

/* Chips / badges */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
.chip-green { background: var(--is-green); color: #fff; }
.chip-gold { background: rgba(212, 175, 55, .16); color: var(--is-gold-dark); border: 1px solid rgba(212, 175, 55, .45); }
.chip-burgundy { background: rgba(122, 31, 43, .08); color: var(--is-burgundy); border: 1px solid rgba(122, 31, 43, .25); }
.chip-muted { background: #EFEBE1; color: var(--is-grey); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-success { color: var(--is-success); }
.status-pending { color: var(--is-warning); }
.status-danger { color: var(--is-danger); }
.status-muted { color: var(--is-muted); }
.status-submitted { color: var(--is-warning); }
.status-paid { color: var(--is-success); }
.status-rejected,.status-failed,.status-expired { color: var(--is-danger); }
.upload-panel { border: 1px solid var(--is-line); border-radius: var(--radius); background: #fbfaf6; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 250px;
  background: var(--is-grad-green); color: #fff; box-shadow: var(--shadow);
}
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 58, 40, .96) 0%, rgba(7, 58, 40, .82) 38%, rgba(7, 58, 40, .15) 100%); }
.hero-body { position: relative; padding: 28px 24px; max-width: 560px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; font-weight: 600; margin: 0 0 10px; color: var(--is-champagne); }
.hero .lead-serif { font-family: var(--font-display); font-size: 21px; color: #fff; margin: 0; }
.hero p { color: rgba(255, 255, 255, .8); margin: 6px 0 18px; }
.hero .ribbon-bg { position: absolute; left: -5%; right: -5%; bottom: -8px; width: 110%; height: 90px; }
.hero-script { position: absolute; right: 26px; bottom: 26px; text-align: right; font-family: var(--font-display); font-style: italic; color: var(--is-champagne); font-size: 22px; line-height: 1.15; }
.hero-script .zh { display: block; font-family: var(--font-cjk); font-style: normal; font-size: 12px; letter-spacing: .25em; color: #fff; margin-top: 8px; }

.promo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background: var(--is-grad-burgundy); padding: 24px; min-height: 250px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.promo .tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(242, 213, 138, .5); color: var(--is-champagne); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; align-self: flex-start; }
.promo h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin: 14px 0 8px; color: #fff; }
.promo .meta { color: var(--is-champagne); font-size: 12.5px; }
.promo p { color: rgba(255, 255, 255, .8); font-size: 13px; margin: 8px 0 16px; }
.promo .btn { align-self: flex-start; margin-top: auto; }
.promo .ribbon-bg { position: absolute; right: -40px; bottom: -10px; width: 90%; height: 110px; opacity: .8; }

/* ---------- Mobile home header ---------- */
.m-hero {
  position: relative; background: var(--is-grad-green); color: #fff; overflow: hidden;
  padding: calc(14px + env(safe-area-inset-top)) 18px 72px; margin: 0 0 -52px;
}
.m-hero .ribbon-bg { position: absolute; left: -20%; right: -10%; bottom: 10px; width: 130%; height: 120px; opacity: .85; }
.m-hero .brand-name { font-size: 28px; color: var(--is-champagne); white-space: nowrap; }
.m-hero .tagline { font-family: var(--font-display); font-size: 14px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.m-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.05; margin: 22px 0 6px; color: #fff; max-width: 270px; }
.m-hero .sub { color: rgba(255, 255, 255, .78); font-size: 13px; }
.m-hero .greet { font-size: 12px; line-height: 1.3; text-align: left; color: rgba(255, 255, 255, .9); white-space: nowrap; }
@media (max-width: 379px) { .m-hero .greet { display: none; } }
.m-hero .icon-btn { color: #fff; }
.m-hero .icon-btn .dot { box-shadow: 0 0 0 2px var(--is-green); }
@media (min-width: 992px) { .m-hero { display: none; } }

/* ---------- Wallet ---------- */
.wallet-card { display: flex; align-items: center; gap: 16px; }
.wallet-card .amount { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--is-champagne); }
.wallet-card .amount small { font-size: 16px; color: #fff; margin-right: 4px; font-family: var(--font-sans); font-weight: 500; }
.wallet-icon { width: 52px; height: 40px; border-radius: 8px; background: var(--is-grad-gold); display: grid; place-items: center; color: var(--is-green-deep); font-size: 20px; flex: none; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-actions a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px;
  border: 1px solid rgba(212, 175, 55, .35); border-radius: 12px; color: #fff; font-size: 12px;
  background: rgba(255, 255, 255, .04);
}
.quick-actions a .bi { font-size: 21px; color: var(--is-champagne); }
.quick-actions a:hover { background: rgba(212, 175, 55, .14); }

.balance-tile { border-radius: var(--radius); padding: 18px; background: var(--is-card); border: 1px solid var(--is-line-soft); box-shadow: var(--shadow-sm); height: 100%; }
.balance-tile .k { font-size: 12px; color: var(--is-muted); display: flex; align-items: center; gap: 6px; }
.balance-tile .v { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.1; margin: 6px 0 2px; }
.balance-tile .v small { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--is-grey); margin-right: 3px; }
.balance-tile .foot { font-size: 12px; color: var(--is-muted); }
.balance-tile.is-cash { border-top: 3px solid var(--is-green); }
.balance-tile.is-credit { border-top: 3px solid var(--is-gold); }
.balance-tile.is-commission { border-top: 3px solid var(--is-burgundy); }

/* Ledger list */
.list-is { list-style: none; margin: 0; padding: 0; }
.list-is > li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--is-line-soft); }
.list-is > li:last-child { border-bottom: 0; }
.list-is .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; background: #F3EEE1; color: var(--is-green); }
.list-is .ic.in { background: rgba(15, 81, 50, .08); color: var(--is-green); }
.list-is .ic.out { background: rgba(122, 31, 43, .07); color: var(--is-burgundy); }
.list-is .ic.gold { background: rgba(212, 175, 55, .15); color: var(--is-gold-dark); }
.list-is .t { font-weight: 600; font-size: 13.5px; }
.list-is .s { font-size: 12px; color: var(--is-muted); }
.list-is .amt { margin-left: auto; text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.reload-receipt-list > li { min-width: 0; align-items: flex-start; }
.reload-receipt-copy { min-width: 0; flex: 1; }
.reload-receipt-order { display: flex; min-width: 0; align-items: center; gap: 5px; }
.reload-receipt-copy .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reload-order-copy { display: inline-flex; flex: none; align-items: center; gap: 3px; padding: 2px 5px; border: 0; border-radius: 5px; color: var(--is-green); background: rgba(15, 81, 50, .07); font: inherit; font-size: 10px; font-weight: 600; }
.reload-order-copy:hover,.reload-order-copy:focus-visible { color: #fff; background: var(--is-green); }
.reload-receipt-copy .s { overflow-wrap: anywhere; }
.reload-receipt-meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 4px; }
.reload-receipt-meta .status { white-space: nowrap; }
@media (max-width: 575px) {
  .reload-receipt-list > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 4px; }
  .reload-receipt-list > li > .ic { grid-row: 1 / span 2; }
  .reload-receipt-meta { grid-column: 2; width: 100%; margin: 0; flex-flow: row wrap; align-items: center; justify-content: space-between; column-gap: 10px; text-align: left; white-space: normal; }
  .reload-receipt-meta strong { white-space: nowrap; }
}
.amt-in { color: var(--is-success); }
.amt-out { color: var(--is-black); }

/* Segmented tabs */
.seg { display: inline-flex; background: #EFEADD; border-radius: 999px; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--is-grey); white-space: nowrap; font-weight: 500; }
.seg a.active { background: #fff; color: var(--is-green); box-shadow: var(--shadow-sm); }

/* ---------- Progress ---------- */
.progress-is { height: 8px; border-radius: 999px; background: #ECE6D6; overflow: hidden; }
.progress-is > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--is-green), #2F7D56); }
.progress-is.burgundy > span { background: linear-gradient(90deg, var(--is-burgundy-deep), var(--is-burgundy)); }
.progress-is.gold > span { background: var(--is-grad-gold); }
.big-stat { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; }
.big-stat small { font-size: 22px; color: var(--is-muted); }
.icon-medal { width: 58px; height: 58px; border-radius: 50%; background: var(--is-grad-gold); display: grid; place-items: center; font-size: 26px; color: var(--is-green-deep); flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(176,138,36,.25); }

/* ---------- Merchants ---------- */
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }
@media (min-width: 768px) { .h-scroll { grid-auto-columns: 30%; } }
@media (min-width: 992px) { .h-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }

.m-card { display: block; background: #fff; border: 1px solid var(--is-line-soft); border-radius: 14px; overflow: hidden; color: var(--is-black); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; height: 100%; }
.m-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--is-black); }
.m-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--is-grad-green); background-size: cover; background-position: center; }
.m-card .media.ph { display: grid; place-items: center; }
.m-card .media.ph span { font-family: var(--font-display); font-size: 40px; color: var(--is-champagne); opacity: .9; }
.m-card .fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); backdrop-filter: blur(4px); border: 0; }
.m-card .body { padding: 10px 12px 12px; }
.m-card .name { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.15; }
.m-card .cat { font-size: 12px; color: var(--is-muted); }
.m-card .meta { font-size: 12px; color: var(--is-grey); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.m-card .logo { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-top: -26px; position: relative; background: var(--is-green-deep); color: var(--is-champagne); display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); object-fit: cover; }

/* Campaign banner */
.banner {
  position: relative; display: flex; align-items: center; min-height: 150px; border-radius: var(--radius);
  overflow: hidden; color: #fff; background: #1A0D0F; box-shadow: var(--shadow);
}
.banner .media { position: absolute; inset: 0 0 0 38%; background-size: cover; background-position: center; background-color: var(--is-burgundy-deep); }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #131010 0%, #131010 36%, rgba(19, 16, 16, .1) 62%, rgba(84, 18, 27, .7) 100%); z-index: 1; }
.banner .body { position: relative; z-index: 2; padding: 20px 22px; max-width: 62%; }
.banner h3 { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: var(--is-champagne); margin: 0 0 6px; }
.banner .sub { font-size: 12.5px; color: rgba(255, 255, 255, .85); margin-bottom: 14px; }

/* Events */
.event { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--is-line-soft); }
.event:last-child { border-bottom: 0; }
.event .date { width: 50px; text-align: center; flex: none; }
.event .date .mo { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--is-burgundy); text-transform: uppercase; }
.event .date .d { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; }
.event .thumb { width: 64px; height: 56px; border-radius: 10px; background: var(--is-grad-green) center / cover; flex: none; }

/* Feed */
.feed-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--is-line-soft); font-size: 13px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .time { margin-left: auto; font-size: 11px; color: var(--is-muted); white-space: nowrap; }

/* ---------- Forms ---------- */
.form-label { font-size: 12.5px; font-weight: 600; color: var(--is-black); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 12px; border: 1px solid var(--is-line); background-color: #fff; padding: .7rem .95rem; font-size: 14px;
}
.form-control:focus, .form-select:focus { border-color: var(--is-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.form-text { font-size: 12px; color: var(--is-muted); }
.input-group-text { border-radius: 12px; border-color: var(--is-line); background: #FAF7EF; font-weight: 600; color: var(--is-grey); }
.amount-input { font-family: var(--font-display); font-size: 40px !important; font-weight: 600; text-align: center; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 0 !important; }
.amount-wrap { border-bottom: 2px solid var(--is-gold); display: flex; align-items: baseline; justify-content: center; gap: 6px; padding-bottom: 4px; }
.amount-wrap .cur { font-weight: 600; color: var(--is-muted); font-size: 16px; }
.preset { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset button { border: 1px solid var(--is-line); background: #fff; border-radius: 10px; padding: 8px 0; font-weight: 600; font-size: 13px; }
.preset button:hover, .preset button.on { border-color: var(--is-gold); background: rgba(212, 175, 55, .1); color: var(--is-green-deep); }
.form-check-input:checked { background-color: var(--is-green); border-color: var(--is-green); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(212, 175, 55, .2); border-color: var(--is-gold); }
.opt-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--is-line); border-radius: 14px; padding: 14px; background: #fff; cursor: pointer; }
.opt-card:has(input:checked) { border-color: var(--is-gold); background: rgba(212, 175, 55, .07); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; }
.summary-row + .summary-row { border-top: 1px dashed var(--is-line); }
.summary-row.total { font-weight: 700; font-size: 15px; }

/* Alerts */
.alert-is { border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.alert-is .bi { font-size: 18px; line-height: 1.2; }
.alert-is.info { background: rgba(15, 81, 50, .05); border-color: rgba(15, 81, 50, .2); color: var(--is-green-deep); }
.alert-is.warn { background: rgba(212, 175, 55, .1); border-color: rgba(212, 175, 55, .45); color: #6E5613; }
.alert-is.error { background: rgba(122, 31, 43, .06); border-color: rgba(122, 31, 43, .25); color: var(--is-burgundy); }
.alert-is.success { background: rgba(30, 123, 79, .07); border-color: rgba(30, 123, 79, .25); color: var(--is-success); }

/* Empty */
.empty { text-align: center; padding: 30px 12px; color: var(--is-muted); }
.empty .bi { font-size: 34px; color: var(--is-gold); display: block; margin-bottom: 6px; }

/* Steps (KYC / plan timeline) */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { position: relative; padding: 0 0 18px 34px; }
.steps li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--is-line); }
.steps li:last-child::before { display: none; }
.steps .dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #EFEADD; color: var(--is-muted); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--is-line); }
.steps li.done .dot { background: var(--is-green); color: #fff; box-shadow: none; }
.steps li.current .dot { background: var(--is-grad-gold); color: var(--is-green-deep); box-shadow: 0 0 0 4px rgba(212, 175, 55, .22); }
.steps .t { font-weight: 600; font-size: 13.5px; }
.steps .s { font-size: 12px; color: var(--is-muted); }

/* Plan cards */
.plan { position: relative; border-radius: var(--radius); padding: 20px; background: #fff; border: 1px solid var(--is-line); height: 100%; display: flex; flex-direction: column; }
.plan.current { border-color: var(--is-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
.plan .tier { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--is-gold-dark); font-weight: 600; }
.plan .name { font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.1; margin: 4px 0 10px; }
.plan .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.plan .price small { font-family: var(--font-sans); font-size: 13px; color: var(--is-muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 16px; font-size: 13px; }
.plan ul li { display: flex; gap: 8px; padding: 4px 0; }
.plan ul li .bi { color: var(--is-gold-dark); }
.plan .btn { margin-top: auto; }
.plan .ribbon-flag { position: absolute; top: 14px; right: 14px; }

/* Referral */
.ref-link { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px dashed var(--is-gold); border-radius: 12px; padding: 8px 8px 8px 14px; }
.ref-link code { flex: 1; color: var(--is-green-deep); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; border: 1px solid var(--is-line); }
.qr-box img, .qr-box canvas { display: block; width: 180px; height: 180px; }

/* Scanner */
.scanner { position: relative; border-radius: 22px; overflow: hidden; background: #0B0B0B; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
.scanner #qr-reader { width: 100%; height: 100%; }
.scanner #qr-reader video { object-fit: cover; }
.scanner .frame { position: absolute; inset: 14%; pointer-events: none; }
.scanner .frame i { position: absolute; width: 38px; height: 38px; border: 3px solid var(--is-gold); }
.scanner .frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scanner .frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scanner .frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scanner .frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scanner .laser { position: absolute; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--is-gold), transparent); animation: laser 2.2s ease-in-out infinite; top: 16%; }
.scanner .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); text-align: center; padding: 20px; font-size: 13px; }
@keyframes laser { 50% { top: 84%; } }
@media (prefers-reduced-motion: reduce) { .scanner .laser { animation: none; top: 50%; } }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-art { display: none; position: relative; background: var(--is-grad-green); color: #fff; overflow: hidden; padding: 48px; }
.auth-art .ribbon-bg { position: absolute; left: -10%; bottom: 90px; width: 130%; height: 220px; }
.auth-art h2 { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--is-champagne); margin: 0; }
.auth-art .zh { font-family: var(--font-cjk); font-size: 28px; letter-spacing: .12em; margin-top: 18px; }
.auth-pane { display: flex; flex-direction: column; justify-content: center; padding: 32px 22px; max-width: 460px; width: 100%; margin: 0 auto; }
.auth-pane h1 { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin: 0; }
@media (min-width: 992px) { .auth { grid-template-columns: 1.1fr 1fr; } .auth-art { display: flex; flex-direction: column; justify-content: space-between; } }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font-size: 22px; font-weight: 600; padding: .6rem 0; }

/* Menu list (Me page) */
.menu { list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--is-black); border-bottom: 1px solid var(--is-line-soft); font-size: 14px; }
.menu li:last-child a { border-bottom: 0; }
.menu a .bi:first-child { font-size: 19px; color: var(--is-green); width: 22px; text-align: center; }
.menu a .end { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--is-muted); font-size: 12.5px; }
.menu a:hover { color: var(--is-green); }

/* Footer */
.app-footer { display: none; }
@media (min-width: 992px) {
  .app-footer { display: flex; align-items: center; gap: 20px; margin-left: var(--sidebar-w); padding: 18px 28px; border-top: 1px solid var(--is-line); font-size: 12px; color: var(--is-muted); }
  .app-footer a { color: var(--is-muted); }
  .app-footer .sig { margin-left: auto; font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--is-green); }
}

/* Utilities */
.section-gap { display: flex; flex-direction: column; gap: 18px; }
.section-gap > * { min-width: 0; }
@media (min-width: 992px) { .section-gap { gap: 22px; } }
.divider-ribbon { height: 18px; width: 120px; }
.page-title { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin: 0; line-height: 1.1; }
.page-title-wrap { display: none; }
@media (min-width: 992px) { .page-title-wrap { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--is-line-soft); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--is-muted); }
.kv .v { font-weight: 600; text-align: right; }
.swal2-popup { border-radius: 20px !important; font-family: var(--font-sans) !important; }
.swal2-styled.swal2-confirm { background: var(--is-green) !important; border-radius: 999px !important; }

/* Layering: decorative ribbons always sit beneath content */
.ribbon-bg { pointer-events: none; z-index: 0; }
.card-dark > :not(.ribbon-bg), .hero > :not(.ribbon-bg):not(.hero-media), .promo > :not(.ribbon-bg),
.m-hero > :not(.ribbon-bg), .auth-art > :not(.ribbon-bg) { position: relative; z-index: 1; }
.app-bottomnav .fab.active .bi { color: var(--is-green-deep); }
.scanner .placeholder { z-index: 2; background: #0B0B0B; }
.scanner .frame, .scanner .laser { z-index: 3; }

/* ==========================================================================
   Home dashboard v2 — customer desktop and mobile compositions
   ========================================================================== */
.topbar-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.topbar-nav a { display: flex; align-items: center; gap: 6px; padding: 0 9px; color: #292a27; font-family: var(--font-display); font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--is-green); border-bottom-color: var(--is-gold); }
.topbar-nav .bi { font-family: bootstrap-icons !important; font-size: 15px; }

.home-mobile-hero { display: none; }
.home-v2 { color: #211f1a; }
.home-alert { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 16px; margin-bottom: 14px; border: 1px solid rgba(212,175,55,.52); border-radius: 12px; background: #fff7dd; color: #745810; }
.home-alert > i { font-size: 19px; }
.home-alert div { flex: 1; }
.home-alert strong, .home-alert span { display: block; }
.home-alert span { font-size: 12px; color: #8b6f2d; }
.home-alert a { border-radius: 999px; padding: 6px 15px; background: var(--is-green); color: #fff; font-size: 12px; font-weight: 600; }

.home-hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(250px, 1fr); gap: 10px; }
.home-hero-card, .home-feature-card { min-height: 250px; border-radius: 10px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.home-hero-card { background: #173526 url('/static/member/img/dashboard-hero-v2.webp') center / cover no-repeat; }
.home-hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,245,237,.97) 0%, rgba(248,245,237,.90) 31%, rgba(248,245,237,.14) 58%, transparent 100%); }
.home-hero-copy { position: relative; z-index: 1; padding: 28px 34px; }
.home-hero-copy h1 { margin: 0; color: var(--is-green-deep); font-family: var(--font-display); font-size: clamp(37px,3.4vw,57px); line-height: .86; font-style: italic; font-weight: 650; }
.home-hero-copy h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: 20px; }
.home-hero-copy p { margin: 2px 0 15px; font-size: 12px; }
.home-hero-copy .btn { padding: .48rem 1.2rem; }
.home-hero-sign { position: absolute; right: 20px; bottom: 20px; color: #fff8e5; text-align: right; font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.05; text-shadow: 0 2px 10px #000; }
.home-hero-sign span { display: block; margin-top: 7px; font-family: var(--font-cjk); font-style: normal; font-size: 9px; letter-spacing: .18em; }
.home-feature-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px; color: #fff; background: linear-gradient(135deg, rgba(69,7,17,.88),rgba(122,31,43,.75)), url('/static/member/img/campaign-feast-v2.webp') center / cover; }
.campaign-label { padding: 4px 8px; border: 1px solid rgba(242,213,138,.5); border-radius: 4px; color: var(--is-champagne); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.home-feature-card h2 { margin: 13px 0 4px; color: #fff; font-family: var(--font-display); font-size: 27px; line-height: .94; }
.campaign-period { font-size: 10px; color: var(--is-champagne); }
.home-feature-card p { margin: 8px 0 12px; max-width: 210px; font-size: 10px; line-height: 1.45; }
.home-feature-card .btn { margin-top: auto; padding: .42rem 1.1rem; font-size: 11px; }
.home-feature-carousel { min-width: 0; min-height: 250px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.home-feature-carousel .carousel-inner, .home-feature-carousel .carousel-item { min-height: 250px; }
.home-feature-carousel .home-feature-card { min-height: 250px; border-radius: 0; box-shadow: none; }
.home-feature-carousel .feature-merchant { background-color: var(--is-green-deep); }
.feature-control { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid rgba(242,213,138,.52); border-radius: 50%; color: var(--is-champagne); background: rgba(25,13,15,.4); }
.feature-control:hover { color: #fff; background: rgba(25,13,15,.7); }
.feature-prev { right: 47px; }
.feature-indicators { right: auto; bottom: 18px; left: 20px; z-index: 3; justify-content: flex-start; width: auto; margin: 0; }
.feature-indicators [data-bs-target] { width: 6px; height: 6px; margin: 0 3px; border: 0; border-radius: 50%; background-color: var(--is-champagne); }

.home-summary { display: grid; grid-template-columns: 1fr; margin-top: 10px; background: var(--is-card); border: 1px solid var(--is-line-soft); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.home-summary > section { min-height: 155px; padding: 18px 22px; border-right: 1px solid var(--is-line-soft); }
.home-summary > section:last-child { border-right: 0; }
.home-summary .summary-wallet { color: #fff; background: linear-gradient(90deg, rgba(5,56,38,.97), rgba(11,76,50,.91)), url('/static/member/img/sidebar-botanical-v2.webp') center / cover; }
.summary-title { display: flex; align-items: flex-start; gap: 10px; }
.summary-title > i { color: var(--is-gold-dark); font-size: 23px; }
.summary-wallet .summary-title > i { color: var(--is-champagne); }
.summary-title strong, .summary-title small { display: block; }
.summary-title strong { font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.summary-title small { margin-top: 2px; color: var(--is-muted); font-size: 9px; }
.summary-wallet .summary-title small { color: rgba(255,255,255,.72); }
.summary-amount { margin: 8px 0 10px; color: var(--is-champagne); font-family: var(--font-display); font-size: 34px; line-height: 1; }
.summary-amount span { margin-right: 5px; color: #fff; font-family: var(--font-sans); font-size: 13px; }
.home-content-grid { display: grid; grid-template-columns: minmax(0,3.1fr) minmax(255px,1fr); gap: 10px; margin-top: 10px; }
.home-primary, .home-aside { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-panel { padding: 14px; border: 1px solid var(--is-line-soft); border-radius: 10px; background: var(--is-card); box-shadow: var(--shadow-sm); }
.home-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.home-section-head h2 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.home-section-head h2 i { margin-right: 6px; color: var(--is-burgundy); font-family: bootstrap-icons !important; font-size: 18px; }
.home-section-head p { margin: 1px 0 0 25px; color: var(--is-muted); font-size: 9px; }
.home-section-head > a { margin-left: auto; color: #25231f; font-size: 9px; white-space: nowrap; }
.home-section-head.compact { align-items: center; }
.merchant-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.merchant-tile { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--is-line-soft); border-radius: 8px; background: #fff; color: inherit; }
.merchant-tile:hover { color: inherit; box-shadow: var(--shadow-sm); }
.merchant-photo, .event-thumb { background-image: url('/static/member/img/merchant-atlas-v2.webp'); background-repeat: no-repeat; background-size: 200% 200%; }
.atlas-tl { background-position: left top; }
.atlas-tr { background-position: right top; }
.atlas-bl { background-position: left bottom; }
.atlas-br { background-position: right bottom; }
.merchant-photo { position: relative; height: 93px; }
.merchant-photo button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.27); }
.merchant-info { padding: 8px 9px 9px; }
.merchant-info strong, .merchant-info span, .merchant-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-info strong { font-family: var(--font-display); font-size: 15px; line-height: 1; }
.merchant-info span, .merchant-info small { color: var(--is-muted); font-size: 9px; }

.campaigns-mobile, .mobile-duo { display: none; }
.home-lower-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.reward-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.reward-row article { min-width: 0; }
.reward-art { display: grid; place-items: center; height: 72px; margin-bottom: 5px; border-radius: 7px; color: var(--is-green-deep); background: linear-gradient(145deg,#e4c885,#f7ead0); font-size: 25px; }
.reward-2 { background: linear-gradient(145deg,#eee9dd,#c8b99b); }
.reward-3 { background: linear-gradient(145deg,#dac5a0,#aa704c); }
.reward-4 { color: #fff; background: linear-gradient(145deg,#56837c,#213f43); }
.reward-row strong, .reward-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.reward-row span { color: var(--is-gold-dark); font-weight: 700; }
.home-aside .home-panel { flex: 1; }
.home-event { color:inherit; text-decoration:none; display: grid; grid-template-columns: 34px 55px minmax(0,1fr); gap: 7px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--is-line-soft); }
.home-event:last-child { border: 0; }
.event-date { text-align: center; }
.event-date span, .event-date strong { display: block; }
.event-date span { color: var(--is-burgundy); font-size: 8px; font-weight: 700; }
.event-date strong { font-family: var(--font-display); font-size: 24px; line-height: .9; }
.event-thumb { width: 55px; height: 48px; border-radius: 6px; }
.home-event > div:nth-child(3) { min-width: 0; }
.home-event > div:nth-child(3) strong, .home-event > div:nth-child(3) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.home-event > div:nth-child(3) span { color: var(--is-muted); }
.home-event > a { display: none; }
.kind-card { min-height: 138px; padding: 20px; border-radius: 9px; color: #fff; background: linear-gradient(90deg,rgba(5,58,40,.96),rgba(5,58,40,.34)), url('/static/member/img/sidebar-botanical-v2.webp') center / cover; }
.kind-card h2 { margin: 0 0 7px; color: var(--is-champagne); font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1; }
.kind-card p { font-size: 9px; }
.kind-card a { display: inline-block; padding: 6px 10px; border-radius: 999px; color: var(--is-green-deep); background: var(--is-grad-gold); font-size: 8px; }
.share-card { min-height: 93px; display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--is-line-soft); border-radius: 9px; background: var(--is-card); }
.share-card strong { color: var(--is-green); font-family: var(--font-display); font-size: 20px; font-style: italic; line-height: 1.05; text-align: center; }
.share-card i { color: var(--is-green); font-size: 22px; }

@media (min-width: 992px) {
  :root { --sidebar-w: 158px; --topbar-h: 60px; }
  .app-topbar { gap: 12px; height: var(--topbar-h); padding: 0 18px; background: rgba(255,253,248,.96); }
  .app-topbar .brand { width: 185px; flex: none; }
  .app-topbar .brand img { height: 34px; }
  .app-topbar .brand-name { font-size: 23px; }
  .app-topbar .brand-tag { font-size: 6px; }
  .app-topbar .topbar-search { max-width: 280px; }
  .app-topbar .topbar-search input { height: 34px; font-size: 10px; }
  .app-topbar .avatar { width: 32px; height: 32px; }
  .app-topbar .user-chip { font-size: 11px; }
  .app-sidebar { background: linear-gradient(rgba(4,48,33,.80),rgba(4,48,33,.87)), url('/static/member/img/sidebar-botanical-v2.webp') center bottom / cover no-repeat; }
  .side-nav { padding: 14px 10px; }
  .side-nav a { gap: 10px; margin-bottom: 2px; padding: 9px 10px; font-family: var(--font-display); font-size: 12px; }
  .side-nav a .bi { width: 17px; font-size: 15px; }
  .side-foot { padding: 18px 17px 22px; }
  .side-foot .lines { font-size: 17px; }
  .side-foot .zh { font-size: 10px; }
  .side-foot .en { font-size: 7px; }
  .app-content { max-width: none; padding: 10px; }
  .app-footer { padding: 12px 18px; font-size: 9px; background: var(--is-card); }
}
@media (min-width: 992px) and (max-width: 1240px) {
  .topbar-nav a { padding: 0 6px; font-size: 11px; }
  .topbar-nav a .bi { display: none; }
  .app-topbar .topbar-search { max-width: 200px; }
  .user-chip .lh-sm { display: none; }
}

@media (max-width: 991.98px) {
  body { background: #f6f0e4; }
  .app-content { padding: 0 10px 10px; }
  .home-v2 { margin: 0; }
  .home-mobile-hero { display: block; position: relative; min-height: 548px; padding: calc(20px + env(safe-area-inset-top)) 18px 0; color: #fff; overflow: hidden; background: #073a28 url('/static/member/img/dashboard-hero-v2.webp') 58% 28% / auto 72% no-repeat; }
  .home-mobile-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,rgba(2,44,31,.96) 0%,rgba(2,44,31,.72) 36%,rgba(2,44,31,.05) 72%),linear-gradient(0deg,rgba(2,44,31,.95) 0%,transparent 48%); }
  .mobile-hero-top, .mobile-hero-copy, .mobile-wallet { position: relative; z-index: 1; }
  .mobile-hero-top { display: flex; align-items: center; gap: 9px; }
  .mobile-brand { margin-right: auto; color: var(--is-champagne); font-family: var(--font-display); font-size: 12px; line-height: 1.05; }
  .mobile-brand .brand-name { margin-bottom: 4px; font-size: 34px; }
  .mobile-bell { position: relative; color: #fff; font-size: 22px; }
  .mobile-bell span { position: absolute; top: 0; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #b32c39; }
  .mobile-hero-top .avatar { width: 42px; height: 42px; }
  .mobile-greeting { font-family: var(--font-display); font-size: 14px; line-height: 1.05; }
  .mobile-hero-copy { margin-top: 32px; }
  .mobile-hero-copy h1 { margin: 0; color: #f4dfac; font-family: var(--font-display); font-size: clamp(31px,9vw,42px); line-height: .91; }
  .mobile-hero-copy p { margin-top: 15px; font-family: var(--font-display); font-size: 16px; line-height: 1.05; }
  .mobile-script { margin-top: 20px; color: var(--is-champagne); font-family: var(--font-display); font-size: 24px; font-style: italic; line-height: .9; transform: rotate(-5deg); }
  .mobile-wallet { position: absolute; left: 10px; right: 10px; bottom: 8px; display: grid; grid-template-columns: 1.12fr 1.88fr; min-height: 112px; padding: 14px; border: 1px solid rgba(242,213,138,.55); border-radius: 18px; background: rgba(5,61,41,.91); box-shadow: 0 7px 25px rgba(0,0,0,.22); backdrop-filter: blur(7px); }
  .mobile-wallet-balance { display: flex; align-items: center; gap: 9px; color: #fff; }
  .mobile-wallet-balance .wallet-icon { width: 48px; height: 38px; }
  .mobile-wallet-balance small, .mobile-wallet-balance strong { display: block; font-family: var(--font-display); }
  .mobile-wallet-balance small { font-size: 14px; white-space: nowrap; }
  .mobile-wallet-balance strong { color: #fff; font-size: 24px; line-height: 1; white-space: nowrap; }
  .mobile-wallet-balance strong em { color: var(--is-champagne); font-family: var(--font-sans); font-size: 10px; font-style: normal; }
  .mobile-wallet-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
  .mobile-wallet-actions a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fff; font-family: var(--font-display); font-size: 11px; }
  .mobile-wallet-actions i { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(242,213,138,.22); border-radius: 9px; color: var(--is-champagne); font-family: bootstrap-icons !important; font-size: 21px; }
  .home-alert { margin: 8px 0; }
  .home-alert span { display: none; }
  .home-hero-grid, .home-summary, .home-lower-grid, .home-aside { display: none; }
  .home-content-grid { display: block; margin-top: 8px; }
  .home-primary { gap: 10px; }
  .home-panel { padding: 10px; border-radius: 14px; }
  .home-section-head { margin-bottom: 9px; }
  .home-section-head h2 { font-size: 20px; }
  .home-section-head p { display: none; }
  .home-section-head > a { font-family: var(--font-display); font-size: 13px; }
  .merchant-row { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; grid-template-columns: none; gap: 9px; overflow-x: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: none; }
  .merchant-row::-webkit-scrollbar { display: none; }
  .merchant-photo { height: 122px; }
  .merchant-info { padding: 8px; }
  .merchant-info strong { font-size: 18px; }
  .merchant-info span, .merchant-info small { font-size: 11px; }
  .campaigns-mobile { display: block; scroll-margin-top: 10px; }
  .campaign-banner { position: relative; display: block; height: 150px; overflow: hidden; border-radius: 15px; color: #fff; background: #5d111d url('/static/member/img/campaign-feast-v2.webp') 68% center / cover no-repeat; }
  .campaign-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(35,3,10,.96) 0%,rgba(80,10,22,.82) 44%,transparent 72%); }
  .campaign-banner > span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; }
  .campaign-banner strong { color: var(--is-champagne); font-family: var(--font-display); font-size: 26px; line-height: .86; text-transform: uppercase; }
  .campaign-banner small { margin-top: 7px; font-family: var(--font-display); }
  .campaign-banner em { margin-top: 12px; padding: 6px 15px; border-radius: 999px; color: var(--is-green-deep); background: var(--is-grad-gold); font-family: var(--font-display); font-style: normal; }
  .mobile-duo { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  .mobile-duo > section { min-height: 150px; padding: 12px; border: 1px solid var(--is-line-soft); border-radius: 14px; background: var(--is-card); }
  .mobile-duo h2 { margin: 0; font-family: var(--font-display); font-size: 17px; }
  .mobile-event-card h2 a { float: right; color: #322e28; font-family: var(--font-display); font-size: 12px; }
  .mobile-event-card > div, .mobile-event-card > .mobile-event-link { text-decoration:none; height: 102px; display: flex; flex-direction: column; justify-content: center; margin-top: 8px; padding: 10px 10px 10px 45%; border-radius: 10px; color: #fff; background: linear-gradient(90deg,transparent 20%,rgba(3,48,34,.75) 57%),url('/static/member/img/dashboard-hero-v2.webp') 70% center / cover; }
  .mobile-event-card span { font-family: var(--font-display); font-size: 15px; line-height: 1; }
  .mobile-event-card small { margin-top: 8px; font-size: 8px; }
  .app-bottomnav { grid-template-columns: repeat(5,1fr); height: calc(72px + env(safe-area-inset-bottom)); }
  .app-bottomnav a { font-family: var(--font-display); font-size: 10px; }
  .app-bottomnav a .bi { font-family: bootstrap-icons !important; }
  .app-bottomnav .fab { margin-top: -34px; }
  .app-bottomnav .fab span.ring { width: 62px; height: 62px; }
  .app-main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .home-mobile-hero { min-height: 520px; }
  .mobile-greeting { display: none; }
  .mobile-brand .brand-name { font-size: 30px; }
  .mobile-hero-copy h1 { font-size: 30px; }
  .mobile-wallet { grid-template-columns: 1fr 1.75fr; padding: 11px 9px; }
  .mobile-wallet-balance .wallet-icon { display: none; }
  .mobile-wallet-actions i { width: 34px; height: 34px; }
  .merchant-row { grid-auto-columns: 48%; }
}

/* Leader events */
.event-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.event-card { display:block; overflow:hidden; min-width:0; color:var(--is-black); text-decoration:none; border:1px solid var(--is-line-soft); border-radius:16px; background:var(--is-card); box-shadow:var(--shadow-sm); transition:.2s ease; }
.event-card:hover { color:var(--is-black); transform:translateY(-2px); box-shadow:0 13px 32px rgba(50,39,16,.12); }
.event-card>img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; object-position:center; background:#171b18; }
.event-card-body { padding:17px; }
.event-card-body h3 { margin:10px 0 8px; font-family:var(--font-display); font-size:23px; }
.event-card-body p { margin:4px 0; color:var(--is-muted); font-size:13px; }
.event-card-body small { color:var(--is-muted); }
.event-card-meta { display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:12px; border-top:1px solid var(--is-line-soft); font-size:13px; }
.event-card-meta strong { color:var(--is-green); }
.event-detail-image,.event-checkin-image { display:block; width:100%; height:380px; object-fit:cover; background:var(--is-cream); }
.event-checkin-image { height:260px; }
.event-copy { margin:20px 0 0; line-height:1.75; white-space:normal; }
.event-qr { display:table; margin:18px auto 0; padding:12px; border-radius:12px; background:#fff; }
.event-payment-total { display:flex; justify-content:space-between; align-items:center; margin-top:20px; padding:18px; border-radius:13px; color:#fff; background:var(--is-green); }
.event-payment-total strong { color:var(--is-champagne); font-family:var(--font-display); font-size:28px; }
.event-form textarea { resize:vertical; }
.payment-pin-wrap { position:relative; }
.payment-pin-wrap>i { position:absolute; left:15px; top:50%; z-index:2; color:var(--is-gold-dark); font-size:17px; transform:translateY(-50%); pointer-events:none; }
.payment-pin-input { height:50px; padding-left:45px; font-size:22px; font-weight:700; letter-spacing:.5em; }
.payment-pin-input::placeholder { color:#c5bcaa; letter-spacing:.35em; }
.pin-enhanced > i { display:none; }
.pin-widget { width:100%; max-width:360px; margin-inline:auto; }
.pin-display { width:100%; min-height:54px; border:1px solid #d8d0c0; border-radius:12px; background:#fff; color:var(--is-green); font-size:26px; letter-spacing:.12em; cursor:pointer; }
.pin-display:focus-visible, .pin-keypad button:focus-visible { outline:3px solid #bd923f; outline-offset:2px; }
.pin-display.is-invalid { border-color:#b42318; }
.pin-keypad:not([hidden]) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:12px; }
.pin-keypad button { min-height:48px; border:1px solid #d8d0c0; border-radius:10px; background:var(--is-cream); color:var(--is-green); font-size:20px; touch-action:manipulation; }
.pin-keypad button:active { background:#e7efe8; }
.pin-modal .modal-dialog{max-width:390px}.pin-modal .modal-content{border:0;border-radius:24px;background:#fffdf7;box-shadow:0 16px 64px #052e1f30}
.pin-modal .modal-header{border:0;padding:24px 24px 0}.pin-modal .modal-body{padding:20px 24px 8px}.pin-modal .modal-footer{border:0;padding:12px 24px 24px}
.pin-modal .modal-body:last-child{padding-bottom:24px}
.pin-modal-dots{text-align:center;color:var(--is-green);font-size:30px;letter-spacing:.12em;padding:12px 0 20px}.pin-modal-hint{font-size:13px;color:#817966;text-align:center;line-height:1.5}
.pin-modal .pin-keypad button{min-height:54px;background:#f4f1e8;font-size:24px;border-color:transparent}.pin-modal .pin-keypad button:nth-child(10){font-size:15px}
@media(max-width:575px){.pin-modal .modal-dialog{display:flex;align-items:flex-end;min-height:100%;margin:0 auto;max-width:100%}.pin-modal .modal-content{border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}}
@media(max-width:991px){.event-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.event-card-grid{grid-template-columns:1fr}.event-card>img{height:auto}.event-detail-image{height:240px}}

/* Event detail */
.event-detail-page { max-width:1180px; margin:0 auto; }
.event-detail-hero { position:relative; min-height:430px; overflow:hidden; border-radius:24px; background:var(--is-green-deep); box-shadow:0 18px 45px rgba(35,28,12,.16); }
.event-detail-hero .event-detail-image { position:absolute; inset:0; height:100%; }
.event-detail-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(4,33,23,.18) 5%,rgba(4,33,23,.12) 34%,rgba(4,33,23,.91) 100%); }
.event-detail-topline { position:absolute; z-index:2; top:22px; left:24px; right:24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.event-detail-topline .chip { box-shadow:0 6px 18px rgba(0,0,0,.14); }
.event-detail-number { padding:7px 12px; border:1px solid rgba(255,255,255,.32); border-radius:999px; color:#fff; background:rgba(7,58,40,.52); backdrop-filter:blur(8px); font-size:11px; font-weight:600; letter-spacing:.08em; }
.event-detail-hero-copy { position:absolute; z-index:2; left:42px; right:42px; bottom:36px; max-width:820px; color:#fff; }
.event-detail-kicker { display:inline-flex; align-items:center; gap:8px; color:var(--is-champagne); font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
.event-detail-hero-copy h1 { max-width:760px; margin:10px 0 14px; color:#fff; font-family:var(--font-display); font-size:clamp(38px,5vw,62px); font-weight:600; line-height:.96; text-shadow:0 3px 20px rgba(0,0,0,.25); }
.event-detail-hero-meta { display:flex; flex-wrap:wrap; gap:12px 24px; color:rgba(255,255,255,.9); font-size:13px; }
.event-detail-hero-meta span { display:inline-flex; align-items:center; gap:8px; }
.event-detail-hero-meta i { color:var(--is-champagne); }
.event-detail-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr); gap:24px; margin-top:24px; align-items:start; }
.event-detail-main { display:grid; gap:20px; }
.event-about-card { padding:30px; }
.event-section-heading { display:flex; align-items:center; gap:13px; }
.event-section-heading h2 { margin:1px 0 0; font-family:var(--font-display); font-size:28px; }
.event-section-heading span { color:var(--is-muted); font-size:10px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
.event-section-icon { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:13px; color:var(--is-green-deep); background:var(--is-grad-gold); font-size:18px; box-shadow:0 8px 20px rgba(212,175,55,.22); }
.event-section-icon.burgundy { color:#fff; background:var(--is-grad-burgundy); }
.event-about-card .event-copy { color:#4f4a42; font-size:15px; line-height:1.9; }
.event-detail-highlights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; border:1px solid var(--is-line); border-radius:18px; background:var(--is-card); box-shadow:var(--shadow-sm); }
.event-highlight { display:flex; align-items:center; gap:12px; min-width:0; padding:19px; border-right:1px solid var(--is-line-soft); }
.event-highlight:last-child { border-right:0; }
.event-highlight-icon { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:50%; color:var(--is-burgundy); background:#f7ecec; }
.event-highlight div { min-width:0; }
.event-highlight small,.event-highlight strong,.event-highlight div>span { display:block; }
.event-highlight small { margin-bottom:2px; color:var(--is-muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.event-highlight strong { overflow:hidden; color:var(--is-green-deep); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.event-highlight div>span { overflow:hidden; color:var(--is-muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.event-detail-side { display:grid; gap:16px; position:sticky; top:92px; }
.event-booking-card { padding:26px; background:linear-gradient(145deg,#fffdf8 0%,#f7f0dc 100%); }
.event-price-label { color:var(--is-muted); font-size:11px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; }
.event-detail-price { display:flex; align-items:flex-start; gap:7px; margin:2px 0 21px; color:var(--is-green-deep); }
.event-detail-price small { margin-top:10px; color:var(--is-gold-dark); font-size:12px; font-weight:700; }
.event-detail-price strong { font-family:var(--font-display); font-size:45px; line-height:1; }
.event-capacity-head,.event-capacity-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.event-capacity-head { margin-bottom:8px; font-size:12px; }
.event-capacity-head span { color:var(--is-muted); }
.event-capacity-head strong { color:var(--is-green-deep); }
.event-capacity-track { height:7px; overflow:hidden; border-radius:999px; background:#e8e0cf; }
.event-capacity-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--is-gold),var(--is-green)); }
.event-capacity-foot { margin-top:9px; color:var(--is-muted); font-size:10px; }
.event-capacity-foot span { display:inline-flex; align-items:center; gap:5px; }
.event-qr-card { position:relative; overflow:hidden; padding:30px 25px 24px; border:1px solid rgba(212,175,55,.45); border-radius:20px; text-align:center; color:#fff; background:var(--is-grad-green); box-shadow:0 16px 35px rgba(7,58,40,.18); }
.event-qr-card>* { position:relative; z-index:1; }
.event-qr-leaf { position:absolute; right:-24px; bottom:-48px; z-index:0; color:rgba(242,213,138,.08); font-size:145px; transform:rotate(-18deg); }
.event-qr-eyebrow { color:var(--is-champagne); font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.event-qr-card h2 { margin:5px 0 8px; color:#fff; font-family:var(--font-display); font-size:28px; }
.event-qr-card p { max-width:290px; margin:0 auto; color:rgba(255,255,255,.75); font-size:12px; }
.event-qr-card .event-qr { width:276px; max-width:100%; box-sizing:border-box; padding:24px; border:4px solid rgba(242,213,138,.45); border-radius:16px; box-shadow:0 10px 25px rgba(0,0,0,.18); }
.event-qr-card .event-qr img,.event-qr-card .event-qr canvas { max-width:100%; height:auto!important; }
.event-qr-price { display:flex; justify-content:space-between; align-items:center; max-width:252px; margin:14px auto 0; padding-top:13px; border-top:1px solid rgba(255,255,255,.14); }
.event-qr-price span { color:rgba(255,255,255,.7); font-size:11px; }
.event-qr-price strong { color:var(--is-champagne); font-family:var(--font-display); font-size:22px; }
.event-copy-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; margin-top:14px; padding:8px 12px; border:1px solid rgba(255,255,255,.24); border-radius:999px; color:#fff; background:rgba(255,255,255,.08); font-size:11px; }
.event-copy-link:hover { background:rgba(255,255,255,.15); }
.event-status-card { display:flex; gap:14px; padding:22px; border:1px solid var(--is-line); border-radius:18px; background:var(--is-card); box-shadow:var(--shadow-sm); }
.event-status-icon { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:50%; font-size:18px; }
.event-status-card small { color:var(--is-muted); font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.event-status-card h3 { margin:2px 0 4px; font-family:var(--font-display); font-size:22px; }
.event-status-card p { margin:0; color:var(--is-muted); font-size:12px; line-height:1.6; }
.event-status-card.is-pending { border-color:#ead69c; background:#fff9e8; }
.event-status-card.is-pending .event-status-icon { color:#9a6c12; background:#f5df9e; }
.event-status-card.is-rejected { border-color:#e8c9cd; background:#fff6f6; }
.event-status-card.is-rejected .event-status-icon { color:#fff; background:var(--is-burgundy); }
.event-status-card.is-approved .event-status-icon,.event-status-card.is-completed .event-status-icon { color:#fff; background:var(--is-green); }
.event-back-link { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px; color:var(--is-green); font-size:12px; font-weight:600; }
.event-back-link:hover { color:var(--is-burgundy); }
.event-settlement-card { padding:28px; }
.event-settlement-total { display:flex; align-items:center; justify-content:space-between; margin:22px 0 14px; padding:20px; border-radius:14px; color:#fff; background:var(--is-grad-green); }
.event-settlement-total strong { color:var(--is-champagne); font-family:var(--font-display); font-size:28px; }
.event-settlement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.event-settlement-grid>div { padding:15px; border:1px solid var(--is-line-soft); border-radius:12px; background:#fffaf0; }
.event-settlement-grid small,.event-settlement-grid strong { display:block; }
.event-settlement-grid small { min-height:32px; color:var(--is-muted); font-size:10px; }
.event-settlement-grid strong { margin-top:4px; color:var(--is-green-deep); font-family:var(--font-display); font-size:19px; }

@media(max-width:991px){
  .event-detail-hero { min-height:390px; border-radius:20px; }
  .event-detail-layout { grid-template-columns:1fr; }
  .event-detail-side { position:static; grid-template-columns:1fr 1fr; }
  .event-detail-side .event-back-link { grid-column:1/-1; }
}
@media(max-width:767px){
  .event-detail-page { margin:0 -10px; }
  .event-detail-hero { min-height:390px; border-radius:0 0 24px 24px; box-shadow:none; }
  .event-detail-hero-copy { left:20px; right:20px; bottom:25px; }
  .event-detail-hero-copy h1 { font-size:39px; }
  .event-detail-topline { top:17px; left:16px; right:16px; }
  .event-detail-hero-meta { gap:7px 16px; font-size:11px; }
  .event-detail-layout { margin:16px; }
  .event-detail-highlights { grid-template-columns:1fr; }
  .event-highlight { border-right:0; border-bottom:1px solid var(--is-line-soft); }
  .event-highlight:last-child { border-bottom:0; }
  .event-detail-side { grid-template-columns:1fr; }
  .event-detail-side .event-back-link { grid-column:auto; }
  .event-settlement-grid { grid-template-columns:1fr; }
  .event-settlement-grid small { min-height:0; }
}
@media(max-width:390px){
  .event-detail-hero { min-height:365px; }
  .event-detail-hero-copy h1 { font-size:34px; }
  .event-about-card,.event-booking-card { padding:22px; }
  .event-detail-number { max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
