/* New portal (account) area — independent from legacy user pages */

/* ——— Login page (split hero + card) — mobile-first ——— */
.portal-login *,
.portal-login *::before,
.portal-login *::after {
  box-sizing: border-box;
}
.portal-login {
  position: relative;
  /* dvh avoids mobile browser chrome jump; fallback vh */
  min-height: calc(100dvh - 52px);
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  /* allow vertical scroll; avoid clipping on short phones */
  overflow-x: clip;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.portal-login__bg {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 107, 53, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(154, 52, 18, 0.08), transparent 50%),
    linear-gradient(165deg, #fdfbf7 0%, #f5f0e8 45%, #eef2f0 100%);
  pointer-events: none;
}
.portal-login__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%239a3412' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
}
.portal-login__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1.5rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}
.portal-login__hero {
  padding: 0 0 0.5rem;
  min-width: 0;
}
.portal-login__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.25rem;
}
.portal-login__brand-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #faf5f0 100%);
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.12), 0 0 0 1px rgba(154, 52, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portal-login__brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.portal-login__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.portal-login__brand-name {
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 800;
  color: #7c2d12;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}
.portal-login__brand-tag {
  font-size: clamp(0.75rem, 3.2vw, 0.8rem);
  color: #78716c;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.portal-login__hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
}
.portal-login__hero-desc {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  color: #57534e;
  line-height: 1.55;
  max-width: 36rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.portal-login__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.portal-login__bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: clamp(0.85rem, 3.2vw, 0.92rem);
  color: #44403c;
  font-weight: 500;
  line-height: 1.4;
}
.portal-login__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}
.portal-login__card {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: clamp(16px, 3vw, 20px);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow:
    0 4px 6px -1px rgba(28, 25, 23, 0.06),
    0 24px 48px -12px rgba(124, 45, 18, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  max-width: 100%;
}
.portal-login__card--error {
  box-shadow:
    0 4px 6px -1px rgba(185, 28, 28, 0.08),
    0 24px 48px -12px rgba(185, 28, 28, 0.1);
  border-color: rgba(254, 202, 202, 0.8);
}
.portal-login__card-head {
  margin-bottom: 1.5rem;
}
.portal-login__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ea580c;
}
.portal-login__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}
.portal-login__subtitle {
  margin: 0;
  font-size: clamp(0.85rem, 3.2vw, 0.95rem);
  color: #78716c;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.portal-login__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.portal-login__field {
  margin-bottom: 1rem;
}
.portal-login__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #44403c;
  margin-bottom: 0.4rem;
}
.portal-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.portal-login__input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a8a29e;
  pointer-events: none;
  display: flex;
}
.portal-login__input {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 0.85rem 0.8rem 2.65rem;
  border: 1.5px solid #e7e5e4;
  border-radius: 12px;
  /* 16px+ prevents iOS zoom-on-focus */
  font-size: max(16px, 1rem);
  line-height: 1.35;
  background: #fff;
  color: #1c1917;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.portal-login__input::placeholder {
  color: #a8a29e;
}
.portal-login__input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}
.portal-login__input-wrap--pass .portal-login__input {
  padding-right: 3rem;
}
.portal-login__toggle-visibility {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  /* min 44×44 tap target (WCAG / mobile) */
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  cursor: pointer;
  color: #78716c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.15);
}
.portal-login__toggle-visibility:hover {
  color: #44403c;
  background: #f5f5f4;
}
.portal-login__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.88rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.portal-login__alert svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.portal-login__submit {
  margin-top: 0.25rem;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 14px;
  font-size: max(16px, 1rem);
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 55%, #9a3412 100%);
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}
.portal-login__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(154, 52, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.portal-login__submit:active {
  transform: translateY(0);
}
.portal-login__submit:disabled {
  opacity: 0.85;
  cursor: wait;
  transform: none;
  filter: saturate(0.95);
}
.portal-login__alert--api[hidden] {
  display: none !important;
}
.portal-login__alert--api:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.portal-login__links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7e5e4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.portal-login__link {
  font-size: clamp(0.88rem, 3vw, 0.95rem);
  font-weight: 600;
  color: #57534e;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-login__link:hover {
  color: #c2410c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-login__link--primary {
  color: #9a3412;
  font-weight: 700;
}
.portal-login__back {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}
.portal-login__back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  color: #a8a29e;
  text-decoration: none;
  font-weight: 500;
}
.portal-login__back a:hover {
  color: #57534e;
}

