:root {
  --sky-blue: #6fc7eb;
  --header-blue: #5cc2ea;
  --deep-blue: #0f5d92;
  --mid-blue: #0a3d6d;
  --card-bg: #eef5f7;
  --panel-bg: rgba(255, 255, 255, 0.76);
  --panel-line: rgba(26, 62, 98, 0.14);
  --soft-text: #4a6279;
  --text: #1b2c3d;
  --shadow: rgba(17, 39, 66, 0.18);
  --muted: #7189a5;
  --button-blue: #0c7bc3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #dfeff4;
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background: #edf8fe;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.8rem, calc((100% - 1580px) / 2));
  background: linear-gradient(180deg, #5abfe6 0%, #5abfe6 100%);
  min-height: 90px;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  font-size: 2.3rem;
  text-shadow: none;
  transform: scaleX(1.1);
  transform-origin: left center;
}

.brand-text {
  color: #075f9b;
}

.brand-mark {
  color: #e61d2a;
  transform: translateY(-0.12em);
  font-size: 0.82em;
  display: inline-block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.notify-button {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  box-shadow: none;
  padding: 0;
}

.notify-button svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: #073f6c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flag-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(22, 84, 130, 0.15);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 33rem;
  background-image: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 53, 73, 0.10), rgba(18, 53, 73, 0.18));
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(35.2rem, calc(100% - 2rem));
  min-height: 17.6rem;
  margin: 6.3rem 0 0 15.36%;
  background: rgba(242, 243, 245, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
  box-shadow: 0 10px 18px rgba(18, 50, 70, 0.08);
  padding: 1rem 1.75rem 1.25rem;
  backdrop-filter: blur(3px);
}

.panel-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(14, 46, 65, 0.82);
  margin-bottom: 1.1rem;
  padding: 0.35rem 2rem 0;
  font-weight: 500;
}

.download-mark {
  position: absolute;
  right: 0.3rem;
  top: -0.2rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.05);
  transform: rotate(5deg);
  border: 1px solid rgba(20, 80, 120, 0.08);
}

.download-mark svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: #0d6bb1;
}

.field-label {
  display: block;
  color: rgba(41, 61, 75, 0.92);
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 400;
  margin: 1.1rem 0 0.2rem;
  letter-spacing: -0.04em;
}

#username,
#password {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(53, 128, 188, 0.55);
  border-radius: 0;
  padding: 0.25rem 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  box-shadow: none;
}

#username:focus,
#password:focus {
  border-color: rgba(11, 119, 196, 0.9);
  box-shadow: none;
}

#login-password-field[hidden],
#change-username[hidden],
#login-error[hidden] {
  display: none;
}

.login-change-username {
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  color: #1a6aa5;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.login-error {
  margin: 0.55rem 0 0;
  color: #a34444;
  font-size: 0.78rem;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
}

.panel-footer a {
  font-size: 1rem;
  color: #1a6aa5;
  font-weight: 400;
}

.panel-footer button {
  border: 0;
  background: rgba(228, 232, 236, 0.82);
  color: rgba(28, 78, 117, 0.96);
  padding: 0.95rem 2rem;
  min-width: 16rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 400;
  min-height: 3.55rem;
  box-shadow: inset 0 0 0 1px rgba(20, 84, 122, 0.08);
  cursor: pointer;
}

.register-link {
  margin-top: 1.25rem;
  text-align: left;
  font-size: 1rem;
  color: rgba(34, 52, 68, 0.8);
  font-weight: 400;
}

.register-link a {
  color: #1677bb;
  font-weight: 600;
}

.quick-links {
  position: relative;
  z-index: 2;
  width: min(88.5rem, calc(100% - 4rem));
  margin: -2.8rem auto 0;
  background: #ffffff;
  border-radius: 0.65rem;
  border: 1px solid rgba(20, 98, 145, 0.08);
  box-shadow: 0 24px 36px rgba(19, 80, 117, 0.12);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 10.75rem));
  justify-content: center;
  gap: 0.2rem;
  padding: 1.5rem 1rem 1.45rem;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(20, 52, 75, 0.86);
  padding: 0.8rem 0.5rem;
  text-align: center;
}

.icon-box {
  position: relative;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #116da5;
}

.icon-box::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #dcefff;
  content: "";
}

.icon-box svg {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-link-item span {
  font-size: 0.88rem;
  font-weight: 400;
}

.offers {
  display: block;
  width: min(88.5rem, calc(100% - 4rem));
  margin: 3.3rem auto 0;
  padding-bottom: 2.2rem;
}

.offers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.offers-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  color: #1a2437;
  letter-spacing: -0.05em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-controls button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(22, 94, 140, 0.18);
  background: rgba(255, 255, 255, 0.22);
  color: #174b74;
  font-size: 2.1rem;
  line-height: 0.9;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.offer-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 14px 25px rgba(31, 66, 95, 0.08);
  border: 1px solid rgba(20, 81, 116, 0.08);
}

