:root {
  --red: #0b6b57;
  --red-dark: #12384d;
  --sand: #f0b429;
  --taupe: #d7e8e1;
  --text: #333333;
  --muted: #667085;
  --line: #e5e5e5;
  --light: #f7faf9;
  --footer: #12384d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1160px, calc(100% - 30px));
  margin: 0 auto;
}

.top-strip {
  background: #0b6b57;
  color: #ffffff;
  border-bottom: 1px solid #0b6b57;
  font-size: 13px;
}

.top-strip__inner {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip__right,
.top-strip nav,
.main-nav,
.nav-row {
  display: flex;
  align-items: center;
}

.top-strip__right {
  gap: 18px;
}

.top-strip nav {
  gap: 17px;
}

.internet-drop {
  display: flex;
  align-items: stretch;
  min-height: 39px;
  color: #ffffff;
  font-weight: 700;
}

.internet-drop span,
.internet-drop button {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0 15px;
  color: #ffffff;
}

.internet-drop span {
  background: #12384d;
}

.internet-drop button {
  background: #f0b429;
  color: #12384d;
}

.top-strip a:hover,
.main-nav a:hover,
.nav-row a:hover {
  color: var(--sand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  box-shadow: none;
}

.header-main {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 230px;
}

.brand img {
  width: 230px;
  height: auto;
  display: block;
}

.main-nav {
  justify-content: flex-end;
  gap: 15px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #ffffff;
  place-items: center;
  gap: 4px;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--red-dark);
}

.main-nav a {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b6b57;
  line-height: 1.15;
  text-align: center;
}

.main-nav a:hover {
  background: #f0b429;
  color: #12384d;
}

.red-rule {
  height: 0;
  background: transparent;
}

.nav-row {
  min-height: 45px;
  justify-content: center;
  gap: 0;
  background: #ffffff;
}

.nav-row a,
.nav-row button {
  min-height: 45px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid #ededed;
  background: #ffffff;
  padding: 0 36px;
  color: #4f4f4f;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-row button {
  background: #12384d;
  color: #ffffff;
}

.hero {
  min-height: 466px;
  background:
    linear-gradient(90deg, rgba(18, 56, 77, 0.84), rgba(18, 56, 77, 0.16)),
    url("/assets/slider-cards.png") center center/cover no-repeat;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  min-height: 466px;
  display: flex;
  align-items: center;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(45px, 6.8vw, 78px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.primary-button {
  min-height: 44px;
  border: 0;
  background: var(--red);
  color: #ffffff;
  padding: 0 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-button:hover {
  background: var(--red-dark);
}

.slider-arrow {
  width: 48px;
  height: 64px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0;
}

.slider-arrow::before {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.slider-arrow--left {
  left: 18px;
}

.slider-arrow--left::before {
  content: "<";
}

.slider-arrow--right {
  right: 18px;
}

.slider-arrow--right::before {
  content: ">";
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.slider-dots span {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.slider-dots span.is-active {
  background: #f0b429;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
  margin-top: -38px;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.18);
}

.quick-link {
  min-height: 78px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-link:nth-child(even) {
  background: #C8BEB3;
  color: #333333;
}

.quick-link--banking {
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: #333F48;
}

.quick-link--banking h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.quick-link--banking button {
  min-height: 30px;
  border: 0;
  background: var(--red);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-link--banking button:hover {
  background: #A39382;
}

.info-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 68px 0 54px;
}

.info-block h2,
.utility-band h2,
.side-menu h2,
.site-footer h2 {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
}

.info-block h3 {
  margin: 0 0 14px;
  color: #555555;
  font-size: 16px;
  font-weight: 700;
}

.info-block p {
  max-width: 380px;
  margin: 0;
  color: #777777;
  font-size: 16px;
}

.post-link {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.post-link strong {
  color: #333333;
  font-size: 15px;
}

.post-link span {
  color: #888888;
  font-size: 13px;
}

.utility-band {
  background: #f6f6f6;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  padding: 38px 0;
}

.utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.utility-grid p {
  margin: 0 0 13px;
  color: #666666;
}

.inline-form {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 10px;
}

.utility-grid section:last-child .inline-form {
  grid-template-columns: auto 1fr auto;
}

.form-step {
  min-height: 42px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #cccccc;
  color: #777777;
  padding: 0 12px;
}

.disclaimer {
  color: #888888;
  font-size: 12px;
}

.inline-form input,
.inline-form select,
.auth-form input {
  min-height: 42px;
  border: 1px solid #cccccc;
  background: #ffffff;
  padding: 0 11px;
  outline: none;
}

.inline-form button {
  min-height: 42px;
  border: 0;
  background: var(--red);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 700;
}

.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 62px 0 74px;
}

.portal-closed {
  padding-top: 0;
}

.portal-closed .auth-panel,
.portal-closed .side-menu {
  display: none;
}

.portal-layout.is-open {
  padding-top: 62px;
}

.portal-layout.is-open .auth-panel,
.portal-layout.is-open .side-menu {
  display: block;
}

.side-menu {
  align-self: start;
}

.side-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #555555;
  font-weight: 700;
}

.side-menu a:hover {
  color: var(--red);
}

.auth-panel {
  border: 1px solid #d5d5d5;
  background: #ffffff;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #d5d5d5;
}

.tab {
  min-height: 52px;
  border: 0;
  background: #f4f4f4;
  color: #555555;
  font-weight: 700;
  text-transform: uppercase;
}

.tab.is-active {
  background: var(--red);
  color: #ffffff;
}

.auth-form,
.dashboard {
  padding: 30px;
}

.auth-form h2,
.dashboard h2 {
  margin: 0 0 8px;
  color: #333333;
  font-size: 26px;
}

.form-note {
  margin: 0 0 22px;
  color: var(--muted);
}

.auth-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: #4d4d4d;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
}

.auth-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cccccc;
  background: #ffffff;
  padding: 0 11px;
  outline: none;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.auth-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.auth-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.14);
}

.auth-header .header-main {
  grid-template-columns: auto 1fr;
}

.auth-page {
  min-height: calc(100vh - 92px);
  background: #f6f6f6;
  padding: 56px 0 72px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.auth-copy {
  padding-top: 32px;
}

.auth-copy h1 {
  margin: 0 0 14px;
  color: #333333;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
}

.auth-copy p:last-child {
  max-width: 420px;
  margin: 0;
  color: #666666;
  font-size: 16px;
}

.auth-card {
  border: 1px solid #d5d5d5;
  background: #ffffff;
}

.auth-switch a,
.receipt-link {
  color: var(--red);
  font-weight: 800;
}

.loading-page,
.confirmation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f6f6f6;
  padding: 28px;
}

.loading-panel,
.receipt-card {
  width: min(560px, 100%);
  border: 1px solid #d5d5d5;
  background: #ffffff;
  padding: 34px;
  text-align: center;
}

.loading-brand,
.confirmation-brand {
  min-width: 0;
  justify-content: center;
  margin: 0 auto 28px;
}

.loading-brand img,
.confirmation-brand img {
  width: 210px;
}

.loading-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border: 4px solid #e1e1e1;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.loading-panel h1,
.receipt-card h1 {
  margin: 0 0 10px;
  color: #333333;
  font-size: 30px;
}

.loading-panel p {
  margin: 0;
  color: #666666;
  font-weight: 700;
}

.receipt-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0 0;
  text-align: left;
}

.receipt-details div {
  padding: 14px;
  background: #f7f7f7;
}

.receipt-details dt {
  color: #777777;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.receipt-details dd {
  margin: 5px 0 0;
  color: #333333;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.receipt-modal {
  padding: 22px;
}

.receipt-status {
  margin: 0;
  color: #14763c;
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media print {
  body > *:not(.modal-backdrop) {
    display: none !important;
  }

  .modal-backdrop,
  .modal {
    position: static;
    display: block;
    background: #ffffff;
    box-shadow: none;
    border: 0;
    padding: 0;
    max-height: none;
  }

  .modal-actions,
  .modal-close {
    display: none !important;
  }
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dashboard-head__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-head__actions .text-button {
  white-space: nowrap;
}

.dashboard-head__actions .primary-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.balance-box {
  margin: 28px 0;
  padding: 25px;
  background: #12384d;
  color: #ffffff;
}

.balance-box__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.balance-box__grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.balance-box__grid span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.balance-box__grid strong {
  font-size: 36px;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.balance-box__secondary {
  font-size: 30px !important;
  opacity: 0.88;
}

.balance-box__pending {
  font-size: 30px !important;
  color: #f7d7d7;
}

@media (max-width: 860px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-tx-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-tx-btn {
    min-height: 44px;
  }
}

.approval-strip {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: var(--light);
  color: #333333;
  font-weight: 700;
}

.account-note {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 4px solid #999;
  background: #f9f9f9;
  color: #555;
  font-size: 12px;
  font-style: italic;
}

.notification-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h3 {
  margin: 0;
  color: #333333;
  font-size: 18px;
}

.section-heading > span {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 800;
}

.notification-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.notification-item {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  background: #f7f7f7;
  border-left: 4px solid var(--red);
}

.notification-item span,
.notification-item small {
  color: #777777;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-item strong {
  color: #333333;
}

.notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.balance-box span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.balance-box strong {
  display: block;
  margin-top: 8px;
  font-size: 48px;
  line-height: 1;
}

.account-summary {
  margin-top: 18px;
}

.account-summary .account-details {
  margin-bottom: 12px;
}

.account-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 0;
}

.account-details div {
  padding: 16px;
  background: var(--light);
}

.account-details dt {
  color: #777777;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-details dd {
  margin: 6px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.banking-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(220px, 0.85fr) minmax(280px, 1.2fr);
  gap: 20px;
  margin-top: 24px;
}

.controls-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.controls-panel h3 {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 16px;
  text-transform: uppercase;
}

.controls-panel p {
  margin: 0;
  color: var(--muted);
}

.controls-panel form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.controls-panel label {
  display: grid;
  gap: 6px;
  color: #4d4d4d;
  font-weight: 700;
}

.controls-panel input,
.controls-panel select {
  min-height: 42px;
  border: 1px solid #cccccc;
  padding: 0 11px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  background: var(--red);
  color: #ffffff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.quick-action-btn:hover {
  background: var(--red-dark);
}

.quick-action-btn.is-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.quick-action-btn.is-outline:hover {
  background: var(--red);
  color: #ffffff;
}

.quick-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qa-icon {
  font-size: 16px;
  line-height: 1;
}

.money-actions,
.activity-panel,
.payee-panel {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 20px;
}

.money-actions h3,
.activity-panel h3,
.payee-panel h3 {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 18px;
  text-transform: uppercase;
}

.money-actions form,
.payee-panel form {
  display: grid;
  gap: 13px;
}

.money-actions label,
.payee-panel label {
  display: grid;
  gap: 6px;
  color: #4d4d4d;
  font-weight: 700;
}

.money-actions input,
.money-actions select,
.payee-panel input {
  min-height: 42px;
  border: 1px solid #cccccc;
  padding: 0 11px;
}

.transfer-fields {
  display: grid;
  gap: 13px;
  padding: 14px;
  background: #f7f7f7;
  border-left: 4px solid var(--red);
}

.payee-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.payee-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f7f7f7;
}

.payee-item strong,
.payee-item span {
  display: block;
}

.payee-item span {
  color: var(--muted);
  font-size: 12px;
}

.transaction-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #cfcfcf;
  background: #fafafa;
}

.empty-state strong {
  color: #333333;
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state-action {
  min-height: 34px;
  border: 1px solid var(--red);
  padding: 0 10px;
}

.tx-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tx-filter {
  min-height: 36px;
  border: 1px solid #cccccc;
  background: #ffffff;
  padding: 0 10px;
  color: #333333;
  font-size: 13px;
}

.tx-filter--search {
  flex: 1;
  min-width: 160px;
}

.tx-download {
  min-height: 36px;
  border: 1px solid var(--red);
  padding: 0 10px;
}
.transaction-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  background: #f7f7f7;
  border-left: 4px solid var(--red);
}

.tx-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-content: center;
}

.transaction-item strong,
.transaction-item span {
  display: block;
}

.transaction-item small {
  color: #777777;
}

.transaction-amount {
  font-weight: 800;
}

.transaction-amount.is-negative {
  color: #9c1b1b;
}

.transaction-amount.is-positive {
  color: #14763c;
}

.tx-remove-btn {
  background: transparent;
  border: 0;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.tx-remove-btn:hover {
  color: #9c1b1b;
}

.tx-remove-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 24px;
}

.legal-content h1 {
  margin: 0 0 8px;
  color: var(--red);
}

.legal-content h2 {
  margin: 22px 0 10px;
  color: #333333;
  font-size: 17px;
}

.legal-content p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #333333;
}

