:root {
  --red: #b5162d;
  --deep-red: #8e1023;
  --gold: #d5aa46;
  --ink: #222;
  --muted: #666;
  --line: #d9d9d9;
  --panel: #f3f3f3;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; color: var(--ink); }
a { color: #285f8f; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.22); position: relative; z-index: 3; }
.topbar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; }
.brand img { width: 245px; display: block; }
.utility-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.utility-nav a { color: #333; }
.search-box { display: flex; border: 1px solid #999; height: 34px; background: #fff; }
.search-box input { border: 0; width: 150px; padding: 0 10px; outline: none; }
.search-box button { width: 38px; border: 0; background: #f3f3f3; cursor: pointer; font-size: 19px; }
.gold-line { height: 5px; background: var(--gold); }
.main-nav { height: 49px; display: flex; justify-content: center; align-items: center; gap: 58px; border-bottom: 1px solid #c8c8c8; }
.main-nav a { color: #333; font-size: 15px; }
.hero-login { min-height: 590px; background: url('assets/hero.svg') center/cover no-repeat; display: flex; align-items: center; padding: 42px 0 42px 12vw; }
.login-card { width: 390px; background: rgba(255,255,255,.97); padding: 34px 38px 30px; box-shadow: 0 4px 18px rgba(0,0,0,.34); }
.login-card h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: normal; }
.subtitle { margin: 6px 0 24px; color: #555; }
.login-card label:not(.remember-row) { display: block; margin: 15px 0 7px; font-size: 14px; color: #3f3f3f; }
.login-card input[type='text'], .login-card input[type='password'] { width: 100%; height: 48px; border: 1px solid #888; border-radius: 2px; padding: 0 13px; font-size: 17px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 68px !important; }
.show-btn { position: absolute; right: 1px; top: 1px; height: 46px; width: 62px; border: 0; background: #f2f2f2; color: #285f8f; cursor: pointer; }
.remember-row { display: flex; gap: 9px; align-items: center; margin: 16px 0; font-size: 14px; }
.primary-btn { width: 100%; height: 46px; border: 0; background: var(--red); color: white; font-size: 17px; font-weight: bold; cursor: pointer; }
.primary-btn:hover { background: var(--deep-red); }
.login-error { min-height: 20px; color: #b00020; font-size: 13px; margin: 0 0 8px; }
.login-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; }
.help-strip { display: grid; grid-template-columns: 1fr 1fr; max-width: 1120px; margin: 0 auto; padding: 32px 24px; border-bottom: 1px solid #d0d0d0; }
.help-strip > div { padding: 5px 45px; }
.help-strip > div + div { border-left: 1px solid #ccc; }
.help-strip h2 { margin: 0 0 10px; font: normal 22px Georgia, serif; }
.site-footer { background: #f2f2f2; padding: 28px 5vw 34px; text-align: center; color: #555; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 18px; }
.footer-links a { color: #444; }
.fictional-note { margin-top: 8px; font-size: 11px; color: #777; }

.dashboard-page { background: #fff; }
.dashboard-nav { justify-content: flex-start; padding-left: 7vw; gap: 48px; }
.dashboard-nav a.active { color: var(--red); font-weight: bold; }
.dashboard-shell { display: grid; grid-template-columns: minmax(0,1fr) 315px; max-width: 1240px; margin: 28px auto 60px; border: 1px solid #cfcfcf; }
.dashboard-main { padding: 26px 28px 36px; }
.page-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.page-title-row h1 { margin: 0 0 5px; font: normal 31px Georgia, serif; }
.page-title-row p { margin: 0; color: #666; }
.print-btn { background: #fff; border: 1px solid #999; padding: 8px 18px; cursor: pointer; }
.account-card { border: 1px solid #bbb; margin-top: 16px; background: white; }
.account-head { min-height: 92px; display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; }
.account-head h2 { margin: 0 0 7px; font-size: 20px; color: #285f8f; font-weight: normal; }
.account-head p { margin: 0; color: #777; font-size: 13px; }
.balance-block { text-align: right; }
.balance-block span, .balance-block small { display: block; color: #666; font-size: 12px; margin-bottom: 4px; }
.balance-block strong { display: block; font-size: 23px; font-weight: normal; }
.account-actions { display: flex; gap: 24px; padding: 12px 22px; background: #f3f3f3; border-top: 1px solid #ddd; font-size: 13px; flex-wrap: wrap; }
.activity-table-wrap { overflow-x: auto; }
.activity-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.activity-table th, .activity-table td { padding: 11px 14px; border-top: 1px solid #e1e1e1; text-align: left; }
.activity-table th { background: #fafafa; color: #555; }
.activity-table th:nth-child(3), .activity-table th:nth-child(4), .activity-table td:nth-child(3), .activity-table td:nth-child(4) { text-align: right; }
.positive { color: #237232; }
.profile-panel { background: #eeeeee; border-left: 1px solid #cfcfcf; }
.welcome-box { background: #dedede; padding: 24px; border-bottom: 1px solid #c7c7c7; }
.welcome-box h2 { margin: 0 0 10px; font: normal 24px Georgia, serif; }
.welcome-box p { margin: 0; font-size: 12px; color: #5f5f5f; line-height: 1.5; }
.side-section { padding: 22px 24px; border-bottom: 1px solid #cfcfcf; }
.side-section h3 { margin: 0 0 14px; font: normal 19px Georgia, serif; }
.side-section a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.side-section a span { background: var(--red); color: white; border-radius: 12px; min-width: 22px; text-align: center; padding: 2px 6px; }
.rewards strong { display: block; font-size: 21px; margin-bottom: 8px; font-weight: normal; }
.dashboard-footer { text-align: left; padding-left: 7vw; }
.dashboard-footer .footer-links { justify-content: flex-start; }

@media (max-width: 900px) {
  .topbar { padding: 14px 18px; flex-direction: column; gap: 14px; }
  .utility-nav { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
  .main-nav { overflow-x: auto; justify-content: flex-start; padding: 0 18px; gap: 28px; white-space: nowrap; }
  .hero-login { padding: 35px 18px; justify-content: center; }
  .login-card { width: min(100%, 390px); }
  .dashboard-shell { grid-template-columns: 1fr; margin: 18px; }
  .profile-panel { border-left: 0; border-top: 1px solid #cfcfcf; }
}
@media (max-width: 560px) {
  .brand img { width: 210px; }
  .search-box { width: 100%; }
  .search-box input { flex: 1; width: auto; }
  .help-strip { grid-template-columns: 1fr; }
  .help-strip > div { padding: 18px 5px; }
  .help-strip > div + div { border-left: 0; border-top: 1px solid #ccc; }
  .login-links { flex-direction: column; gap: 10px; }
  .dashboard-main { padding: 20px 14px; }
  .account-head { align-items: flex-start; gap: 18px; }
  .balance-block strong { font-size: 20px; }
}


/* Transfer & Pay */
.transfer-shell { min-height: 620px; }
.transfer-tabs { display: flex; border-bottom: 1px solid #bbb; margin: 4px 0 24px; gap: 0; }
.transfer-tab { border: 0; border-bottom: 3px solid transparent; background: #f3f3f3; padding: 13px 22px; color: #333; font-size: 14px; cursor: pointer; }
.transfer-tab.active { background: #fff; color: var(--red); border-bottom-color: var(--red); font-weight: bold; }
.transfer-panel { display: none; }
.transfer-panel.active { display: block; }
.transfer-panel h2 { margin: 0 0 5px; font: normal 24px Georgia, serif; }
.panel-intro { margin: 0 0 22px; color: #666; font-size: 14px; }
.transfer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 760px; }
.transfer-form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #444; }
.transfer-form-grid select, .transfer-form-grid input { width: 100%; height: 42px; border: 1px solid #999; background: #fff; padding: 0 11px; font: inherit; color: #222; }
.transfer-form-grid .full-row { grid-column: 1 / -1; }
.money-input { display: flex; align-items: center; border: 1px solid #999; background: #fff; height: 42px; }
.money-input span { padding-left: 11px; color: #555; }
.money-input input { border: 0; height: 40px; outline: none; }
.restriction-message { display: none; max-width: 760px; margin-top: 22px; padding: 14px 16px; border: 1px solid #b5162d; background: #fff4f5; color: #7e0e20; font-size: 14px; line-height: 1.45; }
.restriction-message.show { display: block; }
.form-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.transfer-primary { width: auto; min-width: 130px; padding: 0 24px; }
@media (max-width: 650px) { .transfer-form-grid { grid-template-columns: 1fr; } .transfer-form-grid .full-row { grid-column: auto; } .transfer-tabs { flex-direction: column; } }