/* Forgot password — field error + success */
.portal-login__field-error {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #991b1b;
  line-height: 1.35;
}
.portal-login__alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.portal-login__alert--success svg {
  color: #15803d;
}
.portal-login__forgot-success {
  text-align: center;
}
.portal-login__forgot-success .portal-login__card-head {
  text-align: center;
}
.portal-login__forgot-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.12);
  color: #15803d;
}
.portal-login__forgot-success .portal-login__subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 22rem;
}
.portal-login__forgot-steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: clamp(0.85rem, 3.2vw, 0.92rem);
  color: #44403c;
  line-height: 1.45;
}
.portal-login__forgot-steps li {
  position: relative;
  padding-left: 1.45rem;
}
.portal-login__forgot-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Phones & small tablets: sign-in card above hero */
@media (max-width: 991px) {
  .portal-login__card {
    order: -1;
  }
  .portal-login__inner {
    text-align: center;
  }
  .portal-login__hero {
    text-align: center;
    padding-bottom: 0.25rem;
  }
  .portal-login__brand {
    justify-content: center;
    flex-direction: column;
    margin-bottom: 1rem;
  }
  .portal-login__brand-text {
    align-items: center;
  }
  .portal-login__hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .portal-login__bullets {
    align-items: center;
  }
  .portal-login__bullets li {
    text-align: left;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Very narrow screens */
@media (max-width: 380px) {
  .portal-login__inner {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
  .portal-login__card {
    padding: 1.1rem 1rem;
  }
}

/* Desktop & large tablets: two columns, natural reading order (hero | form) */
@media (min-width: 992px) {
  .portal-login {
    min-height: calc(100dvh - 52px);
    min-height: calc(100vh - 52px);
  }
  .portal-login__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    max-width: 68rem;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    padding:
      max(1rem, env(safe-area-inset-top, 0px))
      max(1.5rem, env(safe-area-inset-right, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px))
      max(1.5rem, env(safe-area-inset-left, 0px));
  }
  .portal-login__card {
    order: 0;
    max-width: 27.5rem;
    margin-left: auto;
  }
  .portal-login__hero {
    order: 0;
    text-align: left;
    padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) 0;
  }
  .portal-login__brand {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  .portal-login__brand-text {
    align-items: flex-start;
  }
  .portal-login__hero-desc {
    max-width: 28ch;
  }
  .portal-login__bullets {
    align-items: stretch;
  }
  .portal-login__bullets li {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .portal-login {
    min-height: auto;
    padding-bottom: 0.5rem;
  }
  .portal-login__brand {
    margin-bottom: 0.75rem;
  }
  .portal-login__hero-title {
    font-size: 1.25rem;
  }
}

.portal-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
}
.portal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.1);
  border: 1px solid rgba(26, 26, 46, 0.06);
}
.portal-badge {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b35;
}
.portal-h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a2e;
}
.portal-h1--sm { font-size: 1.35rem; }
.portal-lead {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #5c5c6e;
}
.portal-form { display: flex; flex-direction: column; gap: 0.25rem; }
.portal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-top: 0.75rem;
}
.portal-label:first-of-type { margin-top: 0; }
.portal-input {
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}
.portal-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.portal-err {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}
.portal-err--api { margin-top: 0.75rem; }
.portal-ok {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.portal-ok p { margin: 0 0 0.5rem; }
.portal-ok p:last-child { margin-bottom: 0; }
.portal-btn {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #e85d2c);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.portal-btn:hover { filter: brightness(1.05); }
.portal-btn--ghost {
  display: inline-block;
  margin-top: 0;
  background: #fff;
  color: #1a1a2e;
  border: 2px solid #1a1a2e;
  box-shadow: none;
  text-decoration: none;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}
.portal-btn--ghost:hover { background: #1a1a2e; color: #fff; }
.portal-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
}
.portal-foot a { color: #0f3460; font-weight: 600; text-decoration: none; }
.portal-foot a:hover { text-decoration: underline; }
.portal-dot { margin: 0 0.35rem; color: #9ca3af; }
.portal-legacy {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #9ca3af;
}
.portal-legacy a { color: #6b7280; }

/* ——— Dashboard (account) ——— */
.portal-dash {
  position: relative;
  min-height: calc(100dvh - 52px);
  min-height: calc(100vh - 52px);
  overflow-x: clip;
}
.portal-dash__bg {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(234, 88, 12, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(154, 52, 18, 0.07), transparent 45%),
    linear-gradient(180deg, #fdfbf7 0%, #f4f0ea 40%, #eef1ef 100%);
  pointer-events: none;
}
.portal-dash__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}
.portal-dash__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.portal-dash__intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 16rem;
}
.portal-dash__avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #ea580c, #9a3412);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(154, 52, 18, 0.25);
}
.portal-dash__titles { min-width: 0; }
.portal-dash__eyebrow {
  margin: 0 0      0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ea580c;
}
.portal-dash__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-word;
}
.portal-dash__name { color: #7c2d12; font-weight: 800; }
.portal-dash__subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  color: #78716c;
  line-height: 1.45;
  max-width: 40ch;
}
.portal-dash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.portal-dash__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding:               0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.portal-dash__action--home {
  background: #fff;
  color: #44403c;
  border: 1.5px solid #e7e5e4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.portal-dash__action--home:hover {
  border-color: #d6d3d1;
  color: #1c1917;
}
.portal-dash__action--out {
  background: transparent;
  color: #78716c;
  border: 1.5px solid #d6d3d1;
}
.portal-dash__action--out:hover {
  background: #fafaf9;
  color: #44403c;
}
.portal-dash__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.portal-dash__stat {
  flex: 1 1 auto;
  min-width: 5.5rem;
  max-width: 10rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
  text-align: center;
}
.portal-dash__stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.1;
}
.portal-dash__stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.portal-dash__panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(124, 45, 18, 0.08);
  padding: 1.25rem 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
}
.portal-dash__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f5f5f4;
}
.portal-dash__h2 {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.02em;
}
.portal-dash__badge {
  flex-shrink: 0;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-radius: 999px;
}
.portal-dash__empty {
  text-align: center;
  padding: 2rem 1rem;
}
.portal-dash__empty-icon {
  color: #d6d3d1;
  margin-bottom: 0.75rem;
}
.portal-dash__empty-text {
  margin: 0 auto 1rem;
  max-width: 26rem;
  font-size: 0.95rem;
  color: #78716c;
  line-height: 1.5;
}
.portal-dash__empty-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.3);
}
.portal-dash__empty-cta:hover {
  filter: brightness(1.05);
  color: #fff;
}
/* Article row */
.portal-feed {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  background: #fafaf9;
  border-radius: 14px;
  border: 1px solid #f0f0ef;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.portal-feed:hover {
  border-color: #e7e5e4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.portal-feed__media {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 10px;
  overflow: hidden;
  background: #e7e5e4;
}
.portal-feed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portal-feed__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding-right: 0.25rem;
}
.portal-feed__cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-feed__link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #292524;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}
.portal-feed__link:hover {
  color: #c2410c;
}
.portal-feed__rm {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #a8a29e;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.portal-feed__rm:hover {
  color: #b91c1c;
  background: #fef2f2;
}
/* Scrollable tile row (rashi / panchang) */
.portal-dash__tiles {
  display: flex;
  gap: 0.65rem;
  padding-bottom: 0.25rem;
}
.portal-dash__tiles--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0 -0.25rem;
  padding: 0.25rem 0.25rem 0.5rem;
}
.portal-dash__tiles--scroll::-webkit-scrollbar {
  height: 6px;
}
.portal-dash__tiles--scroll::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 999px;
}
.portal-chip {
  flex: 0 0 auto;
  position: relative;
  width: 7.5rem;
  min-height: 7.75rem;
  background: #fafaf9;
  border: 1px solid #f0f0ef;
  border-radius: 14px;
  padding: 0.65rem 0.5rem 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.portal-chip:hover {
  border-color: #e7e5e4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.portal-chip__rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #78716c;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.portal-chip__rm:hover {
  color: #b91c1c;
}
.portal-chip__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.portal-chip__imgwrap {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}
.portal-chip__imgwrap--pang {
  border-radius: 10px;
  overflow: hidden;
}
.portal-chip__imgwrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.portal-chip__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #292524;
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-chip__link:hover .portal-chip__label {
  color: #c2410c;
}

@media (min-width: 768px) {
  .portal-dash__tiles--scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.75rem, 1fr));
    gap: 0.65rem;
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .portal-chip {
    width: 100%;
    min-width: 0;
  }
}