.status {
  min-height: 24px;
  margin: 0;
  padding: 0 30px 24px;
  color: var(--red-dark);
  font-weight: 700;
}

.status.is-success {
  color: #14763c;
}

.inline-result {
  min-height: 20px;
  margin: 10px 0 0;
  color: #333F48;
  font-weight: 700;
}

.is-hidden {
  display: none;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--red);
  text-transform: uppercase;
}

.modal-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--red-dark);
  font-weight: 700;
  font-size: 13px;
}

.modal form {
  padding: 22px 22px 12px;
  display: grid;
  gap: 13px;
}

.modal label {
  display: grid;
  gap: 6px;
  color: #4d4d4d;
  font-weight: 700;
}

.modal input,
.modal select {
  min-height: 44px;
  border: 1px solid #cccccc;
  background: #ffffff;
  padding: 0 11px;
  outline: none;
  font-size: 14px;
}

.modal-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal label.modal-check {
  min-height: 44px;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #cccccc;
  background: #f7f7f7;
  padding: 0 11px;
}

.modal-check input {
  min-height: auto;
}

.modal input:focus,
.modal select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.14);
}

.modal-secondary {
  min-height: 44px;
  border: 2px solid #cccccc;
  background: #ffffff;
  color: #333333;
  padding: 0 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 44px;
}

