﻿:root {
  --bg: #eef3fb;
  --paper: #ffffff;
  --ink: #152441;
  --muted: #60718c;
  --line: #d7e1ef;
  --navy: #0f2a56;
  --indigo: #3f50ff;
  --amber: #f5a522;
  --teal: #26a0a2;
  --danger: #a93535;
  --ok: #1f7f4c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(980px circle at 8% -10%, #dbe7ff, transparent 60%),
    radial-gradient(880px circle at 100% 0%, #fff5df, transparent 52%),
    linear-gradient(180deg, #edf2fb, #f8fbff);
}

a { color: inherit; }

.page { width: min(1140px, 94vw); margin: 0 auto; padding: 1.3rem 0 2.8rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 42px rgba(22, 52, 93, 0.08);
}

.brand { display: flex; gap: 0.8rem; align-items: center; text-decoration: none; }
.brand-link:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2444f8, #132f92);
  transition: transform 0.2s ease;
}

.eyebrow { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--navy); font-weight: 800; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 0.55rem; }
h2 { margin-bottom: 0; font-size: 1.26rem; }
h3 { margin: 0.45rem 0; }
.muted { color: var(--muted); }
.tiny { font-size: 0.86rem; }

.form-stack { display: grid; gap: 0.72rem; margin-top: 1.1rem; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
label { font-size: 0.9rem; font-weight: 700; }

input,select {
  width: 100%;
  border: 1px solid #ccdaef;
  border-radius: 10px;
  padding: 0.71rem 0.82rem;
  background: #fbfdff;
  color: var(--ink);
  font-size: 0.98rem;
  font-family: "IBM Plex Mono", monospace;
}

input:focus,select:focus { outline: 2px solid #89aaf1; outline-offset: 1px; }

button,.link-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, filter 0.18s ease, box-shadow 0.2s ease;
}

button:hover,.link-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 24px rgba(17, 43, 96, 0.22); }
.ghost,.inline-link { border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; }

.site-footer {
  width: min(1140px, 94vw);
  margin: 0 auto 1.4rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer.centered { justify-content: center; }
.site-footer a:hover { color: var(--navy); }

.login-shell { background: linear-gradient(130deg, #f0f4ff 0%, #f8fbff 46%, #e9f0ff 100%); }
.login-topbar {
  width: min(1280px, 96vw);
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.login-topbar.compact { margin-top: 0.7rem; }

.secure-pill {
  border: 1px solid #c8d6f0;
  background: #f6f9ff;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  display: inline-grid;
  gap: 0.05rem;
  justify-self: end;
}
.secure-pill strong { font-size: 0.84rem; color: var(--navy); }
.secure-pill span { font-size: 0.76rem; color: var(--muted); }

.login-layout {
  width: min(1280px, 96vw);
  margin: 0.9rem auto 1.6rem;
  display: grid;
  gap: 1rem;
}

.login-layout-wide { grid-template-columns: 1.75fr 0.85fr; }

.auth-card { width: 100%; padding: 1.45rem; }
.primary-signin { position: relative; overflow: hidden; }
.primary-signin::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36,68,248,0.14), transparent 70%);
}

.login-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 100%; }