/* Shared portal headings kept for register page */
.portal-h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 1rem;
}
.portal-section { margin-bottom: 2rem; }
.portal-empty { color: #6b7280; font-size: 0.95rem; }

/* ——— Account shell (dashboard + settings) ——— */
.acct {
  --acct-sidebar: 220px;
  position: relative;
  min-height: calc(100dvh - 52px);
  display: grid;
  grid-template-columns: 1fr;
  background: #f4f1ec;
}
@media (min-width: 900px) {
  .acct {
    grid-template-columns: var(--acct-sidebar) 1fr;
  }
}
.acct__bg {
  display: none;
}
@media (min-width: 900px) {
  .acct__bg {
    display: block;
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
    min-height: 100%;
  }
}
.acct__inner {
  position: relative;
  z-index: 1;
  grid-column: 1;
  padding:
    max(0.6rem, env(safe-area-inset-top, 0px))
    max(0.85rem, env(safe-area-inset-right, 0px))
    max(1.5rem, env(safe-area-inset-bottom, 0px))
    max(0.85rem, env(safe-area-inset-left, 0px));
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 900px) {
  .acct__inner {
    grid-column: 2;
    padding: 1.25rem 1.5rem 2rem;
    margin: 0;
    max-width: none;
  }
}
.acct__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7e5e4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
@media (min-width: 900px) {
  .acct__nav {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 1rem;
    margin: 0 0 0 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    border-radius: 16px;
    max-width: calc(var(--acct-sidebar) - 1.5rem);
  }
}
.acct__brand {
  width: 100%;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78716c;
}
@media (min-width: 900px) {
  .acct__brand {
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.65rem;
    margin-bottom: 0.5rem;
  }
}
.acct__nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #44403c;
  text-decoration: none;
  border: 1px solid transparent;
}
.acct__nav-link:hover {
  background: #fafaf9;
  color: #1c1917;
}
@media (min-width: 900px) {
  .acct__nav-link {
    color: rgba(255, 255, 255, 0.75);
  }
  .acct__nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
}
.acct__nav-link.is-active,
.acct__nav-link--active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
@media (min-width: 900px) {
  .acct__nav-link.is-active {
    background: rgba(234, 88, 12, 0.2);
    border-color: rgba(251, 146, 60, 0.35);
    color: #ffedd5;
  }
}
.acct__nav-icon {
  font-size: 1rem;
  opacity: 0.85;
}
.acct__nav-spacer {
  flex: 1;
  min-width: 0.5rem;
}
@media (min-width: 900px) {
  .acct__nav-spacer {
    flex: 1;
    min-height: 0.75rem;
  }
}
.acct__nav-link--out {
  color: #a8a29e;
}
@media (min-width: 900px) {
  .acct__nav-link--out {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    border-radius: 0 0 10px 10px;
  }
  .acct__nav-link--out:hover {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.12);
  }
}

