:root {
  --red: #b5121b;
  --red-dark: #8e0d15;
  --red-soft: #fff0f1;
  --charcoal: #202124;
  --ink: #282a2e;
  --muted: #747981;
  --line: #e9eaed;
  --page: #f6f7f9;
  --white: #ffffff;
  --green: #177245;
  --green-soft: #e8f7ee;
  --shadow: 0 8px 28px rgba(27, 31, 36, .045);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.app-shell { min-height: 100vh; }
.desktop-sidebar { display: none; }
.page-column { min-width: 0; }
.topbar { height: 64px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 16px; position: sticky; top: 0; z-index: 20; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--charcoal); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; position: relative; cursor: pointer; flex: 0 0 auto; }
.mobile-menu-toggle { border: 0; width: 34px; }
.mobile-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: -.5px; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: white; font-size: 13px; font-weight: 800; border-radius: 10px 4px 10px 4px; letter-spacing: -1px; }
.topbar-spacer { flex: 1; }
.topbar-bell { border: 0; font-size: 21px; }
.notification-dot { width: 7px; height: 7px; background: var(--red); border: 1px solid white; border-radius: 50%; position: absolute; top: 8px; right: 9px; }
.profile-button { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 0; cursor: pointer; }
.avatar { width: 34px; height: 34px; background: var(--red-soft); color: var(--red); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.profile-text { display: none; text-align: left; }
.profile-text strong, .profile-text small { display: block; }
.profile-text strong { font-size: 12px; }
.profile-text small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.profile-chevron { color: var(--muted); font-size: 17px; }
.mobile-menu { background: white; border-bottom: 1px solid var(--line); padding: 10px 16px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px; border-radius: 9px; font-weight: 600; }
.mobile-menu a:active, .mobile-menu a:hover { background: var(--red-soft); color: var(--red); }
.main-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 16px 100px; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 1.15px; margin: 0 0 7px; }
h1, h2, p { margin-top: 0; }
h1 { color: var(--charcoal); font-size: clamp(23px, 6vw, 31px); letter-spacing: -1px; line-height: 1.18; margin-bottom: 7px; }
h2 { color: var(--charcoal); font-size: 19px; line-height: 1.25; letter-spacing: -.45px; margin-bottom: 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.notification-button { display: none; }
.balance-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.balance-card { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); min-width: 0; }
.card-topline { display: flex; align-items: center; gap: 10px; }
.balance-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; font-size: 17px; }
.red-icon { background: var(--red-soft); color: var(--red); }
.dark-icon { background: #f0f1f3; color: var(--charcoal); }
.card-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.balance-amount { color: var(--charcoal); font-weight: 800; font-size: clamp(23px, 6vw, 29px); letter-spacing: -.8px; margin: 17px 0 18px; overflow-wrap: anywhere; }
.button { min-height: 43px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 800; border: 1px solid transparent; }
.button-full { width: 100%; }
.button-primary { background: var(--red); color: white; box-shadow: 0 5px 12px rgba(181, 18, 27, .13); }
.button-primary:hover { background: var(--red-dark); }
.button-outline { color: var(--red); background: white; border-color: #e9b8bb; }
.promo-banner { margin-top: 16px; border-radius: 18px; padding: 23px 20px; background: var(--charcoal); color: white; position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: center; }
.promo-copy { position: relative; z-index: 2; max-width: 360px; }
.promo-tag { display: inline-block; color: #ffc5c8; font-size: 9px; font-weight: 800; letter-spacing: 1.1px; margin-bottom: 12px; }
.promo-banner h2 { color: white; font-size: 27px; letter-spacing: -.8px; line-height: 1.15; margin-bottom: 10px; }
.promo-banner h2 span { color: #ffb7bb; }
.promo-banner p { color: #e3e4e6; font-size: 12px; line-height: 1.6; max-width: 260px; margin-bottom: 16px; }
.button-light { background: white; color: var(--charcoal); min-height: 38px; }
.promo-art { position: absolute; right: -10px; bottom: -25px; width: 145px; height: 175px; opacity: .9; }
.promo-circle { position: absolute; border-radius: 50%; }
.circle-one { width: 135px; height: 135px; background: rgba(181,18,27,.45); right: 0; top: 12px; }
.circle-two { width: 80px; height: 80px; background: rgba(255,255,255,.08); right: 25px; top: 39px; }
.promo-coin { position: absolute; right: 42px; top: 50px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg,#fff0c3,#dca744); color: #8e0d15; font-size: 29px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.25); transform: rotate(12deg); }
.promo-spark { position: absolute; right: 20px; top: 22px; color: #ffd7d9; font-size: 22px; }
.section-block { margin-top: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { font-size: 18px; }
.text-link { color: var(--red); font-size: 11px; font-weight: 800; white-space: nowrap; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-card { min-height: 133px; padding: 15px 13px; background: white; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .18s ease, border-color .18s ease; }
.service-card:hover { transform: translateY(-2px); border-color: #e4a6aa; }
.service-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.service-icon.red { background: var(--red-soft); color: var(--red); }
.service-icon.dark { background: #f0f1f3; color: var(--charcoal); }
.service-icon.gold { background: #fff5dc; color: #986300; }
.service-icon.plum { background: #f4edff; color: #7443b5; }
.service-icon.green { background: #e8f7ee; color: #177245; }
.service-icon.blue { background: #eaf2ff; color: #245fbd; }
.service-title { font-size: 13px; font-weight: 800; color: var(--charcoal); margin-bottom: 5px; }
.service-description { color: var(--muted); font-size: 10px; line-height: 1.4; }
.transactions-section { margin-top: 31px; }
.transaction-list { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.transaction-row { display: flex; align-items: center; gap: 11px; padding: 15px 12px; border-bottom: 1px solid #f0f1f3; min-width: 0; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 17px; }
.transaction-info { min-width: 0; flex: 1; }
.transaction-title { color: var(--charcoal); font-size: 12px; font-weight: 800; margin: 0 0 5px; }
.transaction-meta { color: var(--muted); font-size: 10px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transaction-end { text-align: right; flex: 0 0 auto; }
.transaction-amount { font-size: 11px; font-weight: 800; color: var(--charcoal); margin: 0 0 5px; }
.status-pill { display: inline-block; border-radius: 20px; padding: 4px 7px; font-size: 9px; font-weight: 800; }
.status-pill.success, .status-pill.credited { color: var(--green); background: var(--green-soft); }
.support-strip { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 15px; margin-top: 22px; }
.support-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; }
.support-strip div { flex: 1; min-width: 0; }
.support-strip strong { font-size: 12px; }
.support-strip p { margin: 4px 0 0; font-size: 10px; line-height: 1.4; color: var(--muted); }
.demo-note { text-align: center; color: #898d94; font-size: 10px; margin: 20px 0 0; }
.mobile-bottom-nav { display: flex; align-items: center; justify-content: space-around; position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; min-height: 68px; padding: 7px 5px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.bottom-nav-item { min-width: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #858991; font-size: 18px; }
.bottom-nav-item small { font-size: 9px; font-weight: 700; }
.bottom-nav-item.selected { color: var(--red); }
@media (min-width: 520px) {
  .main-content { padding: 28px 24px 42px; }
  .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .promo-banner { padding: 28px; }
  .promo-art { right: 24px; }
  .mobile-bottom-nav { display: none; }
}
@media (min-width: 900px) {
  .app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); }
  .desktop-sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 25px 16px 16px; background: var(--charcoal); color: white; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 5px 31px; }
  .brand-mark { width: 38px; height: 38px; font-size: 15px; }
  .brand-copy strong, .brand-copy small { display: block; }
  .brand-copy strong { font-size: 19px; letter-spacing: -.7px; }
  .brand-copy small { font-size: 7px; letter-spacing: .8px; color: #c5c7cb; margin-top: 3px; }
  .sidebar-label { color: #9b9da2; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; padding: 0 11px; margin-bottom: 10px; }
  .side-nav { display: grid; gap: 5px; }
  .nav-item { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 10px; color: #d5d6d9; font-size: 11px; font-weight: 600; }
  .nav-item span { width: 18px; font-size: 17px; text-align: center; }
  .nav-item:hover, .nav-item.active { color: white; background: var(--red); }
  .sidebar-help { margin-top: auto; background: #2c2d31; border: 1px solid #3b3c40; padding: 14px; border-radius: 13px; }
  .sidebar-help > span { color: #ffb7bb; font-size: 20px; }
  .sidebar-help strong { display: block; margin-top: 8px; font-size: 11px; }
  .sidebar-help p { color: #b9bbc0; font-size: 10px; line-height: 1.5; margin: 6px 0 0; }
  .sidebar-footer { color: #9b9da2; font-size: 9px; padding: 18px 5px 0; }
  .topbar { padding: 0 30px; height: 70px; }
  .mobile-menu-toggle, .mobile-brand { display: none; }
  .profile-text { display: block; }
  .main-content { padding: 32px 30px 50px; }
  .welcome-row { margin-bottom: 25px; }
  .notification-button { display: inline-flex; }
  .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .balance-card { padding: 21px; }
  .promo-banner { min-height: 230px; margin-top: 18px; }
  .promo-banner h2 { font-size: 32px; }
  .promo-art { transform: scale(1.15); transform-origin: bottom right; right: 55px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 145px; padding: 17px; }
  .service-title { font-size: 14px; }
  .service-description { font-size: 11px; }
}
@media (min-width: 1200px) {
  .main-content { padding-left: 42px; padding-right: 42px; }
  .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-block { margin-top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f6f8;color:#20232a}.auth-card{width:min(100%,440px);background:#fff;padding:30px;border-radius:18px;box-shadow:0 12px 40px rgba(20,20,30,.08)}.auth-card h1{font-size:28px;margin:16px 0 8px}.auth-card p{color:#6b7280}.auth-card form{display:grid;gap:10px;margin-top:22px}.auth-card label{font-weight:600;font-size:14px}.auth-card input,.form-grid input,.form-grid select{width:100%;padding:13px;border:1px solid #d9dde3;border-radius:9px;font:inherit;margin-top:5px}.btn-primary{border:0;border-radius:10px;background:#b30000;color:#fff;padding:14px 18px;font-weight:700;font:inherit;cursor:pointer}.brand-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#b30000;color:white;font-weight:900;font-size:22px}.brand-mark.small{width:34px;height:34px;font-size:15px;border-radius:9px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:800}.topbar{display:flex;justify-content:space-between;align-items:center;padding:16px clamp(16px,4vw,48px);background:#202126;color:#fff;gap:12px;flex-wrap:wrap}.topbar nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.topbar a{color:inherit}.dashboard{max-width:1100px;margin:32px auto;padding:0 18px}.eyebrow{font-size:12px;letter-spacing:1.5px;color:#b30000;font-weight:800}.muted{color:#737781}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.balance-card{background:#202126;color:#fff;padding:24px;border-radius:18px;margin:24px 0}.balance-card p{margin:0 0 12px}.balance-card strong{display:block;font-size:clamp(30px,6vw,44px)}.balance-card small{color:#c4c5cb}.cashback-card{background:#8d0000}.white-link{color:white;font-weight:700}.panel{background:#fff;border:1px solid #e8e9ed;border-radius:16px;padding:20px;margin:18px 0}.panel h2{font-size:19px;margin:0 0 16px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:12px;border-bottom:1px solid #eee;vertical-align:top}th{background:#fafafa}.notice{padding:12px 14px;border-radius:9px;margin:16px 0}.notice.warn{background:#fff8e5;color:#7a5200}.notice.ok{background:#eaf8ef;color:#17663a}.notice.bad,.alert{background:#fff0f0;color:#a00000!important;padding:12px;border-radius:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{font-weight:650;font-size:14px}.form-grid .full{grid-column:1/-1}.admin-action{min-width:230px;display:grid;gap:7px}.admin-action input{width:100%;padding:7px;border:1px solid #ddd;border-radius:6px}.action-row{display:flex;gap:5px;flex-wrap:wrap}.action-row button,.btn.small{background:#b30000;color:white;border:0;border-radius:7px;padding:7px 9px;font-weight:700;cursor:pointer}.action-row button.secondary,.btn.secondary{background:#eee;color:#222}@media(max-width:700px){.account-grid,.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.dashboard{margin:18px auto}.panel{padding:13px}table{min-width:760px}}
