:root {
  --ink: #08003f;
  --muted: #9da3aa;
  --line: #e6e8ec;
  --surface: #fff;
  --soft: #f7f8fa;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #e9e9ee; color: var(--ink); font-family: Avenir, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.app-shell { position: relative; width: min(100%, 440px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: #fff; box-shadow: 0 0 32px rgba(8,0,63,.12); }
.brand-header { background: #fff; }
.brand-header.hidden { display: none; }
.status-space { height: max(22px, env(safe-area-inset-top)); }
.brand-row { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 10px; }
.brand-lockup { display: block; padding: 0; }
.brand-lockup img { display: block; width: 90px; height: auto; }
.profile-trigger { width: 48px; height: 58px; display: grid; place-items: center; padding: 0; }
.profile-trigger img { display: block; width: 44px; height: 56px; object-fit: contain; }
main { min-height: calc(100dvh - 186px); padding-bottom: calc(84px + var(--safe-bottom)); }
.screen { display: none; min-height: calc(100dvh - 186px); animation: screen-in .18s ease; }
.screen.active { display: block; }
@keyframes screen-in { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.search-row { display: flex; gap: 12px; padding: 12px 16px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box, .filter-button { height: 62px; display: flex; align-items: center; border: 2px solid #9ba2a9; border-radius: 34px; color: #929aa3; }
.search-box { flex: 1; padding: 0 22px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 26px; font-weight: 300; }
.search-box input::placeholder { color: #929aa3; }
.search-icon { width: 34px; height: 34px; flex: 0 0 34px; color: #000; stroke-width: 2.15; }
.filter-button { gap: 12px; padding: 0 20px; color: #000; font-size: 22px; white-space: nowrap; }
.filter-button .ui-icon { width: 29px; height: 29px; }
.section-title { margin: 24px 24px 20px; font-size: clamp(30px, 8vw, 35px); line-height: 1; font-weight: 800; font-style: italic; letter-spacing: -1.4px; white-space: nowrap; }
.hero { position: relative; height: 390px; overflow: hidden; background: #111; }
.hero-track { height: 100%; display: flex; transition: transform .45s ease; }
.hero-slide { min-width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 74px 24px 32px; color: #fff; background-size: cover; background-position: center; position: relative; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,0,63,.05), rgba(8,0,63,.65)); }
.hero-slide > * { position: relative; z-index: 1; }
.hero-title { max-width: 90%; white-space: pre-line; margin-bottom: 26px; font-size: 43px; line-height: 1.02; text-align: center; align-self: center; font-weight: 800; }
.pill-button, .detail-button { min-height: 52px; border-radius: 30px; color: var(--ink); background: #fff; font-size: 18px; }
.pill-button { width: 100%; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.dots button { width: 14px; height: 14px; border-radius: 50%; background: #b9bdc7; }
.dots button.active { background: #fff; }
.horizontal-scroll { display: flex; gap: 16px; padding: 0 24px 14px; overflow-x: auto; scrollbar-width: none; }
.horizontal-scroll::-webkit-scrollbar { display: none; }
.offer-card { position: relative; flex: 0 0 calc(100% - 30px); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 8px 19px rgba(0,0,0,.16); }
.offer-card img { display: block; width: 100%; height: 228px; object-fit: cover; }
.offer-card-body { display: block; min-height: 166px; padding: 22px 24px 30px; position: relative; }
.offer-card-body h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.05; }
.offer-card-body p { margin: 0; font-size: 19px; line-height: 1.15; font-weight: 300; }
.offer-card-body .brand-word { position: absolute; right: 22px; bottom: 27px; max-width: 42%; text-align: right; font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.offer-card-body .brand-logo { position: absolute; right: 18px; bottom: 18px; width: 112px; height: 70px; object-fit: contain; }
.date-chip { position: absolute; right: 0; top: -33px; padding: 11px 20px; border-radius: 30px 0 0 0; background: #fff; font-size: 18px; font-weight: 700; }
.screen-note { padding: 44px 24px; text-align: center; color: var(--muted); font-size: 18px; }
.full-list { padding: 0 24px; }
.full-list .offer-card { width: 100%; margin-bottom: 22px; }
.home-section { padding: 1px 0 10px; }
.discover-button { width: calc(100% - 48px); margin: 32px 24px 56px; height: 66px; border-radius: 35px; color: #fff; background: var(--ink); font-size: 23px; }
.viva-section { padding: 64px 24px 86px; text-align: center; background: #f8f8fb; }
.viva-section h2 { margin: 0 0 20px; font-size: 48px; line-height: 1.08; font-style: italic; }
.viva-section p { margin: 0 auto 30px; max-width: 330px; font-size: 24px; line-height: 1.24; font-weight: 300; }
.viva-card { width: 100%; height: 94px; display: grid; place-items: center; border-radius: 5px; color: white; background: #08003f; font-size: 24px; font-weight: 600; }
.viva-card b { color: #39a8ff; }
.card-screen { padding: 18px 24px 30px; }
.card-screen h1 { margin: 16px 0 24px; font-size: clamp(31px, 8.3vw, 36px); line-height: 1; font-style: italic; }
.membership-card-stack { display: grid; gap: 18px; margin-bottom: 28px; }
.member-card-component { position: relative; width: 100%; aspect-ratio: 1.597; overflow: hidden; border-radius: 22px; background: #079fc8; box-shadow: 0 7px 20px rgba(0,52,99,.16); }
.member-card-component > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-person { position: absolute; left: 5.8%; bottom: 9.6%; display: flex; flex-direction: column; color: #fff; font-size: clamp(15px, 4.6vw, 20px); line-height: 1.3; font-weight: 400; }
.card-person strong { font: inherit; }
.card-front time { position: absolute; right: 6.2%; bottom: 10%; color: #fff; font-size: clamp(15px, 4.5vw, 19px); }
.member-number { position: absolute; left: 10%; right: 10%; top: 36.5%; color: #fff; text-align: center; font-size: clamp(15px, 4.5vw, 19px); font-weight: 400; letter-spacing: .01em; }
.card-actions { display: grid; gap: 12px; text-align: center; }
.card-actions p { margin: 6px 0 0; font-size: 14px; line-height: 1.3; font-weight: 300; white-space: nowrap; }
.dark-button { height: 52px; border-radius: 27px; color: #fff; background: var(--ink); font-size: 16px; }
.wallet-badge { display: block; width: 136px; height: auto; margin: 0 auto 20px; }
.profile-screen { padding-bottom: 30px; }
.profile-top { display: flex; align-items: center; justify-content: center; min-height: 78px; position: relative; }
.back-button { position: absolute; left: 22px; width: 38px; height: 38px; display: grid; place-items: center; }
.back-button .ui-icon { width: 30px; height: 30px; stroke-width: 2.5; }
.profile-top .brand-lockup img { width: 92px; }
.profile-list { padding: 0 28px; }
.profile-group-title { margin: 38px 0 14px; font-size: clamp(24px, 6.5vw, 28px); line-height: 1.05; font-weight: 800; }
.profile-row { width: 100%; min-height: 68px; display: grid; grid-template-columns: 56px minmax(0,1fr) 22px; align-items: center; border-bottom: 1px solid var(--line); font-size: clamp(16px, 4vw, 18px); line-height: 1.28; text-align: left; }
.profile-icon { width: 32px; height: 32px; display: grid; place-items: center; }
.profile-icon .ui-icon { width: 28px; height: 28px; stroke-width: 1.55; }
.profile-chevron { color: #666; font-size: 32px; }
.detail-screen { padding: 0 24px 40px; }
.detail-header { display: flex; align-items: center; gap: 14px; min-height: 74px; border-bottom: 1px solid var(--line); }
.detail-header button { width: 44px; height: 44px; display: grid; place-items: center; }
.detail-header button .ui-icon { width: 34px; height: 34px; }
.detail-header h1 { margin: 0; font-size: 25px; }
.detail-hero { width: 100%; height: 230px; margin: 20px 0; object-fit: cover; border-radius: 20px; }
.detail-screen h2 { font-size: 30px; margin: 12px 0; }
.detail-screen p { font-size: 19px; line-height: 1.5; font-weight: 300; }
.filter-sheet { position: fixed; inset: 0; z-index: 20; display: none; align-items: flex-end; background: rgba(8,0,63,.25); }
.filter-sheet.open { display: flex; }
.filter-panel { width: min(440px,100%); padding: 26px 24px calc(24px + var(--safe-bottom)); border-radius: 28px 28px 0 0; background: #fff; }
.filter-panel h2 { margin: 0 0 20px; font-size: 30px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-options button { padding: 12px 18px; border: 1px solid #c5c9d0; border-radius: 24px; font-size: 16px; }
.filter-options button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 24px; color: #fff; background: rgba(8,0,63,.88); font-size: 14px; transition: .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 15; width: min(100%, 440px); height: calc(84px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding-bottom: var(--safe-bottom); border-top: 1px solid #eef0f2; background: rgba(255,255,255,.98); transform: translateX(-50%); }
.bottom-nav button { position: relative; display: block; min-width: 0; height: 100%; padding: 0; overflow: hidden; }
.nav-state { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.bottom-nav .nav-active { display: none; }
.bottom-nav button.active .nav-active { display: block; }
.bottom-nav button.active .nav-inactive { display: none; }
@media (min-width: 700px) { .app-shell { margin-top: 18px; border-radius: 32px; min-height: calc(100dvh - 36px); } .bottom-nav { bottom: 18px; border-radius: 0 0 32px 32px; } }