.site-footer {
  background: var(--footer);
  color: #d8d8d8;
  padding: 42px 0 20px;
}

.new-account-panel,
.security-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.new-account-panel h3,
.security-panel h3 {
  margin: 0 0 6px;
  color: #333333;
  font-size: 18px;
}

.new-account-panel p,
.security-panel p {
  margin: 0;
  color: var(--muted);
}

.card-preview {
  width: 240px;
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: #12384d;
  color: #ffffff;
  box-shadow: inset 0 -4px 0 rgba(240, 180, 41, 0.95);
}

.card-preview span,
.card-preview small {
  color: rgba(255, 255, 255, 0.78);
}

.card-preview strong {
  font-size: 17px;
  text-transform: uppercase;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.dashboard-metrics article {
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.dashboard-metrics span {
  display: block;
  color: #777777;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 7px;
  color: #333333;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.security-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.security-badges span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5d5d5;
  background: #ffffff;
  padding: 0 10px;
  color: #333333;
  font-weight: 800;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-height: 42px;
  border: 1px solid #cccccc;
  border-left: 0;
  background: #f7f7f7;
  color: #333333;
  padding: 0 12px;
  font-weight: 800;
}

.password-strength {
  height: 8px;
  overflow: hidden;
  background: #eeeeee;
}

.password-strength span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--red);
  transition: width 160ms ease;
}

