:root {
  --ink: #14281f;
  --ink-2: #234233;
  --paper: #f5f3ec;
  --white: #fffefa;
  --line: #e5e1d6;
  --muted: #778078;
  --moss: #4f7b5b;
  --mint: #dcebdd;
  --amber: #f5dfaa;
  --rose: #f4dad5;
  --orange: #c25c38;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
}
.hidden {
  display: none !important;
}
.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand.light {
  color: #fff;
}
.brand-mark {
  align-items: center;
  background: var(--orange);
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  height: 29px;
  justify-content: center;
  width: 29px;
}
.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 47%) 1fr;
}
.login-art {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 46px 8%;
  position: relative;
}
.art-copy {
  margin: auto 0 80px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: #b7cdbb;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  margin: 0 0 16px;
}
.eyebrow.ink {
  color: var(--moss);
}
.art-copy h1,
.login-card h2,
.topbar h1,
.hero-note h2,
.category-intro h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -1.6px;
  margin: 0;
}
.art-copy h1 {
  font-size: clamp(43px, 5vw, 67px);
  line-height: 1.04;
}
.art-copy > p:last-child {
  color: #c1d0c3;
  font-size: 16px;
  line-height: 1.7;
  margin: 25px 0 0;
  max-width: 410px;
}
.grid-glow {
  background: radial-gradient(circle, #7fbc8b55 0, transparent 66%);
  bottom: -210px;
  height: 530px;
  position: absolute;
  right: -180px;
  width: 530px;
}
.art-footer {
  color: #9bb0a0;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4px;
  margin: 0;
}
.login-panel {
  align-items: center;
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 40px;
}
.login-card {
  max-width: 380px;
  width: 100%;
}
.mobile-brand {
  display: none;
}
.login-card h2 {
  font-size: 42px;
  line-height: 1.1;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
  margin: 9px 0 0;
}
.form-stack {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
label {
  color: #314339;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
}
input,
textarea {
  background: #fbfaf6;
  border: 1px solid #dbded7;
  border-radius: 9px;
  color: var(--ink);
  font:
    500 14px Manrope,
    sans-serif;
  outline: none;
  padding: 13px 14px;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
textarea {
  height: 100px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px #dcebdd;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.icon-button {
  background: transparent;
  border: 0;
  color: var(--moss);
  cursor: pointer;
  font-size: 18px;
  position: absolute;
  right: 9px;
  top: 8px;
}
.button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font:
    700 13px Manrope,
    sans-serif;
  gap: 26px;
  justify-content: center;
  padding: 14px 17px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #203c2e;
}
.full {
  width: 100%;
}
.form-error {
  color: #ad382d;
  display: none;
  font-size: 12px;
  line-height: 1.5;
  margin: -5px 0 0;
}
.form-error.show {
  display: block;
}
.form-success {
  color: #2e7044;
  display: none;
  font-size: 12px;
  margin: -5px 0 0;
}
.form-success.show {
  display: block;
}
.console {
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: #d9e5da;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  padding: 30px 19px;
  position: fixed;
  top: 0;
  width: 235px;
}
.workspace-label {
  color: #89a28e;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin: 66px 12px 12px;
}
nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #bed0c0;
  cursor: pointer;
  display: flex;
  font:
    600 12px Manrope,
    sans-serif;
  gap: 12px;
  padding: 12px;
  text-align: left;
  width: 100%;
}
.nav-item > span {
  font-size: 18px;
  width: 18px;
}
.nav-item:hover,
.nav-item.active {
  background: #2a4939;
  color: #fff;
}
.nav-item b {
  background: var(--orange);
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  margin-left: auto;
  padding: 3px 7px;
}
.sidebar-bottom {
  border-top: 1px solid #375644;
  margin-top: auto;
  padding-top: 18px;
}
.admin-identity {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 8px 16px;
}
.avatar {
  align-items: center;
  background: #d9e8d9;
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  width: 31px;
}
.admin-identity span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.admin-identity small {
  color: #90a995;
  font-size: 9px;
}
.admin-identity strong {
  color: #fff;
  font-size: 10px;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout {
  color: #a8bfaa;
}
.content {
  margin-left: 235px;
  min-height: 100vh;
  padding: 0 4.5% 60px;
}
.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 43px 0 34px;
}
.topbar h1 {
  font-size: 36px;
  line-height: 1.05;
}
.topbar .eyebrow {
  margin-bottom: 8px;
}
.refresh-button {
  background: transparent;
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font:
    700 11px Manrope,
    sans-serif;
  padding: 10px 12px;
}
.refresh-button:hover {
  background: #e8eee7;
}
.menu-button {
  display: none;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.hero-note {
  align-items: center;
  background: var(--ink-2);
  border-radius: 13px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 31px 34px;
  position: relative;
}
.hero-note:after {
  background: radial-gradient(circle, #86bd8c55 0, transparent 65%);
  content: '';
  height: 330px;
  position: absolute;
  right: -70px;
  top: -190px;
  width: 330px;
}
.hero-note > * {
  position: relative;
  z-index: 1;
}
.hero-note h2 {
  font-size: 29px;
  line-height: 1.2;
  max-width: 600px;
}
.hero-note h2 span {
  color: #ffcf76;
}
.hero-note p:not(.eyebrow) {
  color: #b9cfbb;
  margin: 8px 0 0;
}
.pale {
  background: #eaf2e8;
  color: var(--ink);
  white-space: nowrap;
}
.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}
.stat-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat-card {
  min-height: 151px;
  padding: 19px;
}
.stat-card p {
  color: #768178;
  font-size: 11px;
  font-weight: 700;
  margin: 14px 0 4px;
}
.stat-card strong {
  font-family: 'Playfair Display', serif;
  font-size: 31px;
}
.stat-card small {
  color: #9aa29c;
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.stat-icon {
  align-items: center;
  border-radius: 7px;
  display: flex;
  font-size: 17px;
  height: 29px;
  justify-content: center;
  width: 29px;
}
.moss {
  background: #dbe8dc;
  color: #40704d;
}
.amber {
  background: #faeac4;
  color: #ac7824;
}
.mint {
  background: #daf0df;
  color: #34814d;
}
.rose {
  background: #f4ddda;
  color: #ae5148;
}
.panel {
  overflow: hidden;
}
.panel-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 25px 27px 20px;
}
.panel-heading .eyebrow {
  margin-bottom: 8px;
}
.panel-heading h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0;
}
.text-button {
  background: none;
  border: 0;
  color: var(--moss);
  cursor: pointer;
  font:
    700 12px Manrope,
    sans-serif;
  padding: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  color: #89938b;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.8px;
  padding: 12px 27px;
  text-align: left;
}
td {
  border-top: 1px solid #efede7;
  color: #506059;
  font-size: 12px;
  padding: 15px 27px;
}
td:last-child {
  text-align: right;
}
.user-cell {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 700;
  gap: 10px;
}
.avatar.small {
  background: #e5eee4;
  font-size: 11px;
  height: 28px;
  width: 28px;
}
.subtle {
  color: #8b958e;
  font-size: 10px;
}
.status {
  border-radius: 14px;
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4px;
  padding: 5px 9px;
}
.status.pending {
  background: #fff0cd;
  color: #9b6b17;
}
.status.approved {
  background: #ddf0e1;
  color: #337448;
}
.status.rejected {
  background: #f6e0dd;
  color: #a64a3f;
}
.quick-action {
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font:
    700 10px Manrope,
    sans-serif;
  padding: 7px 10px;
}
.quick-action:hover {
  background: var(--moss);
}
.empty-state {
  color: #89938b;
  padding: 44px;
  text-align: center;
}
.request-panel .panel-heading {
  align-items: center;
}
.filter-tabs {
  background: #f4f3ed;
  border-radius: 8px;
  display: flex;
  padding: 3px;
}
.filter {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #78857b;
  cursor: pointer;
  font:
    600 10px Manrope,
    sans-serif;
  padding: 8px 11px;
}
.filter.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #43524220;
}
.decision-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.approve,
.reject {
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  font:
    700 10px Manrope,
    sans-serif;
  padding: 7px 9px;
}
.approve {
  background: #e3f0e4;
  border-color: #cce2d0;
  color: #2b7042;
}
.reject {
  background: #fff5f3;
  border-color: #edcfca;
  color: #ad4d42;
}
.category-layout {
  align-items: start;
  display: grid;
  gap: 45px;
  grid-template-columns: minmax(250px, 0.8fr) minmax(400px, 1.2fr);
  max-width: 1020px;
}
.category-intro {
  padding: 23px 0;
}
.category-intro h2 {
  font-size: 39px;
  line-height: 1.15;
}
.category-intro > p:not(.eyebrow) {
  color: #657269;
  line-height: 1.75;
  margin-top: 18px;
}
.category-tip {
  background: #e2ebdf;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  margin-top: 29px;
  padding: 15px;
}
.category-tip span {
  color: var(--moss);
  font-size: 17px;
}
.category-tip p {
  color: #536159;
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}
.form-panel {
  padding-bottom: 26px;
}
.form-panel .form-stack {
  margin: 0;
  padding: 0 27px;
}
.optional {
  color: #919a93;
  font-weight: 500;
}
.upload-label input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.upload-box {
  align-items: center;
  border: 1px dashed #bdc9bc;
  border-radius: 8px;
  color: #5d7762;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  justify-content: center;
  min-height: 100px;
}
.upload-box span {
  font-size: 20px;
}
.upload-box small {
  color: #95a096;
  font-size: 10px;
}
.toast {
  background: #183829;
  border-radius: 8px;
  bottom: 25px;
  box-shadow: 0 8px 30px #14281f44;
  color: #fff;
  font-size: 12px;
  left: 50%;
  opacity: 0;
  padding: 12px 17px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: 0.25s;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.user-search {
  align-items: center;
  display: flex;
  gap: 7px;
}

.user-search input {
  min-width: 220px;
  padding: 10px 12px;
}

.user-search .button {
  padding: 10px 13px;
}

.role-label {
  color: #5a6b60;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}

.access-toggle {
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  font:
    700 10px Manrope,
    sans-serif;
  padding: 7px 10px;
}

.access-toggle.active {
  background: #e3f0e4;
  border-color: #cce2d0;
  color: #2b7042;
}

.access-toggle.inactive {
  background: #fff5f3;
  border-color: #edcfca;
  color: #ad4d42;
}

.pagination {
  align-items: center;
  border-top: 1px solid #efede7;
  color: #748178;
  display: flex;
  font:
    10px 'DM Mono',
    monospace;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
}

.pagination-button {
  background: transparent;
  border: 1px solid #d7ddd5;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font:
    700 10px Manrope,
    sans-serif;
  padding: 7px 9px;
}

.pagination-button:disabled {
  cursor: default;
  opacity: 0.45;
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
    z-index: 10;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .content {
    margin-left: 0;
    padding: 0 24px 45px;
  }
  .menu-button {
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: block;
    font-size: 22px;
    margin-right: -10px;
  }
  .topbar {
    gap: 12px;
    padding: 27px 0;
  }
  .topbar h1 {
    font-size: 31px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-layout {
    grid-template-columns: 1fr;
  }
  .category-intro {
    padding-top: 0;
  }
  .category-intro h2 {
    font-size: 34px;
  }
}
@media (max-width: 620px) {
  .login-shell {
    display: block;
  }
  .login-art {
    min-height: 260px;
    padding: 27px;
  }
  .art-copy {
    margin: auto 0 25px;
  }
  .art-copy h1 {
    font-size: 35px;
  }
  .art-copy > p:last-child {
    display: none;
  }
  .art-footer {
    display: none;
  }
  .login-panel {
    padding: 40px 25px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 45px;
  }
  .login-panel .login-card h2 {
    font-size: 36px;
  }
  .sidebar {
    width: 260px;
  }
  .topbar {
    align-items: flex-start;
  }
  .refresh-button span {
    display: none;
  }
  .hero-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
  }
  .hero-note h2 {
    font-size: 25px;
  }
  .stat-grid {
    gap: 10px;
    margin: 16px 0;
  }
  .stat-card {
    min-height: 134px;
    padding: 14px;
  }
  .panel-heading {
    padding: 20px;
  }
  .table-wrap {
    overflow: auto;
  }
  .table-wrap table {
    min-width: 650px;
  }
  th,
  td {
    padding-left: 17px;
    padding-right: 17px;
  }
  .filter-tabs {
    margin-top: 16px;
  }
  .request-panel .panel-heading {
    align-items: flex-start;
    display: block;
  }

  .user-search {
    margin-top: 16px;
  }

  .user-search input {
    min-width: 0;
  }
  .category-layout {
    gap: 8px;
  }
  .form-panel .form-stack {
    padding: 0 20px;
  }
  .form-panel {
    padding-bottom: 20px;
  }
}

/* --- Provider Detail Modal --- */
.modal-overlay {
  align-items: center;
  background: #14281fcc;
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  left: 0;
  padding: 30px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.modal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px #14281f44;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 720px;
  width: 100%;
}

.modal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 27px;
}

.modal-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 27px;
}