.offer-image {
  position: relative;
  min-height: 14.8rem;
  background-size: cover;
  background-position: center;
}

.image-one {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.32)), url("https://images.unsplash.com/photo-1527631746610-bca00a040d60?auto=format&fit=crop&w=900&q=80");
}

.image-two {
  background-image: linear-gradient(180deg, rgba(9, 90, 146, 0.12), rgba(5, 59, 76, 0.32)), url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=900&q=80");
}

.image-three {
  background-image: linear-gradient(180deg, rgba(9, 90, 146, 0.12), rgba(5, 59, 76, 0.28)), url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=80");
}

.image-four {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.2)), url("https://images.unsplash.com/photo-1504593811423-6dd665756598?auto=format&fit=crop&w=900&q=80");
}

.image-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.offer-floating {
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
}

.offer-floating.center {
  inset: 0;
  display: grid;
  place-items: center;
}

.circle-rate {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(45, 166, 226, 0.78);
  border: 0.2rem solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(8, 71, 107, 0.2);
}

.circle-rate strong {
  font-size: 1.9rem;
  line-height: 1;
}

.circle-rate.small {
  width: 7rem;
  height: 7rem;
  font-size: 0.7rem;
  background: rgba(32, 151, 215, 0.72);
}

.card-copy {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 0.9rem 1.2rem;
}

.card-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(34, 50, 67, 0.8);
}

.card-copy p span {
  color: rgba(24, 87, 126, 0.82);
  font-weight: 700;
}

.site-footer {
  display: block;
  width: min(78rem, calc(100% - 3.5rem));
  margin: 0 auto;
  padding: 1.8rem 0 2.5rem;
  border-top: 1px solid rgba(18, 90, 129, 0.15);
}

.security-note {
  margin: 0;
  color: rgba(54, 71, 82, 0.8);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.96rem;
  color: rgba(26, 50, 67, 0.8);
}

.legal-links a {
  color: rgba(19, 56, 80, 0.9);
}

.badge-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mini-badge {
  min-width: 7rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #f2a41a, #e7601d);
  color: white;
  border-radius: 0.7rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 20px rgba(233, 121, 33, 0.22);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: #0f6aa6;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.social-links svg rect,
.social-links svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links svg .social-dot {
  fill: currentColor;
  stroke: none;
}

.copyright {
  margin-top: 1.55rem;
  text-align: left;
  color: rgba(58, 75, 86, 0.78);
  font-size: 0.9rem;
}

.is-authenticated {
  background: #f4f7fb;
}

.is-authenticated .page-shell > .topbar {
  display: none;
}

.bank-dashboard {
  min-height: 100vh;
  background: #f4f7fb;
  color: #172b43;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 max(1.5rem, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e7edf3;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #075f9b;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.09em;
}

.dashboard-brand i {
  width: 0.75rem;
  height: 0.75rem;
  background: #e52d38;
  transform: rotate(45deg);
}

.dashboard-header-tools,
.profile-button {
  display: flex;
  align-items: center;
}

.dashboard-header-tools {
  gap: 1.35rem;
}

.demo-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #537087;
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-indicator span,
.card-available i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #14a879;
}

.dashboard-icon-button {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e4ebf2;
  border-radius: 50%;
  color: #34526c;
  background: #fff;
  cursor: pointer;
}

.dashboard-icon-button b {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 1rem;
  color: #fff;
  background: #e64850;
  font-size: 0.62rem;
  line-height: 1rem;
}

.dashboard-icon-button .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.profile-button {
  gap: 0.6rem;
  border: 0;
  color: #304960;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-button > span:first-child {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #075f9b;
  background: #e4f4fb;
  font-size: 0.9rem;
}

.profile-chevron {
  width: 0.85rem;
  height: 0.85rem;
}

.dashboard-layout {
  width: min(1440px, 100%);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 2rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e7edf3;
}

.sidebar-caption {
  margin: 0 0 0.8rem 0.75rem;
  color: #91a1b1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sidebar-caption-spaced {
  margin-top: 2rem;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 0.3rem;
}

.sidebar-link {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  border-radius: 0.55rem;
  color: #5c7083;
  background: transparent;
  font-size: 0.81rem;
  text-align: left;
  cursor: pointer;
}

.sidebar-link > .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #64839c;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: #075f9b;
  background: #eaf5fb;
}

.sidebar-link.is-active {
  font-weight: 700;
}

.sidebar-link.is-active > .ui-icon {
  color: #0874b8;
}

.sidebar-logout {
  width: 100%;
}

.sidebar-security {
  margin-top: auto;
  padding: 0.9rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.65rem;
  background: #f1f8f5;
}