/*
 * Shell pages use .acct__shell without .acct__bg — desktop rules above assume a dark
 * sidebar column. Force a readable light card for account areas.
 */
@media (min-width: 900px) {
  .acct--dashboard .acct__nav {
    background: #fff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 4px 18px rgba(28, 25, 23, 0.08);
    margin: 0;
    max-width: none;
  }
  .acct--dashboard .acct__brand {
    color: #57534e;
    border-bottom: 1px solid #f5f5f4;
    padding-bottom: 0.65rem;
    margin-bottom: 0.5rem;
  }
  .acct--dashboard .acct__nav-link {
    color: #292524;
  }
  .acct--dashboard .acct__nav-link:hover {
    background: #fafaf9;
    color: #1c1917;
  }
  .acct--dashboard .acct__nav-link.is-active,
  .acct--dashboard .acct__nav-link--active {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
  }
  .acct--dashboard .acct__nav-link--out {
    color: #57534e;
    border-top: 1px solid #f5f5f4;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-radius: 0 0 10px 10px;
  }
  .acct--dashboard .acct__nav-link--out:hover {
    color: #b91c1c;
    background: #fef2f2;
  }
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dash-head__intro {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.dash-head__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #ea580c, #9a3412);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(154, 52, 18, 0.22);
}
.dash-head__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
}
.dash-head__title {
  margin: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.dash-head__name {
  color: #7c2d12;
}
.dash-head__sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #78716c;
  line-height: 1.45;
  max-width: 42ch;
}
.dash-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #e7e5e4;
  background: #fff;
  color: #44403c;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dash-btn:hover {
  border-color: #d6d3d1;
  color: #1c1917;
  background: #fafaf9;
}
.dash-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1rem;
}
.dash-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f5f5f4;
}
.dash-card__h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.02em;
}
.dash-card__badge {
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-radius: 999px;
}
.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.dash-stat {
  flex: 1 1 auto;
  min-width: 5rem;
  max-width: 9rem;
  padding: 0.75rem 0.85rem;
  background: #fafaf9;
  border-radius: 12px;
  border: 1px solid #f0f0ef;
  text-align: center;
}
.dash-stat__val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.1;
}
.dash-stat__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-empty {
  text-align: center;
  padding: 1.75rem 1rem;
}
.dash-empty__text {
  margin: 0 auto 0.85rem;
  max-width: 26rem;
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.5;
}
.dash-empty__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.28);
}
.dash-empty__cta:hover {
  filter: brightness(1.05);
  color: #fff;
}
.dash-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.55rem;
  margin-bottom: 0.45rem;
  background: #fafaf9;
  border-radius: 12px;
  border: 1px solid #f0f0ef;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-row:hover {
  border-color: #e7e5e4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.dash-row__media {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 10px;
  overflow: hidden;
  background: #e7e5e4;
}
.dash-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}
.dash-row__cat {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-row__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #292524;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}
.dash-row__link:hover {
  color: #c2410c;
}
.dash-row__rm {
  flex-shrink: 0;
  align-self: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #a8a29e;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.dash-row__rm:hover {
  color: #b91c1c;
  background: #fef2f2;
}
.dash-tiles {
  display: flex;
  gap: 0.55rem;
  padding-bottom: 0.2rem;
  margin: 0 -0.15rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.dash-tiles::-webkit-scrollbar {
  height: 5px;
}
.dash-tiles::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 999px;
}
.dash-tile {
  flex: 0 0 auto;
  position: relative;
  width: 7.25rem;
  min-height: 7.5rem;
  background: #fafaf9;
  border: 1px solid #f0f0ef;
  border-radius: 12px;
  padding: 0.55rem 0.45rem 0.45rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-tile:hover {
  border-color: #e7e5e4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.dash-tile__rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #78716c;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.dash-tile__rm:hover {
  color: #b91c1c;
}
.dash-tile__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.dash-tile__imgwrap {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}
.dash-tile__imgwrap--round {
  border-radius: 10px;
  overflow: hidden;
}
.dash-tile__imgwrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dash-tile__label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #292524;
  line-height: 1.28;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-tile__link:hover .dash-tile__label {
  color: #c2410c;
}
@media (min-width: 768px) {
  .dash-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: 0.55rem;
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .dash-tile {
    width: 100%;
    min-width: 0;
  }
}

/* Settings panels */
.sett-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.sett-msg--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.sett-msg--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.sett-msg--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.sett-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .sett-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.sett-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 18px rgba(28, 25, 23, 0.05);
  padding: 1rem 1rem 1.15rem;
}
.sett-card__h {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1c1917;
}
.sett-kv {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #44403c;
}
.sett-kv strong {
  color: #1c1917;
  font-weight: 700;
}
.sett-hint {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: #78716c;
  line-height: 1.45;
}
.sett-field {
  margin-bottom: 0.75rem;
}
.sett-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #57534e;
  margin-bottom: 0.3rem;
}
.sett-field input,
.sett-field select {
  width: 100%;
  max-width: 22rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d6d3d1;
  font-size: 0.9rem;
  background: #fff;
}
.sett-checkgrp {
  border: 1px solid #f0f0ef;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  background: #fafaf9;
}
.sett-checkgrp__title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #44403c;
}
.sett-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: #292524;
  cursor: pointer;
}
.sett-check:last-child {
  margin-bottom: 0;
}
.sett-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.sett-actions {
  margin-top: 0.85rem;
}
.sett-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1.1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  color: #fff;
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.25);
}
.sett-btn:hover {
  filter: brightness(1.05);
}
.sett-btn--sec {
  background: #fff;
  color: #44403c;
  border: 1.5px solid #e7e5e4;
  box-shadow: none;
}
.sett-btn--sec:hover {
  background: #fafaf9;
}