.login-hero {
  padding: 1.9rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #fdfefe, #f2f7ff 52%, #eef3ff);
}
.login-hero > * { position: relative; z-index: 2; }
.login-hero h1 { font-size: clamp(2.2rem, 1.8rem + 1.7vw, 3.6rem); max-width: 11ch; line-height: 1.02; margin-bottom: 0.8rem; }
.login-hero p { max-width: 56ch; font-size: 1.1rem; color: #2a3f63; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.2rem; }
.hero-metrics article { border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem; background: #fff; }
.hero-metrics strong { font-size: 1.25rem; color: var(--navy); display: block; }
.hero-metrics span { font-size: 0.84rem; color: var(--muted); }

.login-hero-pop {
  min-height: 510px;
  border: 1px solid #cfdcf4;
  box-shadow: 0 24px 60px rgba(22, 52, 93, 0.16);
}

.hero-ribbon {
  margin-top: 1rem;
  display: inline-grid;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #d8e2f7;
  background: rgba(255, 255, 255, 0.84);
  position: relative;
  z-index: 1;
}
.hero-ribbon span { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: #355693; font-weight: 700; }
.hero-ribbon strong { font-size: 0.94rem; color: var(--navy); }
.hero-glow {
  position: absolute;
  right: -70px;
  top: -45px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(63,80,255,0.24), rgba(63,80,255,0));
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(39,60,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(39,60,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-playfield {
  position: absolute;
  right: 2%;
  top: 10%;
  width: 44%;
  height: 80%;
  z-index: 1;
  pointer-events: none;
}

.interactive-bubble {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 26px rgba(30, 65, 161, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.interactive-bubble:active {
  cursor: grabbing;
  filter: brightness(1.08);
}

.interactive-bubble.p1 { background: radial-gradient(circle at 28% 25%, #ffffff 0 8%, #88b8ff 35%, #3358f9 85%); }
.interactive-bubble.p2 { background: radial-gradient(circle at 30% 22%, #fff6d0 0 9%, #ffd36f 38%, #f5a522 85%); }
.interactive-bubble.p3 { background: radial-gradient(circle at 28% 22%, #d9fff8 0 10%, #66d7ca 38%, #22a7a8 85%); }
.interactive-bubble.p4 { background: radial-gradient(circle at 25% 25%, #f8e1ff 0 10%, #b8a5ff 40%, #5a59cc 85%); }

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.1px);
}
.hero-orb-a {
  width: 190px;
  height: 190px;
  right: -24px;
  bottom: -18px;
  background: radial-gradient(circle, rgba(255, 183, 70, 0.55), rgba(255, 183, 70, 0.06));
}
.hero-orb-b {
  width: 260px;
  height: 260px;
  right: 16%;
  top: -86px;
  background: radial-gradient(circle, rgba(58, 98, 255, 0.26), rgba(58, 98, 255, 0));
}
.hero-orb-c {
  width: 90px;
  height: 90px;
  left: 62%;
  bottom: 72px;
  background: radial-gradient(circle, rgba(55, 172, 210, 0.5), rgba(55, 172, 210, 0));
}

.auth-journey { width: min(1280px, 96vw); margin: 0.8rem auto 0; padding-bottom: 1rem; }
.wide-auth-card { max-width: 980px; margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.balance-card { padding: 1.2rem; position: relative; overflow: hidden; }
.balance-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,80,255,0.13), transparent 70%);
}
.label { margin: 0; font-size: 0.92rem; color: var(--muted); }
.balance-value { margin: 0.42rem 0; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-family: "IBM Plex Mono", monospace; }

.content-grid,.stats-layout { margin-top: 1rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; }
.content-grid.single-col { grid-template-columns: 1fr; }
.panel { padding: 1.15rem; }
.narrow-panel { max-width: 760px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; gap: 0.8rem; }

.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.68rem; }
.services-grid .service-item:last-child { grid-column: span 2; }
.service-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-decoration: none;
  display: grid;
  gap: 0.24rem;
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(36,68,248,0.08), rgba(245,165,34,0.08));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.service-item:hover::before { opacity: 1; }
.service-item span { color: var(--muted); font-size: 0.88rem; }

.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.activity-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.15s ease;
}
.activity-list li:hover { background: #f8fbff; }
.activity-list strong { display: block; font-size: 0.76rem; color: var(--navy); }
.activity-list span { color: var(--muted); font-size: 0.9rem; }
.activity-list b { font-family: "IBM Plex Mono", monospace; font-size: 0.88rem; }
.positive { color: var(--ok); }
.negative { color: #ad3737; }

.stats-chart {
  height: 170px;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(244,248,255,0.7), #fff);
}
.bar-group { flex: 1; min-width: 34px; text-align: center; cursor: pointer; }
.bars { height: 126px; display: flex; align-items: flex-end; justify-content: center; gap: 0.34rem; }
.bar { width: 13px; border-radius: 9px; transition: transform 0.2s ease; }
.bar.income { background: linear-gradient(180deg, #ffc557, var(--amber)); }
.bar.spent { background: linear-gradient(180deg, #6271ff, #2f44d7); }
.bar-group:hover .bar { transform: translateY(-4px); }
.bar-group small { color: var(--muted); font-weight: 700; }

.legend-row { margin-top: 0.6rem; display: flex; gap: 1rem; color: var(--muted); font-size: 0.86rem; }
.legend-row span { display: flex; align-items: center; gap: 0.35rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.income { background: var(--amber); }
.dot.spent { background: #2f44d7; }

.category-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.category-bubbles { position: relative; min-height: 210px; }
.bubble {
  position: absolute;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.6rem;
  color: #fff;
  box-shadow: 0 10px 20px rgba(12, 35, 78, 0.2);
  transition: transform 0.18s ease;
}
.bubble:hover { transform: translateY(-4px) scale(1.03); }
.bubble strong { font-size: 0.88rem; }
.bubble span { font-size: 0.74rem; }
.bubble.b0 { left: 4px; top: 8px; background: linear-gradient(150deg, #5266ff, #263cd6); }
.bubble.b1 { right: 8px; bottom: 10px; background: linear-gradient(150deg, #0f2a56, #3f50ff); }
.bubble.b2 { left: 60px; bottom: 12px; background: linear-gradient(150deg, #ffbc49, #f09100); }

.category-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.58rem; }
.category-list li { border-bottom: 1px dashed var(--line); padding-bottom: 0.42rem; display: flex; justify-content: space-between; cursor: pointer; }
.category-list li:hover { color: var(--navy); }

.cards-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-panel { padding: 1.2rem; }
.nexus-card {
  margin-top: 0.6rem;
  border-radius: 18px;
  padding: 1.3rem;
  min-height: 220px;
  color: #fff;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(160deg, #273cff, #0f2a56 70%);
  position: relative;
  overflow: hidden;
}
.deluxe-card::before {
  content: "";
  position: absolute;
  left: -35px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.26), rgba(255,255,255,0));
}
.card-orbit {
  position: absolute;
  right: 26px;
  top: 24px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}
.nexus-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.nexus-brand { letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; }
.nexus-number { margin-top: 3.2rem; font-family: "IBM Plex Mono", monospace; font-size: 1.2rem; letter-spacing: 0.08em; }
.nexus-meta { margin-top: 2rem; display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; }
.pin-row { margin: 0.9rem 0; display: flex; align-items: center; gap: 0.8rem; }
.pin-display { border: 1px solid var(--line); border-radius: 10px; min-width: 110px; text-align: center; padding: 0.58rem 0.7rem; font-family: "IBM Plex Mono", monospace; background: #f8fbff; }

.card-insights { display: grid; place-items: center; text-align: center; }
.insight-ring {
  width: 130px;
  height: 130px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(#2f51ff 0 72%, #dbe5fb 72% 100%);
  position: relative;
  margin: 0.6rem 0;
}
.insight-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 999px;
  background: #fff;
}
.insight-ring span { position: relative; z-index: 1; font-weight: 800; color: var(--navy); }

.control-list,.security-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.56rem; }
.control-list li,.security-list li { border: 1px solid var(--line); border-radius: 10px; padding: 0.68rem 0.78rem; display: flex; justify-content: space-between; align-items: center; }

.switch { width: 46px; height: 26px; position: relative; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #c8d5ea;
  transition: all 0.2s ease;
}
.switch i::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px;
  top: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.switch input:checked + i { background: #2f51ff; }
.switch input:checked + i::before { transform: translateX(20px); }

.statement-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto 220px;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.month-tabs { display: flex; gap: 0.45rem; overflow: auto; }
.month-tab {
  border: 1px solid var(--line);
  background: #f4f8ff;
  color: var(--navy);
  border-radius: 8px;
  padding: 0.48rem 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}
.month-tab.active { background: #1f6b4c; color: #fff; border-color: #1f6b4c; }
.statement-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }

.money-bars { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem; margin-bottom: 0.8rem; }
.money-bars > div { display: grid; grid-template-columns: 90px 1fr 130px; align-items: center; gap: 0.55rem; margin: 0.45rem 0; }
.track { height: 14px; border-radius: 99px; background: #edf3ff; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; }
#money-in-bar { background: linear-gradient(90deg, #89c43d, #4a9439); }
#money-out-bar { background: linear-gradient(90deg, #1f6b4c, #24594f); }

.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 540px; }
.statement-table { width: 100%; border-collapse: collapse; min-width: 830px; }
.statement-table th,.statement-table td { padding: 0.62rem 0.7rem; border-bottom: 1px solid #ecf1fa; text-align: left; font-size: 0.9rem; }
.statement-table th { position: sticky; top: 0; background: #f8fbff; color: var(--muted); z-index: 1; }

.confirm-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.9rem 0;
}
.confirm-grid dt { color: var(--muted); }
.confirm-grid dd { margin: 0; font-family: "IBM Plex Mono", monospace; }

.button-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.status { min-height: 1.3rem; margin-top: 0.68rem; }
.status.ok { color: var(--ok); }
.status.fail,.error { color: var(--danger); }

.char-grid { display: grid; gap: 0.7rem; }
.char-row { display: grid; grid-template-columns: 1fr 95px; gap: 0.8rem; align-items: center; }
.char-row input { text-transform: uppercase; text-align: center; font-size: 1.05rem; }

.legal-page { max-width: 920px; }
.legal-panel { padding: 1.2rem; }
.legal-panel h2 { margin-top: 1.1rem; }

.contact-layout {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fcfdff;
}

.map-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #eff4ff, #f9fbff);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 69, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 69, 145, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-river {
  position: absolute;
  left: -20%;
  top: 55%;
  width: 140%;
  height: 48px;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, rgba(64, 141, 255, 0.35), rgba(64, 141, 255, 0.15));
  border-radius: 99px;
}

.map-marker {
  position: absolute;
  left: 54%;
  top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pin {
  width: 22px;
  height: 22px;
  display: inline-block;
  background: #2444f8;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 16px rgba(36, 68, 248, 0.35);
}

.pin::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 6px;
  top: 6px;
}

.map-marker p {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(520px, calc(100vw - 24px));
  background: #0f2a56;
  color: #fff;
  border-radius: 12px;
  padding: 0.9rem;
  z-index: 30;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}
.cookie-banner p { margin: 0.3rem 0 0.8rem; color: #e5efff; }
.cookie-banner .ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }

@media (max-width: 1080px) {
  .login-topbar { grid-template-columns: 1fr; }
  .secure-pill { justify-self: start; }
  .login-layout-wide { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .content-grid,.stats-layout,.cards-layout,.category-wrap { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .site-footer { justify-content: center; flex-wrap: wrap; }
  .balance-grid,.row-2,.services-grid,.statement-toolbar,.hero-metrics { grid-template-columns: 1fr; }
  .services-grid .service-item:last-child { grid-column: span 1; }
  .money-bars > div { grid-template-columns: 1fr; }
  .confirm-grid { grid-template-columns: 1fr; }
}
