@import url("/assets/fonts/vazir.css");

:root {
  color-scheme: light;
  --holda-navy-950: #173f43;
  --holda-navy-900: #24575a;
  --holda-navy-800: #315859;
  --holda-navy-700: #3f726a;
  --holda-mint-700: #16856f;
  --holda-mint-600: #1d9b82;
  --holda-mint-500: #35bfa2;
  --holda-mint-400: #58d5bb;
  --holda-mint-200: #baf0e4;
  --holda-mint-100: #dcf8f1;
  --holda-mint-50: #effbf8;
  --holda-ink: #172b2d;
  --holda-text: #2c504c;
  --holda-muted: #5e7170;
  --holda-line: #d4ddd7;
  --holda-line-strong: #c6d5cd;
  --holda-surface: #ffffff;
  --holda-surface-soft: #f6f9fa;
  --holda-canvas: #edf4ef;
  --holda-danger: #b4233c;
  --holda-danger-bg: #fff1f3;
  --holda-warning: #8a5a00;
  --holda-warning-bg: #fff8e7;
  --holda-success: #14745f;
  --holda-success-bg: #eaf9f4;
  --holda-info: #185f8d;
  --holda-info-bg: #edf7fd;
  --holda-shadow-sm: 0 8px 24px rgb(7 26 42 / 7%);
  --holda-shadow: 0 24px 70px rgb(7 26 42 / 14%);
  --holda-radius-sm: 10px;
  --holda-radius: 16px;
  --holda-radius-lg: 28px;
  --holda-focus: 0 0 0 4px rgb(53 191 162 / 22%);
  --holda-font: "Vazir", Tahoma, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --holda-header-gradient: linear-gradient(90deg, #7fa59b 0%, #3b7069 46%, #315859 100%);
  --holda-footer-gradient: linear-gradient(135deg, #315859 0%, #214d4b 100%);
  --holda-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--holda-text);
  background:
    radial-gradient(circle at 84% 9%, rgb(88 213 187 / 14%), transparent 28rem),
    radial-gradient(circle at 10% 96%, rgb(18 54 77 / 8%), transparent 32rem),
    var(--holda-canvas);
  font-family: var(--holda-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--holda-font);
}

button,
input,
select,
textarea {
  font-size: 1rem;
}

button,
[type="button"],
[type="submit"] {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--holda-mint-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--holda-transition);
}

a:hover {
  color: var(--holda-navy-800);
}

::selection {
  color: var(--holda-navy-950);
  background: var(--holda-mint-200);
}

:focus-visible {
  outline: 3px solid var(--holda-mint-500);
  outline-offset: 3px;
}

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

.copy-helper {
  position: fixed;
  inset: 0 auto auto 0;
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 8px 14px;
  color: #fff;
  background: var(--holda-navy-900);
  border-radius: 9px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell,
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site-header,
.app-header {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 76px;
  margin-block-start: 12px;
  padding-inline: 18px;
  background: linear-gradient(110deg, rgb(235 243 238 / 96%), rgb(185 207 196 / 94%), rgb(121 158 150 / 92%));
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgb(23 63 61 / 10%);
  backdrop-filter: blur(16px);
}

.brand,
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--holda-navy-900);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.brand:hover,
.site-brand:hover {
  color: var(--holda-navy-900);
}

.brand-logo {
  width: 122px;
  height: 55px;
  object-fit: contain;
}

.brand-mark,
.logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  background: var(--holda-navy-900);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgb(7 26 42 / 18%);
}

.brand-mark::before,
.logo-mark::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  inset-block-start: 7px;
  inset-inline-end: 7px;
  border: 4px solid var(--holda-mint-400);
  border-inline-start-color: transparent;
  border-radius: 50%;
  transform: rotate(20deg);
}

.brand-mark::after,
.logo-mark::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 4px;
  inset-block-end: 9px;
  inset-inline-start: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 7px -7px 0 var(--holda-mint-400);
}

.brand-copy small,
.site-brand small {
  display: block;
  margin-block-start: 1px;
  color: var(--holda-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.header-actions,
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  padding: 8px 10px;
  color: var(--holda-text);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
}

.header-link:hover {
  color: var(--holda-navy-900);
  background: rgb(255 255 255 / 66%);
}

.auth-page,
.auth-main {
  width: 100%;
  flex: 1;
  display: grid;
  align-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: 650px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(460px, 1.1fr);
  overflow: hidden;
  background: rgb(255 253 250 / 96%);
  border: 1px solid rgb(49 88 89 / 14%);
  border-radius: var(--holda-radius-lg);
  box-shadow: var(--holda-shadow);
}

.auth-content,
.auth-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 84% 10%, rgb(185 213 187 / 22%), transparent 18rem),
    rgb(255 253 250 / 97%);
}

.auth-card {
  width: min(100%, 460px);
  margin-inline: auto;
}

.auth-card--wide {
  width: min(100%, 560px);
}

.auth-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 8px;
  color: var(--holda-mint-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-eyebrow::before,
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--holda-mint-500);
  border-radius: 999px;
}

.auth-title,
.page-title {
  margin: 0;
  color: var(--holda-navy-900);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.auth-description,
.page-description {
  max-width: 42rem;
  margin: 8px 0 26px;
  color: var(--holda-muted);
  font-size: 0.93rem;
  line-height: 1.9;
}

.brand-panel,
.auth-aside {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: clamp(38px, 6vw, 76px);
  overflow: hidden;
  color: var(--holda-navy-950);
  background:
    radial-gradient(circle at 12% 18%, rgb(255 255 255 / 58%), transparent 17rem),
    linear-gradient(145deg, #eef3ed 0%, #b8cfc1 48%, #6f9a91 100%);
}

.brand-panel::before,
.auth-aside::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  inset-block-start: -210px;
  inset-inline-start: -190px;
  border: 1px solid rgb(88 213 187 / 28%);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgb(88 213 187 / 4%),
    0 0 0 126px rgb(88 213 187 / 3%);
}

.brand-panel::after,
.auth-aside::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  inset-block-end: -135px;
  inset-inline-end: -90px;
  background: radial-gradient(circle, rgb(53 191 162 / 24%), transparent 68%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
}

.brand-panel__inner,
.aside-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.auth-brand {
  width: fit-content;
  display: inline-flex;
  text-decoration: none;
}

.auth-brand-logo {
  width: 220px;
  height: 99px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgb(23 63 61 / 13%));
}

.aside-copy {
  padding: clamp(22px, 4vw, 36px);
  background: rgb(255 255 255 / 66%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgb(23 63 61 / 11%);
  backdrop-filter: blur(18px);
}

.brand-panel .brand,
.auth-aside .brand {
  color: #fff;
}

.brand-panel .brand-copy small,
.auth-aside .brand-copy small {
  color: rgb(255 255 255 / 58%);
}

.auth-aside .eyebrow {
  color: var(--holda-mint-700);
}

.auth-aside .eyebrow::before {
  background: var(--holda-mint-700);
}

.aside-copy h2,
.brand-panel h2 {
  max-width: 25rem;
  margin: 0;
  color: var(--holda-navy-950);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -0.04em;
}

.aside-copy p,
.brand-panel p {
  max-width: 30rem;
  margin: 14px 0 0;
  color: #3f5f5a;
  font-size: 0.95rem;
  line-height: 2;
}

.trust-list,
.aside-features {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.trust-list li,
.aside-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #294e4b;
  font-size: 0.84rem;
}

.trust-list li::before,
.aside-features li::before {
  content: "✓";
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  color: var(--holda-navy-950);
  background: var(--holda-mint-400);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.security-note,
.aside-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  color: #315b57;
  background: rgb(255 255 255 / 54%);
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 14px;
  font-size: 0.76rem;
  line-height: 1.8;
  backdrop-filter: blur(10px);
}

.security-note::before,
.aside-note::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-block-start: 8px;
  background: var(--holda-mint-400);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(88 213 187 / 13%);
}