/* ——— Dashboard shell & cards (v8) ——— */
.acct--dashboard {
  display: block;
  background: linear-gradient(165deg, #f8f5f0 0%, #ebe6df 45%, #f4f1ec 100%);
}
.acct__shell {
  max-width: 72rem;
  margin: 0 auto;
  padding:
    max(0.65rem, env(safe-area-inset-top, 0px))
    max(0.85rem, env(safe-area-inset-right, 0px))
    max(1.75rem, env(safe-area-inset-bottom, 0px))
    max(0.85rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .acct__shell {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.35rem 1.75rem 2.25rem;
  }
  .acct--dashboard .acct__nav {
    flex: 0 0 var(--acct-sidebar, 220px);
    margin-bottom: 0;
    position: sticky;
    top: 1rem;
  }
}
.acct__main {
  flex: 1;
  min-width: 0;
}
.acct__card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(231, 229, 228, 0.95);
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.07);
  padding: 1.15rem 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.acct__h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.02em;
}
.acct__muted {
  margin: 0;
  font-size: 0.88rem;
  color: #78716c;
  line-height: 1.5;
}
.acct__sublead {
  margin-bottom: 0.75rem;
}
.acct__pagehead .acct__h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.03em;
}
.acct__pagehead .acct__lead {
  margin: 0;
  font-size: 0.92rem;
  color: #78716c;
  line-height: 1.45;
  max-width: 48ch;
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 55%, #ffedd5 100%);
  border-radius: 18px;
  border: 1px solid #fed7aa;
  box-shadow: 0 8px 28px rgba(154, 52, 18, 0.1);
}
.dash-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2410c;
}
.dash-hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: #1c1917;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.dash-hero__lead {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #57534e;
  line-height: 1.5;
  max-width: 40rem;
}
.dash-hero__badge {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #ea580c, #9a3412);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.35);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.dash-metric {
  padding: 0.85rem 0.65rem;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7e5e4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.dash-metric__val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.1;
}
.dash-metric__lbl {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f5f5f4;
}
.dash-section__h {
  margin: 0;
}
.dash-pill {
  flex-shrink: 0;
  min-height: 1.6rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-radius: 999px;
}

