*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; overflow: hidden; background: #0A000F; }
body { font-family: 'Nunito', sans-serif; -webkit-font-smoothing: antialiased; }
#root { height: 100%; display: flex; align-items: center; justify-content: center; }

@keyframes pulse-bar {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.5; transform: scaleX(0.6); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop-in {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ready-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.fade-in { animation: fade-in 0.4s ease forwards; }
.slide-up { animation: slide-up 0.5s ease forwards; }
.pop-in { animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }

.phone-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: #1E0A3C;
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.scrollable { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.scrollable::-webkit-scrollbar { display: none; }

/* Splash */
#splash {
  background: linear-gradient(160deg, #4C1D95 0%, #3B0764 60%, #1E0A3C 100%);
  align-items: center; justify-content: center; gap: 12px;
}
#splash .logo-fork { font-size: 60px; animation: pop-in 0.5s ease 0.2s both; }
#splash .logo-text { font-size: 56px; font-weight: 900; color: #EAB308; letter-spacing: -3px; animation: fade-in 0.5s ease 0.4s both; }
#splash .logo-sub { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #A78BFA; animation: fade-in 0.5s ease 0.7s both; }
#splash .load-bar { margin-top: 40px; width: 44px; height: 4px; border-radius: 2px; background: #EAB308; animation: pulse-bar 1.2s ease-in-out infinite 1s both; }

/* Welcome / sign-in */
#welcome { background: #1E0A3C; padding: 52px 24px 32px; display: none; overflow-y: auto; align-items: center; }
#welcome > * { width: 100%; max-width: 460px; }
#welcome .gift-icon { width: 88px; height: 88px; background: #EAB308; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto 20px; animation: pop-in 0.5s ease 0.2s both; flex-shrink: 0; }
#welcome h1 { color: #fff; font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 20px; animation: fade-in 0.5s ease 0.4s both; }
#welcome .gift-card { background: #2D1065; border-radius: 18px; padding: 20px 22px; border: 1px solid rgba(234,179,8,0.3); margin-bottom: 14px; animation: slide-up 0.5s ease 0.5s both; }
#welcome .gift-label { color: #EAB308; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
#welcome .gift-title { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
#welcome .gift-desc { color: #A78BFA; font-size: 13px; line-height: 1.6; }
.auth-form { background: #1A0A30; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; animation: slide-up 0.5s ease 0.6s both; }
.auth-form .af-label { color: #A78BFA; font-size: 12px; font-weight: 700; margin: 10px 0 6px; }
.auth-form .af-label:first-child { margin-top: 0; }
.auth-input {
  width: 100%; background: #2D1065; border: 1px solid rgba(109,40,217,0.5);
  border-radius: 12px; padding: 13px 14px; color: #fff; font-size: 15px;
  font-family: inherit; outline: none;
}
.auth-input:focus { border-color: #EAB308; }
.auth-input::placeholder { color: #6D28D9; }
.auth-error { color: #F87171; font-size: 12px; margin-top: 10px; display: none; }
.claim-btn { width: 100%; padding: 16px; background: #EAB308; color: #1E0A3C; font-size: 17px; font-weight: 800; border: none; border-radius: 16px; cursor: pointer; transition: transform 0.1s, opacity 0.1s; font-family: inherit; animation: slide-up 0.5s ease 0.7s both; flex-shrink: 0; }
.claim-btn:active { transform: scale(0.97); opacity: 0.9; }
.claim-btn:disabled { opacity: 0.5; cursor: wait; }
.skip-btn { width: 100%; padding: 14px; margin-top: 10px; background: transparent; color: #A78BFA; font-size: 15px; font-weight: 700; border: 1px solid rgba(109,40,217,0.5); border-radius: 16px; cursor: pointer; transition: transform 0.1s, border-color 0.2s, color 0.2s; font-family: inherit; animation: slide-up 0.5s ease 0.78s both; flex-shrink: 0; }
.skip-btn:hover { border-color: #6D28D9; color: #fff; }
.skip-btn:active { transform: scale(0.97); opacity: 0.9; }
.skip-btn:disabled { opacity: 0.5; cursor: wait; }

/* App shell */
#app { display: none; flex-direction: column; }
#app.active { display: flex; }

/* Nav */
#nav { background: #1A0A30; border-top: 1px solid rgba(109,40,217,0.25); display: flex; padding: 8px 0 24px; flex-shrink: 0; }
.nav-btn { flex: 1; background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 6px 0; position: relative; font-family: inherit; }
.nav-btn .nav-icon { font-size: 22px; }
.nav-btn .nav-label { font-size: 10px; font-weight: 500; color: #6D28D9; transition: color 0.2s; }
.nav-btn.active .nav-label { color: #EAB308; font-weight: 700; }
.nav-btn .nav-dot { width: 20px; height: 3px; background: #EAB308; border-radius: 99px; margin-top: 2px; display: none; }
.nav-btn.active .nav-dot { display: block; }
.nav-badge { position: absolute; top: 2px; right: 50%; transform: translateX(14px); background: #EF4444; border-radius: 50%; width: 17px; height: 17px; font-size: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; transition: transform 0.2s; }

/* Tabs */
.tab-content { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.tab-content.active { display: flex; }

/* Full-width web layout: app chrome spans edge-to-edge, content columns stay readable & centered */
#tab-home .scrollable { max-width: 1180px; margin: 0 auto; width: 100%; }
#tab-cart .tab-header, #tab-cart .scrollable,
#tab-track .tab-header, #tab-track .scrollable,
#tab-loyalty .tab-header, #tab-loyalty .scrollable {
  width: 100%; max-width: 820px; margin-left: auto; margin-right: auto;
}
#nav { max-width: 1180px; margin: 0 auto; width: 100%; }

/* ── HOME ── */
#tab-home { background: #3B0764; }
.home-header { padding: 48px 20px 20px; background: linear-gradient(180deg, #4C1D95 0%, #3B0764 100%); flex-shrink: 0; }
.home-header.night { background: linear-gradient(180deg, #0A0015 0%, #1E0A3C 100%); }
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-greeting { color: #A78BFA; font-size: 12px; }
.header-brand { color: #fff; font-size: 24px; font-weight: 900; letter-spacing: -1px; }
.header-avatar { width: 40px; height: 40px; background: #EAB308; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; border: none; cursor: pointer; }
.loyalty-bar { background: #2D1065; border-radius: 14px; padding: 14px 16px; }
.loyalty-bar-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.loyalty-bar-label { color: #fff; font-size: 13px; font-weight: 700; }
.loyalty-bar-count { color: #EAB308; font-size: 13px; font-weight: 700; }
.bar-track { background: #1E0A3C; border-radius: 99px; height: 8px; margin-bottom: 8px; }
.bar-fill { background: #EAB308; height: 8px; border-radius: 99px; transition: width 0.6s ease; }
.bar-hint { color: #A78BFA; font-size: 11px; }
.bar-hint span { color: #FDE047; }

.closed-banner { margin: 12px 16px 0; background: #2A0A0A; border: 1px solid #EF4444; border-radius: 12px; padding: 12px 14px; color: #FCA5A5; font-size: 12px; font-weight: 700; display: none; }

.night-banner { margin: 12px 16px 0; background: #1A0A00; border: 1px solid #FF4400; border-radius: 12px; padding: 12px 14px; display: none; align-items: center; gap: 10px; }
.night-banner-icon { font-size: 22px; }
.night-banner-text { flex: 1; }
.night-banner-title { color: #FF6622; font-size: 11px; font-weight: 700; }
.night-banner-sub { color: #A78BFA; font-size: 11px; }
.night-banner-btn { background: #FF4400; border: none; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 700; padding: 6px 10px; cursor: pointer; font-family: inherit; white-space: nowrap; }

.menu-section { padding: 16px 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 12px; align-content: start; }
.menu-section-title { color: #EAB308; font-size: 16px; font-weight: 800; margin-bottom: 0; grid-column: 1 / -1; }
.menu-card { background: #2D1065; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid transparent; }
.menu-card-body { flex: 1; }
.menu-card-tag { color: #CA8A04; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.menu-card-name { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.menu-card-desc { color: #A78BFA; font-size: 12px; line-height: 1.4; margin-bottom: 7px; }
.menu-card-meta { display: flex; gap: 12px; align-items: center; }
.menu-card-price { color: #EAB308; font-size: 15px; font-weight: 800; }
.menu-card-cal { color: #6D28D9; font-size: 11px; }
.add-btn { width: 38px; height: 38px; border-radius: 10px; border: none; background: #5B21B6; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.1s, background 0.2s; font-family: inherit; }
.add-btn:active { transform: scale(0.9); }
.menu-loading { color: #A78BFA; font-size: 13px; text-align: center; padding: 40px 20px; }

/* Drop alert overlay */
#drop-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: flex-end; padding: 16px; z-index: 200; }
#drop-overlay.show { display: flex; }
.drop-modal { background: #1E0A3C; border: 1px solid #EAB308; border-radius: 22px; padding: 20px; width: 100%; animation: slide-up 0.3s ease; }
.drop-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.drop-badge { background: #EF4444; border-radius: 6px; padding: 3px 10px; color: #fff; font-size: 11px; font-weight: 700; }
.drop-close { background: none; border: none; color: #A78BFA; font-size: 24px; cursor: pointer; line-height: 1; font-family: inherit; }
.drop-title { color: #EAB308; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.drop-desc { color: #A78BFA; font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.drop-actions { display: flex; gap: 10px; }
.drop-order-btn { flex: 1; background: #EAB308; color: #1E0A3C; font-weight: 800; font-size: 15px; border: none; border-radius: 12px; padding: 14px; cursor: pointer; font-family: inherit; }
.drop-later-btn { flex: 1; background: #2D1065; color: #A78BFA; font-weight: 700; font-size: 14px; border: none; border-radius: 12px; padding: 14px; cursor: pointer; font-family: inherit; }

/* ── CART / CHECKOUT ── */
#tab-cart { background: #1E0A3C; }
.tab-header { padding: 48px 20px 16px; flex-shrink: 0; }
.tab-title { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 2px; }
.tab-sub { color: #A78BFA; font-size: 13px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; }
.cart-empty-icon { font-size: 52px; }
.cart-empty-title { color: #fff; font-size: 18px; font-weight: 700; }
.cart-empty-sub { color: #A78BFA; font-size: 13px; text-align: center; }
.cart-list { padding: 0 16px; }
.cart-item { background: #2D1065; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cart-item-name { color: #fff; font-weight: 700; font-size: 14px; }
.cart-item-price { color: #EAB308; font-weight: 800; font-size: 13px; margin-top: 2px; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { background: #1E0A3C; border: none; border-radius: 8px; width: 30px; height: 30px; color: #A78BFA; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 800; }
.qty-num { color: #fff; font-size: 14px; font-weight: 800; min-width: 18px; text-align: center; }

.gift-redeem { margin: 0 16px 12px; background: #1A0A30; border: 1px dashed rgba(234,179,8,0.5); border-radius: 14px; padding: 13px 16px; display: none; align-items: center; gap: 12px; cursor: pointer; }
.gift-redeem .gr-icon { font-size: 24px; }
.gift-redeem .gr-title { color: #FDE047; font-size: 13px; font-weight: 700; }
.gift-redeem .gr-sub { color: #A78BFA; font-size: 11px; }
.gift-redeem .gr-check { margin-left: auto; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #6D28D9; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.gift-redeem.on { border-color: #EAB308; }
.gift-redeem.on .gr-check { background: #EAB308; border-color: #EAB308; color: #1E0A3C; }

.checkout-card { background: #1A0A30; border-radius: 14px; padding: 16px; margin: 0 16px 12px; }
.checkout-label { color: #A78BFA; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.seg { display: flex; background: #1E0A3C; border-radius: 12px; padding: 4px; gap: 4px; }
.seg-btn { flex: 1; background: none; border: none; border-radius: 9px; padding: 10px 6px; color: #A78BFA; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.seg-btn.active { background: #5B21B6; color: #fff; }
.seg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.checkout-field { margin-top: 12px; }
.checkout-input {
  width: 100%; background: #2D1065; border: 1px solid rgba(109,40,217,0.5);
  border-radius: 12px; padding: 12px 14px; color: #fff; font-size: 14px;
  font-family: inherit; outline: none; resize: none;
}
.checkout-input:focus { border-color: #EAB308; }
.checkout-input::placeholder { color: #6D28D9; }
.pay-hint { color: #6D28D9; font-size: 11px; margin-top: 8px; line-height: 1.5; }

.milestone-banner { background: #0A2A00; border: 1px solid #22C55E; border-radius: 14px; padding: 14px 16px; margin: 0 16px 12px; }
.milestone-banner-title { color: #22C55E; font-weight: 700; font-size: 13px; }
.milestone-banner-sub { color: #A78BFA; font-size: 12px; margin-top: 2px; }
.order-summary { background: #1A0A30; border-radius: 14px; padding: 16px; margin: 0 16px 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.summary-label { color: #A78BFA; font-size: 13px; }
.summary-value { color: #fff; font-size: 13px; }
.summary-free { color: #22C55E; font-size: 13px; }
.summary-divider { border: none; border-top: 1px solid rgba(109,40,217,0.3); margin: 10px 0; }
.summary-total-label { color: #fff; font-size: 17px; font-weight: 800; }
.summary-total-value { color: #EAB308; font-size: 17px; font-weight: 800; }
.place-order-btn { width: calc(100% - 32px); margin: 0 16px 16px; padding: 16px; background: #EAB308; color: #1E0A3C; font-size: 17px; font-weight: 800; border: none; border-radius: 16px; cursor: pointer; font-family: inherit; transition: transform 0.1s; flex-shrink: 0; }
.place-order-btn:active { transform: scale(0.98); }
.place-order-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── TRACK ── */
#tab-track { background: #1E0A3C; }
.track-no-order { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.track-no-order-icon { font-size: 52px; }
.track-no-order-title { color: #fff; font-size: 18px; font-weight: 700; }
.track-no-order-sub { color: #A78BFA; font-size: 13px; }
.track-card { background: #2D1065; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.track-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.track-code { color: #fff; font-size: 19px; font-weight: 800; }
.track-meta { color: #A78BFA; font-size: 12px; margin-bottom: 14px; }
.badge { display: inline-block; border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }
.badge.pickup { background: rgba(234,179,8,0.15); color: #FDE047; }
.badge.delivery { background: rgba(96,165,250,0.15); color: #93C5FD; }
.badge.paid { background: rgba(34,197,94,0.15); color: #4ADE80; }
.badge.cod { background: rgba(234,179,8,0.15); color: #FDE047; }
.badge.pending { background: rgba(239,68,68,0.18); color: #FCA5A5; }
.badge.cancelled { background: rgba(239,68,68,0.18); color: #FCA5A5; }

.status-step { display: flex; gap: 14px; align-items: flex-start; }
.step-indicator { display: flex; flex-direction: column; align-items: center; }
.step-circle { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; border: 2px solid; transition: all 0.5s ease; flex-shrink: 0; }
.step-circle.done { background: #EAB308; border-color: #EAB308; color: #1E0A3C; }
.step-circle.active { background: transparent; border-color: #EAB308; color: #EAB308; }
.step-circle.pending { background: transparent; border-color: #6D28D9; color: #6D28D9; }
.step-line { width: 2px; height: 22px; margin-top: 4px; transition: background 0.5s ease; }
.step-line.done { background: #EAB308; }
.step-line.pending { background: #6D28D9; }
.step-text { padding-top: 4px; }
.step-label { font-size: 14px; font-weight: 600; color: #6D28D9; transition: color 0.5s; }
.step-label.active { color: #fff; font-weight: 700; }
.step-label.done { color: #A78BFA; }
.step-current-tag { color: #EAB308; font-size: 11px; margin-top: 2px; }

.ready-card { background: #0A2A00; border: 1px solid #22C55E; border-radius: 16px; padding: 18px; text-align: center; margin-top: 14px; animation: ready-pulse 2s infinite; }
.ready-icon { font-size: 36px; margin-bottom: 8px; }
.ready-title { color: #22C55E; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.ready-sub { color: #A78BFA; font-size: 13px; }
.driver-card { background: #1A0A30; border-radius: 14px; padding: 14px 16px; margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.driver-avatar { width: 40px; height: 40px; background: #5B21B6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.driver-name { color: #fff; font-size: 14px; font-weight: 700; }
.driver-sub { color: #A78BFA; font-size: 11px; }
.driver-call { margin-left: auto; background: #22C55E; color: #06230D; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 800; text-decoration: none; }
.otw-btn { width: 100%; padding: 14px; background: #5B21B6; color: #fff; font-size: 15px; font-weight: 700; border: none; border-radius: 14px; cursor: pointer; margin-top: 14px; font-family: inherit; }
.otw-confirmed { background: #1A0A30; border: 1px solid #5B21B6; border-radius: 14px; padding: 13px; text-align: center; color: #A78BFA; font-size: 13px; margin-top: 14px; }
.cancel-link { width: 100%; margin-top: 10px; background: none; border: none; color: #6D28D9; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; padding: 8px; }
.order-items-card { background: #1A0A30; border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.order-items-label { color: #A78BFA; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.order-item-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.order-item-name { color: #fff; font-size: 13px; }
.order-item-price { color: #EAB308; font-size: 13px; }
.past-order-row { background: #1A0A30; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.past-order-code { color: #fff; font-size: 13px; font-weight: 700; }
.past-order-sub { color: #6D28D9; font-size: 11px; margin-top: 2px; }
.past-order-total { color: #A78BFA; font-size: 13px; font-weight: 700; }
.section-mini-title { color: #A78BFA; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 10px; }

/* Payment pending card */
.pay-pending-card { background: #2A1A00; border: 1px solid #EAB308; border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.pay-pending-title { color: #FDE047; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.pay-pending-sub { color: #A78BFA; font-size: 12px; margin-bottom: 12px; }
.pay-retry-btn { background: #EAB308; color: #1E0A3C; border: none; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ── LOYALTY ── */
#tab-loyalty { background: #1E0A3C; }
.loyalty-hero { background: linear-gradient(135deg, #2D1065, #5B21B6); border-radius: 20px; padding: 24px; text-align: center; margin-bottom: 16px; border: 1px solid rgba(234,179,8,0.25); }
.loyalty-hero-num { color: #EAB308; font-size: 72px; font-weight: 900; line-height: 1; }
.loyalty-hero-label { color: #A78BFA; font-size: 14px; margin-top: 4px; }
.loyalty-dots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 8px; }
.loyalty-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 2px solid; transition: all 0.4s; }
.loyalty-dot.filled { background: #EAB308; border-color: #EAB308; color: #1E0A3C; }
.loyalty-dot.empty { background: transparent; border-color: #6D28D9; color: transparent; }
.loyalty-hint { color: #A78BFA; font-size: 12px; }
.perk-card { border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; border: 1px solid; transition: all 0.3s; }
.perk-card.locked { background: #2D1065; border-color: rgba(109,40,217,0.3); }
.perk-card.unlocked { background: #0A2A00; border-color: #22C55E; }
.perk-milestone { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.perk-card.locked .perk-milestone { color: #A78BFA; }
.perk-card.unlocked .perk-milestone { color: #22C55E; }
.perk-reward { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.perk-desc { color: #A78BFA; font-size: 12px; }
.signout-btn { width: 100%; background: none; border: 1px solid rgba(109,40,217,0.4); border-radius: 12px; color: #6D28D9; font-size: 13px; font-weight: 700; padding: 12px; cursor: pointer; font-family: inherit; margin-top: 8px; }

/* Toast */
#toast {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
  background: #EAB308; color: #1E0A3C; font-size: 13px; font-weight: 800;
  border-radius: 99px; padding: 10px 18px; z-index: 500; display: none;
  animation: toast-in 0.3s ease; max-width: 85%; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
#toast.error { background: #EF4444; color: #fff; }