.password-strength span[data-score="4"],
.password-strength span[data-score="5"] {
  background: #14763c;
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

.step-indicator span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #777777;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.step-indicator span.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.form-step-panel {
  display: none;
}

.form-step-panel.is-active {
  display: block;
}

.step-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}

.step-actions .text-button {
  min-height: 44px;
  border: 1px solid #cccccc;
  padding: 0 18px;
}

.step-actions .text-button:disabled {
  opacity: 0.45;
}

.review-panel .receipt-details {
  margin-top: 0;
}

.admin-page {
  padding: 56px 0 72px;
}

.admin-login,
.admin-dashboard,
.admin-panel {
  border: 1px solid #d5d5d5;
  background: #ffffff;
  padding: 28px;
}

.admin-login {
  width: min(520px, 100%);
}

.admin-login h1,
.admin-dashboard h1 {
  margin: 0 0 18px;
  color: #333333;
}

.admin-login form {
  display: grid;
  gap: 14px;
}

.admin-login label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.admin-login input {
  min-height: 42px;
  border: 1px solid #cccccc;
  padding: 0 11px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-panel h2 {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 18px;
  text-transform: uppercase;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f7f7f7;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  color: var(--muted);
  font-size: 12px;
}

.admin-search {
  min-height: 38px;
  width: min(260px, 100%);
  border: 1px solid #cccccc;
  padding: 0 11px;
}

.admin-filter {
  width: min(190px, 100%);
  background: #ffffff;
}

.audit-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dddddd;
}

.audit-list h4 {
  margin: 0;
  color: #333333;
  font-size: 13px;
  text-transform: uppercase;
}

.audit-list article,
.audit-mini {
  display: grid;
  gap: 3px;
}

.audit-list article {
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #e1e1e1;
}

.audit-list strong {
  color: #333333;
  font-size: 13px;
}

.audit-list span,
.audit-mini small {
  color: var(--muted);
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.1fr 0.82fr 1.2fr;
  gap: 24px;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 7px;
}

.site-footer h2 {
  margin-bottom: 12px;
}

