* {
  box-sizing: border-box;
}

:root {
  --blue: #0755e8;
  --deep: #062e9c;
  --gold: #ffcf16;
  --ink: #101d4d;
  --muted: #526285;
  --bottom-safe: calc(96px + env(safe-area-inset-bottom));
}

html {
  scroll-padding-bottom: var(--bottom-safe);
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0750d9 0, #e8f4ff 48%, #f8fbff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  min-height: 100dvh;
}

body.is-customer-app {
  padding-bottom: var(--bottom-safe);
}

.hidden {
  display: none !important;
}

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

/* Auth Screen */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 20% 10%, #17c9ff 0, #0874ed 28%, #042d9e 72%, #031e70 100%);
}

.auth-card {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid #d7e8ff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 65px #00184c66;
}

.auth-logo {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  border-radius: 14px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 22px #0755e822;
}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 18px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: #edf4ff;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px;
  border-radius: 10px;
  font-weight: 800;
  color: #4b618b;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px #0755e844;
}

.auth-assist {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 4px;
}

.link-btn,
.inline-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
}

.link-btn {
  font-size: 12.5px;
  text-decoration: none;
}

.link-btn:hover {
  text-decoration: underline;
}

.auth-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin: 14px 4px 0;
}

.auth-preview-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6eefb;
}

.auth-preview-btn {
  width: 100%;
  font-size: 13px;
  cursor: pointer;
}

.auth-error {
  display: block;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #dc7777;
  border-radius: 12px;
  background: #fff1f1;
  color: #8a2020;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.otp-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b9d4fb;
  border-radius: 16px;
  background: #f3f8ff;
}

.otp-info {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #173f82;
  overflow-wrap: anywhere;
}

.otp-input {
  text-align: center;
  font-size: 20px !important;
  font-weight: 800;
  letter-spacing: 6px;
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

/* Password field */
.password-wrap {
  position: relative;
  margin-top: 6px;
}

.password-wrap input {
  margin-top: 0 !important;
  padding-right: 52px !important;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #31558e;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:focus-visible {
  outline: 2px solid #087dff;
  outline-offset: 2px;
}

/* Loading states */
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 25% 10%, #16c7ff, #0755d9 40%, #03277f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  text-align: center;
  padding: 24px;
}

.loading-logo-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 30px #001b6b77;
}

.loading-spinner,
.btn-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff55;
  border-top-color: #ffda24;
  border-radius: 50%;
  animation: ukspin 0.8s linear infinite;
}

.page-loading small {
  color: #dceaff;
  font-size: 12px;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  border-width: 2px;
  margin-right: 8px;
}

.inline-spinner {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 3px solid #b9d7ff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: ukspin 0.75s linear infinite;
}

button:disabled {
  opacity: 0.72;
  cursor: wait;
}

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

/* Header & Main Layout */
.topbar {
  max-width: 800px;
  margin: auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid #6edfff;
  box-shadow: 0 4px 16px #001b6b55;
}

.brand b {
  font-size: 22px;
  font-style: italic;
  letter-spacing: -1px;
}

.brand em {
  color: #ffdb21;
  font-style: italic;
}

.brand small {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  color: #e4efff;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.icon-btn,
.avatar {
  border: 1px solid #ffffff66;
  background: #ffffff18;
  color: #fff;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  font-size: 19px;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
}

.avatar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uk-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: #e52335;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 18px 24px;
}