.auth-form,
.form-stack {
  display: grid;
  gap: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group,
.field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.form-group label,
.field label,
.form-label {
  color: var(--holda-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.required-mark {
  margin-inline-start: 3px;
  color: var(--holda-danger);
}

.input-wrap,
.field-control {
  position: relative;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  color: var(--holda-ink);
  caret-color: var(--holda-mint-600);
  background: var(--holda-surface-soft);
  border: 1px solid var(--holda-line-strong);
  border-radius: var(--holda-radius-sm);
  outline: none;
  transition:
    border-color var(--holda-transition),
    background-color var(--holda-transition),
    box-shadow var(--holda-transition);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  appearance: none;
  padding-inline-end: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--holda-muted) 50%),
    linear-gradient(135deg, var(--holda-muted) 50%, transparent 50%);
  background-position:
    left 18px center,
    left 13px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: #8da0ad;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #abc0c8;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: var(--holda-mint-500);
  box-shadow: var(--holda-focus);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.is-invalid {
  border-color: var(--holda-danger);
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
.is-invalid:focus {
  box-shadow: 0 0 0 4px rgb(180 35 60 / 12%);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #82949f;
  cursor: not-allowed;
  background: #eef2f3;
  opacity: 0.82;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--holda-ink);
  box-shadow: 0 0 0 1000px var(--holda-mint-50) inset;
  transition: background-color 5000s ease-in-out 0s;
}

input[type="email"],
input[name*="email" i],
input[name*="token" i],
input[name*="code" i],
.ltr,
.recovery-code {
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.field-hint,
.form-help {
  margin: 0;
  color: var(--holda-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.field-error {
  margin: 0;
  color: var(--holda-danger);
  font-size: 0.74rem;
  font-weight: 700;
}

.input-wrap.has-action input {
  padding-inline-end: 48px;
}

.input-action,
.password-toggle {
  position: absolute;
  inset-block: 5px;
  inset-inline-end: 5px;
  min-width: 40px;
  padding: 0 8px;
  color: var(--holda-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.input-action:hover,
.password-toggle:hover {
  color: var(--holda-navy-900);
  background: var(--holda-mint-100);
}

.password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  padding: 0;
  margin: 4px 0 0;
  color: var(--holda-muted);
  font-size: 0.78rem;
  list-style: none;
}

.password-rules li::before {
  content: "•";
  margin-inline-end: 5px;
  color: var(--holda-line-strong);
}

.password-rules li.is-valid {
  color: var(--holda-success);
}

.password-rules li.is-valid::before {
  content: "✓";
  color: var(--holda-mint-600);
}

.password-strength {
  height: 5px;
  overflow: hidden;
  background: var(--holda-line);
  border-radius: 999px;
}

.password-strength span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--holda-danger);
  border-radius: inherit;
  transition: width 250ms ease, background-color 250ms ease;
}

.password-strength[data-level="1"] span { width: 25%; }
.password-strength[data-level="2"] span { width: 50%; background: #d18a14; }
.password-strength[data-level="3"] span { width: 75%; background: #6ca344; }
.password-strength[data-level="4"] span { width: 100%; background: var(--holda-mint-600); }

.check-row,
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--holda-text);
  font-size: 0.78rem;
  line-height: 1.7;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 4px 0 0;
  padding: 0;
  accent-color: var(--holda-mint-600);
}

.text-link,
.form-link {
  color: var(--holda-mint-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.form-link:hover {
  text-decoration: underline;
}

.captcha-wrap,
.captcha-box {
  min-height: 66px;
  padding: 9px;
  overflow: auto hidden;
  background: var(--holda-surface-soft);
  border: 1px solid var(--holda-line);
  border-radius: 12px;
}

.captcha-wrap > *,
.captcha-box > * {
  max-width: 100%;
}

.button,
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  color: #fff;
  background: var(--holda-navy-900);
  border: 1px solid var(--holda-navy-900);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgb(7 26 42 / 14%);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--holda-transition),
    background-color var(--holda-transition),
    border-color var(--holda-transition),
    box-shadow var(--holda-transition);
}

.button:hover,
.btn:hover {
  color: #fff;
  background: var(--holda-navy-800);
  border-color: var(--holda-navy-800);
  box-shadow: 0 11px 24px rgb(7 26 42 / 20%);
  transform: translateY(-1px);
}

.button:active,
.btn:active {
  transform: translateY(0);
}

.button:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--holda-focus), 0 8px 18px rgb(7 26 42 / 14%);
}

.button:disabled,
.btn:disabled,
.button[aria-disabled="true"],
.btn[aria-disabled="true"] {
  color: #d7e0e4;
  background: #82949f;
  border-color: #82949f;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.button--primary,
.btn-primary {
  color: var(--holda-navy-950);
  background: var(--holda-mint-400);
  border-color: var(--holda-mint-400);
  box-shadow: 0 9px 22px rgb(29 155 130 / 19%);
}

.button--primary:hover,
.btn-primary:hover {
  color: var(--holda-navy-950);
  background: var(--holda-mint-500);
  border-color: var(--holda-mint-500);
}

.button--secondary,
.btn-secondary,
.button--outline,
.btn-outline {
  color: var(--holda-navy-900);
  background: #fff;
  border-color: var(--holda-line-strong);
  box-shadow: none;
}

.button--secondary:hover,
.btn-secondary:hover,
.button--outline:hover,
.btn-outline:hover {
  color: var(--holda-navy-900);
  background: var(--holda-mint-50);
  border-color: var(--holda-mint-500);
  box-shadow: none;
}

.button--danger,
.btn-danger {
  color: var(--holda-danger);
  background: var(--holda-danger-bg);
  border-color: #f2bdc7;
  box-shadow: none;
}

.button--danger:hover,
.btn-danger:hover {
  color: #fff;
  background: var(--holda-danger);
  border-color: var(--holda-danger);
}

.button--block,
.btn-block {
  width: 100%;
}

.btn-block + .btn-block {
  margin-block-start: 10px;
}

[data-copy-target] {
  margin-block-end: 14px;
}

.button--small,
.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.button-loader {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: holda-spin 700ms linear infinite;
}

.alert,
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  margin: 0 0 18px;
  color: var(--holda-info);
  background: var(--holda-info-bg);
  border: 1px solid #bedff1;
  border-radius: 12px;
  font-size: 0.79rem;
  line-height: 1.8;
}

.alert::before,
.notice::before {
  content: "i";
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  margin-block-start: 2px;
  color: #fff;
  background: var(--holda-info);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 800;
}

.alert::before,
.notice::before {
  text-shadow: 0 0 0 #fff;
}

.alert p,
.notice p {
  margin: 0;
}

.alert a,
.notice a {
  color: currentColor;
  font-weight: 800;
}

.alert--success,
.alert-success,
.notice--success {
  color: var(--holda-success);
  background: var(--holda-success-bg);
  border-color: #b7e8d8;
}

.alert--success::before,
.alert-success::before,
.notice--success::before {
  content: "✓";
  background: var(--holda-success);
  font-family: inherit;
  font-style: normal;
}

.alert--danger,
.alert-error,
.alert-danger,
.notice--error {
  color: var(--holda-danger);
  background: var(--holda-danger-bg);
  border-color: #f2bdc7;
}

.alert--danger::before,
.alert-error::before,
.alert-danger::before,
.notice--error::before {
  content: "!";
  background: var(--holda-danger);
  font-family: inherit;
  font-style: normal;
}

.alert--warning,
.alert-warning,
.notice--warning {
  color: var(--holda-warning);
  background: var(--holda-warning-bg);
  border-color: #f0d59b;
}

.alert--warning::before,
.alert-warning::before,
.notice--warning::before {
  content: "!";
  background: var(--holda-warning);
  font-family: inherit;
  font-style: normal;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--holda-muted);
  font-size: 0.7rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--holda-line);
}

.auth-switch,
.auth-footer-link {
  margin: 22px 0 0;
  color: var(--holda-muted);
  font-size: 0.82rem;
  text-align: center;
}

.auth-switch a,
.auth-footer-link a {
  margin-inline-start: 4px;
  font-weight: 900;
  text-decoration: none;
}

.recovery-box,
.code-card {
  padding: 18px;
  margin: 18px 0;
  background: var(--holda-mint-50);
  border: 1px dashed var(--holda-mint-600);
  border-radius: 14px;
  text-align: center;
}

.recovery-box__label,
.code-card__label {
  margin: 0 0 7px;
  color: var(--holda-muted);
  font-size: 0.78rem;
}

.recovery-code,
.code-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--holda-navy-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.one-time-note {
  margin: 9px 0 0;
  color: var(--holda-warning);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-page {
  width: min(560px, calc(100% - 32px));
  margin: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--holda-line);
  border-radius: var(--holda-radius-lg);
  box-shadow: var(--holda-shadow);
  text-align: center;
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--holda-success);
  background: var(--holda-success-bg);
  border-radius: 20px;
  font-size: 1.8rem;
  font-weight: 900;
}

.status-icon--error {
  color: var(--holda-danger);
  background: var(--holda-danger-bg);
}

.status-page h1 {
  margin: 0 0 8px;
  color: var(--holda-navy-900);
  font-size: 1.6rem;
}

.status-page p {
  margin: 0 0 22px;
  color: var(--holda-muted);
}

.status-page .btn + .btn {
  margin-inline-start: 8px;
}

/* Account panel */
.dashboard-main,
.account-main {
  width: min(1180px, calc(100% - 48px));
  flex: 1;
  margin-inline: auto;
  padding: 34px 0 54px;
}

.dashboard-header,
.account-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 24px;
}

.dashboard-header h1,
.account-heading h1 {
  margin: 0;
  color: var(--holda-navy-900);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.5;
}

.dashboard-header p,
.account-heading p {
  margin: 4px 0 0;
  color: var(--holda-muted);
  font-size: 0.86rem;
}

.account-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: start;
}

/* Keep the account content on the left and the quick links on the right. */
.account-grid {
  direction: ltr;
  grid-template-areas: "main quick";
}

.account-grid > div {
  direction: rtl;
  grid-area: main;
}

.account-grid > aside {
  direction: rtl;
  grid-area: quick;
}

.panel,
.dashboard-card,
.profile-card {
  padding: clamp(20px, 3vw, 30px);
  background: var(--holda-surface);
  border: 1px solid var(--holda-line);
  border-radius: var(--holda-radius);
  box-shadow: var(--holda-shadow-sm);
}

.panel + .panel,
.dashboard-card + .dashboard-card {
  margin-block-start: 18px;
}

.panel-header,
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 20px;
}

.panel-title,
.card-title,
.panel-header h2,
.card-header h2 {
  margin: 0;
  color: var(--holda-navy-900);
  font-size: 1rem;
  font-weight: 900;
}

.avatar,
.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--holda-navy-950);
  background: linear-gradient(145deg, var(--holda-mint-200), var(--holda-mint-400));
  border: 3px solid #fff;
  border-radius: 19px;
  box-shadow: 0 0 0 1px var(--holda-line), 0 8px 20px rgb(29 155 130 / 15%);
  font-size: 1.25rem;
  font-weight: 900;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-block-end: 22px;
  margin-block-end: 6px;
  border-block-end: 1px solid var(--holda-line);
}

.profile-summary h2,
.profile-summary h3 {
  margin: 0;
  color: var(--holda-navy-900);
  font-size: 1rem;
}

.profile-summary p {
  margin: 2px 0 0;
  color: var(--holda-muted);
  font-size: 0.76rem;
}

.info-list,
.details-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-row,
.detail-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 11px;
  border-block-end: 1px solid var(--holda-line);
}

.info-row:last-child,
.detail-row:last-child {
  border-block-end: 0;
}

.info-label,
.detail-row dt {
  color: var(--holda-muted);
  font-size: 0.78rem;
}

.info-value,
.detail-row dd {
  margin: 0;
  color: var(--holda-ink);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: end;
}

.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  color: var(--holda-success);
  background: var(--holda-success-bg);
  border: 1px solid #b7e8d8;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.4;
}

.status-badge::before,
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.status-badge--pending,
.badge-warning {
  color: var(--holda-warning);
  background: var(--holda-warning-bg);
  border-color: #f0d59b;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--holda-text);
  background: var(--holda-surface-soft);
  border: 1px solid var(--holda-line);
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.quick-action::after {
  content: "‹";
  color: var(--holda-mint-700);
  font-size: 1.25rem;
  line-height: 1;
}

.quick-action:hover {
  color: var(--holda-navy-900);
  background: var(--holda-mint-50);
  border-color: var(--holda-mint-400);
}

.danger-zone {
  border-color: #f2cbd2;
}

.danger-zone .panel-title,
.danger-zone .card-title {
  color: var(--holda-danger);
}

.site-footer,
.app-footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 0;
  color: var(--holda-muted);
  border-block-start: 1px solid rgb(18 54 77 / 10%);
  font-size: 0.78rem;
}

.site-footer > div:first-child,
.app-footer > div:first-child {
  display: grid;
  gap: 1px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--holda-text);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--holda-mint-700);
}

.footer-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-secure::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--holda-mint-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(53 191 162 / 12%);
}

@keyframes holda-spin {
  to { transform: rotate(1turn); }
}

@media (max-width: 960px) {
  .auth-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-content,
  .auth-panel {
    order: 0;
    padding: 46px clamp(26px, 7vw, 64px);
  }

  .brand-panel,
  .auth-aside {
    order: 1;
    min-height: 285px;
    padding: 34px clamp(26px, 7vw, 64px);
  }

  .brand-panel__inner,
  .aside-content {
    gap: 26px;
  }

  .auth-brand-logo {
    width: 174px;
    height: 78px;
  }

  .aside-copy h2,
  .brand-panel h2 {
    max-width: 36rem;
    font-size: clamp(1.55rem, 5vw, 2.15rem);
  }

  .trust-list,
  .aside-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block-start: 20px;
  }

  .security-note,
  .aside-note {
    display: none;
  }

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

  .account-grid {
    grid-template-areas: "main" "quick";
  }
}