.sidebar-security > span {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17895f;
  background: #d8f1e6;
  font-size: 0.8rem;
  font-weight: 700;
}

.sidebar-security > span .ui-icon {
  width: 1rem;
  height: 1rem;
}

.sidebar-security div,
.sidebar-security small {
  display: block;
}

.sidebar-security strong {
  color: #355a4d;
  font-size: 0.68rem;
}

.sidebar-security small {
  margin-top: 0.15rem;
  color: #7d978b;
  font-size: 0.6rem;
}

.dashboard-content {
  min-width: 0;
  padding: 1.6rem clamp(1.2rem, 3vw, 2.6rem) 1rem;
}

.dashboard-demo-note {
  margin-bottom: 1.5rem;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #dcecf6;
  border-radius: 0.6rem;
  color: #55748a;
  background: #eff8fc;
  font-size: 0.7rem;
}

.dashboard-demo-note strong {
  flex: 0 0 auto;
  color: #176c9f;
}

.dashboard-welcome {
  margin: 0 0 1.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-eyebrow {
  margin: 0 0 0.5rem;
  color: #2180b5;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.dashboard-welcome h1 {
  margin: 0;
  color: #1a3048;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.dashboard-welcome > div > p:last-child {
  margin: 0.45rem 0 0;
  color: #8493a2;
  font-size: 0.83rem;
}

.dashboard-date {
  padding: 0.65rem 0.8rem;
  border: 1px solid #e1e9f0;
  border-radius: 0.55rem;
  color: #60758a;
  background: #fff;
  font-size: 0.7rem;
}

.dashboard-date > .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.3rem;
  color: #3785b4;
}

