@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --page: #fff8f0;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #070b10;
  --body: #303a48;
  --muted: #6f7785;
  --soft: #fbf4ef;
  --line: #d8dde5;
  --line-strong: #cbd2dc;
  --accent: #df451f;
  --accent-dark: #cf3918;
  --accent-soft: #fff1eb;
  --danger: #b42318;
  --success: #0f7b47;
  --shadow: 0 24px 64px rgba(74, 51, 34, 0.18), 0 8px 20px rgba(74, 51, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(840px 460px at 14% 20%, rgba(255, 255, 255, 0.96), transparent 64%),
    radial-gradient(640px 360px at 88% 82%, rgba(226, 76, 30, 0.08), transparent 68%),
    linear-gradient(145deg, #fffaf5 0%, #fff4e8 46%, #fffaf7 100%);
  animation: pageFade 260ms ease-out;
}

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

.page {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: clamp(22px, 4.6vw, 54px) clamp(22px, 4vw, 56px);
}

.auth-shell {
  min-height: min(82vh, 680px);
  border: 1px solid rgba(210, 202, 194, 0.82);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 248, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(26px, 3vw, 38px) clamp(28px, 4vw, 48px) clamp(34px, 4vw, 48px);
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-glow {
  position: absolute;
  left: -8px;
  width: 8px;
  height: 24px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(42, 173, 206, 0.32), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(390px, 520px) minmax(360px, 460px);
  gap: clamp(40px, 4.2vw, 58px);
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.auth-shell.is-authed .auth-grid {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  min-height: 520px;
}

.auth-shell.is-authed .login-panel {
  display: none;
}

.auth-shell.is-authed .hero {
  align-items: center;
  text-align: center;
}

.auth-shell.is-authed .partner-badge {
  align-self: center;
}

.auth-shell.is-authed .feature-row {
  justify-content: center;
}

.auth-shell.is-authed .trust-card {
  text-align: left;
}

.auth-shell.is-authed .hero-auth-copy {
  display: block;
  margin-top: 22px;
  font-size: 1rem;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(252, 237, 228, 0.8);
  font-weight: 700;
  font-size: 0.88rem;
}

.partner-badge svg,
.feature-row i,
.trust-card svg,
.input-shell svg,
.terms-note svg,
.icon-btn svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hero h1 {
  margin: 32px 0 0;
  max-width: 540px;
  font-size: clamp(2.25rem, 3.3vw, 3.45rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: 0;
}

.hero p {
  margin: 20px 0 0;
  max-width: 520px;
  color: var(--body);
  font-size: clamp(0.94rem, 1.25vw, 1.08rem);
  line-height: 1.48;
}

.feature-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 0;
  margin-top: 30px;
  color: #101928;
  font-size: 0.9rem;
  font-weight: 500;
}

.feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
}

.feature-row span + span {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.feature-row i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.feature-row i::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-1px) rotate(-45deg);
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(520px, 100%);
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(255, 248, 244, 0.96), rgba(255, 236, 225, 0.72));
}

.trust-card svg {
  width: 46px;
  height: 46px;
  color: var(--accent);
  stroke-width: 1.7;
}

.trust-card div {
  display: grid;
  gap: 8px;
}

.trust-card strong {
  font-size: 0.96rem;
  font-weight: 800;
}

.trust-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-auth-copy {
  display: none;
}

.login-panel {
  position: relative;
  min-width: 0;
  padding-left: clamp(38px, 4vw, 58px);
}

.login-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -44px;
  bottom: -44px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #bfc8d2 12%, #bfc8d2 88%, transparent);
}

.login-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
}

.login-copy p {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.42;
}

.form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.form-modal {
  gap: 16px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.field > span:first-child {
  font-size: 0.9rem;
}

.field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
}

.field input::placeholder {
  color: #777d89;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(223, 69, 31, 0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(223, 69, 31, 0.1);
}

.input-shell > svg {
  color: #777d89;
}

.input-shell input {
  min-height: 50px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-modal .field {
  gap: 8px;
}

.form-modal .field input {
  min-height: 48px;
}

.form-modal .input-shell {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.82);
}

.form-modal .input-shell input {
  min-height: 48px;
  padding: 0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  color: #777d89;
  background: transparent;
  cursor: pointer;
}

.icon-btn:hover {
  background: #f5f6f8;
}

.icon-btn .eye-open {
  display: none;
}

.icon-btn.is-visible .eye-open {
  display: block;
}

.icon-btn.is-visible .eye-closed {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #e65228 0%, var(--accent-dark) 100%);
  box-shadow: 0 10px 18px rgba(223, 69, 31, 0.22);
}

.btn-login {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  font-size: 1rem;
}

.btn-outline {
  color: var(--accent);
  border: 1px solid rgba(223, 69, 31, 0.24);
  background: var(--accent-soft);
}

.btn-ghost {
  color: var(--body);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.btn-link,
.text-button {
  color: var(--accent);
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 800;
  cursor: pointer;
}

.btn-compact {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 30px 0 20px;
  color: #586070;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #dfe3e8;
}

.register-copy {
  margin: 0;
  text-align: center;
  color: #111827;
  font-size: 0.9rem;
}

.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  font-size: 0.88rem;
}

.terms-note {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  max-width: 390px;
  margin: 24px auto 0;
  color: #8b92a0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
}

.terms-note svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

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

.auth-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.reset-password-shell {
  min-height: min(76vh, 620px);
}

.reset-password-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(340px, 430px);
  gap: clamp(34px, 4vw, 56px);
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.reset-password-hero h1 {
  max-width: 480px;
}

.reset-password-panel {
  padding-left: clamp(34px, 4vw, 54px);
}

.reset-password-panel .status {
  margin-top: 18px;
}

.reset-password-panel .form {
  margin-top: 22px;
}

.reset-login-link {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  border-radius: 10px;
}

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

.panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(210, 202, 194, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(74, 51, 34, 0.08);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel h2 {
  margin: 0;
  font-size: 1.32rem;
}

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

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.clients-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.clients-table th,
.clients-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(216, 221, 229, 0.76);
  text-align: left;
  vertical-align: top;
  font-size: 0.93rem;
}