/* Hero Carousel */
.hero {
  max-width: 760px;
  margin: 8px auto 20px;
  min-height: 370px;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, #032fbd, #087eff 62%, #11c8f3);
  color: #fff;
  padding: 24px 26px 32px;
  box-shadow: 0 15px 30px #0045bb44;
  display: flex;
  align-items: flex-start;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(145deg, transparent 0 65px, #ffffff0d 66px 78px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffe65b;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  line-height: 0.94;
  letter-spacing: -2.5px;
  margin: 12px 0 8px;
  font-weight: 900;
  text-shadow: 0 4px 0 #061a70;
}

.hero h1 strong {
  color: #ffdb22;
}

.hero-copy > p:not(.promo-limit) {
  font-size: 14px;
  max-width: 320px;
  font-weight: 600;
  margin: 4px 0 8px;
}

.promo-limit {
  display: block;
  width: 100%;
  margin: 2px 0 8px;
  padding: 8px 11px;
  border: 1px solid #ffffff70;
  border-radius: 13px;
  background: #073f9e55;
  color: #fff;
  font-size: clamp(11.5px, 2.8vw, 13.5px);
  font-weight: 700;
  line-height: 1.4;
}

.promo-limit strong {
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 900;
}

.hero ul {
  padding: 0;
  margin: 4px 0 12px;
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.yellow-btn {
  background: linear-gradient(#ffe95a, #ffbf00);
  border: 0;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 900;
  color: #10235c;
  box-shadow: 0 4px 0 #c68100;
  cursor: pointer;
}

.yellow-btn span {
  font-size: 20px;
  margin-left: 8px;
}

.hero-art {
  position: absolute;
  right: 5%;
  top: 40px;
  width: 38%;
  height: 235px;
}

.phone {
  position: absolute;
  right: 27%;
  top: 0;
  width: 116px;
  height: 218px;
  border: 5px solid #dceeff;
  border-radius: 23px;
  background: #061b64;
  transform: rotate(8deg);
  padding: 7px;
  box-shadow: 0 12px 22px #00134f88;
}

.phone-screen {
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(160deg, #00baff, #092ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  gap: 10px;
  padding: 8px;
}

.mini-logo-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.phone-screen b {
  font-size: 19px;
  line-height: 1.05;
}

.phone-screen small {
  font-size: 9px;
}

.coin {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(140deg, #fff06a, #f5a900);
  border: 5px double #ffeb68;
  color: #9c5c00;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 12px #002c7a88;
}

.coin1 { width: 64px; height: 64px; right: 2%; top: 36px; }
.coin2 { width: 52px; height: 52px; right: 0; bottom: 16px; }

.speed {
  position: absolute;
  right: 0;
  top: 108px;
  font-size: 54px;
  color: #ffe126;
  text-shadow: 0 3px #b87500;
}

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

.dots i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 20px;
  background: #ffffff88;
  cursor: pointer;
  transition: width 0.2s;
}

.dots i.active {
  width: 22px;
  background: #fff;
}

/* Cards & Sections */
.amount-card,
.benefits,
.security,
.notice {
  max-width: 740px;
  margin: 0 auto 17px;
  background: #fff;
  border: 1px solid #d9e4f4;
  border-radius: 25px;
  box-shadow: 0 10px 26px rgba(8, 57, 136, 0.09);
  padding: 22px;
}

.amount-card {
  background: linear-gradient(145deg, #fff 0%, #f0f6ff 58%, #fff8e5 100%);
}

.amount-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.wallet {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5d77b, #c99525);
  color: #694607;
  box-shadow: 0 5px 12px rgba(145, 103, 20, 0.2);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}

.amount-head span {
  font-weight: 750;
  font-size: 14px;
}

.amount-head h2 {
  margin: 4px 0;
  color: #0748ca;
  font-size: clamp(21px, 5vw, 31px);
}

input[type="range"] {
  width: 100%;
  margin: 20px 0 8px;
  accent-color: var(--blue);
}

.range-label {
  display: flex;
  justify-content: space-between;
  color: #25365e;
  font-size: 13px;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.amount-chip {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c8d8ef;
  border-radius: 12px;
  background: #fff;
  color: #17427c;
  padding: 10px 8px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(20, 65, 130, 0.05);
  cursor: pointer;
}

.amount-chip.active {
  background: linear-gradient(135deg, #fff0bd, #e9c35c);
  border-color: #c99b2d;
  color: #674607;
}

.home-amount-presets .amount-chip {
  border-color: #8abaff;
  background: linear-gradient(145deg, #edf6ff, #d8eaff);
  color: #0746ad;
}

.home-amount-presets .amount-chip.active {
  border: 2px solid var(--blue);
  background: linear-gradient(145deg, #087dff, #0644c5);
  color: #fff;
}

.limit-note {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border-left: 4px solid #0877e8;
  border-radius: 10px;
  background: #edf5ff;
  color: #17427f;
  font-size: 12px;
  line-height: 1.55;
}

.primary-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 40px;
  padding: 16px;
  background: linear-gradient(100deg, #087dff, #063de1);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 7px 14px #0755e844;
  cursor: pointer;
}

.secondary-btn {
  border: 1px solid #d4e1f5;
  background: #f4f8ff;
  color: #16418c;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.danger-btn {
  border: 1px solid #f3a4a4;
  background: linear-gradient(135deg, #fff1f1, #ffe0e0);
  color: #a51f2b;
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 800;
  cursor: pointer;
}

.disclaimer {
  font-size: 11.5px;
  color: var(--muted);
  margin: 12px 2px 0;
  line-height: 1.45;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 8px;
  text-align: center;
}

.benefits > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  border-right: 1px solid #dce8fa;
}

.benefits > div:last-child {
  border: 0;
}

.benefit-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e9f8ff, #b5d9ff);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 25px;
}

.benefits strong {
  font-size: 12px;
  line-height: 1.25;
}

.security {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(100deg, #d8f0ff, #fff);
  border-color: #9bd4ff;
}

.shield {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: linear-gradient(145deg, #087dff, #0042b8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}

.security b {
  color: #0643b6;
}

.security p {
  font-size: 12.5px;
  color: #38527f;
  margin: 5px 0 0;
}

.lock {
  font-size: 32px;
  margin-left: auto;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  min-height: 76px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(110deg, #0752ce, #06379f);
  border-top: 1px solid #6da9ff;
  box-shadow: 0 -7px 24px #052e8055;
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}

.bottom-nav button {
  flex: 1;
  max-width: 140px;
  border: 0;
  background: none;
  color: #d7e8ff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bottom-nav span {
  font-size: 23px;
  line-height: 1.1;
  min-height: 25px;
  display: grid;
  place-items: center;
}

.bottom-nav .nav-person svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav button.active {
  color: #fff;
}

.bottom-nav button.active span {
  color: #ffe05a;
}

/* Modals, Forms & Wizard */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #07194399;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 12px;
}

.modal {
  position: relative;
  background: #fff;
  width: min(100%, 540px);
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 25px;
  padding: 24px;
  box-shadow: 0 20px 50px #00143c55;
}

.modal-backdrop.page-modal {
  place-items: stretch center;
  padding: 0;
  background: #edf4ff;
}

.page-modal .modal {
  width: 100%;
  max-width: 760px;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  box-shadow: none;
  overscroll-behavior: contain;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: #edf4ff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  color: #234;
  cursor: pointer;
  z-index: 10;
}

.page-modal .close {
  position: fixed;
  right: max(16px, calc((100vw - 720px) / 2));
  top: 12px;
}

.modal h2 {
  margin: 2px 36px 16px 0;
  color: #0648c8;
}

.field {
  display: block;
  margin: 13px 0;
  font-size: 12.5px;
  font-weight: 750;
  color: #273e69;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  margin-top: 6px;
  border: 1px solid #c8d8ef;
  border-radius: 12px;
  font: inherit;
  color: #17264d;
  background: #fff;
}

.field input[readonly] {
  background: #fff8e5;
  border-color: #e4c36c;
  color: #76520d;
  font-weight: 800;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: #7b641e;
  font-size: 11px;
  line-height: 1.45;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: #364b70;
  margin: 12px 0;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.status {
  padding: 12px;
  border-radius: 12px;
  background: #eef6ff;
  color: #17478f;
  font-size: 13px;
  margin: 10px 0;
}

.status.loading-state,
.stats-grid.loading-state {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  font-weight: 700;
}

.rowline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f8;
  font-size: 13px;
}

/* Wizard */
.wizard-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 46px 16px 17px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(120deg, #063b9f, #0878e8 58%, #d9a62c);
  color: #fff;
  font-size: 12px;
}

.wizard-head span {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.wizard-head b {
  font-size: 12px;
  color: #fff4cf;
  white-space: nowrap;
}

.wizard-progress {
  height: 8px;
  border-radius: 9px;
  background: #e4edfc;
  margin: 12px 0 18px;
  overflow: hidden;
}

.wizard-progress i {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #087dff, #063de1);
  border-radius: 9px;
  transition: width 0.2s;
}

#loanWizard {
  padding: 16px;
  border-radius: 0 0 20px 20px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 210, 91, 0.28), transparent 34%), linear-gradient(145deg, #f4f8ff, #e9f2ff 58%, #fff9e9);
  border: 1px solid #d6e4fa;
}

#loanWizard .wizard-step {
  padding: 14px;
  border: 1px solid rgba(176, 198, 230, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

#loanWizard .wizard-step h2 {
  color: #0b438f;
  margin: 2px 0 14px;
  font-size: 19px;
}

.repayment-box {
  border-radius: 15px;
  border: 1px solid #e6d29a;
  background: #fffaf0;
  padding: 13px;
  margin-top: 14px;
}

.repayment-box > small {
  display: block;
  color: #65789b;
  line-height: 1.5;
  margin-top: 10px;
}

.signature-wrap {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #d9e6f8;
  border-radius: 14px;
  background: #f8fbff;
  display: grid;
  gap: 9px;
}

.signature-wrap canvas {
  width: 100%;
  height: 145px;
  background: #fff;
  border: 1px dashed #7892b7;
  border-radius: 10px;
  touch-action: none;
}

.file-preview {
  font-size: 11.5px;
  color: #28633f;
  margin: -4px 0 10px;
}

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, #f4f8ffcc, #f4f8ff 24%);
}

.form-actions .primary-btn {
  margin: 0;
  flex: 1;
}

.form-actions .secondary-btn {
  min-width: 110px;
}

.submission-wait {
  text-align: center;
  padding: 46px 10px;
}

.hourglass {
  font-size: 62px;
  animation: ukspin 2s linear infinite;
  display: inline-block;
}

.submission-wait p {
  line-height: 1.6;
  color: #586b8e;
}

/* Profile, Notifications & Support */
.profile-read {
  display: grid;
  gap: 9px;
}

.profile-read > div {
  padding: 12px;
  border: 1px solid #e2ebfa;
  background: #f7faff;
  border-radius: 12px;
}

.profile-read small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.profile-read b {
  font-size: 13.5px;
  color: #183568;
}

.logout-clear {
  width: 100%;
  margin-top: 20px;
  min-height: 46px;
  color: #a11d2a;
  background: #fff4f4;
  border-color: #f2c8cc;
}

.notice-item {
  padding: 14px;
  border: 1px solid #dce8fa;
  border-radius: 14px;
  margin: 10px 0;
  background: #f8fbff;
}

.notice-item.uk-unread {
  border-color: #0877f4;
  background: #eff7ff;
}

.notice-item p {
  margin: 6px 0;
  color: #30466e;
  line-height: 1.5;
}

.notice-item small {
  color: var(--muted);
}

.help-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.my-support-messages {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e4ecf8;
}

.my-support-item,
.support-admin-item {
  border: 1px solid #d9e6fa;
  border-radius: 12px;
  background: #f8fbff;
  margin: 8px 0;
  overflow: hidden;
  padding: 0 10px;
}

.my-support-item summary,
.support-admin-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  cursor: pointer;
  list-style: none;
  color: #173c7d;
}

.my-support-item summary::-webkit-details-marker,
.support-admin-item summary::-webkit-details-marker {
  display: none;
}

.support-reply {
  background: #eaf4ff;
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0 12px;
  color: #153d7d;
}

/* Admin Panel */
.admin-only-panel {
  max-width: 900px;
  margin: 10px auto 40px;
}

.admin-panel-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #073fae;
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 15px;
}

.admin-panel-head h2 {
  color: #fff;
  margin: 0;
  font-size: 19px;
}

.admin-panel-head small {
  color: #d9e8ff;
}

.admin-head-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-head-actions button {
  font-size: 12px;
  padding: 9px 11px;
  background: #fff;
  color: #143b86;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.stat-card {
  padding: 13px;
  border-radius: 13px;
  background: #f0f6ff;
  border: 1px solid #dbe9ff;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.stat-card b {
  font-size: 22px;
  color: #0755d8;
}

.chart-wrap,
.admin-section {
  background: #fff;
  border: 1px solid #d5e3f9;
  border-radius: 17px;
  padding: 14px;
  margin: 14px 0;
  overflow: hidden;
}

.chart-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
}

.admin-section h3 {
  font-size: 15px;
  color: #0648c8;
  margin: 2px 0 10px;
}

.admin-customer-search-wrap input {
  background: #f5f9ff;
}

.client-group {
  display: block;
  margin: 10px 0;
  padding: 12px;
  border: 1.5px solid #d6ad45;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8df 0%, #f6e5ad 48%, #fff4d1 100%);
  box-shadow: 0 6px 18px rgba(145, 103, 20, 0.12);
}

.client-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #704b08;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.client-group summary::-webkit-details-marker {
  display: none;
}

.client-group summary span {
  font-size: 11px;
  background: #fffaf0;
  color: #8b6515;
  border: 1px solid #e6cf91;
  padding: 4px 8px;
  border-radius: 20px;
}

.customer-room-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #e7d39b;
  margin-top: 9px;
  padding: 10px 0 4px;
}

.customer-state {
  font-size: 11px;
  font-weight: 800;
  color: #075a35;
  background: #d9f8e8;
  padding: 6px 9px;
  border-radius: 20px;
}

.customer-state.archived {
  color: #7a3d00;
  background: #fff0d6;
}

.client-record {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ead69f;
  border-radius: 13px;
  padding: 12px;
  margin: 10px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.client-record small {
  display: block;
  color: var(--muted);
  margin: 4px 0;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
}

.doc-links button {
  padding: 8px 11px;
  font-size: 12px;
}

.location-row {
  background: linear-gradient(135deg, #e8f3ff, #d9eaff);
  border: 1.5px solid #78b2f4;
  border-left: 5px solid #0877e8;
  border-radius: 14px;
  padding: 13px;
  margin: 10px 0;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.location-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #073f91;
}

.location-title span {
  font-size: 9.5px;
  font-weight: 900;
  background: #c9f2df;
  color: #08633a;
  padding: 4px 8px;
  border-radius: 20px;
}

.location-row a {
  color: #075ac2;
  font-weight: 800;
  text-decoration: none;
}

.support-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.support-actions button {
  flex: 1;
  min-width: 135px;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 90;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: #102c67;
  color: #fff;
  padding: 11px 18px;
  border-radius: 30px;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: min(92vw, 440px);
  text-align: center;
}

.toast.show {
  opacity: 1;
}

/* Responsive */
@media (min-width: 600px) {
  .amount-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 12px 24px;
  }
  .hero {
    min-height: 430px;
    padding: 20px 18px 38px;
  }
  .hero-copy {
    width: 65%;
  }
  .hero-art {
    right: -4%;
    top: 56px;
    transform: scale(0.82);
    transform-origin: top right;
  }
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 4px;
  }
  .benefits > div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 390px) {
  .auth-card {
    padding: 20px 16px;
  }
  .hero-copy {
    width: 67%;
  }
  .hero-art {
    right: -8%;
    transform: scale(0.74);
  }
}