.dash-tile--wide {
  min-width: min(100%, 10rem);
  width: 100%;
}
@media (min-width: 768px) {
  .dash-tiles:has(.dash-tile--wide) {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }
}

/* Settings banners & fields (used by settings.php) */
.acct__banner {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.acct__banner--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.acct__banner--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.acct__banner--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.acct__dl {
  margin: 0;
  display: grid;
  gap: 0.5rem 1.25rem;
  grid-template-columns: auto 1fr;
  font-size: 0.9rem;
}
.acct__dl dt {
  margin: 0;
  font-weight: 700;
  color: #57534e;
}
.acct__dl dd {
  margin: 0;
  color: #1c1917;
}
.acct__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 28rem;
}
.acct__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.acct__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #44403c;
}
.acct__input {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d6d3d1;
  font-size: 0.92rem;
  background: #fff;
}
.acct__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  color: #fff;
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.28);
}
.acct__btn:hover {
  filter: brightness(1.05);
}
.acct__fieldset {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #f0f0ef;
  border-radius: 12px;
  background: #fafaf9;
}
.acct__legend {
  font-size: 0.82rem;
  font-weight: 800;
  color: #44403c;
  padding: 0 0.35rem;
}
.acct__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  cursor: pointer;
  color: #292524;
}
.acct__check:last-child {
  margin-bottom: 0;
}
.acct__check input {
  margin-top: 0.15rem;
}
.acct__code-mini {
  font-size: 0.68rem;
  color: #a8a29e;
  margin-left: 0.25rem;
}
.acct__code {
  font-size: 0.8rem;
  background: #f5f5f4;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.acct__note {
  font-size: 0.86rem;
  color: #78716c;
  line-height: 1.45;
}
.acct__hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