@media (max-width: 680px) {
  body {
    background: var(--holda-surface);
    font-size: 14px;
  }

  .site-header,
  .app-header,
  .dashboard-main,
  .account-main,
  .site-footer,
  .app-footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header,
  .app-header {
    min-height: 66px;
  }

  .site-header {
    margin-block-start: 8px;
    padding-inline: 12px;
    border-radius: 14px;
  }

  .brand-logo {
    width: 88px;
    height: 42px;
  }

  .brand-copy small,
  .site-brand small,
  .header-link:not(.header-link--important) {
    display: none;
  }

  .brand-mark,
  .logo-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }

  .auth-page,
  .auth-main {
    display: block;
    padding: 0;
  }

  .auth-shell {
    border: 0;
    border-block: 1px solid var(--holda-line);
    border-radius: 0;
    box-shadow: none;
  }

  .auth-content,
  .auth-panel {
    min-height: 560px;
    padding: 36px 24px 44px;
  }

  .brand-panel,
  .auth-aside {
    min-height: 230px;
    padding: 28px 24px;
  }

  .auth-brand {
    display: none;
  }

  .aside-copy {
    padding: 21px;
    border-radius: 18px;
  }

  .aside-copy p,
  .brand-panel p {
    margin-block-start: 8px;
    font-size: 0.82rem;
  }

  .trust-list,
  .aside-features {
    display: none;
  }

  .auth-title,
  .page-title {
    font-size: 1.55rem;
  }

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

  .password-rules {
    grid-template-columns: 1fr;
  }

  .dashboard-main,
  .account-main {
    padding: 24px 0 40px;
  }

  .dashboard-header,
  .account-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dashboard-header .button,
  .dashboard-header .btn,
  .account-heading .button,
  .account-heading .btn {
    width: 100%;
  }

  .panel,
  .dashboard-card,
  .profile-card {
    padding: 20px;
    border-radius: 14px;
  }

  .info-row,
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .info-value,
  .detail-row dd {
    text-align: start;
  }

  .site-footer,
  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 20px;
  }
}

