* { box-sizing: border-box; }
:root {
  --blue: #002664;
  --red: #d7193f;
  --soft: #f4f6f9;
  --line: #dbe2ec;
  --text: #111827;
  --muted: #637083;
  --card: #fff;
}
body { margin: 0; min-height: 100vh; background: var(--soft); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
.app { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 34px; }
.brand { display: block; color: var(--blue); font-size: 20px; letter-spacing: .2px; }
.brand-subtitle { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.private-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; color: #1f2937; }
.private-pill::before { content: "🔒 "; font-size: 12px; }
.login-view { display: grid; grid-template-columns: 370px 1fr; gap: 34px; align-items: stretch; }
.login-card, .info-panel, .soft-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 34px rgba(15,23,42,.08); }
.login-card { padding: 28px 26px; }
.login-card h1 { margin: 0 0 10px; color: var(--blue); font-size: 28px; line-height: 1.1; }
.login-card p { margin: 0 0 22px; color: #344054; font-size: 14px; line-height: 1.5; }
.login-card form { display: grid; gap: 12px; }
.login-card label, .label-row label { color: #111827; font-size: 13px; font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.link-button { border: 0; background: transparent; color: #0057b8; padding: 0; cursor: pointer; font-size: 13px; }
.login-card input[type="text"], .login-card input[type="password"] { height: 39px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 0 12px; background: #fff; }
.check-row { display: flex; gap: 10px; align-items: center; color: #344054; font-weight: 400 !important; margin: 2px 0 8px; }
.check-row input { width: 14px; height: 14px; }
.primary-action { border: 0; border-radius: 8px; background: var(--red); color: #fff; font-weight: 800; min-height: 40px; cursor: pointer; }
.form-message { min-height: 22px; color: #b42318; font-size: 13px; }
.form-message.success { color: #087a4a; }
.info-panel { overflow: hidden; min-height: 520px; }
.hero-band { background: linear-gradient(135deg, #07377c, #db163f); color: #fff; padding: 28px 30px; }
.hero-band h2 { margin: 0 0 10px; font-size: 29px; line-height: 1.08; max-width: 600px; }
.hero-band p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 620px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; }
.info-grid article { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fbfdff; }
.info-grid span { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.info-grid h3 { color: var(--blue); margin: 10px 0 8px; font-size: 17px; }
.info-grid p { color: var(--muted); margin: 0; line-height: 1.45; font-size: 13px; }
.is-hidden { display: none !important; }
.dashboard { padding-bottom: 50px; }
.app-nav { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 10px 25px rgba(15,23,42,.08); padding: 18px 24px 0; margin-bottom: 28px; }
.app-nav strong { display: block; color: var(--blue); font-size: 24px; }
.app-nav span { color: var(--muted); font-size: 13px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; border-top: 1px solid #eef2f7; }
.nav-links button { border: 0; background: transparent; padding: 14px 0; cursor: pointer; color: #3f4652; font-weight: 700; border-bottom: 3px solid transparent; }
.nav-links button.active { color: #a41034; border-bottom-color: var(--red); }
.badge { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; background: #0b66c3; color: #fff; border-radius: 999px; font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.summary-grid article { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.summary-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.summary-grid strong { color: var(--blue); font-size: 18px; }
.section { display: none; }
.section.active { display: block; }
.panel-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-card, .account-card, .appointment, .quick-actions, .money-card, .activity-card, .movements-card { padding: 0; overflow: hidden; }
.row-link { width: 100%; border: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid #edf1f5; text-align: left; cursor: pointer; }
.row-link strong { color: #111827; font-size: 16px; }
.row-link small { display: block; margin-top: 4px; color: var(--muted); }
.row-link span { color: #a8b0bd; font-size: 28px; }
.account-card h2 { margin: 0; background: linear-gradient(135deg, #b5122d, #d7193f); color: #fff; padding: 13px 18px; font-size: 20px; }
.account-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #edf1f5; }
.account-body span { color: var(--muted); font-size: 13px; grid-column: 1 / 2; }
.account-body strong { color: #050505; font-size: 22px; grid-column: 1 / 2; }
.account-body button { grid-row: 1 / 3; grid-column: 2; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; background: #f1f3f7; }
.open-account { width: 100%; border: 0; background: #fff; color: #005b83; font-weight: 800; padding: 13px; cursor: pointer; }
.appointment { padding: 20px; cursor: pointer; }
.appointment span { color: var(--muted); font-size: 12px; }
.appointment strong { display: block; font-size: 18px; margin-top: 4px; }
.appointment small { color: var(--muted); }
.quick-actions { padding: 18px; }
.quick-actions h3, .money-card h3, .activity-card h3, .movements-card h3 { margin: 0 0 12px; color: var(--blue); }
.quick-actions button { width: 100%; display: flex; justify-content: space-between; border: 0; background: #fff; padding: 13px 0; border-bottom: 1px solid #edf1f5; cursor: pointer; }
.promo-card { background: #ed173f; color: #fff; border-radius: 10px; padding: 34px 20px; text-align: center; box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.promo-card h2 { margin: 0 0 12px; font-weight: 400; }
.promo-card button { border: 0; background: transparent; color: #fff; text-decoration: underline; cursor: pointer; }
.money-card, .activity-card, .movements-card { padding: 18px; }
.money-card p { color: var(--muted); line-height: 1.45; margin: 0; }
.mini-box { border: 1px solid var(--line); border-radius: 9px; padding: 13px; margin-top: 10px; }
.mini-box strong { display: block; color: var(--blue); margin-bottom: 6px; }
.mini-box span { color: #536076; font-size: 13px; }
.movements-card { grid-column: 1 / -1; }
.movement-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid #edf1f5; }
.movement-row strong { display: block; }
.movement-row span { color: var(--muted); font-size: 13px; }
.movement-row .amount { color: #087a4a; font-weight: 800; white-space: nowrap; }
.soft-card { padding: 22px; margin-bottom: 18px; }
.soft-card h2 { margin: 0 0 14px; color: var(--blue); }
.action-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.action-form input, .action-form textarea, .action-form select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 12px; min-height: 42px; }
.action-form textarea { grid-column: 1 / -1; min-height: 90px; resize: vertical; }
.action-form button { grid-column: 1 / -1; border: 0; border-radius: 8px; background: var(--blue); color: #fff; min-height: 42px; font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 12px; border-bottom: 1px solid #edf1f5; text-align: left; white-space: nowrap; }
th { background: #f3f4f6; font-weight: 800; }
.status { display: inline-block; background: #dcfce7; color: #087a4a; border-radius: 999px; padding: 4px 9px; font-weight: 800; font-size: 12px; }
.admin-list { display: grid; gap: 12px; }
.admin-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.admin-card strong { color: var(--blue); display: block; margin-bottom: 6px; }
@media (max-width: 900px) {
  .app { width: min(430px, 100%); }
  .topbar { padding: 18px; }
  .private-pill { display: none; }
  .login-view { display: block; padding: 0 18px 28px; }
  .login-card { margin-bottom: 22px; }
  .info-panel { min-height: 0; }
  .hero-band h2 { font-size: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .summary-grid, .panel-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .app-nav { margin: 0 0 20px; border-radius: 0 0 14px 14px; }
  .nav-links { gap: 14px; overflow-x: auto; flex-wrap: nowrap; }
  .nav-links button { white-space: nowrap; }
  .account-body strong { font-size: 20px; }
  .soft-card { margin-left: 16px; margin-right: 16px; }
  .action-form { grid-template-columns: 1fr; }
}