.detail-section {
  margin-bottom: 28px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  gap: 8px 20px;
  grid-template-columns: 160px 1fr;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.detail-grid dd {
  color: var(--ink);
  font-size: 13px;
  margin: 0;
  word-break: break-word;
}

.bio-text {
  line-height: 1.6;
}

.photo-link {
  color: var(--moss);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

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

.photo-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid a {
  border-radius: 8px;
  overflow: hidden;
}

.photo-grid img {
  display: block;
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.detail-table {
  font-size: 12px;
  width: 100%;
}

.detail-table th {
  padding: 8px 12px;
}

.detail-table td {
  padding: 8px 12px;
}

.modal-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 27px;
}

.modal-footer .button {
  min-width: 120px;
}

@media (max-width: 620px) {
  .modal-overlay {
    padding: 15px;
  }

  .modal-body {
    padding: 18px 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-grid dt {
    margin-top: 8px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .button {
    width: 100%;
  }
}

/* --- Category Cards Grid --- */
.category-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding: 20px 27px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: 0 4px 20px #14281f18;
  transform: translateY(-2px);
}

.category-card img {
  display: block;
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.category-placeholder {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  height: 140px;
}

.category-info {
  padding: 16px;
}

.category-info h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  margin: 0 0 6px;
}

.category-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.category-info .subtle {
  font-size: 11px;
}