@media (max-width: 380px) {
  .auth-content,
  .auth-panel {
    padding-inline: 18px;
  }

  .brand-panel,
  .auth-aside {
    padding-inline: 18px;
  }

  .form-options,
  .check-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .btn {
    width: 100%;
  }

  .site-header .btn,
  .site-header .button {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .brand-panel,
  .auth-aside,
  .site-header,
  .app-header,
  .site-footer,
  .app-footer,
  .button,
  .btn {
    display: none !important;
  }

  .auth-shell,
  .panel,
  .dashboard-card,
  .profile-card {
    display: block;
    border: 0;
    box-shadow: none;
  }
}
.payment-result{max-width:720px;margin:70px auto;text-align:center;padding:42px}.payment-result-icon{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 20px;border-radius:50%;font-size:30px;font-weight:900;background:#e3ece7;color:#315f5b}.payment-failure .payment-result-icon{background:#f8e8e4;color:#9b4b3f}.payment-reference{display:flex;justify-content:space-between;gap:20px;margin:24px 0;padding:16px 18px;border-radius:12px;background:#f2f6f3}.purchase-card{border:1px solid #d9e5df}.purchase-card.purchase-active{background:#f1f6f2}.purchase-card form{margin-top:20px}
.notification-badge{min-width:22px;height:22px;display:inline-grid;place-items:center;padding:0 6px;border-radius:999px;color:#fff;background:var(--holda-mint-700);font-size:.72rem}.notification-list{display:grid;gap:10px}.notification-item{display:grid;gap:3px;padding:13px 15px;color:var(--holda-text);text-decoration:none;border:1px solid var(--holda-line);border-radius:12px;background:#fff}.notification-item.unread{border-color:var(--holda-mint-500);background:var(--holda-mint-50)}.notification-item span,.notification-item time{color:var(--holda-muted);font-size:.85rem}.form-panel{max-width:820px;margin:30px auto}.ticket-thread{display:grid;gap:14px;max-width:900px;margin:0 auto 24px}.ticket-message{max-width:82%;padding:18px 20px;border:1px solid var(--holda-line);border-radius:18px;background:#fff}.ticket-message.from-admin{margin-inline-end:auto;background:var(--holda-mint-50);border-color:var(--holda-mint-200)}.ticket-message header{display:flex;justify-content:space-between;gap:20px;margin-bottom:8px}.ticket-message p{margin:0}.data-table,.admin-table{display:grid;overflow-x:auto}.data-row,.admin-row{min-width:700px;display:grid;grid-template-columns:2fr 1fr 1.2fr .7fr;gap:16px;align-items:center;padding:13px;border-bottom:1px solid var(--holda-line)}.data-head,.admin-head{font-weight:800;background:var(--holda-surface-soft)}.data-row small,.admin-row small{display:block;color:var(--holda-muted)}.pagination{display:flex;flex-wrap:wrap;gap:7px;margin-top:22px}.pagination a{min-width:36px;height:36px;display:grid;place-items:center;text-decoration:none;border:1px solid var(--holda-line);border-radius:9px;background:#fff}.pagination a.active{color:#fff;background:var(--holda-navy-800)}.range-tabs{display:flex;gap:8px;margin:0 0 20px}.range-tabs a{padding:9px 16px;text-decoration:none;border:1px solid var(--holda-line);border-radius:999px;background:#fff}.range-tabs a.active{color:#fff;background:var(--holda-navy-800)}.admin-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.admin-kpis article{padding:20px;border:1px solid var(--holda-line);border-radius:16px;background:#fff}.admin-kpis span,.admin-kpis small{display:block;color:var(--holda-muted)}.admin-kpis strong{display:block;margin:7px 0;color:var(--holda-navy-900);font-size:1.8rem}.metric-chart{display:grid;gap:13px}.chart-row{display:grid;grid-template-columns:95px 1fr;gap:14px;align-items:center}.chart-bars{display:grid;gap:5px}.chart-bars>div{position:relative;height:28px;overflow:hidden;border-radius:8px;background:var(--holda-surface-soft)}.chart-bars progress{position:absolute;inset:0;width:100%;height:100%;border:0;appearance:none}.chart-bars progress::-webkit-progress-bar{background:transparent}.chart-bars .bar-users::-webkit-progress-value{background:var(--holda-mint-500)}.chart-bars .bar-revenue::-webkit-progress-value{background:var(--holda-navy-700)}.chart-bars .bar-users::-moz-progress-bar{background:var(--holda-mint-500)}.chart-bars .bar-revenue::-moz-progress-bar{background:var(--holda-navy-700)}.chart-bars span{position:relative;z-index:1;padding-inline:9px;font-size:.78rem;line-height:28px}.admin-row{grid-template-columns:1.6fr 1.2fr 1.1fr .8fr}.ticket-admin-row{grid-template-columns:1.2fr 2fr .8fr .9fr}.status-open{color:var(--holda-warning);background:var(--holda-warning-bg)}.status-answered{color:var(--holda-success);background:var(--holda-success-bg)}.status-closed{color:var(--holda-muted);background:var(--holda-surface-soft)}@media(max-width:900px){.admin-kpis{grid-template-columns:1fr 1fr}.chart-row{grid-template-columns:1fr}.ticket-message{max-width:96%}}@media(max-width:560px){.admin-kpis{grid-template-columns:1fr}.range-tabs{overflow-x:auto}.header-nav .header-link{display:none}}
.notification-button{position:relative;width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;color:var(--holda-navy-800);text-decoration:none;border:1px solid var(--holda-line);border-radius:12px;background:#fff}.notification-button:hover{color:var(--holda-mint-700);border-color:var(--holda-mint-500)}.notification-button svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-button .notification-badge{position:absolute;inset-block-start:-6px;inset-inline-start:-6px;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;color:#fff;background:var(--holda-danger);font-size:.68rem;line-height:1}
.pwa-install-button{min-height:42px;padding:0 14px;border:1px solid var(--holda-mint-700);border-radius:11px;color:var(--holda-mint-700);background:#fff;font-size:.82rem;font-weight:800;cursor:pointer;white-space:nowrap}.pwa-install-button:hover,.pwa-install-button.install-ready{color:#fff;background:var(--holda-mint-700)}.footer-install{padding:0;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer}.pwa-help{position:fixed;z-index:2000;inset:0;display:grid;place-items:center;padding:20px;background:rgb(7 26 42 / 55%);backdrop-filter:blur(5px)}.pwa-help>div{position:relative;width:min(420px,100%);padding:30px;text-align:center;border:1px solid var(--holda-line);border-radius:22px;background:#fff;box-shadow:var(--holda-shadow)}.pwa-help button{position:absolute;inset-block-start:12px;inset-inline-end:12px;width:38px;height:38px;border:0;border-radius:10px;color:var(--holda-text);background:var(--holda-surface-soft);font-size:24px;cursor:pointer}.pwa-help img{width:112px;height:112px;margin:0 auto 16px;border-radius:24px}.pwa-help h2{margin:0 0 8px;color:var(--holda-navy-900)}.pwa-help p{margin:0;color:var(--holda-muted)}@media(max-width:680px){.pwa-install-button{max-width:118px;padding-inline:10px;font-size:.72rem}.header-nav{gap:6px}}

.finance-nav{width:min(1180px,calc(100% - 48px));margin:8px auto 22px;display:flex;gap:8px;overflow:auto;padding:6px;border:1px solid var(--holda-line);border-radius:14px;background:rgb(255 255 255 / 75%)}.finance-nav a{min-width:max-content;padding:9px 16px;color:var(--holda-text);font-weight:700;text-decoration:none;border-radius:9px}.finance-nav a[aria-current="page"]{color:#fff;background:var(--holda-navy-800)}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric-card{padding:20px;border:1px solid var(--holda-line);border-radius:16px;background:#fff;box-shadow:var(--holda-shadow-sm)}.metric-card span,.metric-card small{display:block;color:var(--holda-muted)}.metric-card strong{display:block;margin:8px 0;color:var(--holda-navy-900);font-size:1.65rem}.metric-income{border-block-start:4px solid var(--holda-success)}.metric-expense{border-block-start:4px solid var(--holda-danger)}.finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-balance-list,.transaction-list,.budget-list{display:grid;gap:0}.account-balance-list>div,.transaction-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 2px;border-bottom:1px solid var(--holda-line)}.account-balance-list span,.transaction-list span{display:grid}.account-balance-list small,.transaction-list small{color:var(--holda-muted)}.amount-income{color:var(--holda-success)}.amount-expense,.text-danger{color:var(--holda-danger)}.amount-transfer{color:var(--holda-info)}.empty-state{padding:28px;text-align:center;border:1px dashed var(--holda-line-strong);border-radius:14px;background:var(--holda-surface-soft)}.empty-state h3{margin:0;color:var(--holda-navy-900)}.table-wrap{overflow:auto}.data-table{display:table;width:100%;min-width:780px;border-collapse:collapse}.data-table th,.data-table td{padding:13px 10px;text-align:right;border-bottom:1px solid var(--holda-line)}.data-table th{color:var(--holda-navy-900);background:var(--holda-surface-soft)}.text-danger{padding:6px;border:0;background:transparent;font:inherit;cursor:pointer}.budget-list article{padding:14px 0;border-bottom:1px solid var(--holda-line)}.budget-list article>div{display:flex;justify-content:space-between;gap:14px}.budget-list progress{width:100%;height:11px;accent-color:var(--holda-mint-700)}.budget-list small{color:var(--holda-muted)}[hidden]{display:none!important}@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.finance-grid{grid-template-columns:1fr}}@media(max-width:560px){.finance-nav{width:calc(100% - 28px)}.metric-grid{grid-template-columns:1fr}.metric-card strong{font-size:1.4rem}}
.data-ownership-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.data-ownership-grid .panel{margin:0}.inline-link{display:inline-block;margin-top:16px}.activity-list{display:grid}.activity-list>div{display:flex;justify-content:space-between;gap:20px;padding:14px 2px;border-bottom:1px solid var(--holda-line)}.activity-list time{color:var(--holda-muted)}@media(max-width:760px){.data-ownership-grid{grid-template-columns:1fr}.activity-list>div{align-items:flex-start;flex-direction:column;gap:3px}}
.security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.recovery-codes{border-color:var(--holda-warning)}.recovery-codes pre{padding:20px;direction:ltr;text-align:left;white-space:pre-wrap;border:1px solid var(--holda-line);border-radius:12px;background:var(--holda-surface-soft);font:700 1rem/1.9 monospace}.secret-box{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;margin:18px 0;border:1px solid var(--holda-mint-500);border-radius:14px;background:var(--holda-mint-50);direction:ltr}.secret-box code{font-size:1.1rem;font-weight:800;letter-spacing:.08em;overflow-wrap:anywhere}.break-all{display:block;direction:ltr;overflow-wrap:anywhere}.session-list{display:grid}.session-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 2px;border-bottom:1px solid var(--holda-line)}.session-item h2{margin:0;color:var(--holda-navy-900);font-size:1.05rem}.session-item p,.session-item small{margin:4px 0;color:var(--holda-muted)}.session-ended{opacity:.62}@media(max-width:760px){.security-grid{grid-template-columns:1fr}.session-item,.secret-box{align-items:stretch;flex-direction:column}.session-item .btn{width:100%}}
.passkey-status{min-height:1.7em;margin:10px 0;color:var(--holda-mint-700);font-weight:700}.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--holda-muted);font-size:.85rem}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--holda-line)}.compact-form{min-width:min(360px,80vw);margin-top:14px;padding:16px;border:1px solid var(--holda-line);border-radius:12px;background:var(--holda-surface-soft)}.compact-form label{display:grid;gap:6px;margin-bottom:10px}.session-item details summary{list-style:none;cursor:pointer}.session-item details summary::-webkit-details-marker{display:none}

/* First-run and consistent operation states — Holda 1.12 */
.empty-state p{max-width:34rem;margin:7px auto 16px}.empty-icon{width:44px;height:44px;display:grid;place-items:center;margin:0 auto 10px;border-radius:14px;color:var(--holda-mint-700);background:var(--holda-mint-100);font-size:1.3rem;font-weight:900}.connection-status{position:sticky;z-index:100;inset-block-start:0;padding:9px 18px;color:#fff;background:var(--holda-danger);text-align:center;font-size:.9rem;font-weight:700}.btn.is-loading{position:relative;cursor:wait;opacity:.78}.btn.is-loading::after{content:"";display:inline-block;width:14px;height:14px;margin-inline-start:8px;border:2px solid currentColor;border-inline-start-color:transparent;border-radius:50%;vertical-align:-2px;animation:holda-spin .75s linear infinite}@keyframes holda-spin{to{transform:rotate(1turn)}}
.onboarding-main{width:min(920px,calc(100% - 48px));margin:32px auto 72px}.onboarding-shell{display:grid;gap:20px}.onboarding-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.onboarding-header h1{max-width:720px;margin:0;color:var(--holda-navy-950);font-size:clamp(1.8rem,4vw,3.2rem);line-height:1.35}.step-count{min-width:max-content;padding:7px 12px;border:1px solid var(--holda-line);border-radius:999px;background:#fff;color:var(--holda-muted);font-weight:700}.stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0;padding:0;list-style:none}.stepper li{display:flex;align-items:center;gap:9px;padding:12px;color:var(--holda-muted);border-block-start:3px solid var(--holda-line)}.stepper li span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--holda-surface-soft);font-size:.82rem}.stepper li.current,.stepper li.done{color:var(--holda-navy-900);border-color:var(--holda-mint-600)}.stepper li.current span,.stepper li.done span{color:#fff;background:var(--holda-mint-700)}.onboarding-card{padding:clamp(24px,5vw,48px)}.onboarding-card>h2{margin-block-start:0;color:var(--holda-navy-900);font-size:1.6rem}.onboarding-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}.onboarding-benefits article,.next-actions span{display:grid;gap:4px;padding:17px;border:1px solid var(--holda-line);border-radius:14px;background:var(--holda-surface-soft)}.onboarding-benefits span,.next-actions span{color:var(--holda-muted)}.next-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.completion-mark{width:64px;height:64px;display:grid;place-items:center;margin-bottom:18px;color:#fff;background:var(--holda-success);border-radius:20px;font-size:2rem;font-weight:900}.btn-quiet{color:var(--holda-muted);background:transparent;border-color:transparent}@media(max-width:650px){.onboarding-main{width:calc(100% - 28px);margin-top:18px}.onboarding-header{align-items:flex-start;flex-direction:column}.stepper b{display:none}.onboarding-benefits,.next-actions{grid-template-columns:1fr}.onboarding-card{padding:22px}}

/* Professional transaction browser — Holda 1.13 */
.panel-subtitle{margin:2px 0 0;color:var(--holda-muted);font-size:.86rem}.filter-bar{display:grid;grid-template-columns:2fr repeat(5,minmax(125px,1fr));gap:12px;align-items:end;padding:18px;margin:18px 0 22px;border:1px solid var(--holda-line);border-radius:14px;background:var(--holda-surface-soft)}.filter-bar .form-group{margin:0}.filter-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px}.transaction-browser .pagination{justify-content:center}.responsive-table td form{margin:0}@media(max-width:1050px){.filter-bar{grid-template-columns:repeat(3,1fr)}.filter-search{grid-column:span 2}}@media(max-width:700px){.filter-bar{grid-template-columns:1fr 1fr;padding:14px}.filter-search{grid-column:1/-1}.filter-actions{justify-content:stretch}.filter-actions .btn{flex:1}.responsive-table{display:block;min-width:0}.responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}.responsive-table tbody{display:grid;gap:12px}.responsive-table tr{padding:10px 15px;border:1px solid var(--holda-line);border-radius:14px;background:#fff;box-shadow:var(--holda-shadow-sm)}.responsive-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:8px 0;border-bottom:1px solid var(--holda-line);text-align:left}.responsive-table td:last-child{border-bottom:0}.responsive-table td::before{content:attr(data-label);color:var(--holda-muted);font-size:.8rem;font-weight:700;text-align:right}.responsive-table td[data-label="شرح"] b{max-width:60vw;overflow-wrap:anywhere}.responsive-table .ltr{direction:ltr}.transaction-browser .table-wrap{overflow:visible}}@media(max-width:480px){.filter-bar{grid-template-columns:1fr}.filter-search,.filter-actions{grid-column:auto}}

/* Accessible charts and keyboard navigation — Holda 1.14 */
.accessible-chart{margin:22px 0}.chart-legend{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:14px;color:var(--holda-muted);font-size:.86rem}.chart-legend span{display:inline-flex;align-items:center;gap:7px}.chart-legend span::before{content:"";width:12px;height:12px;border:2px solid transparent;border-radius:3px}.chart-legend .legend-users::before{background:var(--holda-mint-500);border-color:var(--holda-mint-700)}.chart-legend .legend-revenue::before{background:var(--holda-navy-700);border-color:var(--holda-navy-950)}.accessible-chart figcaption{margin-top:14px;color:var(--holda-muted);font-size:.82rem}.chart-data-table{margin-top:24px;border:1px solid var(--holda-line);border-radius:14px}.chart-data-table:focus-visible{outline:3px solid var(--holda-mint-500);outline-offset:3px}.chart-data-table .data-table{min-width:600px}.chart-data-table caption{padding:14px;color:var(--holda-navy-900);background:var(--holda-surface-soft);font-size:1rem;font-weight:800;text-align:right}.chart-data-table tfoot{font-weight:800;background:var(--holda-mint-50)}.pagination-gap{min-width:28px;display:grid;place-items:center;color:var(--holda-muted)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(forced-colors:active){.chart-legend span::before,.chart-bars progress{forced-color-adjust:auto}.range-tabs a.active,.finance-nav a[aria-current="page"]{outline:2px solid currentColor}.status-badge{border:1px solid currentColor}}

/* Priority-based mobile data cards — Holda 1.15 */
.card-list{display:grid}.card-list .data-row{min-width:0;display:grid;grid-template-columns:2fr 1fr 1.2fr .7fr;gap:16px;align-items:center;padding:13px;border-bottom:1px solid var(--holda-line)}.mobile-card-action{font-weight:800}.responsive-admin-list article{background:#fff}.cell-stack{display:grid;gap:2px}.responsive-admin-list [data-label]>small,.responsive-ticket-list [data-label]>small,.responsive-table td small,.cell-stack small{display:block;color:var(--holda-muted)}
@media(max-width:700px){.responsive-admin-list,.card-list{overflow:visible}.responsive-admin-list .admin-head,.card-list .data-head{display:none}.responsive-admin-list .admin-row,.responsive-ticket-list .data-row{min-width:0;display:grid;grid-template-columns:1fr;gap:0;padding:14px 16px;margin-bottom:12px;border:1px solid var(--holda-line);border-radius:14px;background:#fff;box-shadow:var(--holda-shadow-sm)}.responsive-admin-list .admin-row>[data-label],.responsive-ticket-list .data-row>[data-label]{display:grid;grid-template-columns:minmax(86px,auto) 1fr;gap:14px;align-items:start;padding:9px 0;border-bottom:1px solid var(--holda-line);overflow-wrap:anywhere}.responsive-admin-list .admin-row>[data-label]::before,.responsive-ticket-list .data-row>[data-label]::before{content:attr(data-label);color:var(--holda-muted);font-size:.78rem;font-weight:700}.responsive-admin-list .admin-row>[data-label]>*,.responsive-ticket-list .data-row>[data-label]>*{min-width:0}.responsive-admin-list .mobile-card-action,.responsive-ticket-list .mobile-card-action{min-height:44px;display:grid;place-items:center;margin-top:12px;border:1px solid var(--holda-mint-500);border-radius:10px;text-decoration:none}.responsive-table td>small{max-width:62vw}.admin-main .panel{padding-inline:clamp(14px,4vw,24px)}}
/* eNAMAD trust seal and public contact details in the account footer. */
.site-footer,
.app-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(220px, 1fr) minmax(220px, 1.25fr) auto;
  align-items: start;
}

.footer-brand,
.footer-contact {
  display: grid;
  gap: 3px;
}

.footer-contact address {
  margin: 0;
  color: var(--holda-muted);
  font-style: normal;
  line-height: 1.9;
}

.footer-contact a {
  color: var(--holda-text);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--holda-mint-700);
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 112px;
  padding: 8px;
  border: 1px solid var(--holda-line);
  border-radius: 14px;
  background: #fff;
}

.footer-trust img {
  display: block;
  width: 96px;
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.site-footer > small,
.app-footer > small {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .site-footer,
  .app-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-trust {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-footer,
  .app-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer > small,
  .app-footer > small {
    grid-column: auto;
  }
}

/* UI-02: shared readable header and compact dark footer treatment. */
.site-header,
.app-header {
  background: var(--holda-header-gradient);
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgb(7 26 42 / 22%);
  color: #fff;
}

.site-header,
.app-header {
  padding-inline: 18px;
}

.brand,
.site-brand,
.brand:hover,
.site-brand:hover {
  color: #fff;
}

.brand-logo {
  padding: 4px 8px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(7 26 42 / 18%);
}

.header-link {
  color: #fff;
}

.header-link:hover {
  color: var(--holda-navy-950);
  background: rgb(255 255 255 / 82%);
}

.site-footer,
.app-footer {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin-inline: 0;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(190px, 1fr) minmax(220px, 1.3fr) auto;
  align-items: start;
  justify-content: initial;
  gap: 18px 24px;
  padding: 22px max(24px, calc((100% - 1180px) / 2));
  color: #dbeae6;
  background: var(--holda-footer-gradient);
  border: 0;
  border-block-start: 1px solid rgb(255 255 255 / 16%);
  font-size: 0.76rem;
}

.footer-brand,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 3px;
}

.footer-brand strong,
.footer-contact strong {
  color: #fff;
  font-size: 0.8rem;
}

.footer-brand span,
.footer-contact address {
  color: #b9cfca;
  line-height: 1.75;
}

.footer-contact address {
  margin: 0;
  font-style: normal;
}

.footer-contact a,
.footer-links a {
  color: #dbeae6;
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-links,
.footer-links nav {
  display: flex;
  align-items: center;
  align-self: start;
  flex-wrap: wrap;
  gap: 0;
}

.footer-links > * + *,
.footer nav > * + * {
  margin-inline-start: 12px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid rgb(219 234 230 / 28%);
}

.footer-install {
  color: #dbeae6;
}

.footer-install:hover {
  color: #fff;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 94px;
  min-height: 94px;
  padding: 6px;
  border: 1px solid #dbeae6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgb(7 26 42 / 18%);
}

.footer-trust img {
  display: block;
  width: 80px;
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.site-footer > small,
.app-footer > small {
  grid-column: 1 / -1;
  padding-block-start: 9px;
  color: #b9cfca;
  border-block-start: 1px solid rgb(219 234 230 / 20%);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .site-footer,
  .app-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-trust {
    justify-self: start;
  }
}

/* UI-05: use the same small contact strip and uncluttered trust card as the public footer. */
.site-footer,
.app-footer {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "brand links links trust"
    "contact contact contact contact"
    "small small small small";
  align-items: start;
  gap: 18px 24px;
  padding-top: 30px;
  padding-bottom: 14px;
}

.site-footer > .footer-brand,
.app-footer > .footer-brand {
  grid-area: brand;
}

.site-footer > .footer-links,
.app-footer > .footer-links {
  grid-area: links;
  justify-self: start;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer .footer-links > * + *,
.app-footer .footer-links > * + * {
  margin-inline-start: 0;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.site-footer > .footer-contact,
.app-footer > .footer-contact {
  grid-area: contact;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgb(219 234 230 / 22%);
}

.site-footer > .footer-contact address,
.app-footer > .footer-contact address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 13px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: .68rem;
  line-height: 1.7;
}

.site-footer > .footer-contact address br,
.app-footer > .footer-contact address br {
  display: none;
}

.site-footer > .footer-contact address a,
.app-footer > .footer-contact address a,
.site-footer > .footer-contact address a + a,
.app-footer > .footer-contact address a + a {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer > .footer-trust,
.app-footer > .footer-trust {
  grid-area: trust;
  width: 154px;
  min-width: 154px;
  height: 78px;
  min-height: 78px;
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid #dbeae6;
}

.site-footer > .footer-trust img,
.app-footer > .footer-trust img {
  width: 124px;
  max-height: 62px;
  object-fit: contain;
}

.site-footer > small,
.app-footer > small {
  grid-area: small;
  padding: 0;
  border-top: 0;
  font-size: .66rem;
}

@media (max-width: 960px) {
  .site-footer,
  .app-footer {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "brand links"
      "trust trust"
      "contact contact"
      "small small";
  }

  .site-footer > .footer-trust,
  .app-footer > .footer-trust {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-footer,
  .app-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "trust"
      "contact"
      "small";
  }

  .site-footer > .footer-links,
  .app-footer > .footer-links {
    flex-direction: column;
    gap: 5px;
  }

  .site-footer > .footer-contact,
  .app-footer > .footer-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .site-footer > .footer-contact address,
  .app-footer > .footer-contact address {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* UI-09 typography follow-up: match the homepage footer line metrics. */
.site-footer .footer-about .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.site-footer .footer-column strong,
.site-footer .footer-grid > .footer-contact strong {
  line-height: 1.75;
}

/* UI-09 final follow-up: restore the homepage footer column gap in the app shell. */
.site-footer > div.footer-grid {
  gap: 18px 24px;
}

/* UI-09 follow-up: keep the information column in its own grid cell. */
.site-footer .footer-grid > .footer-column:not(.footer-contact) {
  grid-column: auto;
}

/* UI-09: one footer system shared by the homepage, public pages and account pages. */
.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 30px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #315859 0%, #214d4b 100%);
  border: 0;
  font-size: inherit;
}

.site-footer > .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 24px;
  padding-bottom: 24px;
}

.site-footer .footer-about {
  grid-column: 1;
  grid-row: 1;
  display: block;
  align-content: start;
  gap: 0;
}

.site-footer .footer-about .brand {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.site-footer .footer-about .brand-logo {
  width: 164px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.site-footer .footer-about p {
  margin: 10px 0 0;
  color: #d3e1dd;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .footer-column:not(.footer-contact) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  grid-row: 1;
}

.site-footer .footer-column strong {
  flex-basis: auto;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.site-footer .footer-column a {
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer .footer-column a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-grid > .footer-contact {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  justify-self: start;
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-grid > .footer-contact strong {
  flex-basis: auto;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.site-footer .footer-grid > .footer-contact address {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

.site-footer .footer-grid > .footer-contact address br {
  display: none;
}

.site-footer .footer-grid > .footer-contact address a,
.site-footer .footer-grid > .footer-contact address a + a {
  margin: 0;
  padding: 0;
  border: 0 !important;
  color: #e0ece8;
  font-size: 13px;
  text-decoration: none;
}

.site-footer .footer-trust {
  grid-column: 4;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 154px;
  min-width: 154px;
  height: 78px;
  min-height: 78px;
  margin-top: 0;
  padding: 7px 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 31, 33, .16);
}

.site-footer .footer-trust img {
  display: block;
  width: 124px;
  max-width: 100%;
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px 26px;
  padding: 12px 0;
  border-top: 1px solid rgba(219, 234, 230, .22);
}

.site-footer .footer-copyright {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  min-width: 0;
  color: #9fb8b2;
  font-size: 11px;
}

.site-footer .footer-copyright p {
  margin: 0;
}

.site-footer .footer-bottom > .footer-quick-access {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-self: start;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-bottom > .footer-quick-access strong {
  display: none;
}

.site-footer .footer-bottom > .footer-quick-access a,
.site-footer .footer-bottom > .footer-quick-access a + a {
  margin: 0;
  padding: 0;
  border: 0;
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer .footer-bottom > .footer-quick-access a + a {
  margin-inline-start: 12px;
}

@media (max-width: 1040px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer .footer-trust {
    grid-column: 3;
  }
}

@media (max-width: 820px) {
  .site-footer > .container {
    width: min(100% - 32px, 1180px);
  }

  .site-footer .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .site-footer .footer-about {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer .footer-grid > .footer-contact {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer .footer-grid > .footer-column:not(.footer-contact) {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer .footer-trust {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }

  .site-footer .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom > .footer-quick-access {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer .footer-bottom > .footer-copyright {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-about,
  .site-footer .footer-grid > .footer-contact,
  .site-footer .footer-grid > .footer-column:not(.footer-contact),
  .site-footer .footer-trust {
    grid-column: 1;
    grid-row: auto;
  }

.site-footer .footer-grid > .footer-contact {
  align-items: flex-start;
}

/* UI-10: keep the PHP shell header/footer in the same green family as the site. */
:root {
  --holda-navy-950: #173f43;
  --holda-navy-900: #24575a;
  --holda-navy-800: #315859;
  --holda-navy-700: #3f726a;
  --holda-ink: #172b2d;
  --holda-text: #2c504c;
  --holda-muted: #5e7170;
  --holda-line: #d4ddd7;
  --holda-line-strong: #c6d5cd;
  --holda-surface-soft: #edf1ec;
  --holda-canvas: #edf4ef;
  --holda-header-gradient: linear-gradient(90deg, #7fa59b 0%, #3b7069 46%, #315859 100%);
  --holda-footer-gradient: linear-gradient(135deg, #315859 0%, #214d4b 100%);
}

body {
  background:
    radial-gradient(circle at 84% 9%, rgb(88 213 187 / 14%), transparent 28rem),
    radial-gradient(circle at 10% 96%, rgb(63 114 106 / 8%), transparent 32rem),
    var(--holda-canvas);
}

.site-header,
.app-header {
  background: var(--holda-header-gradient);
}

.footer,
.site-footer,
.app-footer {
  background: var(--holda-footer-gradient);
}
}

@media (max-width: 680px) {
  .site-header,
  .app-header {
    padding-inline: 12px;
  }

  .site-footer,
  .app-footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px 16px;
  }

  .site-footer > small,
  .app-footer > small {
    grid-column: auto;
  }

  .footer-trust {
    justify-self: start;
  }
}

@media print {
  .site-header,
  .app-header,
  .site-footer,
  .app-footer {
    display: none !important;
  }
}

/* UI-04: keep account contact details in a small line below the footer content. */
.site-footer,
.app-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand links"
    "contact trust";
  align-items: start;
  gap: 14px 24px;
}

.site-footer > .footer-brand,
.app-footer > .footer-brand {
  grid-area: brand;
}

.site-footer > .footer-links,
.app-footer > .footer-links {
  grid-area: links;
  justify-self: end;
}

.site-footer > .footer-contact,
.app-footer > .footer-contact {
  grid-area: contact;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgb(219 234 230 / 20%);
}

.site-footer > .footer-contact strong,
.app-footer > .footer-contact strong {
  color: #fff;
  font-size: .72rem;
  white-space: nowrap;
}

.site-footer > .footer-contact address,
.app-footer > .footer-contact address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  color: #b9cfca;
  font-size: .7rem;
  line-height: 1.6;
}

.site-footer > .footer-contact address a + a,
.app-footer > .footer-contact address a + a {
  margin-inline-start: 10px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgb(219 234 230 / 28%);
}

.site-footer > .footer-trust,
.app-footer > .footer-trust {
  grid-area: trust;
  min-width: 78px;
  min-height: 78px;
  justify-self: end;
  padding: 5px;
  border-top: 1px solid rgb(219 234 230 / 20%);
}

.site-footer > .footer-trust img,
.app-footer > .footer-trust img {
  width: 66px;
}

@media (max-width: 680px) {
  .site-footer,
  .app-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "contact"
      "trust";
  }

  .site-footer > .footer-links,
  .app-footer > .footer-links,
  .site-footer > .footer-trust,
  .app-footer > .footer-trust {
    justify-self: start;
  }

  .site-footer > .footer-contact,
  .app-footer > .footer-contact {
    grid-template-columns: 1fr;
  }
}

/* UI-05 final: compact contact strip and a fixed-size white trust card. */
.site-footer,
.app-footer {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "brand links links trust"
    "contact contact contact contact"
    "small small small small";
  align-items: start;
  gap: 18px 24px;
  padding-top: 30px;
  padding-bottom: 14px;
}

.site-footer > .footer-brand,
.app-footer > .footer-brand { grid-area: brand; }

.site-footer > .footer-links,
.app-footer > .footer-links {
  grid-area: links;
  justify-self: start;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer .footer-links > * + *,
.app-footer .footer-links > * + * {
  margin-inline-start: 0;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.site-footer > .footer-contact,
.app-footer > .footer-contact {
  grid-area: contact;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgb(219 234 230 / 22%);
}

.site-footer > .footer-contact address,
.app-footer > .footer-contact address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 13px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: .68rem;
  line-height: 1.7;
}

.site-footer > .footer-contact address br,
.app-footer > .footer-contact address br { display: none; }

.site-footer > .footer-contact address a,
.app-footer > .footer-contact address a,
.site-footer > .footer-contact address a + a,
.app-footer > .footer-contact address a + a {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer > .footer-trust,
.app-footer > .footer-trust {
  grid-area: trust;
  width: 154px;
  min-width: 154px;
  height: 78px;
  min-height: 78px;
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid #dbeae6;
}

.site-footer > .footer-trust img,
.app-footer > .footer-trust img {
  width: 124px;
  max-height: 62px;
  object-fit: contain;
}

.site-footer > small,
.app-footer > small {
  grid-area: small;
  padding: 0;
  border-top: 0;
  font-size: .66rem;
}

@media (max-width: 960px) {
  .site-footer,
  .app-footer {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "brand links"
      "trust trust"
      "contact contact"
      "small small";
  }

  .site-footer > .footer-trust,
  .app-footer > .footer-trust { justify-self: start; }
}

@media (max-width: 680px) {
  .site-footer,
  .app-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "trust"
      "contact"
      "small";
  }

  .site-footer > .footer-links,
  .app-footer > .footer-links {
    flex-direction: column;
    gap: 5px;
  }

  .site-footer > .footer-contact,
  .app-footer > .footer-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .site-footer > .footer-contact address,
  .app-footer > .footer-contact address {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* UI-09 final EOF override: the homepage footer is the single shared footer layout. */
.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 30px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #315859 0%, #214d4b 100%);
  border: 0;
  font-size: inherit;
  grid-template-areas: none;
}

.site-footer > .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-footer .footer-grid,
.site-footer > div.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas: none;
  align-items: start;
  gap: 18px 24px;
  padding-bottom: 24px;
}

.site-footer .footer-about {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 0;
}

.site-footer .footer-about .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.site-footer .footer-about .brand-logo {
  width: 164px;
  height: auto;
  object-fit: contain;
}

.site-footer .footer-about p {
  margin: 10px 0 0;
  color: #d3e1dd;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .footer-column:not(.footer-contact) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  grid-column: auto;
  grid-row: 1;
}

.site-footer .footer-column strong,
.site-footer .footer-grid > .footer-contact strong {
  flex-basis: auto;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
  line-height: 1.75;
}

.site-footer .footer-column a {
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer .footer-column a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-grid > .footer-contact {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  justify-self: start;
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-grid > .footer-contact address {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

.site-footer .footer-grid > .footer-contact address br {
  display: none;
}

.site-footer .footer-grid > .footer-contact address a,
.site-footer .footer-grid > .footer-contact address a + a {
  margin: 0;
  padding: 0;
  border: 0 !important;
  color: #e0ece8;
  font-size: 13px;
  text-decoration: none;
}

.site-footer .footer-trust {
  grid-column: 4;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 154px;
  min-width: 154px;
  height: 78px;
  min-height: 78px;
  margin-top: 0;
  padding: 7px 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 31, 33, .16);
}

.site-footer .footer-trust img {
  display: block;
  width: 124px;
  max-width: 100%;
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: none;
  align-items: center;
  gap: 18px 26px;
  padding: 12px 0;
  border-top: 1px solid rgba(219, 234, 230, .22);
}

.site-footer .footer-copyright {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  min-width: 0;
  color: #9fb8b2;
  font-size: 11px;
}

.site-footer .footer-copyright p {
  margin: 0;
}

.site-footer .footer-bottom > .footer-quick-access {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-self: start;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-bottom > .footer-quick-access strong {
  display: none;
}

.site-footer .footer-bottom > .footer-quick-access a,
.site-footer .footer-bottom > .footer-quick-access a + a {
  margin: 0;
  padding: 0;
  border: 0;
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer .footer-bottom > .footer-quick-access a + a {
  margin-inline-start: 12px;
}

@media (max-width: 1040px) {
  .site-footer .footer-grid,
  .site-footer > div.footer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer .footer-trust {
    grid-column: 3;
  }
}

@media (max-width: 820px) {
  .site-footer > .container {
    width: min(100% - 32px, 1180px);
  }

  .site-footer .footer-grid,
  .site-footer > div.footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .site-footer .footer-about {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer .footer-grid > .footer-contact {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer .footer-grid > .footer-column:not(.footer-contact) {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer .footer-trust {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }

  .site-footer .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom > .footer-quick-access {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer .footer-bottom > .footer-copyright {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-grid,
  .site-footer > div.footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-about,
  .site-footer .footer-grid > .footer-contact,
  .site-footer .footer-grid > .footer-column:not(.footer-contact),
  .site-footer .footer-trust {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer .footer-grid > .footer-contact {
    align-items: flex-start; /* UI-11 earlier footer block */
  }
}


/* UI-09 actual final logo normalization. */
.site-footer .footer-about {
  display: block;
}

.site-footer .footer-about .brand-logo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* UI-09 final logo normalization: remove account-shell image chrome. */
.site-footer .footer-about {
  display: block;
}

.site-footer .footer-about .brand-logo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* UI-09 actual EOF override: final shared footer cascade. */
.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 30px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #315859 0%, #214d4b 100%);
  border: 0;
  font-size: inherit;
  grid-template-areas: none;
}

.site-footer > .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-footer .footer-grid,
.site-footer > div.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas: none;
  align-items: start;
  gap: 18px 24px;
  padding-bottom: 24px;
}

.site-footer .footer-about {
  grid-column: 1;
  grid-row: 1;
  display: block;
  align-content: start;
  gap: 0;
}

.site-footer .footer-about .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.site-footer .footer-about .brand-logo {
  width: 164px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.site-footer .footer-about p {
  margin: 10px 0 0;
  color: #d3e1dd;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .footer-column:not(.footer-contact) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  grid-column: auto;
  grid-row: 1;
}

.site-footer .footer-column strong,
.site-footer .footer-grid > .footer-contact strong {
  flex-basis: auto;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
  line-height: 1.75;
}

.site-footer .footer-column a {
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer .footer-column a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-grid > .footer-contact {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  justify-self: start;
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-grid > .footer-contact address {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

.site-footer .footer-grid > .footer-contact address br {
  display: none;
}

.site-footer .footer-grid > .footer-contact address a,
.site-footer .footer-grid > .footer-contact address a + a {
  margin: 0;
  padding: 0;
  border: 0 !important;
  color: #e0ece8;
  font-size: 13px;
  text-decoration: none;
}

.site-footer .footer-trust {
  grid-column: 4;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 154px;
  min-width: 154px;
  height: 78px;
  min-height: 78px;
  margin-top: 0;
  padding: 7px 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 31, 33, .16);
}

.site-footer .footer-trust img {
  display: block;
  width: 124px;
  max-width: 100%;
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: none;
  align-items: center;
  gap: 18px 26px;
  padding: 12px 0;
  border-top: 1px solid rgba(219, 234, 230, .22);
}

.site-footer .footer-copyright {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  min-width: 0;
  color: #9fb8b2;
  font-size: 11px;
}

.site-footer .footer-copyright p {
  margin: 0;
}

.site-footer .footer-bottom > .footer-quick-access {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-self: start;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-bottom > .footer-quick-access strong {
  display: none;
}

.site-footer .footer-bottom > .footer-quick-access a,
.site-footer .footer-bottom > .footer-quick-access a + a {
  margin: 0;
  padding: 0;
  border: 0;
  color: #e0ece8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer .footer-bottom > .footer-quick-access a + a {
  margin-inline-start: 12px;
}

@media (max-width: 1040px) {
  .site-footer .footer-grid,
  .site-footer > div.footer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer .footer-trust {
    grid-column: 3;
  }
}

@media (max-width: 820px) {
  .site-footer > .container {
    width: min(100% - 32px, 1180px);
  }

  .site-footer .footer-grid,
  .site-footer > div.footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .site-footer .footer-about {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer .footer-grid > .footer-contact {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer .footer-grid > .footer-column:not(.footer-contact) {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer .footer-trust {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }

  .site-footer .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom > .footer-quick-access {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer .footer-bottom > .footer-copyright {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-grid,
  .site-footer > div.footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-about,
  .site-footer .footer-grid > .footer-contact,
  .site-footer .footer-grid > .footer-column:not(.footer-contact),
  .site-footer .footer-trust {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer .footer-grid > .footer-contact {
    align-items: flex-start;
  }
}
/* UI-11: unify the footer logo and trust mark frames and move information links to the lower row. */
.site-footer .footer-about .brand {
  width: 184px !important;
  min-width: 184px !important;
  height: 94px !important;
  min-height: 94px !important;
  padding: 8px 10px !important;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-about .brand-logo {
  width: 164px !important;
  height: 78px !important;
  max-width: 164px !important;
  max-height: 78px !important;
}

.site-footer .footer-trust-wrap {
  grid-column: 4 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-self: end !important;
  gap: 6px;
  width: 184px;
  min-width: 184px;
}

.site-footer .footer-trust {
  display: inline-flex !important;
  position: static;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  width: 184px !important;
  min-width: 184px !important;
  height: 94px !important;
  min-height: 94px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
}

.site-footer .footer-trust img {
  width: 164px !important;
  max-width: 164px !important;
  max-height: 78px !important;
  height: auto !important;
}

.site-footer .footer-trust-label {
  display: block;
  width: 184px;
  color: #d3e1dd;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.site-footer .footer-contact address,
.site-footer .footer-contact address a {
  font-style: normal !important;
}

.site-footer .footer-bottom > .footer-quick-access a,
.site-footer .footer-bottom > .footer-quick-access a + a {
  font-size: 11px !important;
  line-height: 1.7;
}

.site-footer .footer-copyright p + p {
  display: none !important;
}

@media (max-width: 1040px) {
  .site-footer .footer-trust-wrap {
    grid-column: 3 !important;
  }
}

@media (max-width: 820px) {
  .site-footer .footer-trust-wrap {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    align-items: flex-start;
  }

  .site-footer .footer-trust-label {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-trust-wrap {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/*
 * Holda v3 visual layer.
 * Intentionally limited to the application header and main content so the
 * established homepage footer remains outside this cascade.
 */
body:is(.site-shell, .app-shell) > :is(.site-header, .app-header, main) {
  --holda-navy-950: #173f43;
  --holda-navy-900: #24575a;
  --holda-navy-800: #315859;
  --holda-navy-700: #3f726a;
  --holda-mint-700: #3f726a;
  --holda-mint-600: #5f8f87;
  --holda-mint-500: #7fa59b;
  --holda-mint-400: #7fa59b;
  --holda-mint-200: #d4ddd7;
  --holda-mint-100: #e5efeb;
  --holda-mint-50: #edf1ec;
  --holda-ink: #172b2d;
  --holda-text: #315859;
  --holda-muted: #5e7170;
  --holda-line: #d4ddd7;
  --holda-line-strong: #d4ddd7;
  --holda-surface: #f7f7f2;
  --holda-surface-soft: #edf1ec;
  --holda-canvas: #e5efeb;
  --holda-danger: #a6534c;
  --holda-danger-bg: #f8e9e7;
  --holda-success: #397568;
  --holda-success-bg: #e5efeb;
  --holda-info: #3f726a;
  --holda-info-bg: #edf1ec;
  --holda-shadow-sm: 0 8px 24px rgb(23 63 67 / 8%);
  --holda-shadow: 0 24px 64px rgb(23 63 67 / 13%);
  --holda-focus: 0 0 0 4px rgb(127 165 155 / 30%);
  --holda-header-gradient: linear-gradient(90deg, #7fa59b 0%, #3f726a 46%, #315859 100%);
}

body:is(.site-shell, .app-shell) {
  background:
    radial-gradient(circle at 84% 9%, rgb(127 165 155 / 16%), transparent 28rem),
    radial-gradient(circle at 10% 96%, rgb(95 143 135 / 10%), transparent 32rem),
    #e5efeb;
}

body:is(.site-shell, .app-shell) > main {
  color: var(--holda-text);
}

/* Application header: homepage color rhythm, visible logo and sticky glass. */
body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) {
  position: sticky;
  inset-block-start: 12px;
  z-index: 100;
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin-block: 12px 0;
  padding: 10px 18px;
  gap: 24px;
  background: var(--holda-header-gradient);
  border: 1px solid rgb(247 247 242 / 46%);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgb(23 63 67 / 14%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  backdrop-filter: blur(14px) saturate(112%);
}

body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) .brand {
  min-width: 0;
  flex: 0 0 auto;
  color: #f7f7f2;
  opacity: 1;
  visibility: visible;
}

body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) .brand-logo {
  display: block;
  width: 122px;
  height: 55px;
  padding: 4px 8px;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  background: #f7f7f2;
  border: 1px solid rgb(247 247 242 / 72%);
  border-radius: 12px;
  box-shadow: 0 5px 14px rgb(23 63 67 / 13%);
}

body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) .header-link:hover,
body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) .header-link:focus-visible {
  color: #173f43;
  background: rgb(247 247 242 / 88%);
}

/* Active app/auth surfaces and controls use the UI-10 green system. */
body:is(.site-shell, .app-shell) > main :is(input, select, textarea):hover {
  border-color: #7fa59b;
}

body:is(.site-shell, .app-shell) > main :is(input, textarea)::placeholder {
  color: #7fa59b;
}

body:is(.site-shell, .app-shell) > main :is(input, select, textarea):disabled {
  color: #5e7170;
  background: #edf1ec;
}

body:is(.site-shell, .app-shell) > main :is(.button, .btn) {
  box-shadow: 0 8px 18px rgb(23 63 67 / 13%);
}

body:is(.site-shell, .app-shell) > main :is(.button--primary, .btn-primary) {
  color: #f7f7f2;
  background: #3f726a;
  border-color: #3f726a;
  box-shadow: 0 8px 18px rgb(63 114 106 / 20%);
}

body:is(.site-shell, .app-shell) > main :is(.button--primary, .btn-primary):hover {
  color: #f7f7f2;
  background: #315859;
  border-color: #315859;
  box-shadow: 0 10px 22px rgb(49 88 89 / 20%);
}

body:is(.site-shell, .app-shell) > main :is(
  .button--secondary,
  .btn-secondary,
  .button--outline,
  .btn-outline,
  .button--danger,
  .btn-danger
) {
  box-shadow: none;
}

body:is(.site-shell, .app-shell) > main :is(.button--danger, .btn-danger) {
  color: #a6534c;
  background: #f8e9e7;
  border-color: #a6534c;
}

body:is(.site-shell, .app-shell) > main :is(.button--danger, .btn-danger):hover {
  color: #f7f7f2;
  background: #a6534c;
  border-color: #a6534c;
}

body:is(.site-shell, .app-shell) > main :is(.alert, .notice, .status-badge, .badge) {
  border-color: #d4ddd7;
}

body:is(.site-shell, .app-shell) > main :is(.auth-shell, .panel, .dashboard-card, .profile-card) {
  border-color: #d4ddd7;
}

body:is(.site-shell, .app-shell) > main .auth-shell {
  background: #f7f7f2;
  box-shadow: 0 24px 64px rgb(23 63 67 / 13%);
}

body:is(.site-shell, .app-shell) > main :is(.auth-content, .auth-panel) {
  background:
    radial-gradient(circle at 84% 10%, rgb(127 165 155 / 18%), transparent 18rem),
    #f7f7f2;
}

body:is(.site-shell, .app-shell) > main :is(.brand-panel, .auth-aside) {
  background:
    radial-gradient(circle at 12% 18%, rgb(247 247 242 / 68%), transparent 17rem),
    linear-gradient(145deg, #f7f7f2 0%, #e5efeb 48%, #7fa59b 100%);
}

body:is(.site-shell, .app-shell) > main :is(.brand-panel, .auth-aside)::before {
  border-color: rgb(95 143 135 / 24%);
  box-shadow:
    0 0 0 62px rgb(127 165 155 / 5%),
    0 0 0 126px rgb(127 165 155 / 3%);
}

body:is(.site-shell, .app-shell) > main :is(.brand-panel, .auth-aside)::after {
  background: radial-gradient(circle, rgb(95 143 135 / 22%), transparent 68%);
}

/* Crop only the embedded tagline while keeping the source logo untouched. */
body:is(.site-shell, .app-shell) > main .auth-brand {
  align-self: center;
  align-items: flex-start;
  width: 220px;
  height: 74px;
  margin-inline: auto;
  overflow: hidden;
}

body:is(.site-shell, .app-shell) > main .auth-brand-logo {
  width: 220px;
  max-width: none;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center top;
}

/* Keep the registration pair top-aligned and both controls exactly 50px tall. */
body:is(.site-shell, .app-shell) > main .auth-form .form-row:has(#phone) {
  align-items: start;
}

body:is(.site-shell, .app-shell) > main .auth-form .form-row:has(#phone) > .form-group {
  align-content: start;
  grid-auto-rows: max-content;
}

body:is(.site-shell, .app-shell) > main .auth-form .form-row:has(#phone) input {
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  align-self: start;
}

/* Accounts overview: compact, flat donut and a readable legend. */
body:is(.site-shell, .app-shell) > main .accounts-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: 18px;
  margin-block: 18px;
}

body:is(.site-shell, .app-shell) > main .accounts-overview-grid > * {
  min-width: 0;
  height: auto;
}

body:is(.site-shell, .app-shell) > main .account-donut-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  color: #315859;
  background: #f7f7f2;
  border: 1px solid #d4ddd7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(23 63 67 / 8%);
}

body:is(.site-shell, .app-shell) > main .account-donut-wrap {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(180px, 1.1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
}

body:is(.site-shell, .app-shell) > main .account-donut-svg {
  width: min(250px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: visible;
  color: #3f726a;
}

body:is(.site-shell, .app-shell) > main .account-donut-svg .donut-track {
  fill: none;
  stroke: #dfe9e4;
  stroke-width: 30;
}

body:is(.site-shell, .app-shell) > main .account-donut-svg .donut-segment {
  fill: none;
  stroke: var(--donut-color, #24575a);
  stroke-width: 30;
  stroke-linecap: butt;
  transition: opacity 180ms ease, filter 180ms ease;
}

body:is(.site-shell, .app-shell) > main .account-donut-svg .donut-hole {
  fill: #f7f7f2;
}

body:is(.site-shell, .app-shell) > main .account-donut-svg .donut-segment + .donut-segment {
  --donut-color: #5f8f87;
}

body:is(.site-shell, .app-shell) > main .account-donut-svg .donut-segment + .donut-segment + .donut-segment {
  --donut-color: #7fa59b;
}

body:is(.site-shell, .app-shell) > main .account-donut-svg .donut-segment:hover {
  filter: brightness(.96);
  opacity: .86;
}

body:is(.site-shell, .app-shell) > main .account-donut-legend {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:is(.site-shell, .app-shell) > main .account-donut-legend ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:is(.site-shell, .app-shell) > main .account-donut-legend a {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #315859;
  border-radius: 10px;
}

body:is(.site-shell, .app-shell) > main .account-donut-legend a:hover,
body:is(.site-shell, .app-shell) > main .account-donut-legend a:focus-visible {
  background: #e5efeb;
}

body:is(.site-shell, .app-shell) > main .legend-swatch {
  width: 10px;
  height: 10px;
  background: var(--legend-color, #3f726a);
  border-radius: 50%;
}

body:is(.site-shell, .app-shell) > main :is(.donut-center-label, .donut-center-value, .donut-center-currency) {
  fill: #315859;
  font-family: inherit;
}

body:is(.site-shell, .app-shell) > main .donut-center-label,
body:is(.site-shell, .app-shell) > main .donut-center-currency {
  font-size: 12px;
}

body:is(.site-shell, .app-shell) > main .donut-center-value {
  fill: #173f43;
  font-size: 18px;
  font-weight: 800;
}

body:is(.site-shell, .app-shell) > main .account-balance-row {
  --account-color: #24575a;
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  color: #315859;
  border-block-end: 1px solid #d4ddd7;
}

body:is(.site-shell, .app-shell) > main .account-balance-row::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--account-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(127 165 155 / 14%);
}

body:is(.site-shell, .app-shell) > main .account-balance-row:nth-child(2) {
  --account-color: #5f8f87;
}

body:is(.site-shell, .app-shell) > main .account-balance-row:nth-child(3) {
  --account-color: #7fa59b;
}

body:is(.site-shell, .app-shell) > main .account-balance-row:nth-child(n + 4) {
  --account-color: #d4ddd7;
}

body:is(.site-shell, .app-shell) > main .account-balance-row:last-child {
  border-block-end: 0;
}

body:is(.site-shell, .app-shell) > main .account-balance-row strong {
  color: #173f43;
  font-variant-numeric: tabular-nums;
}

body:is(.site-shell, .app-shell) > main .account-balance-row:target,
body:is(.site-shell, .app-shell) > main .account-balance-row:focus {
  padding-inline: 10px;
  background: #e5efeb;
  border-radius: 10px;
  outline: none;
}

/* Transaction insights: equal chart/form cards with responsive native bars. */
body:is(.site-shell, .app-shell) > main .transaction-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  grid-template-rows: auto 1fr;
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 18px;
  margin-block: 18px;
}

body:is(.site-shell, .app-shell) > main .transaction-insights > .panel-header {
  grid-column: 1 / -1;
  height: auto;
}

body:is(.site-shell, .app-shell) > main .transaction-insights > * {
  min-width: 0;
  height: 100%;
}

body:is(.site-shell, .app-shell) > main .category-chart,
body:is(.site-shell, .app-shell) > main .category-create-panel {
  min-width: 0;
  min-height: 100%;
  padding: clamp(20px, 3vw, 28px);
  background: #f7f7f2;
  border: 1px solid #d4ddd7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(23 63 67 / 8%);
}

body:is(.site-shell, .app-shell) > main .category-chart {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 20px;
}

body:is(.site-shell, .app-shell) > main .category-chart-bars {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 14px;
}

body:is(.site-shell, .app-shell) > main .category-bar-item {
  --category-color: #24575a;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(90px, .4fr) minmax(130px, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 12px;
  color: #315859;
}

body:is(.site-shell, .app-shell) > main .category-bar-item:nth-child(3n + 2) {
  --category-color: #5f8f87;
}

body:is(.site-shell, .app-shell) > main .category-bar-item:nth-child(3n) {
  --category-color: #7fa59b;
}

body:is(.site-shell, .app-shell) > main .category-bar-visual {
  width: 100%;
  height: 12px;
  overflow: hidden;
  background: #e5efeb;
  border: 1px solid #d4ddd7;
  border-radius: 999px;
}

body:is(.site-shell, .app-shell) > main .category-bar-fill {
  width: var(--bar-size, var(--bar-value, 0%));
  max-width: 100%;
  height: 100%;
  background: var(--category-color);
  border-radius: inherit;
  transform-origin: right center;
  transition: width 260ms ease, background-color 180ms ease;
}

body:is(.site-shell, .app-shell) > main .category-create-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

body:is(.site-shell, .app-shell) > main .category-create-panel form {
  display: grid;
  align-content: start;
  gap: 14px;
}

/* Assets: full-width equal cards with native SVG trend and valuation areas. */
body:is(.site-shell, .app-shell) > main .asset-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
  margin-block: 18px;
}

body:is(.site-shell, .app-shell) > main .asset-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  color: #315859;
  background: #f7f7f2;
  border: 1px solid #d4ddd7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(23 63 67 / 8%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body:is(.site-shell, .app-shell) > main .asset-card:hover {
  border-color: #7fa59b;
  box-shadow: 0 10px 28px rgb(23 63 67 / 11%);
}

body:is(.site-shell, .app-shell) > main .asset-card-grid {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.25fr);
  align-items: stretch;
  gap: 18px;
}

body:is(.site-shell, .app-shell) > main .asset-card-grid > * {
  min-width: 0;
  height: 100%;
}

body:is(.site-shell, .app-shell) > main .asset-trend-chart {
  min-height: 210px;
  display: grid;
  align-content: center;
  padding: 16px;
  overflow: hidden;
  color: #3f726a;
  background: #edf1ec;
  border: 1px solid #d4ddd7;
  border-radius: 14px;
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg {
  width: 100%;
  height: 180px;
  overflow: visible;
  color: inherit;
  filter: drop-shadow(0 5px 8px rgb(23 63 67 / 9%));
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg :is(.trend-grid, [data-trend-grid]) {
  stroke: #d4ddd7;
  stroke-dasharray: 4 6;
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg .trend-grid-line {
  stroke: #d4ddd7;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg .trend-axis-label {
  fill: #5e7170;
  font-family: inherit;
  font-size: 12px;
}

body:is(.site-shell, .app-shell) > main .asset-summary dl {
  display: grid;
  gap: 0;
  margin: 16px 0;
}

body:is(.site-shell, .app-shell) > main .asset-summary dl > div,
body:is(.site-shell, .app-shell) > main .trend-range {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 9px;
  border-block-end: 1px solid #d4ddd7;
}

body:is(.site-shell, .app-shell) > main .asset-summary :is(dt, dd) {
  margin: 0;
}

body:is(.site-shell, .app-shell) > main .asset-summary dt,
body:is(.site-shell, .app-shell) > main .trend-range {
  color: #5e7170;
  font-size: .84rem;
}

body:is(.site-shell, .app-shell) > main .valuation-proposal,
body:is(.site-shell, .app-shell) > main .valuation-request {
  display: grid;
  gap: 10px;
}

body:is(.site-shell, .app-shell) > main .valuation-proposal > a {
  overflow-wrap: anywhere;
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg :is(.trend-area, [data-trend-area]) {
  fill: rgb(127 165 155 / 18%);
  stroke: none;
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg :is(.trend-line, [data-trend-line]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:is(.site-shell, .app-shell) > main .asset-trend-svg :is(.trend-point, [data-trend-point]) {
  fill: #f7f7f2;
  stroke: currentColor;
  stroke-width: 2;
}

body:is(.site-shell, .app-shell) > main .asset-card[data-trend="up"] .asset-trend-svg {
  color: #5f8f87;
}

body:is(.site-shell, .app-shell) > main .asset-card[data-trend="down"] .asset-trend-svg {
  color: #315859;
}

body:is(.site-shell, .app-shell) > main .asset-valuation {
  min-width: 0;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #e5efeb;
  border: 1px solid #d4ddd7;
  border-radius: 14px;
}

body:is(.site-shell, .app-shell) > main .asset-valuation strong {
  color: #173f43;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-variant-numeric: tabular-nums;
}

body:is(.site-shell, .app-shell) > main .valuation-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: auto;
}

body:is(.site-shell, .app-shell) > main .valuation-actions :is(.button, .btn, button, a) {
  min-width: 0;
  min-height: 44px;
  flex: 1 1 120px;
}

@media (max-width: 960px) {
  body:is(.site-shell, .app-shell) > main .auth-brand {
    width: 174px;
    height: 59px;
  }

  body:is(.site-shell, .app-shell) > main .auth-brand-logo {
    width: 174px;
  }

  body:is(.site-shell, .app-shell) > main .accounts-overview-grid,
  body:is(.site-shell, .app-shell) > main .transaction-insights {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  body:is(.site-shell, .app-shell) > main .asset-card-grid {
    grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr);
  }

  body:is(.site-shell, .app-shell) > main .asset-valuation {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) {
    inset-block-start: 8px;
    width: min(100% - 32px, 1180px);
    min-height: 68px;
    margin-block-start: 8px;
    padding: 6px 12px;
    gap: 12px;
    border-radius: 14px;
  }

  body:is(.site-shell, .app-shell) > :is(.site-header, .app-header) .brand-logo {
    width: 88px;
    height: 42px;
    padding: 3px 6px;
    border-radius: 10px;
  }

  body:is(.site-shell, .app-shell) > main .account-donut-wrap,
  body:is(.site-shell, .app-shell) > main .asset-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:is(.site-shell, .app-shell) > main .account-donut-wrap {
    min-height: 0;
  }

  body:is(.site-shell, .app-shell) > main .account-donut-svg {
    width: min(210px, 72vw);
  }

  body:is(.site-shell, .app-shell) > main .category-bar-item {
    grid-template-columns: minmax(76px, .45fr) minmax(100px, 1fr) minmax(58px, auto);
    gap: 9px;
  }

  body:is(.site-shell, .app-shell) > main .asset-valuation {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  body:is(.site-shell, .app-shell) > main .category-bar-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:is(.site-shell, .app-shell) > main .category-bar-visual {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body:is(.site-shell, .app-shell) > main .valuation-actions {
    flex-direction: column;
  }

  body:is(.site-shell, .app-shell) > main .valuation-actions :is(.button, .btn, button, a) {
    width: 100%;
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.site-shell, .app-shell) > main :is(
    .account-donut-svg,
    .donut-segment,
    .category-bar-fill,
    .asset-card,
    .asset-trend-svg
  ) {
    animation: none !important;
    transition: none !important;
  }

  body:is(.site-shell, .app-shell) > main :is(.account-donut-svg, .asset-trend-svg) {
    filter: none;
  }

  body:is(.site-shell, .app-shell) > main :is(.donut-segment, .asset-card):hover {
    opacity: 1;
    filter: none;
  }
}
