:root {
  --admin-green: #009b55;
  --admin-green-dark: #006f3c;
  --admin-green-soft: #eaf8f1;
  --admin-lime: #a4ce3c;
  --admin-navy: #123428;
  --admin-ink: #25352e;
  --admin-muted: #7a8982;
  --admin-border: #e5ece8;
  --admin-bg: #f4f7f5;
  --admin-white: #fff;
  --admin-sidebar-width: 292px;
  --admin-font: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-family: var(--admin-font);
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

.admin-brand {
  align-items: center;
  display: inline-flex;
  gap: .85rem;
  text-decoration: none;
}

.admin-brand-logo {
  border-radius: 50%;
  box-shadow: 0 9px 22px rgb(0 155 85 / 22%);
  flex: 0 0 auto;
  height: 48px;
  object-fit: contain;
  transition: transform .25s ease;
  width: 48px;
}

.admin-brand:hover .admin-brand-logo,
.admin-brand:focus-visible .admin-brand-logo {
  transform: translateY(-2px) rotate(-2deg);
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.admin-brand small {
  font-size: .65rem;
  margin-top: .15rem;
  opacity: .62;
}

.admin-brand-light {
  color: #fff;
}

.btn {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.15rem;
}

.btn-admin-primary {
  background: linear-gradient(135deg, var(--admin-green), #00b766);
  border: 0;
  box-shadow: 0 9px 20px rgb(0 155 85 / 18%);
  color: #fff;
}

.btn-admin-primary:hover,
.btn-admin-primary:focus-visible {
  background: linear-gradient(135deg, #008d4d, #00a85d);
  color: #fff;
  transform: translateY(-1px);
}

.btn-admin-light {
  background: #fff;
  border: 1px solid var(--admin-border);
  color: #516159;
}

.btn-admin-light:hover,
.btn-admin-light:focus-visible {
  background: var(--admin-green-soft);
  border-color: rgb(0 155 85 / 18%);
  color: var(--admin-green-dark);
}

.btn:disabled,
.icon-action:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.section-eyebrow,
.card-kicker {
  color: var(--admin-green);
  display: block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.section-eyebrow-light {
  color: #c9ef65;
}

.form-label {
  color: #3b4d44;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--admin-border);
  border-radius: 12px;
  color: var(--admin-ink);
  font-size: .86rem;
  min-height: 48px;
}

textarea.form-control {
  line-height: 1.55;
  padding-bottom: .85rem;
  padding-top: .85rem;
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  border-color: rgb(0 155 85 / 50%);
  box-shadow: 0 0 0 .22rem rgb(0 155 85 / 10%);
}

.form-control[type="file"] {
  color: #74827b;
  height: 48px;
  line-height: 46px;
  min-height: 48px;
  overflow: hidden;
  padding: 0 .85rem 0 0;
}

.form-control[type="file"]::file-selector-button,
.form-control[type="file"]::-webkit-file-upload-button {
  background: var(--admin-green-soft);
  border: 0;
  border-radius: 11px 0 0 11px;
  border-right: 1px solid var(--admin-border);
  color: var(--admin-green-dark);
  font-size: .72rem;
  font-weight: 700;
  height: 46px;
  line-height: 46px;
  margin: 0 .85rem 0 0;
  padding: 0 1rem;
  vertical-align: top;
}

.form-control[type="file"]:hover::file-selector-button,
.form-control[type="file"]:hover::-webkit-file-upload-button {
  background: #daf1e6;
}

.input-group > .form-control {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.input-group-text {
  background: #f9fbfa;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  color: var(--admin-green);
  padding-inline: 1rem;
}

.form-text {
  color: #9aa69f;
  font-size: .7rem;
}

.form-check-input:checked {
  background-color: var(--admin-green);
  border-color: var(--admin-green);
}

.form-check-label {
  color: #68766f;
  font-size: .78rem;
  font-weight: 500;
}

/* Login */
.admin-login-page {
  background: #fff;
  overflow-x: hidden;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  min-height: 100vh;
}

.login-brand-panel {
  background:
    linear-gradient(145deg, rgb(0 111 60 / 95%), rgb(0 155 85 / 94%)),
    url("../assets/img/ref-01.png") center / cover;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 5.5rem);
  position: relative;
}

.login-brand-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 700px;
  min-height: calc(100vh - clamp(5rem, 10vw, 11rem));
  position: relative;
  z-index: 2;
}

.login-welcome-copy {
  margin: auto 0;
  max-width: 620px;
}

.login-kicker {
  align-items: center;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  display: inline-flex;
  font-size: .74rem;
  font-weight: 700;
  gap: .5rem;
  margin-bottom: 1.75rem;
  padding: .6rem .9rem;
}

.login-welcome-copy h1 {
  font-size: clamp(2.6rem, 4.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  margin: 0 0 1.7rem;
}

.login-welcome-copy p {
  color: rgb(255 255 255 / 76%);
  font-size: clamp(.9rem, 1.15vw, 1.18rem);
  line-height: 1.65;
  margin: 0;
  max-width: 540px;
}

.login-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
}

.login-feature-list span {
  align-items: center;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 600;
  gap: .45rem;
}

.login-feature-list i {
  color: #c9ef65;
}

.login-decoration {
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
}

.login-decoration-one {
  height: 480px;
  right: -210px;
  top: -160px;
  width: 480px;
}

.login-decoration-two {
  bottom: -210px;
  height: 600px;
  left: -260px;
  width: 600px;
}

.login-form-panel {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem clamp(2rem, 5vw, 6.5rem);
}

.login-card {
  max-width: 440px;
  width: 100%;
}

.login-mobile-brand {
  align-items: center;
  color: var(--admin-green-dark);
  display: none;
  gap: .75rem;
  margin-bottom: 3rem;
}

.login-card h2 {
  color: var(--admin-navy);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.05em;
  margin: 0 0 .8rem;
}

.login-lead {
  color: var(--admin-muted);
  font-size: .86rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.admin-input-group {
  position: relative;
}

.admin-input-group > i {
  color: #9da9a3;
  left: 1rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.admin-input-group .form-control {
  padding-left: 2.8rem;
  padding-right: 3rem;
}

.password-toggle {
  background: transparent;
  border: 0;
  color: #7f8d86;
  height: 100%;
  position: absolute;
  right: .5rem;
  top: 0;
  width: 42px;
  z-index: 3;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--admin-green);
  font-size: .75rem;
  font-weight: 700;
  padding: 0;
}

.demo-access {
  background: #f5faf7;
  border: 1px dashed rgb(0 155 85 / 24%);
  border-radius: 14px;
  display: grid;
  gap: .45rem;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
}

.demo-access span {
  color: #64736c;
  font-size: .7rem;
  font-weight: 700;
}

.demo-access code {
  color: var(--admin-green-dark);
  font-size: .74rem;
}

.back-to-site {
  color: #7b8982;
  display: inline-flex;
  font-size: .74rem;
  font-weight: 600;
  gap: .45rem;
  margin-top: 1.7rem;
  text-decoration: none;
}

.back-to-site:hover {
  color: var(--admin-green);
}

/* Dashboard shell */
.admin-sidebar {
  background:
    radial-gradient(circle at 0 0, rgb(164 206 60 / 11%), transparent 28%),
    linear-gradient(180deg, #123a2c 0%, #0b2b20 100%);
  border: 0;
  color: #fff;
  width: var(--admin-sidebar-width) !important;
}

.admin-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 2rem 1.25rem 1.25rem;
  scrollbar-color: rgb(164 206 60 / 62%) rgb(255 255 255 / 5%);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.admin-sidebar-inner::-webkit-scrollbar {
  width: 9px;
}

.admin-sidebar-inner::-webkit-scrollbar-track {
  background: rgb(255 255 255 / 5%);
  border-radius: 999px;
  margin-block: .75rem;
}

.admin-sidebar-inner::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--admin-lime), var(--admin-green));
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
  min-height: 44px;
}

.admin-sidebar-inner::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b9dc55, #00b565);
  background-clip: padding-box;
}

.admin-sidebar-inner::-webkit-scrollbar-corner {
  background: transparent;
}

.admin-sidebar .admin-brand {
  margin: 0 .75rem 2.35rem;
}

.admin-sidebar-mobile-header {
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
}

.admin-sidebar-mobile-brand {
  align-items: center;
  display: flex;
  gap: .7rem;
}

.admin-sidebar-mobile-logo {
  border-radius: 50%;
  box-shadow: 0 6px 16px rgb(0 0 0 / 18%);
  flex: 0 0 auto;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.admin-nav {
  display: grid;
  gap: .2rem;
}

.admin-nav-label {
  color: rgb(255 255 255 / 40%);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .13em;
  margin: 1.25rem .85rem .55rem;
  text-transform: uppercase;
}

.admin-nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: rgb(255 255 255 / 66%);
  display: grid;
  font-size: .76rem;
  font-weight: 600;
  gap: .75rem;
  grid-template-columns: 1.25rem 1fr auto;
  padding: .82rem .9rem;
  text-align: left;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  width: 100%;
}

.admin-nav-link > i {
  font-size: 1rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgb(255 255 255 / 9%);
  color: #fff;
  transform: translateX(3px);
}

.admin-nav-link.active > i {
  color: #c9ef65;
}

.admin-nav-count {
  align-items: center;
  background: rgb(255 255 255 / 9%);
  border-radius: 999px;
  display: inline-flex;
  font-size: .6rem;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 .35rem;
}

.admin-sidebar-footer {
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 9%);
  display: flex;
  gap: .7rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 1.35rem .55rem .2rem;
}

.sidebar-user {
  align-items: center;
  display: flex;
  gap: .7rem;
  min-width: 0;
}

.sidebar-avatar {
  align-items: center;
  background: var(--admin-lime);
  border-radius: 11px;
  color: var(--admin-navy);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: .68rem;
}

.sidebar-user small {
  color: rgb(255 255 255 / 42%);
  font-size: .57rem;
  margin-top: .15rem;
}

.sidebar-logout {
  align-items: center;
  background: rgb(255 255 255 / 7%);
  border: 0;
  border-radius: 10px;
  color: rgb(255 255 255 / 65%);
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.sidebar-logout:hover {
  background: rgb(220 53 69 / 20%);
  color: #ff9aa5;
}

.admin-main {
  min-height: 100vh;
}

.admin-topbar {
  align-items: center;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  padding: 1rem clamp(1.1rem, 3vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 100;
}

@supports (backdrop-filter: blur(14px)) {
  .admin-topbar {
    backdrop-filter: blur(14px);
  }
}

.admin-breadcrumb {
  color: #a1ada7;
  display: block;
  font-size: .6rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.admin-topbar h1 {
  color: var(--admin-navy);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0;
}

.admin-menu-button {
  align-items: center;
  background: var(--admin-green-soft);
  border: 0;
  border-radius: 11px;
  color: var(--admin-green);
  display: inline-flex;
  font-size: 1.35rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.admin-topbar-actions {
  align-items: center;
  display: flex;
  gap: .7rem;
}

.save-status {
  align-items: center;
  color: #819087;
  font-size: .65rem;
  font-weight: 600;
  gap: .4rem;
  margin-right: .35rem;
}

.save-status i {
  color: var(--admin-green);
  font-size: .95rem;
}

.admin-content {
  margin: 0 auto;
  max-width: 1640px;
  padding: clamp(1.35rem, 3vw, 3rem);
}

.admin-section {
  display: none;
}

.admin-section.active {
  animation: adminFadeIn .28s ease both;
  display: block;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  color: var(--admin-navy);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.05em;
  margin: 0 0 .55rem;
}

.section-heading p {
  color: var(--admin-muted);
  font-size: .8rem;
  line-height: 1.55;
  margin: 0;
}

.section-heading-actions {
  gap: 1.5rem;
}

.welcome-card {
  align-items: center;
  background:
    radial-gradient(circle at 90% 0, rgb(164 206 60 / 30%), transparent 28%),
    linear-gradient(135deg, #007e45, #00aa60);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgb(0 111 60 / 16%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  min-height: 190px;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 3rem);
  position: relative;
}

.welcome-card h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -.055em;
  margin: 0 0 .7rem;
}

.welcome-card p {
  color: rgb(255 255 255 / 75%);
  font-size: .84rem;
  margin: 0;
}

.welcome-icon {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  color: rgb(255 255 255 / 26%);
  display: flex;
  font-size: clamp(5rem, 9vw, 9rem);
  height: clamp(150px, 16vw, 260px);
  justify-content: center;
  position: absolute;
  right: -1%;
  top: -22%;
  transform: rotate(10deg);
  width: clamp(150px, 16vw, 260px);
}

.summary-card,
.admin-card {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgb(20 52 40 / 4%);
}

.summary-card {
  align-items: center;
  display: grid;
  gap: .85rem;
  grid-template-columns: 48px 1fr auto;
  min-height: 106px;
  padding: 1.2rem;
}

.summary-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 1.15rem;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 48px;
}

.summary-icon i {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.summary-icon i::before {
  display: block;
  line-height: 1;
}

.summary-icon-green { background: #e8f7f0; color: var(--admin-green); }
.summary-icon-lime { background: #f2f9df; color: #769f16; }
.summary-icon-blue { background: #eaf4fb; color: #3781b4; }
.summary-icon-gray { background: #f0f2f1; color: #75827c; }

.summary-card strong,
.summary-card span {
  display: block;
}

.summary-card strong {
  color: var(--admin-navy);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.summary-card div > span {
  color: var(--admin-muted);
  font-size: .64rem;
  margin-top: .35rem;
}

.summary-card button,
.summary-card > a {
  align-items: center;
  background: transparent;
  border: 0;
  color: #a5afa9;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.summary-card button:hover,
.summary-card > a:hover {
  color: var(--admin-green);
}

.admin-card {
  padding: clamp(1.25rem, 2.25vw, 2rem);
}

.admin-card-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.admin-card-header h3 {
  color: var(--admin-navy);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0;
}

.status-badge {
  align-items: center;
  background: var(--admin-green-soft);
  border-radius: 999px;
  color: var(--admin-green-dark);
  display: inline-flex;
  font-size: .58rem;
  font-weight: 700;
  gap: .4rem;
  padding: .45rem .65rem;
}

.status-badge span {
  background: var(--admin-green);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.status-badge-pending {
  background: #fff6df;
  color: #926d16;
}

.status-badge-pending span {
  background: #d9a323;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.quick-actions button,
.quick-actions a {
  align-items: center;
  background: #f8faf9;
  border: 1px solid #edf1ef;
  border-radius: 14px;
  color: var(--admin-green);
  display: grid;
  gap: .8rem;
  grid-template-columns: 42px 1fr auto;
  padding: 1rem;
  text-align: left;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.quick-actions button > i:first-child,
.quick-actions a > i:first-child {
  align-items: center;
  background: #fff;
  border-radius: 11px;
  display: flex;
  font-size: 1rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.quick-actions button > i:last-child,
.quick-actions a > i:last-child {
  color: #b2bcb7;
  font-size: .7rem;
}

.quick-actions strong,
.quick-actions small {
  display: block;
}

.quick-actions strong {
  color: #34483e;
  font-size: .72rem;
  margin-bottom: .2rem;
}

.quick-actions small {
  color: #96a29c;
  font-size: .58rem;
}

.quick-actions button:hover,
.quick-actions a:hover {
  border-color: rgb(0 155 85 / 18%);
  box-shadow: 0 8px 20px rgb(20 52 40 / 6%);
  transform: translateY(-2px);
}

.publication-status {
  padding: .5rem 0 0;
  text-align: center;
}

.publication-icon {
  align-items: center;
  background: var(--admin-green-soft);
  border-radius: 50%;
  color: var(--admin-green);
  display: inline-flex;
  font-size: 1.8rem;
  height: 72px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 72px;
}

.publication-status h4 {
  color: var(--admin-navy);
  font-size: .9rem;
  font-weight: 800;
  margin: 0 0 .4rem;
}

.publication-status p {
  color: var(--admin-muted);
  font-size: .67rem;
  line-height: 1.5;
  margin: 0 auto 1rem;
  max-width: 250px;
}

.publication-date {
  color: #9ba7a1;
  font-size: .6rem;
  font-weight: 600;
}

.content-form {
  padding: clamp(1.35rem, 2.8vw, 2.5rem);
}

.form-actions {
  align-items: center;
  border-top: 1px solid var(--admin-border);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.image-preview-card {
  background: #f8faf9;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 1rem;
}

.image-preview-card > span {
  color: #66756d;
  display: block;
  font-size: .68rem;
  font-weight: 700;
  margin: 0 0 .8rem .15rem;
}

.image-preview {
  align-items: center;
  background: #eaf0ed;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-preview-wide { aspect-ratio: 16 / 10; }
.image-preview-square { aspect-ratio: 1; }
.image-preview-portrait { aspect-ratio: 4 / 5; max-height: 430px; }

.image-preview img {
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 2;
}

.image-preview img[src=""],
.avatar-upload-preview img[src=""] {
  display: none;
}

.image-preview-portrait img {
  object-fit: contain;
}

.image-preview-placeholder {
  align-items: center;
  color: #9aa8a1;
  display: flex;
  flex-direction: column;
  font-size: .7rem;
  gap: .5rem;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.image-preview-placeholder i {
  font-size: 2rem;
}

.modal-image-preview {
  margin: 0 auto;
  max-width: 280px;
}

.avatar-file-field {
  align-items: center;
  background: #f9fbfa;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  display: flex;
  gap: 1.2rem;
  padding: 1rem;
}

.avatar-upload-preview {
  align-items: center;
  background: var(--admin-green-soft);
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgb(20 52 40 / 8%);
  color: var(--admin-green);
  display: flex;
  flex: 0 0 auto;
  height: 88px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 88px;
}

.avatar-upload-preview img {
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 2;
}

.avatar-upload-preview span {
  font-size: 1.8rem;
  position: absolute;
}

.table-card {
  overflow: hidden;
  padding: 0;
}

.table-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
}

.admin-search {
  max-width: 430px;
  position: relative;
  width: 100%;
}

.admin-search i {
  color: #a0aca6;
  left: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.admin-search .form-control {
  background: #f8faf9;
  min-height: 42px;
  padding-left: 2.7rem;
}

.result-count {
  color: #8d9993;
  flex: 0 0 auto;
  font-size: .65rem;
  font-weight: 600;
}

.admin-table {
  min-width: 720px;
}

.admin-table thead th {
  background: #fbfcfb;
  border-bottom-color: var(--admin-border);
  color: #8b9892;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .85rem 1.4rem;
  text-transform: uppercase;
}

.admin-table tbody td {
  border-bottom-color: #edf1ef;
  color: #607068;
  font-size: .73rem;
  padding: 1rem 1.4rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.specialist-cell {
  align-items: center;
  display: flex;
  gap: .8rem;
}

.location-admin-table {
  min-width: 1180px;
}

.location-table-cell {
  align-items: center;
  display: flex;
  gap: .8rem;
  min-width: 210px;
}

.location-table-icon {
  align-items: center;
  background: var(--admin-green-soft);
  border-radius: 11px;
  color: var(--admin-green);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.location-table-icon.featured {
  background: linear-gradient(145deg, var(--admin-green), #00b766);
  box-shadow: 0 8px 18px rgb(0 155 85 / 18%);
  color: #fff;
}

.specialist-avatar {
  background: #e9efec;
  border-radius: 12px;
  flex: 0 0 auto;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.user-avatar {
  align-items: center;
  background: linear-gradient(145deg, var(--admin-green), #00b766);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .66rem;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  letter-spacing: .02em;
  width: 48px;
}

.user-avatar-image {
  background: #e9efec;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(20 52 40 / 10%);
  display: block;
  flex: 0 0 48px;
  height: 48px;
  object-fit: cover;
  object-position: center top;
  width: 48px;
}

.role-badge {
  background: #f0f3f2;
  border-radius: 999px;
  color: #607068;
  display: inline-flex;
  font-size: .58rem;
  font-weight: 700;
  padding: .42rem .68rem;
}

.role-administrador {
  background: #e9f7f0;
  color: var(--admin-green-dark);
}

.role-editor {
  background: #eaf4fb;
  color: #3479a8;
}

.role-visualizador {
  background: #f2f3f3;
  color: #75817b;
}

.table-person-details {
  display: block;
  min-width: 0;
}

.table-person-details strong {
  color: #34483e;
  display: block;
  font-size: .72rem;
  margin-bottom: .15rem;
}

.table-person-details span {
  color: #a0aba5;
  display: block;
  font-size: .6rem;
}

.item-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .58rem;
  font-weight: 700;
  gap: .4rem;
  padding: .42rem .65rem;
}

.item-status::before {
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.item-status.active { background: var(--admin-green-soft); color: var(--admin-green-dark); }
.item-status.active::before { background: var(--admin-green); }
.item-status.inactive { background: #f1f3f2; color: #88958f; }
.item-status.inactive::before { background: #aab3af; }

.table-actions {
  display: flex;
  gap: .4rem;
  justify-content: flex-end;
}

.icon-action {
  align-items: center;
  background: #f7faf8;
  border: 1px solid #edf1ef;
  border-radius: 9px;
  color: #77867f;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.icon-action:hover {
  background: var(--admin-green-soft);
  border-color: rgb(0 155 85 / 15%);
  color: var(--admin-green);
}

.icon-action-danger:hover {
  background: #fff0f1;
  border-color: #ffdadd;
  color: #d84756;
}

.icon-action:disabled:hover {
  background: #f7faf8;
  border-color: #edf1ef;
  color: #77867f;
}

.empty-state {
  color: #8d9a94;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.empty-state > i {
  color: #c5ceca;
  font-size: 2.5rem;
}

.empty-state h3 {
  color: #4f6158;
  font-size: .9rem;
  font-weight: 800;
  margin: .8rem 0 .35rem;
}

.empty-state p {
  font-size: .68rem;
  margin: 0;
}

.specialty-admin-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.specialty-admin-item {
  align-items: center;
  background: #f9fbfa;
  border: 1px solid #edf1ef;
  border-radius: 13px;
  display: grid;
  gap: .7rem;
  grid-template-columns: 36px 1fr auto;
  min-width: 0;
  padding: .85rem;
}

.specialty-admin-icon {
  align-items: center;
  background: var(--admin-green-soft);
  border-radius: 10px;
  color: var(--admin-green);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.specialty-admin-item strong,
.specialty-admin-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specialty-admin-item strong {
  color: #40534a;
  font-size: .68rem;
  margin-bottom: .2rem;
}

.specialty-admin-item small {
  color: #9ca8a2;
  font-size: .57rem;
}

.specialty-admin-actions {
  display: flex;
  gap: .25rem;
}

.specialty-admin-actions .icon-action {
  background: #fff;
  height: 31px;
  width: 31px;
}

.social-settings-list {
  display: grid;
  gap: .8rem;
}

.social-setting-row {
  align-items: center;
  background: #f9fbfa;
  border: 1px solid #edf1ef;
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 46px 120px 1fr auto;
  padding: .9rem 1rem;
}

.social-setting-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  color: var(--admin-green);
  display: inline-flex;
  font-size: 1.05rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.social-setting-row strong {
  color: #40534a;
  font-size: .72rem;
}

.social-setting-row .form-control {
  min-height: 42px;
}

.admin-modal {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgb(15 47 35 / 20%);
  overflow: hidden;
}

.admin-modal .modal-header,
.admin-modal .modal-footer {
  border-color: var(--admin-border);
  padding: 1.25rem 1.5rem;
}

.admin-modal .modal-body {
  padding: 1.5rem;
}

.admin-modal .modal-title {
  color: var(--admin-navy);
  font-weight: 800;
  letter-spacing: -.025em;
}

.delete-modal-content .modal-body {
  padding: 2rem 1.5rem;
}

.delete-modal-icon {
  align-items: center;
  background: #fff0f1;
  border-radius: 50%;
  color: #d84756;
  display: inline-flex;
  font-size: 1.35rem;
  height: 60px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 60px;
}

.delete-modal-content h2 {
  color: var(--admin-navy);
  font-weight: 800;
}

.delete-modal-content p {
  color: var(--admin-muted);
  font-size: .72rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.admin-toast {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgb(20 52 40 / 16%);
}

.admin-toast .toast-body {
  align-items: center;
  color: #4e5f56;
  display: flex;
  font-size: .72rem;
  font-weight: 600;
  gap: .75rem;
  padding: .85rem;
}

.toast-icon {
  align-items: center;
  background: var(--admin-green-soft);
  border-radius: 9px;
  color: var(--admin-green);
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

@media (min-width: 992px) {
  .admin-sidebar {
    bottom: 0;
    left: 0;
    position: fixed;
    top: 0;
    transform: none !important;
    visibility: visible !important;
    z-index: 1030;
  }

  .admin-sidebar-mobile-header {
    display: none;
  }

  .admin-main {
    margin-left: var(--admin-sidebar-width);
  }
}

@media (max-width: 1199.98px) {
  .specialty-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    background:
      radial-gradient(circle at 100% 0, rgb(164 206 60 / 16%), transparent 32%),
      #fff;
    padding: 2.5rem 1.5rem;
  }

  .login-mobile-brand {
    display: flex;
  }

  .admin-sidebar {
    max-width: 310px;
  }

  .admin-sidebar-inner {
    height: calc(100% - 57px);
    padding-top: 1.5rem;
  }

  .admin-sidebar .admin-brand {
    display: none;
  }

  .admin-topbar {
    min-height: 78px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .admin-content {
    padding: 1.1rem;
  }

  .admin-topbar {
    padding-inline: 1rem;
  }

  .admin-topbar-actions {
    gap: .45rem;
  }

  .admin-topbar-actions .btn {
    height: 42px;
    min-height: 42px;
    padding: 0;
    width: 42px;
  }

  .welcome-card {
    min-height: 170px;
  }

  .welcome-card p {
    max-width: 75%;
  }

  .section-heading,
  .section-heading-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .section-heading-actions .btn {
    align-self: flex-start;
  }

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .result-count {
    align-self: flex-end;
  }

  .specialty-admin-grid {
    grid-template-columns: 1fr;
  }

  .social-setting-row {
    grid-template-columns: 46px 1fr auto;
  }

  .social-setting-row .form-control {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .avatar-file-field {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .login-form-panel {
    padding-inline: 1.1rem;
  }

  .login-mobile-brand {
    margin-bottom: 2.2rem;
  }

  .admin-breadcrumb {
    display: none;
  }

  .admin-topbar h1 {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary-card {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .admin-section.active {
    animation: none;
  }
}