.clients-table th {
  color: var(--muted);
  background: #fbfbfc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clients-table tbody tr:hover {
  background: rgba(223, 69, 31, 0.04);
}

.clients-table code {
  padding: 3px 7px;
  border-radius: 7px;
  color: #42322d;
  background: #fff1eb;
  font-size: 0.82rem;
}

.clients-table td strong,
.clients-table td small {
  display: block;
}

.clients-table td small {
  margin-top: 4px;
  color: #667085;
  font-size: 0.76rem;
}

.muted-cell {
  color: var(--muted);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #c72f2f 0%, #a91e2f 100%);
  box-shadow: 0 7px 14px rgba(169, 30, 47, 0.24);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 18, 20, 0.54);
  backdrop-filter: blur(3px);
}

.modal-backdrop.open {
  display: flex;
  animation: pageFade 180ms ease-out;
}

.modal {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 58px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(10, 12, 16, 0.22);
  animation: modalIn 220ms ease-out;
}

.modal-wide {
  width: min(620px, calc(100vw - 32px));
}

.modal-jobs-wide {
  width: min(1120px, calc(100vw - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
}

.jobs-filter-modal {
  width: min(560px, calc(100vw - 32px));
}

.fund-estimate-modal {
  width: min(520px, calc(100vw - 32px));
}

.report-download-modal {
  width: min(520px, calc(100vw - 32px));
}

.modal-header {
  display: block;
  margin-bottom: 0;
  text-align: center;
}

.jobs-modal-header {
  text-align: left;
}

.modal-copy {
  display: grid;
  gap: 10px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.modal-header p {
  margin: 0;
  color: var(--body);
  font-size: 0.86rem;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.modal-close:hover {
  background: #f4f5f7;
  transform: none;
  box-shadow: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.btn-register {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 9px;
  font-size: 1rem;
}

.modal-switch {
  margin: 4px 0 0;
  text-align: center;
  color: var(--body);
  font-size: 0.86rem;
}

.form-modal .status {
  margin-top: 0;
  text-align: center;
  font-size: 0.82rem;
}

.form-modal .status:empty {
  display: none;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1280px) {
  .page {
    padding: 24px 30px;
  }

  .auth-shell {
    padding: 28px 34px 36px;
  }

  .auth-grid {
    gap: 40px;
    grid-template-columns: minmax(360px, 500px) minmax(340px, 430px);
  }

  .reset-password-grid {
    gap: 40px;
    grid-template-columns: minmax(320px, 460px) minmax(320px, 420px);
  }

  .login-panel {
    padding-left: 40px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .page {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .auth-shell {
    min-height: calc(100vh - 40px);
    padding: 24px 32px 30px;
  }

  .auth-grid {
    min-height: 450px;
    gap: 36px;
  }

  .reset-password-grid {
    min-height: 430px;
    gap: 36px;
  }

  .brand {
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  }

  .partner-badge {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
  }

  .hero p {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .feature-row {
    margin-top: 22px;
    font-size: 0.82rem;
  }

  .trust-card {
    margin-top: 24px;
    padding: 16px 20px;
  }

  .login-copy h2 {
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
  }

  .login-copy p {
    font-size: 0.86rem;
  }

  .form {
    gap: 16px;
    margin-top: 22px;
  }

  .input-shell {
    min-height: 46px;
  }

  .input-shell input {
    min-height: 44px;
  }

  .btn-login {
    min-height: 46px;
  }

  .divider {
    margin: 22px 0 16px;
  }

  .terms-note {
    margin-top: 18px;
  }
}

@media (max-width: 980px) {
  .page {
    padding: 16px 14px 28px;
  }

  .auth-shell {
    min-height: 0;
    padding: 22px 18px 26px;
    border-radius: 18px;
  }

  .shell-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 1.35rem;
  }

  .auth-grid {
    display: block;
    min-height: 0;
    margin-top: 28px;
  }

  .reset-password-grid {
    display: block;
    min-height: 0;
    margin-top: 28px;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
  }

  .hero p {
    margin-top: 14px;
  }

  .feature-row {
    margin-top: 22px;
  }

  .trust-card {
    margin-top: 22px;
  }

  .login-panel {
    margin-top: 30px;
    padding-left: 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .login-panel::before {
    display: none;
  }

  .reset-password-panel {
    padding-left: 0;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .auth-shell {
    padding: 18px 14px 20px;
  }

  .partner-badge {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.14;
  }

  .hero p,
  .login-copy p {
    font-size: 0.86rem;
  }

  .feature-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .feature-row span + span {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .trust-card {
    align-items: flex-start;
    gap: 12px;
    padding: 15px 14px;
  }

  .trust-card svg {
    width: 36px;
    height: 36px;
  }

  .login-copy h2 {
    font-size: 1.45rem;
  }

  .form {
    gap: 16px;
    margin-top: 22px;
  }

  .input-shell {
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
  }

  .input-shell input {
    min-height: 44px;
  }

  .btn-login {
    min-height: 46px;
  }

  .divider {
    gap: 12px;
    margin-top: 22px;
  }

  .terms-note {
    margin-top: 18px;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  html,
  body {
    min-height: 100svh;
  }

  body {
    background:
      radial-gradient(520px 240px at 50% 0, rgba(255, 255, 255, 0.96), transparent 72%),
      linear-gradient(152deg, #fffaf6 0%, #fff2e8 100%);
  }

  .page {
    min-height: 100svh;
    padding: 10px;
    display: grid;
  }

  .auth-shell {
    min-height: calc(100svh - 20px);
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    padding: 18px 16px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(74, 51, 34, 0.10);
  }

  .shell-header {
    min-height: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .brand {
    font-size: clamp(1.32rem, 7vw, 1.72rem);
  }

  .brand-glow {
    display: none;
  }

  .top-actions {
    justify-content: center;
  }

  .auth-grid {
    min-height: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
  }

  .hero {
    align-items: center;
    text-align: center;
  }

  .partner-badge {
    align-self: center;
    min-height: 34px;
    padding: 0 12px;
    gap: 8px;
    font-size: 0.72rem;
  }

  .partner-badge svg {
    width: 17px;
    height: 17px;
  }

  .hero h1 {
    width: min(330px, 100%);
    margin-top: 14px;
    font-size: clamp(1.42rem, 7vw, 1.9rem);
    line-height: 1.14;
  }

  .hero p {
    width: min(330px, 100%);
    margin-top: 10px;
    color: #4b5563;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .feature-row,
  .trust-card {
    display: none;
  }

  .login-panel {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(216, 221, 229, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(74, 51, 34, 0.08);
  }

  .login-panel::before {
    display: none;
  }

  .login-copy h2 {
    font-size: 1.28rem;
  }

  .login-copy p {
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .form {
    gap: 14px;
    margin-top: 18px;
  }

  .field {
    gap: 7px;
  }

  .field > span:first-child {
    font-size: 0.78rem;
  }

  .input-shell {
    min-height: 44px;
    gap: 10px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .input-shell svg {
    width: 18px;
    height: 18px;
  }

  .input-shell input {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }

  .btn-login {
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .divider {
    gap: 12px;
    margin: 18px 0 14px;
    font-size: 0.78rem;
  }

  .register-copy {
    font-size: 0.82rem;
  }

  .terms-note {
    max-width: 310px;
    margin-top: 16px;
    font-size: 0.68rem;
    line-height: 1.38;
  }

  .status {
    min-height: 0;
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal {
    width: min(420px, 100%);
    max-height: none;
    margin: 14px auto;
    padding: 48px 18px 20px;
    border-radius: 16px;
  }

  .modal-close {
    top: 14px;
    right: 16px;
  }

  .modal-header h2 {
    font-size: 1.36rem;
  }

  .modal-header p {
    font-size: 0.78rem;
  }

  .form-modal {
    gap: 13px;
    margin-top: 20px;
  }

  .form-modal .input-shell,
  .form-modal .input-shell input {
    min-height: 44px;
  }

  .btn-register {
    min-height: 46px;
  }

  .panel {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 390px) {
  .page {
    padding: 8px;
  }

  .auth-shell {
    min-height: calc(100svh - 16px);
    padding: 16px 12px 18px;
  }

  .auth-grid {
    gap: 12px;
    margin-top: 16px;
  }

  .hero h1 {
    font-size: 1.34rem;
  }

  .hero p {
    font-size: 0.72rem;
  }

  .login-panel {
    padding: 14px;
  }

  .terms-note {
    display: none;
  }
}

body.portal-dashboard-active {
  color: #17191f;
  background: #f6f7f9;
}

body.portal-dashboard-active .page {
  width: min(100%, 1380px);
  min-height: 100vh;
  padding: 16px;
  display: block;
}

.portal-payment-page .page {
  width: min(100%, 1040px);
  min-height: 100vh;
  display: block;
  padding: 16px;
}

.portal-dashboard {
  height: calc(100vh - 32px);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(20, 24, 31, 0.08);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid #eceff3;
  background: #ffffff;
}

.dashboard-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-menu-btn,
.dashboard-sidebar-close {
  display: none;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111318;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ffe0d3;
  border-radius: 10px;
  color: var(--accent);
  background: #fff3ed;
  font-size: 0.9rem;
}

.store-override-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #fedf89;
  border-radius: 999px;
  color: #93370d;
  background: #fffaeb;
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-download-client {
  gap: 8px;
}

.dashboard-download-client svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-client-modal {
  width: min(560px, calc(100vw - 32px));
}

.download-client-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fbfcfd;
  color: #15171c;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.download-client-card:hover {
  border-color: #b6c4d8;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.windows-logo-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f2f7ff;
  color: #0078d4;
}

.windows-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.download-client-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.download-client-copy strong {
  color: #15171c;
  font-size: 0.95rem;
  line-height: 1.25;
}

.download-client-copy small,
.download-client-size {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.download-client-size {
  white-space: nowrap;
}

.dashboard-user-menu-wrap {
  position: relative;
}

.dashboard-user-button {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 214px;
  min-height: 50px;
  padding: 5px 12px 5px 6px;
  border: 1px solid #e6e9ee;
  border-radius: 999px;
  background: #fff;
  color: #15171c;
  cursor: pointer;
  text-align: left;
}

.dashboard-user-button img,
.store-profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-user-button img {
  display: none;
  width: 34px;
  height: 34px;
  grid-column: 1;
  grid-row: 1;
  border-radius: 50%;
  background: #fff3ed;
}

.dashboard-user-button.has-photo img {
  display: block;
}

.dashboard-user-button:not(.has-photo)::before {
  content: "P";
  position: absolute;
  left: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent);
  background: #fff3ed;
  font-weight: 900;
  transform: translateY(-50%);
}

.dashboard-user-copy {
  position: relative;
  grid-column: 2;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-left: 0;
}

.dashboard-user-copy strong,
.dashboard-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-copy strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.dashboard-user-copy small {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
}

.dashboard-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  min-width: 160px;
  display: none;
  padding: 6px;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 24, 31, 0.14);
}

.dashboard-user-menu.open {
  display: block;
}

.dashboard-user-menu button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.dashboard-user-menu button:hover {
  background: #fff3ed;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: calc(100% - 62px);
  min-height: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  overflow-y: auto;
  padding: 14px;
  border-right: 1px solid #eceff3;
  background: #fafbfc;
}

.dashboard-sidebar-head {
  display: none;
}

.dashboard-sidebar-backdrop {
  display: none;
}

.dashboard-sidebar a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  color: #505866;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus-visible,
.dashboard-sidebar a.is-active {
  color: #15171c;
  background: #f0f2f5;
  outline: none;
}

.dashboard-sidebar a.is-active {
  border-color: #ffd8c8;
  color: var(--accent);
  background: #fff3ed;
}

.dashboard-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-y: auto;
  padding: 14px;
  background: #f6f7f9;
}

.payment-shell {
  height: auto;
  min-height: calc(100vh - 32px);
  overflow: visible;
}

.payment-page-main {
  min-height: calc(100vh - 94px);
  padding: 14px;
  background: #f6f7f9;
}

.dashboard-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  background: #ffffff;
}

.dashboard-section[hidden] {
  display: none !important;
}

.dashboard-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
}

.dashboard-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-intro h1,
.dashboard-section h2 {
  margin: 0;
  color: #15171c;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-intro h1 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.dashboard-section h2 {
  font-size: 1.02rem;
}

.dashboard-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e6e9ee;
  border-radius: 999px;
  background: #ffffff;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.jobs-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.jobs-filter-bar .field {
  gap: 7px;
}

.jobs-filter-actions,
.jobs-pagination-actions,
.jobs-modal-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jobs-table-wrap {
  min-height: 0;
  margin-top: 0;
  overflow: auto;
}

.jobs-table {
  min-width: 1120px;
}

.job-sort-btn {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: left;
}

.job-sort-btn:hover {
  color: var(--accent);
  background: transparent;
  transform: none;
  box-shadow: none;
}

.jobs-modal-footer {
  justify-content: space-between;
  padding-top: 2px;
}

.jobs-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 800;
}

.jobs-page-size select {
  min-height: 36px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
}

.jobs-page-info {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
}

.jobs-filter-modal-body {
  display: grid;
  gap: 14px;
}

.jobs-filter-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
}

.jobs-filter-group legend {
  padding: 0 6px;
  color: #15171c;
  font-size: 0.82rem;
  font-weight: 900;
}

.jobs-filter-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #505866;
  font-size: 0.86rem;
  font-weight: 700;
}

.jobs-filter-group input[type="date"] {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 10px;
}

.date-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-range-grid.is-disabled,
.jobs-filter-group input[type="date"]:disabled {
  opacity: 0.48;
}

.jobs-filter-footer {
  margin-top: 16px;
}

.report-download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stat-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.stat-card span,
.mini-panel span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  color: #121418;
  font-size: clamp(1.45rem, 2.4vw, 1.7rem);
  line-height: 1;
}

.stat-card-highlight {
  background: linear-gradient(145deg, #fff8f4, #ffffff);
}

.stat-card-link {
  justify-self: start;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.stat-card-link:hover {
  color: var(--accent-dark);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.fund-estimate-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid #f0d8ca;
  border-radius: 12px;
  background: #fff8f4;
}

.fund-estimate-summary span {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-estimate-summary strong {
  color: #121418;
  font-size: 2rem;
  line-height: 1;
}

.credit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.credit-service-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #fedf89;
  border-radius: 12px;
  background: #fffaeb;
}

.credit-service-banner.hidden {
  display: none;
}

.credit-service-banner strong {
  display: block;
  color: #93370d;
  font-size: 0.92rem;
}

.credit-service-banner p {
  margin: 4px 0 0;
  color: #7a2e0e;
  font-size: 0.84rem;
  line-height: 1.45;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 12px;
}

.credit-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.billing-pricing-block {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
}

.billing-pricing-block h3 {
  margin: 0;
  font-size: 1.1rem;
}

.credit-breakdown-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e6e9ee;
  border-radius: 999px;
  background: #fff;
  color: #505866;
  font-size: 0.8rem;
  font-weight: 800;
}

.credit-operational-item {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
}

.credit-operational-item strong {
  color: #15171c;
  font-size: 0.8rem;
}

.credit-operational-item small {
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.35;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 252px;
  padding: 18px 16px 16px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.plan-card p {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.4;
}

.plan-card .plan-note {
  color: #93370d;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-unit-price {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 900;
}

.plan-label-slot {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.plan-savings-label {
  justify-self: start;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #fedf89;
  border-radius: 999px;
  color: #93370d;
  background: #fffaeb;
  font-size: 0.72rem;
  font-weight: 900;
}

.plan-price {
  color: #121418;
  font-size: clamp(1.45rem, 2.6vw, 1.72rem);
  font-weight: 900;
  line-height: 1;
}

.plan-meta-list,
.payment-summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.plan-meta-list {
  margin-top: auto;
}

.plan-card > .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  border-radius: 999px;
}

.plan-meta-list div,
.payment-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #505866;
  font-size: 0.82rem;
}

.plan-meta-list dt,
.payment-summary-list dt {
  margin: 0;
  font-weight: 700;
}

.plan-meta-list dd,
.payment-summary-list dd {
  margin: 0;
  color: #15171c;
  font-weight: 900;
  text-align: right;
}

.plan-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
}

.plan-quantity-row input {
  width: 82px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 9px;
}

.payment-quantity-control dd {
  width: 96px;
}

.payment-quantity-control input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 9px;
  text-align: right;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.payment-summary-panel,
.payment-action-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.payment-summary-panel > span,
.payment-instruction-box span {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-summary-panel > strong {
  font-size: 1.28rem;
}

.payment-total-row {
  padding-top: 8px;
  border-top: 1px solid #e6e9ee;
}

.payment-total-row dd {
  color: var(--accent);
  font-size: 1.16rem;
}

.payment-instruction-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #f0d8ca;
  border-radius: 12px;
  background: #fff8f4;
}

.payment-instruction-box p {
  margin: 0;
  color: #303a48;
  line-height: 1.45;
}

.payment-proof-order-meta {
  padding: 10px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fbfcfd;
  color: #303a48;
  font-size: 0.86rem;
  font-weight: 800;
}

.payment-proof-upload-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #abefc6;
  border-radius: 12px;
  background: #ecfdf3;
}

.payment-proof-upload-summary strong {
  color: #067647;
  font-size: 0.92rem;
}

.payment-proof-upload-summary p {
  margin: 0;
  color: #075e45;
  font-size: 0.84rem;
  line-height: 1.45;
}

.payment-proof-upload-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payment-proof-upload-summary dl div {
  display: grid;
  gap: 3px;
}

.payment-proof-upload-summary dt {
  color: #067647;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-proof-upload-summary dd {
  margin: 0;
  color: #15171c;
  font-size: 0.82rem;
  line-height: 1.35;
}

.payment-proof-upload-fields {
  display: grid;
  gap: 12px;
}

.store-clients-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.store-clients-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.store-clients-panel .dashboard-section-head {
  margin-bottom: 8px;
}

.store-clients-panel .status {
  min-height: 0;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.store-clients-panel .table-wrap {
  margin-top: 0;
  background: #fff;
}

.store-clients-panel .clients-table th,
.store-clients-panel .clients-table td {
  padding: 10px 12px;
  font-size: 0.84rem;
}

.store-clients-panel .clients-table th {
  font-size: 0.7rem;
}

.orders-table {
  min-width: 860px;
}

.orders-filter-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
}

.orders-modal-footer {
  margin-top: 12px;
}

.order-action-stack {
  display: grid;
  gap: 7px;
}

.order-action-stack small {
  color: #667085;
  line-height: 1.35;
}

.order-detail-body {
  display: grid;
  gap: 12px;
}

.order-detail-modal {
  width: min(900px, calc(100vw - 32px));
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.order-detail-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ebedf1;
  border-radius: 10px;
  background: #fbfcfd;
}

.order-detail-grid dt {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-detail-grid dd {
  min-width: 0;
  margin: 0;
  color: #15171c;
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.order-detail-wide {
  grid-column: 1 / -1;
}

.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-proof-preview {
  margin-top: 12px;
}

.order-proof-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.order-proof-card > span,
.order-proof-head span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-proof-card p,
.order-proof-head p {
  margin: 0;
  color: #303a48;
  font-size: 0.84rem;
  line-height: 1.45;
}

.order-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-proof-frame {
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fff;
  color: #667085;
  font-size: 0.84rem;
  text-align: center;
}

.order-proof-frame img,
.order-proof-frame iframe {
  display: block;
  width: 100%;
  height: min(520px, 60vh);
  border: 0;
  object-fit: contain;
}

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

.dashboard-form-wide {
  grid-column: 1 / -1;
}

.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

.field select {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
  padding: 12px;
}

.field select:focus,
.field textarea:focus {
  border-color: rgba(223, 69, 31, 0.58);
  box-shadow: 0 0 0 4px rgba(223, 69, 31, 0.1);
}

.dashboard-form .field {
  gap: 7px;
}

.dashboard-form .field > span:first-child {
  font-size: 0.78rem;
}

.dashboard-form .field input {
  min-height: 46px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.dashboard-form .form-footer {
  align-items: center;
  justify-content: flex-start;
}

.dashboard-form .status {
  margin-top: 0;
  font-size: 0.82rem;
}

.operational-field {
  min-width: 0;
}

.operational-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
}

.operational-summary-box strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operational-days {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.operational-day-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(112px, 0.8fr));
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.operational-day-row label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.operational-day-row input[type="time"] {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
}

.operational-day-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  font-size: 0.88rem !important;
}

.operational-day-toggle input {
  width: 16px;
  height: 16px;
}

.operational-modal-footer {
  margin-top: 16px;
}

.store-profile-panel {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.store-profile-photo-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #ffe0d3;
  border-radius: 16px;
  color: var(--accent);
  background: #fff3ed;
  font-size: 1.8rem;
  font-weight: 900;
}

.store-profile-photo-preview img {
  display: none;
  position: absolute;
  inset: 0;
}

.store-profile-photo-preview img.has-photo {
  display: block;
}

.store-profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.store-profile-copy > span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-profile-copy strong {
  color: #15171c;
  font-size: 0.96rem;
}

.store-profile-copy small {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
}

.store-profile-panel .status {
  grid-column: 2 / -1;
  margin-top: 0;
}

.profile-photo-crop-modal {
  width: min(560px, calc(100vw - 32px));
}

.profile-crop-stage {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 22px auto 16px;
  overflow: hidden;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  background: #101318;
  touch-action: none;
  cursor: grab;
}

.profile-crop-stage:active {
  cursor: grabbing;
}

.profile-crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center;
}

.profile-crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.profile-crop-zoom {
  margin-top: 0;
}

.profile-crop-zoom input {
  min-height: 34px;
  padding: 0;
  accent-color: var(--accent);
}

.profile-crop-footer {
  margin-top: 14px;
}

.store-qr-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.store-qr-preview {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 1px solid #efcdbd;
  border-radius: 12px;
  background: #fff;
}

.store-qr-preview canvas {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}

.store-qr-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.store-qr-copy > span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-qr-copy strong {
  overflow: hidden;
  color: #15171c;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-check-field {
  gap: 8px;
}

.service-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 7px;
}

.service-checkbox-grid .service-check-label {
  flex-wrap: wrap;
  align-content: center;
  min-height: 52px;
  gap: 6px 8px;
}

.service-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #ebedf1;
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.service-checkbox-grid .service-check-label > span {
  min-width: 0;
}

.service-checkbox-grid .service-check-label small {
  flex-basis: 100%;
  margin-left: 24px;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.color-price-item {
  display: grid;
  grid-template-columns: minmax(132px, 0.48fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.color-price-item .service-check-label {
  min-height: 40px;
}

.price-input-wrap {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-input-wrap input {
  min-height: 40px !important;
}

.price-input-wrap input:disabled {
  color: #98a2b3;
  background: #f2f4f7;
  cursor: not-allowed;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-panel {
  display: grid;
  gap: 7px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
}

.mini-panel strong {
  overflow: hidden;
  color: #15171c;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-summary-grid .mini-panel strong {
  white-space: normal;
  line-height: 1.25;
}

.account-actions {
  margin-top: 12px;
}

.account-modal-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 7px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.online {
  color: #067647;
  background: #ecfdf3;
}

.status-pill.offline {
  color: #667085;
  background: #f2f4f7;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-card {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fbfcfd;
  text-align: left;
  cursor: pointer;
}

.help-card:hover {
  border-color: #ffd8c8;
  background: #fff8f4;
}

.help-card strong {
  color: #15171c;
  font-size: 0.9rem;
}

.help-card span {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  body.portal-dashboard-active .page {
    width: 100%;
    min-height: 100svh;
    padding: 0;
    display: block;
  }

  .portal-payment-page .page {
    width: 100%;
    min-height: 100svh;
    padding: 0;
  }

  .portal-dashboard {
    height: auto;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dashboard-header {
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
    box-shadow: 0 10px 26px rgba(20, 24, 31, 0.07);
  }

  .dashboard-title-row {
    width: 100%;
  }

  .dashboard-menu-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e6e9ee;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
  }

  .dashboard-menu-btn span {
    width: 17px;
    height: 2px;
    border-radius: 99px;
    background: #15171c;
  }

  .dashboard-brand {
    font-size: 0.98rem;
  }

  .dashboard-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .store-override-badge {
    width: 100%;
    min-height: 28px;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
  }

  .dashboard-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .dashboard-actions .btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .dashboard-actions .auth-chip {
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-user-menu-wrap {
    justify-self: end;
  }

  .dashboard-user-button {
    min-width: 214px;
  }

  .portal-payment-page .dashboard-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-layout {
    display: block;
    height: auto;
  }

  .dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 48;
    display: block;
    background: rgba(15, 18, 20, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 49;
    width: min(82vw, 320px);
    height: 100svh;
    gap: 6px;
    overflow-y: auto;
    padding: 16px;
    border-right: 1px solid #e6e9ee;
    border-bottom: 0;
    background: #ffffff;
    box-shadow: 24px 0 54px rgba(20, 24, 31, 0.18);
    transform: translateX(-105%);
    transition: transform 220ms ease;
    scrollbar-width: none;
  }

  .dashboard-form,
  .payment-layout,
  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar::-webkit-scrollbar {
    display: none;
  }

  .dashboard-sidebar-open {
    overflow: hidden;
  }

  .dashboard-sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-sidebar-open .dashboard-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eceff3;
  }

  .dashboard-sidebar-head strong {
    font-size: 0.98rem;
  }

  .dashboard-sidebar-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    background: #fff;
    color: #15171c;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
  }

  .dashboard-sidebar a {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #e6e9ee;
    border-radius: 11px;
    background: #fff;
    font-size: 0.84rem;
  }

  .dashboard-main {
    gap: 10px;
    padding: 10px;
  }

  .dashboard-section {
    padding: 14px;
    border-radius: 14px;
  }

  .dashboard-intro {
    display: grid;
    align-items: start;
    min-height: 0;
    gap: 10px;
  }

  .dashboard-intro h1 {
    font-size: clamp(1.06rem, 4.7vw, 1.32rem);
  }

  .dashboard-section-head {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .dashboard-section-head .section-actions {
    width: 100%;
  }

  .dashboard-section-head .section-actions .btn,
  .dashboard-form .form-footer .btn {
    flex: 1 1 auto;
    min-height: 40px;
  }

  .dashboard-meta {
    justify-content: flex-start;
  }

  .table-wrap {
    border-radius: 12px;
  }

  .clients-table th,
  .clients-table td {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-height: min(86svh, 760px);
    padding: 48px 18px 18px;
    border-radius: 18px;
  }

  .modal-wide,
  .modal-jobs-wide,
  .jobs-filter-modal,
  .fund-estimate-modal,
  .report-download-modal {
    width: 100%;
  }

  .modal-jobs-wide {
    grid-template-rows: auto auto minmax(220px, 1fr) auto;
  }

  .modal-header h2 {
    font-size: 1.28rem;
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 620px) {
  body.portal-dashboard-active {
    background: #f6f7f9;
  }

  .dashboard-header {
    padding: 10px 12px;
  }

  .dashboard-brand {
    gap: 8px;
  }

  .dashboard-actions {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .portal-payment-page .dashboard-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-actions .btn,
  .dashboard-actions .auth-chip,
  .dashboard-user-button {
    width: 100%;
    min-height: 46px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .dashboard-user-menu-wrap {
    width: 100%;
  }

  .dashboard-user-button {
    min-width: 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 9px 4px 5px;
  }

  .dashboard-user-button img,
  .dashboard-user-button:not(.has-photo)::before {
    width: 30px;
    height: 30px;
  }

  .dashboard-user-button:not(.has-photo)::before {
    left: 5px;
  }

  .dashboard-user-copy strong {
    font-size: 0.74rem;
    line-height: 1.12;
  }

  .dashboard-user-copy small {
    font-size: 0.64rem;
    line-height: 1.12;
  }

  .dashboard-sidebar {
    padding: 8px 10px;
  }

  .dashboard-sidebar a {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .dashboard-main {
    gap: 9px;
    padding: 9px;
  }

  .dashboard-section {
    padding: 12px;
    border-radius: 13px;
  }

  .dashboard-kicker {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .dashboard-section h2 {
    font-size: 0.98rem;
  }

  .dashboard-meta span {
    min-height: 28px;
    font-size: 0.72rem;
  }

  .stat-grid,
  .credit-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .stat-card {
    min-height: 86px;
    padding: 11px;
    border-radius: 11px;
  }

  .stat-card-highlight {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .stat-card-highlight span {
    grid-column: 1 / -1;
  }

  .stat-card-highlight .stat-card-link {
    justify-self: end;
  }

  .stat-card span,
  .mini-panel span {
    font-size: 0.66rem;
  }

  .stat-card strong {
    font-size: clamp(1.28rem, 7vw, 1.55rem);
  }

  .mini-panel {
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 11px;
  }

  .mini-panel strong {
    font-size: 0.92rem;
  }

  .credit-breakdown {
    gap: 6px;
    margin-top: 9px;
  }

  .credit-service-banner {
    display: grid;
    gap: 10px;
  }

  .credit-service-banner .btn {
    width: 100%;
  }

  .credit-breakdown-item {
    min-height: 29px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .orders-filter-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-proof-head {
    display: grid;
  }

  .billing-pricing-block {
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .plan-card {
    min-height: 0;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
  }

  .plan-card h3 {
    font-size: 1rem;
  }

  .plan-card p,
  .plan-unit-price,
  .plan-meta-list div {
    font-size: 0.78rem;
  }

  .plan-price {
    font-size: 1.45rem;
  }

  .plan-label-slot {
    min-height: 22px;
  }

  .plan-card > .btn {
    min-height: 42px;
  }

  .jobs-filter-bar {
    grid-template-columns: 1fr;
  }

  .jobs-filter-actions,
  .jobs-modal-footer,
  .report-download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jobs-pagination-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jobs-page-size,
  .jobs-page-info {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .date-range-grid {
    grid-template-columns: 1fr;
  }

  .operational-summary-box,
  .operational-day-row {
    grid-template-columns: 1fr;
  }

  .operational-summary-box {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
  }

  .operational-summary-box .btn {
    width: 100%;
  }

  .store-profile-panel {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .store-profile-photo-preview {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    font-size: 1.45rem;
  }

  .store-profile-panel .section-actions,
  .store-profile-panel .status {
    grid-column: 1 / -1;
  }

  .store-profile-panel .section-actions .btn {
    width: 100%;
  }

  .store-profile-copy small {
    font-size: 0.72rem;
  }

  .store-qr-panel {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .store-qr-preview {
    width: 92px;
    height: 92px;
  }

  .store-qr-preview canvas {
    width: 78px;
    height: 78px;
  }

  .store-qr-copy .section-actions .btn {
    width: 100%;
  }

  .store-clients-panel {
    padding: 12px;
  }

  .store-clients-panel .dashboard-section-head {
    display: grid;
  }

  .store-clients-panel .section-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .store-clients-panel .section-actions .btn {
    width: 100%;
    min-height: 38px;
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .service-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .color-price-grid {
    grid-template-columns: 1fr;
  }

  .service-checkbox-grid .service-check-label {
    min-height: 58px;
    padding: 9px;
  }

  .service-checkbox-grid .service-check-label small {
    margin-left: 23px;
    font-size: 0.66rem;
  }

  .color-price-item {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .dashboard-form {
    gap: 10px;
  }

  .dashboard-form .field input,
  .field select {
    min-height: 44px;
  }

  .field textarea {
    min-height: 92px;
  }

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

  .dashboard-form .form-footer .btn,
  .account-actions .btn,
  .help-card {
    width: 100%;
  }

  .account-actions,
  .section-actions {
    align-items: stretch;
  }

  .account-summary-grid {
    gap: 8px;
  }

  .help-card {
    min-height: 82px;
    padding: 12px;
  }

  .modal {
    padding: 46px 14px 14px;
    border-radius: 16px 16px 0 0;
  }

  .profile-crop-stage {
    margin-top: 18px;
  }

  .modal-header {
    text-align: left;
  }

  .form-modal {
    margin-top: 20px;
  }

  .operational-days {
    margin-top: 18px;
  }

  .operational-day-row {
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .dashboard-actions {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  }

  .portal-payment-page .dashboard-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-actions #downloadClientBtn {
    justify-self: stretch;
  }

  .dashboard-main {
    padding: 8px;
  }

  .dashboard-section {
    padding: 11px;
  }

  .section-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-section-head .section-actions .btn {
    width: 100%;
  }

  .stat-grid,
  .credit-summary-grid {
    gap: 7px;
  }

  .stat-card,
  .mini-panel {
    padding: 10px;
  }

  .stat-card strong {
    font-size: 1.34rem;
  }

  .service-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .store-qr-panel {
    grid-template-columns: 1fr;
  }

  .store-qr-preview {
    width: 100%;
  }

  .store-clients-panel .section-actions {
    grid-template-columns: 1fr;
  }

  .clients-table {
    min-width: 680px;
  }

  .clients-table th,
  .clients-table td {
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .clients-table code {
    font-size: 0.72rem;
  }

  .modal {
    max-height: 90svh;
  }
}

@media (max-width: 360px) {
  .stat-grid,
  .credit-summary-grid {
    grid-template-columns: 1fr;
  }

  .stat-card-highlight {
    grid-column: auto;
  }

  .dashboard-sidebar a {
    font-size: 0.7rem;
  }

  .store-qr-copy strong {
    white-space: normal;
  }
}

.admin-dashboard-page {
  min-height: 100vh;
  margin: 0;
  color: #17191f;
  background: #f4f6f8;
}

.admin-shell {
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px;
}

.admin-topbar {
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid #e2e7ee;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
}

.admin-brand-row,
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-brand-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-brand-row strong {
  color: #111318;
  font-size: 1rem;
  line-height: 1.15;
}

.admin-brand-row span:not(.dashboard-brand-mark),
.admin-user-chip,
.admin-muted {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-user-chip {
  max-width: 180px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e6ebf1;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-chip:hover,
.admin-user-chip[aria-expanded="true"] {
  border-color: #ffd8c8;
  color: #c64721;
  background: #fff3ed;
}

.admin-account-menu {
  position: relative;
}

.admin-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  min-width: 150px;
  padding: 6px;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}

.admin-account-dropdown button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.admin-account-dropdown button:hover {
  color: #c64721;
  background: #fff3ed;
}

.admin-layout {
  min-height: calc(100vh - 96px);
  border: 1px solid #e2e7ee;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #ffffff;
  overflow: hidden;
}

.admin-sidebar {
  padding: 14px;
  border-right: 1px solid #e8edf3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fbfcfe;
}

.admin-nav-link {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  border-color: #ffd8c8;
  color: #c64721;
  background: #fff3ed;
}

.admin-content {
  min-width: 0;
  height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  background: #f7f8fa;
}

.admin-panel {
  min-width: 0;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.05);
}

.admin-panel.hidden {
  display: none;
}

.admin-panel:not(.admin-panel-flat) {
  padding: 18px;
}

.admin-panel-flat {
  padding: 16px;
  box-shadow: none;
}

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

.admin-section-head h1,
.admin-panel-head h2 {
  margin: 0;
  color: #101828;
  line-height: 1.15;
}

.admin-section-head h1 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.admin-panel-head h2 {
  font-size: 1.05rem;
}

.admin-section-head > span {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-toolbar,
.admin-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-overview-toolbar {
  justify-content: flex-end;
}

.admin-sync-text {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-sync-text.warning {
  color: #b54708;
}

.admin-sync-text.error {
  color: #b42318;
}

.admin-profile-modal {
  width: min(760px, calc(100vw - 32px));
}

.admin-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.admin-profile-form {
  align-content: start;
  gap: 13px;
}

.admin-profile-form-head h3 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-tab-btn {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #e6ebf1;
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
  border-color: #ffd8c8;
  color: #c64721;
  background: #fff3ed;
}

.admin-inline-search {
  width: min(320px, 100%);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  color: #101828;
  background: #fff;
  font-size: 0.88rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat-grid-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stat-card,
.admin-billing-card {
  min-height: 126px;
  padding: 14px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  background: #ffffff;
}

.admin-stat-card span,
.admin-billing-card span {
  color: #667085;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat-card strong {
  color: #101828;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1;
}

.admin-stat-card small,
.admin-billing-card p,
.admin-queue-item span,
.admin-signal-item span,
.admin-audit-item span,
.admin-table td span {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-stat-card.warning {
  border-color: #fedf89;
  background: #fffcf2;
}

.admin-stat-card.success {
  border-color: #abefc6;
  background: #f6fef9;
}

.admin-stat-card.info {
  border-color: #b9e6fe;
  background: #f0f9ff;
}

.admin-stat-card.accent {
  border-color: #ffd8c8;
  background: #fff7f2;
}

.admin-overview-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
}

.admin-queue-list,
.admin-signal-list,
.admin-audit-list {
  display: grid;
  gap: 10px;
}

.admin-audit-footer {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
}

.admin-page-indicator {
  color: #475467;
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-queue-item,
.admin-signal-item,
.admin-audit-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
}

.admin-queue-item > div,
.admin-signal-item > div,
.admin-audit-item > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-queue-item strong,
.admin-signal-item strong,
.admin-audit-item strong,
.admin-table td strong {
  color: #101828;
  font-size: 0.9rem;
}

.admin-queue-item b {
  flex: 0 0 auto;
  color: #c64721;
  font-size: 0.95rem;
}

.admin-queue-button {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.admin-queue-button:hover {
  border-color: #ffd8c8;
  background: #fff8f4;
}

.admin-empty {
  padding: 14px;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  color: #667085;
  background: #fbfcfe;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
}

.admin-table {
  min-width: 760px;
  margin: 0;
  background: #ffffff;
}

.admin-table th {
  padding: 11px 12px;
  color: #667085;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #edf1f5;
  color: #1d2939;
  font-size: 0.88rem;
  vertical-align: middle;
}

.admin-table td span {
  display: block;
  margin-top: 3px;
}

.status-pill.warning {
  color: #b54708;
  background: #fffaeb;
}

.status-pill:not(.online):not(.offline):not(.warning) {
  color: #344054;
  background: #eef4ff;
}

.admin-billing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-billing-card strong {
  color: #101828;
  font-size: 1.05rem;
  line-height: 1.25;
}

.admin-billing-card p {
  margin: 0;
}

.admin-audit-item {
  justify-content: flex-start;
}

.admin-audit-item time {
  width: 58px;
  flex: 0 0 auto;
  color: #c64721;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-status:empty {
  display: none;
}

.admin-filter-bar {
  margin-bottom: 12px;
}

.admin-subsection-head {
  margin-top: 4px;
}

.admin-subsection-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-billing-panel.hidden {
  display: none;
}

.admin-checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-checkbox-line input {
  width: 16px;
  height: 16px;
}

.admin-detail-modal {
  width: min(1040px, calc(100vw - 28px));
}

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

.admin-detail-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  background: #fbfcfe;
}

.admin-detail-card-wide {
  grid-column: 1 / -1;
}

.admin-detail-card h3 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 0.98rem;
}

.admin-json-block {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #101828;
  color: #f9fafb;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-mini-list {
  display: grid;
  gap: 9px;
}

.admin-mini-list > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf1f5;
  border-radius: 10px;
  background: #fff;
}

.admin-mini-list strong {
  display: block;
  color: #101828;
  font-size: 0.88rem;
}

.admin-mini-list span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-payment-review-modal {
  width: min(980px, calc(100vw - 28px));
}

.admin-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
}

.admin-review-detail,
.admin-proof-panel,
.admin-reject-field {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  background: #fbfcfe;
}

.admin-review-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.admin-review-list div {
  min-width: 0;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
}

.admin-review-list dt {
  color: #667085;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-review-list dd {
  min-width: 0;
  margin: 0;
  color: #101828;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-proof-panel {
  display: grid;
  gap: 12px;
}

.admin-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-proof-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-proof-head span {
  color: #667085;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-proof-head strong {
  color: #101828;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-proof-preview {
  min-height: 360px;
  max-height: 58vh;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.admin-proof-preview img,
.admin-proof-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.admin-proof-preview img {
  object-fit: contain;
  padding: 10px;
}

.admin-proof-empty {
  padding: 22px;
  color: #667085;
  font-size: 0.9rem;
  text-align: center;
}

.admin-reject-field {
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .admin-stat-grid,
  .admin-billing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .admin-shell {
    padding: 10px;
  }

  .admin-topbar {
    min-height: auto;
    padding: 12px;
    border-radius: 14px 14px 0 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-layout {
    min-height: calc(100vh - 132px);
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e8edf3;
  }

  .admin-nav-link {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-content {
    height: auto;
    min-height: 0;
    padding: 12px;
  }

  .admin-section-head,
  .admin-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .admin-account-menu,
  .admin-user-chip {
    width: 100%;
  }

  .admin-account-dropdown {
    left: 0;
    right: auto;
    width: 100%;
  }

  .admin-row-actions {
    min-width: 164px;
  }

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

  .admin-review-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-proof-preview,
  .admin-proof-preview img,
  .admin-proof-preview iframe {
    min-height: 280px;
  }
}