.balance-overview {
  min-height: 140px;
  margin-bottom: 1.65rem;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 0.9rem;
  color: #fff;
  background: linear-gradient(112deg, #075d96, #087db4 67%, #20a5c9);
  box-shadow: 0 12px 25px rgba(5, 92, 143, 0.16);
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.balance-label button {
  padding: 0.05rem;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
}

.balance-label button .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.total-balance {
  margin: 0.5rem 0 0.2rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.balance-caption,
.balance-change small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
}

.balance-change {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.balance-change > span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b8f1d9;
  background: rgba(255, 255, 255, 0.14);
}

.balance-change > span .ui-icon {
  width: 1rem;
  height: 1rem;
}

.balance-change strong,
.balance-change small {
  display: block;
}

.balance-change strong {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.balance-link {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.balance-link > .ui-icon,
.section-heading > a > .ui-icon,
.dashboard-support > a > .ui-icon {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.25rem;
  vertical-align: -0.15rem;
}

.dashboard-section {
  margin: 0 0 1.7rem;
  scroll-margin-top: 90px;
}

.section-heading {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.section-heading h2 {
  margin: 0;
  color: #1c334c;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0.28rem 0 0;
  color: #8a98a7;
  font-size: 0.7rem;
}

.section-heading > a,
.dashboard-support > a {
  color: #0876b3;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.action-card {
  position: relative;
  min-height: 115px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e6edf3;
  border-radius: 0.7rem;
  color: #1f354c;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: #b6d8eb;
  box-shadow: 0 8px 20px rgba(20, 62, 96, 0.07);
}

.action-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
}

.action-icon > .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.action-blue { color: #0876b3; background: #e8f5fc; }
.action-violet { color: #7b65bd; background: #f1edfb; }
.action-orange { color: #d47c30; background: #fff2e6; }
.action-green { color: #258d69; background: #e8f6f0; }

.action-card strong {
  font-size: 0.74rem;
  font-weight: 650;
}

.action-card small {
  margin-top: 0.25rem;
  color: #8a98a7;
  font-size: 0.62rem;
}

.action-arrow {
  position: absolute;
  top: 0.95rem;
  right: 0.9rem;
  color: #91a5b6;
  display: grid;
  place-items: center;
}

.action-arrow > .ui-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.account-card {
  padding: 1rem 1.1rem;
  border: 1px solid #e5edf3;
  border-radius: 0.75rem;
  background: #fff;
}

.account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-symbol {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  color: #fff;
  background: #0876b3;
  font-weight: 800;
}

.account-symbol > .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.savings-symbol {
  color: #16865e;
  background: #e6f5ee;
}

.account-status {
  color: #228562;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.account-type {
  margin: 0.7rem 0 0.2rem;
  color: #8494a3;
  font-size: 0.66rem;
}

.account-card h3 {
  margin: 0;
  color: #21384f;
  font-size: 0.86rem;
}

.account-number {
  margin: 0.42rem 0 0.85rem;
  color: #8291a0;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.copy-account {
  padding: 0 0.25rem;
  border: 0;
  color: #7091a9;
  background: transparent;
  cursor: pointer;
}

.copy-account > .ui-icon {
  width: 0.85rem;
  height: 0.85rem;
  vertical-align: middle;
}

.account-card-bottom {
  padding-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid #edf1f5;
}

.account-card-bottom small,
.account-card-bottom strong {
  display: block;
}

.account-card-bottom small {
  margin-bottom: 0.3rem;
  color: #93a1ae;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.account-card-bottom strong {
  color: #1d354c;
  font-size: 1.05rem;
}

.account-arrow {
  color: #2a83b6;
  display: grid;
  place-items: center;
}

.account-arrow > .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.dashboard-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.2rem;
}

.debit-card {
  min-height: 152px;
  padding: 1rem 1.15rem;
  overflow: hidden;
  border-radius: 0.8rem;
  color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(57, 170, 210, 0.56), transparent 38%), linear-gradient(130deg, #073e70, #087eae);
  box-shadow: 0 10px 20px rgba(3, 70, 109, 0.14);
}

.debit-card-top,
.debit-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.debit-card-top {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.debit-card-top span:last-child {
  font-style: italic;
}

.chip-mark {
  width: 1.8rem;
  height: 1.3rem;
  margin-top: 0.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.chip-mark > .ui-icon {
  width: 1.35rem;
  height: 0.95rem;
  stroke-width: 1.35;
}

.debit-card-number {
  margin: 0.55rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.11em;
}

.debit-card-bottom {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
}

.card-available {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-available > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #648071;
  font-size: 0.65rem;
}

.card-available i {
  width: 0.42rem;
  height: 0.42rem;
  display: inline-block;
}

.card-available i.is-frozen {
  background: #e5903c;
}

.card-available button {
  border: 0;
  color: #0876b3;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
}

.upcoming-payment {
  min-height: 51px;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid #eaf0f4;
}

.upcoming-payment:last-child {
  border-bottom: 0;
}

.bill-avatar {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  color: #287eaa;
  background: #e9f4fa;
}

.bill-avatar > .ui-icon {
  width: 1rem;
  height: 1rem;
}

.bill-mobile { color: #806db8; background: #f0edfa; }
.bill-electric { color: #bd812b; background: #fff3e5; }

.upcoming-payment div {
  min-width: 0;
  flex: 1;
}

.upcoming-payment strong,
.upcoming-payment small {
  display: block;
}

.upcoming-payment strong {
  color: #30465a;
  font-size: 0.68rem;
}

.upcoming-payment small {
  margin-top: 0.2rem;
  color: #8e9ba8;
  font-size: 0.6rem;
}

.upcoming-payment b {
  color: #3b5064;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.activity-section {
  padding: 1rem 1.05rem 0.5rem;
  border: 1px solid #e5edf3;
  border-radius: 0.75rem;
  background: #fff;
}

.activity-toolbar {
  margin: 0.8rem 0;
  display: flex;
  gap: 0.55rem;
}

.transaction-search {
  min-height: 2.25rem;
  flex: 1;
  padding: 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5ebf1;
  border-radius: 0.45rem;
  color: #8397a8;
}

.transaction-search > .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: #8397a8;
}

.transaction-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #334b60;
  background: transparent;
  font-size: 0.67rem;
}

.filter-button {
  padding: 0 0.7rem;
  border: 1px solid #e5ebf1;
  border-radius: 0.45rem;
  color: #60758a;
  background: #fff;
  font-size: 0.65rem;
}

.filter-button > .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.35rem;
  vertical-align: -0.2rem;
}

.filter-button > .filter-chevron {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
}

.transaction-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.transaction-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.transaction-table th {
  padding: 0.6rem 0.45rem;
  border-bottom: 1px solid #edf1f5;
  color: #92a0ad;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.transaction-table td {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid #f0f3f6;
  color: #718293;
  font-size: 0.62rem;
  white-space: nowrap;
}

.transaction-table tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-table td:first-child {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.merchant-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  color: #647c91;
  background: #f0f4f7;
}

.merchant-icon > .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.merchant-income { color: #17845e; background: #e8f5ef; }
.merchant-transfer { color: #7b65bd; background: #f1edfb; }
.merchant-bill { color: #be822b; background: #fff3e5; }

.transaction-description strong,
.transaction-description small {
  display: block;
}

.transaction-description strong {
  color: #334a5e;
  font-size: 0.65rem;
  font-weight: 600;
}

.transaction-description small {
  margin-top: 0.2rem;
  color: #96a3ae;
  font-size: 0.54rem;
}

.transaction-status {
  padding: 0.25rem 0.45rem;
  border-radius: 1rem;
  color: #22835f;
  background: #eaf6f0;
  font-size: 0.53rem;
}

.amount-heading,
.transaction-amount {
  text-align: right;
}

.transaction-amount {
  color: #33495d !important;
  font-weight: 600;
}

.transaction-amount.positive {
  color: #18845e !important;
}

.history-section {
  padding: 1rem 1.05rem;
  border: 1px solid #e5edf3;
  border-radius: 0.75rem;
  background: #fff;
}

.history-section .section-heading {
  margin-bottom: 1rem;
}

.history-export {
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #dce8f0;
  border-radius: 0.45rem;
  color: #0876b3;
  background: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
}

.history-export:hover {
  background: #f2f9fc;
  border-color: #b8d9e9;
}

.history-export .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.history-summary {
  min-height: 3.5rem;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e7f0f5;
  border-radius: 0.55rem;
  background: #f8fbfd;
}

.history-summary > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.history-summary-icon {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  color: #1879ae;
  background: #e6f3fa;
}

.history-summary-icon .ui-icon {
  width: 1rem;
  height: 1rem;
}

.history-summary small,
.history-summary strong {
  display: block;
}

.history-summary small {
  margin-bottom: 0.18rem;
  color: #8c9caa;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.history-summary strong {
  color: #344b60;
  font-size: 0.72rem;
}

.history-demo-label {
  color: #8498a7;
  font-size: 0.62rem;
}

.history-filters {
  margin: 0.8rem 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.7fr) minmax(150px, 0.6fr);
  gap: 0.55rem;
}

.history-search {
  min-height: 2.4rem;
  padding: 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #e5ebf1;
  border-radius: 0.45rem;
  color: #8397a8;
}

.history-search > .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.history-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #334b60;
  background: transparent;
  font-size: 0.66rem;
}

.history-select-label {
  min-height: 2.4rem;
  padding: 0.2rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5ebf1;
  border-radius: 0.45rem;
  color: #8a98a7;
  font-size: 0.6rem;
}

.history-select-label select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #526a7e;
  background: transparent;
  font: inherit;
  font-size: 0.64rem;
}

.history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
}

.history-table th {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid #edf1f5;
  color: #92a0ad;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.history-table td {
  padding: 0.62rem 0.45rem;
  border-bottom: 1px solid #f0f3f6;
  color: #718293;
  font-size: 0.61rem;
  white-space: nowrap;
}

.history-table tbody tr:last-child td {
  border-bottom: 0;
}

.history-transaction {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.history-transaction strong,
.history-transaction small {
  display: block;
}

.history-transaction strong {
  color: #334a5e;
  font-size: 0.63rem;
  font-weight: 600;
}

.history-transaction small {
  margin-top: 0.2rem;
  color: #96a3ae;
  font-size: 0.52rem;
}

.history-amount,
.history-amount-heading {
  text-align: right;
}

.history-amount {
  color: #33495d !important;
  font-weight: 600;
}

.history-amount.positive {
  color: #18845e !important;
}

.history-empty {
  margin: 0;
  padding: 1.5rem 0.5rem;
  color: #8192a1;
  font-size: 0.7rem;
  text-align: center;
}

.admin-section {
  padding-bottom: 3.5rem;
  scroll-margin-top: 90px;
}

.admin-login {
  width: min(100%, 420px);
  margin: 2rem auto;
  padding: 1.5rem;
}

.admin-login h1 {
  margin: 0 0 0.4rem;
  color: #1c334c;
  font-size: 1.3rem;
}

.admin-login-copy {
  margin: 0 0 1rem;
  color: #8493a2;
  font-size: 0.68rem;
}

.admin-login .admin-field { margin-bottom: 0.8rem; }

.admin-login-error {
  color: #a34444;
  font-size: 0.68rem;
}

.admin-logout {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dce8f0;
  border-radius: 0.45rem;
  color: #526a7e;
  background: #fff;
  font-size: 0.68rem;
  cursor: pointer;
}

#admin-app[hidden] { display: none; }

.admin-warning {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.2rem;
  border: 1px solid #f1dfc7;
  border-radius: 0.6rem;
  color: #80643e;
  background: #fff9ef;
  font-size: 0.68rem;
  line-height: 1.5;
}

.admin-warning strong { color: #8e5c1f; }

.admin-card {
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px solid #e5edf3;
  border-radius: 0.75rem;
  background: #fff;
}

.admin-card-heading {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-card-heading h3 {
  margin: 0;
  color: #1c334c;
  font-size: 0.88rem;
}

.admin-card-heading p {
  margin: 0.25rem 0 0;
  color: #8493a2;
  font-size: 0.65rem;
}

.admin-local-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  color: #557287;
  background: #eff5f8;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.admin-inbox-layout {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.6fr);
  border: 1px solid #e8eef3;
  border-radius: 0.6rem;
  overflow: hidden;
}

.admin-conversation-list {
  display: grid;
  align-content: start;
  background: #f8fbfd;
  border-right: 1px solid #e8eef3;
}

.admin-conversation {
  padding: 0.8rem 0.7rem;
  display: grid;
  gap: 0.3rem;
  border: 0;
  border-bottom: 1px solid #e8eef3;
  color: #365168;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-conversation.is-selected {
  background: #eaf5fb;
  box-shadow: inset 3px 0 #0876b3;
}

.admin-conversation strong { font-size: 0.68rem; }
.admin-conversation small { color: #8798a6; font-size: 0.56rem; }

.admin-thread-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.admin-thread {
  min-height: 0;
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  overflow-y: auto;
}

.admin-message {
  max-width: 85%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  color: #42596d;
  background: #f2f6f8;
  font-size: 0.64rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-message.is-admin {
  align-self: flex-end;
  color: #fff;
  background: #0875b2;
}

.admin-message small {
  margin-bottom: 0.18rem;
  display: block;
  color: #8494a2;
  font-size: 0.52rem;
}

.admin-message.is-admin small { color: rgba(255, 255, 255, 0.75); }

.admin-reply-form,
.admin-history-actions {
  padding: 0.65rem;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  border-top: 1px solid #e8eef3;
}

.admin-reply-form input,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dfe7ed;
  border-radius: 0.45rem;
  outline: none;
  color: #344c61;
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
}

.admin-reply-form input:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: #70b2d5;
  box-shadow: 0 0 0 3px rgba(8, 117, 178, 0.1);
}

.admin-reply-form input { flex: 1; }

.admin-reply-form .primary-action,
.admin-card .primary-action,
.admin-danger-button {
  min-height: 2.35rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 0.45rem;
  color: #fff;
  background: #0875b2;
  font-size: 0.65rem;
  font-weight: 650;
  cursor: pointer;
}

.admin-card .primary-action:hover,
.admin-reply-form .primary-action:hover { background: #075f98; }

.admin-recipient-list {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.admin-recipient-list label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #526a7e;
  font-size: 0.64rem;
}

.admin-recipient-list input { accent-color: #0875b2; }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-field {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  color: #60758a;
  font-size: 0.62rem;
  font-weight: 600;
}

.admin-field textarea { min-height: 4.5rem; resize: vertical; }
.admin-wide { margin-bottom: 0.75rem; }

.admin-security-note {
  margin: 0.85rem 0;
  color: #8a6a43;
  font-size: 0.62rem;
  line-height: 1.5;
}

.admin-history-actions {
  margin-top: 0.75rem;
  padding: 0.75rem 0 0;
  flex-wrap: wrap;
  border-top: 1px solid #edf1f5;
}

.admin-delete-field { min-width: 180px; flex: 1; }

.admin-danger-button {
  border: 1px solid #f0d3d3;
  color: #a34444;
  background: #fff7f7;
}

.admin-danger-button:hover { background: #ffeded; }

.balances-hidden .total-balance,
.balances-hidden .sensitive-balance {
  filter: blur(0.45rem);
  user-select: none;
}

.dashboard-support {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #e4edf3;
  border-radius: 0.65rem;
  background: #fff;
}

.support-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0875b2;
  background: #e9f5fb;
}

.support-icon > .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.dashboard-support div {
  min-width: 0;
  flex: 1;
}

.dashboard-support strong {
  color: #344c60;
  font-size: 0.68rem;
}

.dashboard-support p {
  margin: 0.2rem 0 0;
  color: #8a98a6;
  font-size: 0.6rem;
}

.dashboard-footer {
  padding: 0.4rem 0 0.8rem;
  color: #95a2ae;
  font-size: 0.58rem;
  text-align: center;
}

.dashboard-footer span {
  padding: 0 0.35rem;
  color: #b2bdc7;
}

.banking-dialog {
  width: min(420px, calc(100% - 2rem));
  padding: 1.5rem;
  border: 0;
  border-radius: 0.9rem;
  color: #1a3048;
  box-shadow: 0 20px 70px rgba(14, 41, 63, 0.25);
}

.banking-dialog::backdrop {
  background: rgba(15, 35, 54, 0.48);
  backdrop-filter: blur(2px);
}

.dialog-close-form {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

.dialog-close {
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  color: #60758a;
  background: #f0f4f7;
  font-size: 1.1rem;
  cursor: pointer;
}

.banking-dialog h2 {
  margin: 0;
  font-size: 1.35rem;
}

.dialog-intro {
  margin: 0.4rem 0 1rem;
  color: #7b8c9b;
  font-size: 0.75rem;
}

.demo-action-form {
  display: grid;
  gap: 0.8rem;
}

.demo-action-form label {
  display: grid;
  gap: 0.35rem;
  color: #4f6578;
  font-size: 0.68rem;
  font-weight: 600;
}

.demo-action-form input,
.demo-action-form select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 0.65rem;
  border: 1px solid #dce5ed;
  border-radius: 0.45rem;
  color: #334b60;
  background: #fff;
  font-size: 0.75rem;
}

.primary-action {
  min-height: 2.7rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0.45rem;
  color: #fff;
  background: #0875b2;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.dashboard-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  max-width: calc(100% - 2.5rem);
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  color: #fff;
  background: #1c394f;
  box-shadow: 0 8px 25px rgba(21, 42, 61, 0.2);
  font-size: 0.74rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: 180ms ease;
}

.dashboard-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 40;
  min-height: 3.3rem;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0875b2, #075b93);
  box-shadow: 0 8px 24px rgba(6, 75, 118, 0.28);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 75, 118, 0.32);
}

.chat-launcher > .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.chat-launcher > i,
.chat-agent-avatar > i,
.support-chat-header small > span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #82e3b6;
}

.chat-launcher > i {
  position: absolute;
  top: 0.35rem;
  left: 2.2rem;
  box-shadow: 0 0 0 2px #0875b2;
}

.support-chat {
  position: fixed;
  right: 1.5rem;
  bottom: 5.3rem;
  z-index: 41;
  width: min(370px, calc(100vw - 2rem));
  height: min(520px, calc(100dvh - 7rem));
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e9f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 55px rgba(22, 48, 69, 0.23);
}

.support-chat[hidden] {
  display: none;
}

.support-chat-header {
  min-height: 4.2rem;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  background: linear-gradient(110deg, #075f98, #087db4);
}

.chat-agent-avatar {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.chat-agent-avatar .ui-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.chat-agent-avatar > i {
  position: absolute;
  right: -0.05rem;
  bottom: 0;
  border: 1px solid #0872a7;
}

.support-chat-header > div {
  min-width: 0;
  flex: 1;
}

.support-chat-header strong,
.support-chat-header small {
  display: block;
}

.support-chat-header strong {
  font-size: 0.82rem;
}

.support-chat-header small {
  margin-top: 0.22rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.62rem;
}

.support-chat-header small > span {
  width: 0.38rem;
  height: 0.38rem;
}

.chat-close {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.chat-close .ui-icon {
  width: 1rem;
  height: 1rem;
}

.support-chat-demo {
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid #e9eef2;
  color: #74899a;
  background: #f7fafc;
  font-size: 0.58rem;
  line-height: 1.4;
}

.chat-messages {
  min-height: 0;
  flex: 1;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  overflow-y: auto;
  background: #fff;
  overscroll-behavior: contain;
}

.chat-message {
  max-width: 88%;
  padding: 0.65rem 0.75rem 0.5rem;
  border-radius: 0.75rem;
}

.assistant-message {
  align-self: flex-start;
  border: 1px solid #e7edf2;
  border-bottom-left-radius: 0.2rem;
  background: #f5f8fa;
}

.user-message {
  align-self: flex-end;
  border-bottom-right-radius: 0.2rem;
  color: #fff;
  background: #0875b2;
}

.chat-message-label,
.chat-message time {
  display: block;
  color: #8494a2;
  font-size: 0.56rem;
}

.user-message .chat-message-label,
.user-message time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-message p {
  margin: 0.3rem 0;
  color: #42596d;
  font-size: 0.68rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.user-message p {
  color: #fff;
}

.chat-message time {
  text-align: right;
}

.chat-suggestions {
  padding: 0.6rem 0.8rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid #edf1f4;
}

.chat-suggestions button {
  padding: 0.42rem 0.6rem;
  border: 1px solid #d8e8f1;
  border-radius: 999px;
  color: #166e9f;
  background: #f7fbfd;
  font-size: 0.59rem;
  cursor: pointer;
}

.chat-suggestions button:hover {
  background: #eaf5fb;
}

.chat-composer {
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid #e8eef3;
  background: #fff;
}

.chat-composer input {
  min-width: 0;
  min-height: 2.5rem;
  flex: 1;
  padding: 0 0.75rem;
  border: 1px solid #dfe7ed;
  border-radius: 999px;
  outline: none;
  color: #344c61;
  background: #fafcfd;
  font-size: 0.68rem;
}

.chat-composer input:focus {
  border-color: #70b2d5;
  box-shadow: 0 0 0 3px rgba(8, 117, 178, 0.1);
}

.chat-composer button {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #0875b2;
  cursor: pointer;
}

.chat-composer button:hover {
  background: #075f98;
}

.chat-composer button .ui-icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 820px) {
  .admin-inbox-layout {
    grid-template-columns: minmax(125px, 0.75fr) minmax(0, 1.5fr);
  }
}

@media (max-width: 560px) {
  .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-inbox-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-conversation-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e8eef3;
  }
  .admin-conversation { min-width: 125px; }
  .admin-reply-form { align-items: stretch; }
  .admin-history-actions { align-items: stretch; }
  .admin-history-actions > * { flex: 1 1 100%; }
}

@media (max-width: 1080px) {
  .login-panel {
    margin-left: 10%;
  }

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0.65rem 0.8rem;
    border-right: 0;
    border-bottom: 1px solid #e7edf3;
  }

  .dashboard-sidebar .sidebar-caption,
  .sidebar-security {
    display: none;
  }

  .dashboard-sidebar nav {
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
  }

  .dashboard-sidebar nav:nth-of-type(2) {
    margin-top: 0.25rem;
  }

  .sidebar-link {
    min-height: 2.4rem;
    flex: 0 0 auto;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.69rem;
  }

  .sidebar-link > .ui-icon {
    width: 1rem;
    height: 1rem;
  }

  .dashboard-content {
    padding: 1.2rem 1rem;
  }

  .dashboard-header {
    height: 64px;
    padding-inline: 1rem;
  }

  .dashboard-sidebar {
    top: 64px;
  }

  .dashboard-layout {
    min-height: calc(100vh - 64px);
  }

  .dashboard-two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-search {
    grid-column: 1 / -1;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    padding-inline: 1.2rem;
  }

  .quick-links {
    width: min(90vw, 40rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -2.4rem;
  }

  .hero {
    min-height: 32rem;
  }

  .login-panel {
    margin: 4.4rem auto 0;
    max-width: 27rem;
  }

  .offers {
    width: min(90vw, 40rem);
  }
}

@media (max-width: 560px) {
  .chat-launcher {
    right: 0.8rem;
    bottom: 0.8rem;
    min-height: 3rem;
    padding-inline: 0.9rem;
  }

  .support-chat {
    right: 0.5rem;
    bottom: 4.3rem;
    width: calc(100vw - 1rem);
    height: min(520px, calc(100dvh - 5rem));
    min-height: 340px;
  }

  .dashboard-header-tools {
    gap: 0.55rem;
  }

  .demo-indicator {
    font-size: 0;
  }

  .demo-indicator span {
    width: 0.55rem;
    height: 0.55rem;
  }

  .profile-button {
    gap: 0.3rem;
    font-size: 0;
  }

  .profile-button > span:first-child {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .dashboard-welcome {
    align-items: flex-start;
  }

  .dashboard-date {
    padding: 0.55rem;
    font-size: 0;
  }

  .dashboard-date > .ui-icon {
    margin: 0;
    width: 0.95rem;
    height: 0.95rem;
  }

  .dashboard-demo-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .balance-overview {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .balance-change {
    margin-left: 0;
  }

  .balance-link {
    margin-left: auto;
    padding-left: 0.8rem;
  }

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

  .dashboard-content {
    padding: 1rem 0.8rem;
  }

  .activity-section {
    padding: 0.85rem 0.7rem 0.4rem;
  }

  .history-section {
    padding: 0.85rem 0.7rem;
  }

  .history-section .section-heading {
    align-items: flex-start;
  }

  .history-section .section-heading h2 {
    font-size: 0.9rem;
  }

  .history-export {
    min-height: 2rem;
    padding-inline: 0.5rem;
    font-size: 0.58rem;
  }

  .history-summary {
    align-items: flex-start;
  }

  .history-demo-label {
    max-width: 7rem;
    text-align: right;
  }

  .history-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-search {
    grid-column: auto;
  }

  .transaction-table {
    min-width: 560px;
  }

  .dashboard-support {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-support > a {
    margin-left: 2.7rem;
  }

  .dashboard-footer {
    line-height: 1.8;
  }

  .brand {
    font-size: 1.8rem;
  }

  .topbar {
    padding-block: 0.7rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .notify-button,
  .flag-badge {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero {
    min-height: 26.5rem;
  }

  .login-panel {
    max-width: calc(100% - 2rem);
    border-radius: 1rem;
    padding: 1rem 0.9rem 0.9rem;
  }

  .panel-top {
    font-size: 0.76rem;
    padding: 0 0.6rem;
    justify-content: space-between;
  }

  .panel-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-footer button {
    width: 100%;
  }

  .quick-links {
    grid-template-columns: 1fr;
    width: calc(100% - 1.6rem);
    padding-block: 1rem;
  }

  .offers {
    width: calc(100% - 1.4rem);
  }

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

  .offers-header {
    margin-bottom: 1rem;
  }

  .site-footer {
    width: calc(100% - 1.4rem);
    padding-top: 1.4rem;
  }

  .legal-links {
    justify-content: center;
    font-size: 0.84rem;
  }

  .badge-wrap {
    width: 100%;
  }

  .social-links {
    justify-content: center;
    width: 100%;
  }

  .copyright {
    text-align: center;
  }
}