.footer-grid a {
  color: #d8d8d8;
  font-size: 13px;
}

.group-sites {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cccccc;
  font-size: 12px;
}

.group-sites strong {
  display: inline-block;
  margin-right: 14px;
  color: var(--red);
}

.group-sites span {
  display: inline-block;
  margin: 0 11px 8px 0;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c8c8c8;
  font-size: 12px;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-action-btn {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.admin-tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-content: center;
}

.admin-tx-actions {
  display: flex;
  gap: 8px;
}

.admin-tx-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  color: #ffffff;
}

.admin-tx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tx-approve-btn {
  background: #14763c;
}

.tx-approve-btn:hover:not(:disabled) {
  background: #0f5a2d;
}

.tx-deny-btn {
  background: #9c1b1b;
}

.tx-deny-btn:hover:not(:disabled) {
  background: #7a1515;
}

.tx-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tx-status-pending {
  background: #fff3cd;
  color: #856404;
}

.tx-status-completed {
  background: #d4edda;
  color: #155724;
}

.tx-status-approved {
  background: #d1ecf1;
  color: #0c5460;
}

.tx-status-denied {
  background: #f8d7da;
  color: #721c24;
}

.tx-status-cancelled {
  background: #e2e3e5;
  color: #383d41;
}

.tx-status-reversed {
  background: #fff3cd;
  color: #856404;
}

.tx-status-default {
  background: #e2e3e5;
  color: #383d41;
}

.receipt-link.primary-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.status-check-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.status-check-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.status-check-form input {
  min-height: 42px;
  border: 1px solid #cccccc;
  padding: 0 11px;
}

.status-check-result {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .top-strip nav,
  .main-nav {
    display: none;
  }

  .header-main {
    min-height: 74px;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .site-header.is-menu-open .main-nav,
  .site-header.is-menu-open .nav-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 14px;
  }

  .site-header.is-menu-open .main-nav a,
  .site-header.is-menu-open .nav-row a,
  .site-header.is-menu-open .nav-row button {
    width: 100%;
    height: auto;
    min-height: 44px;
    border-radius: 0;
  }

  .nav-row {
    display: none;
  }

  .nav-row a,
  .nav-row button {
    min-width: 150px;
    padding: 0 18px;
  }

  .quick-links,
  .info-grid,
  .auth-shell,
  .utility-grid,
  .portal-layout,
  .controls-panel,
  .new-account-panel,
  .security-panel,
  .dashboard-metrics,
  .notification-list,
  .admin-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 0;
  }

  .hero__inner {
    justify-content: center;
  }

  .account-details {
    grid-template-columns: 1fr;
  }

  .banking-workspace {
    grid-template-columns: 1fr;
  }

  .card-preview {
    width: 100%;
  }

  .security-badges {
    justify-content: flex-start;
  }

  .auth-copy {
    padding-top: 0;
  }

  .auth-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .top-strip__inner,
  .dashboard-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-strip__right {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
  }

  .brand img {
    width: 185px;
  }

  .hero,
  .hero__inner {
    min-height: 360px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .utility-grid section:last-child .inline-form {
    grid-template-columns: 1fr;
  }

  .auth-form,
  .dashboard {
    padding: 18px;
  }

  .balance-box strong {
    font-size: 36px;
  }

  .quick-actions,
  .dashboard-head__actions,
  .controls-panel form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .quick-action-btn,
  .dashboard-head__actions .text-button,
  .controls-panel .primary-button,
  .primary-button {
    width: 100%;
    justify-content: center;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .auth-page,
  .loading-page,
  .confirmation-page {
    padding: 18px;
  }

  .loading-panel,
  .receipt-card {
    padding: 24px 18px;
  }

  .receipt-details {
    grid-template-columns: 1fr;
  }

  .step-indicator {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-actions {
    display: grid;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-tx-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-tx-btn {
    min-height: 44px;
  }
}

.balance-box__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.balance-box__secondary {
  font-size: 28px !important;
  opacity: 0.88;
}

.balance-box__pending {
  font-size: 28px !important;
  color: #f7d7d7;
}

.detail-row__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sensitive-toggle {
  min-height: auto;
  padding: 0;
  font-size: 12px;
}

.auth-security-footer {
  margin: 28px auto 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.auth-security-footer p {
  margin: 0 0 8px;
}

.transaction-item strong,
.transaction-item span,
.dashboard-metrics strong,
.balance-box strong {
  font-variant-numeric: tabular-nums;
}
