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

:root {
  --admin-bg: #f4f6f9;
  --admin-card: #ffffff;
  --admin-ink: #0f2433;
  --admin-muted: #516070;
  --admin-border: rgba(15, 36, 51, 0.12);
  --admin-accent: #2f63a4;
  --admin-accent-2: #1d7a6e;
  --admin-danger: #d9483b;
  --admin-radius: 16px;
}

* {
  box-sizing: border-box;
}

body.admin-body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--admin-ink);
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f2d4b;
  color: #ffffff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

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

.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.admin-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
}

.admin-brand h1 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.admin-brand p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 6px;
}

.admin-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.admin-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.admin-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-footer .logout {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.admin-main {
  padding: 28px 32px 40px;
}

.admin-section {
  display: none;
  margin-bottom: 32px;
}

.admin-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-header-left {
  display: none;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  display: grid;
  gap: 4px;
  place-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(10, 30, 44, 0.08);
}

.sidebar-toggle-side {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.sidebar-toggle span {
  width: 18px;
  height: 2px;
  background: var(--admin-ink);
  border-radius: 999px;
  display: block;
}

.sidebar-toggle-side span {
  background: #ffffff;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-header h2 {
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--admin-card);
  border-radius: var(--admin-radius);
  padding: 18px 18px 16px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 12px 26px rgba(10, 30, 44, 0.08);
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-card span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  margin-top: 8px;
}

.panel {
  background: var(--admin-card);
  border-radius: var(--admin-radius);
  padding: 20px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 12px 26px rgba(10, 30, 44, 0.08);
  display: flex;
  flex-direction: column;
}

.panel h3,
.panel h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.panel-grid.two-columns {
  grid-template-columns: 1.1fr 1fr;
}

.dashboard-shell.dashboard-modern {
  background: linear-gradient(135deg, #d9e6ff 0%, #cfdcff 55%, #dfe9ff 100%);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 16px 32px rgba(47, 74, 120, 0.16);
  border: 1px solid rgba(63, 94, 136, 0.14);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.hero-card {
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 36, 51, 0.18);
  display: grid;
  gap: 10px;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hero-blue {
  background: linear-gradient(135deg, #37a0ff, #1f6bd1);
}

.hero-orange {
  background: linear-gradient(135deg, #ff9a3d, #ff5c39);
}

.hero-green {
  background: linear-gradient(135deg, #35d28b, #13a86f);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.hero-link {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
}

.hero-metric strong {
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 0.72rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.dashboard-secondary-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3b4b63;
  margin: 6px 4px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-secondary {
  display: grid;
  grid-template-columns: minmax(320px, 2.2fr) minmax(240px, 1fr);
  gap: 16px;
}

.secondary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(63, 94, 136, 0.12);
  box-shadow: 0 12px 24px rgba(47, 74, 120, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

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

.secondary-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #22324b;
}

.secondary-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.secondary-tabs .tab {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #4b5a6b;
  border: 1px solid rgba(47, 99, 164, 0.14);
  cursor: pointer;
  user-select: none;
}

.secondary-tabs .tab.active {
  background: #2f63a4;
  color: #ffffff;
  border-color: transparent;
}

.secondary-tabs .tab:focus-visible {
  outline: 2px solid rgba(47, 99, 164, 0.6);
  outline-offset: 2px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(63, 94, 136, 0.1);
  margin-top: 0;
}

.mini-metric {
  background: #f5f7ff;
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(82, 110, 156, 0.12);
}

.mini-metric span {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #607086;
}

.mini-metric strong {
  font-size: 1.05rem;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-list .chart-bar {
  border-radius: 12px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
  background: #f4f9fb;
}

.activity-list .chart-bar::before {
  background: linear-gradient(90deg, rgba(47, 99, 164, 0.35), rgba(79, 143, 202, 0.15));
}

.dashboard-shell {
  background: linear-gradient(135deg, #d9e6ff 0%, #cfdcff 55%, #dfe9ff 100%);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(47, 74, 120, 0.16);
  border: 1px solid rgba(63, 94, 136, 0.14);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(320px, 1.8fr) minmax(220px, 1fr);
  grid-template-rows: minmax(220px, auto);
  gap: 14px;
  grid-template-areas:
    "stats activity peak"
    "stats activity peak";
}

.dash-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(63, 94, 136, 0.12);
  box-shadow: 0 10px 20px rgba(47, 74, 120, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #22324b;
}

.dash-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2f63a4;
  background: #eef3ff;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(47, 99, 164, 0.18);
  white-space: nowrap;
}

.dash-stats {
  grid-area: stats;
}

.dash-activity {
  grid-area: activity;
}

.dash-intents {
  grid-area: intents;
}

.dash-peak {
  grid-area: peak;
}

.dash-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}

.dash-stat {
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(82, 110, 156, 0.14);
  display: grid;
  gap: 4px;
}

.dash-stat span {
  color: #5c6a7c;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-stat strong {
  font-size: 1.3rem;
}

.dash-card .panel-body {
  min-height: 200px;
}

.dash-card .chart {
  min-height: 170px;
}

.review-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 6px;
}

.review-donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#4f8fca 0 40%, #9aa9b8 40% 65%, #f2b05e 65% 100%);
  position: relative;
  box-shadow: inset 0 0 0 10px #ffffff;
}

.review-donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(47, 74, 120, 0.12);
}

.review-donut-legend {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  color: #4b5a6b;
}

.review-donut-item {
  display: grid;
  grid-template-columns: 12px auto auto;
  gap: 8px;
  align-items: center;
}

.review-donut-item strong {
  justify-self: end;
  color: #1f2d3d;
}

.review-donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.review-donut-dot.positive {
  background: #4f8fca;
}

.review-donut-dot.neutral {
  background: #9aa9b8;
}

.review-donut-dot.negative {
  background: #f2b05e;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.list li {
  padding: 10px 12px;
  background: rgba(47, 99, 164, 0.08);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scroll-list,
.scroll-panel {
  max-height: 340px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.panel-body {
  flex: 1;
  min-height: 220px;
}

.chart-card .panel-body {
  min-height: 0;
  flex: 0 0 auto;
}

.scroll-panel {
  padding-right: 4px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#conversations .filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 36, 51, 0.08);
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(240, 246, 255, 0.92));
  box-shadow: 0 14px 26px rgba(15, 36, 51, 0.08);
}

#conversations .filters .toggle {
  justify-self: start;
}

#conversations .filters label.toggle {
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: #1d3557;
}

#conversations .filters input,
#conversations .filters select {
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.12);
  box-shadow: inset 0 1px 2px rgba(15, 36, 51, 0.05);
}

.filters input,
.filters select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  font-family: inherit;
}

.stack-form {
  display: grid;
  gap: 10px;
}

.stack-form h4 {
  margin: 12px 0 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-muted);
}

.settings-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 140px);
}

.settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.settings-nav {
  position: sticky;
  top: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.08);
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 22px rgba(15, 36, 51, 0.08);
}

.settings-nav-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 36, 51, 0.6);
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-link {
  border: 1px solid transparent;
  background: #f6f8fc;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #1f2a44;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.settings-link:hover,
.settings-link:focus {
  border-color: rgba(47, 99, 164, 0.25);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
}

.settings-form {
  gap: 18px;
  max-height: 100%;
  overflow: auto;
  padding-right: 6px;
}

.settings-group {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 36, 51, 0.08);
  padding: 18px;
  display: grid;
  gap: 12px;
  scroll-margin-top: 120px;
  box-shadow: 0 12px 22px rgba(15, 36, 51, 0.06);
}

.settings-group::before {
  content: "";
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 99, 164, 0.7), rgba(47, 99, 164, 0.05));
  grid-column: 1 / -1;
}

.settings-group-header h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #1f2a44;
}

.settings-group-header p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: rgba(15, 36, 51, 0.6);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-form .settings-group {
  grid-template-columns: 170px 1fr;
  align-items: start;
}

.settings-form .settings-group > .settings-group-header,
.settings-form .settings-group > .field-hint {
  grid-column: 1 / -1;
}

.settings-form .settings-group > label {
  grid-column: 1;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 36, 51, 0.6);
  font-weight: 700;
}

.settings-form .settings-group > input,
.settings-form .settings-group > textarea,
.settings-form .settings-group > select {
  grid-column: 2;
  background: #f7f9fc;
  border: 1px solid rgba(15, 36, 51, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.settings-form .settings-group > textarea {
  min-height: 90px;
}

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
  }
  .settings-panel {
    max-height: none;
  }
  .settings-form {
    overflow: visible;
    padding-right: 0;
  }
  .settings-form .settings-group {
    grid-template-columns: 1fr;
  }
  .settings-form .settings-group > label,
  .settings-form .settings-group > input,
  .settings-form .settings-group > textarea,
  .settings-form .settings-group > select {
    grid-column: 1;
  }
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  font-family: inherit;
}

.about-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-color: rgba(47, 99, 164, 0.18);
}

.about-panel::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(47, 99, 164, 0.18), transparent 70%);
  pointer-events: none;
}

.about-panel::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -140px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(29, 122, 110, 0.16), transparent 70%);
  pointer-events: none;
}

.about-panel > * {
  position: relative;
  z-index: 1;
}

.about-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.about-panel-header h3 {
  margin-bottom: 4px;
}

.about-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 99, 164, 0.12);
  color: #1f3f6b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-form {
  gap: 14px;
}

.about-form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.about-form-text,
.about-form-media {
  display: grid;
  gap: 14px;
  align-content: start;
}

.about-field {
  display: grid;
  gap: 6px;
}

.about-field label {
  margin: 0;
  line-height: 1.2;
}

.about-field input,
.about-field textarea,
.about-image-field input[type="file"] {
  min-height: 44px;
}

.about-field input {
  height: 46px;
}

.about-image-field input[type="file"] {
  height: 46px;
  padding: 8px 12px;
}

.about-field textarea {
  min-height: 180px;
  resize: vertical;
}

.about-image-field input[type="file"] {
  border: 1px dashed rgba(47, 99, 164, 0.28);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(47, 99, 164, 0.06);
}

.about-image-field input[type="file"]::file-selector-button {
  border: none;
  background: linear-gradient(135deg, #2f63a4, #4f8fca);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-right: 10px;
  cursor: pointer;
}

.about-image-field input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}

.field-hint {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
}

.about-preview {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(47, 99, 164, 0.32);
  background: rgba(47, 99, 164, 0.05);
}

.about-preview-frame {
  width: 140px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(47, 99, 164, 0.12);
  border: 1px solid rgba(47, 99, 164, 0.22);
  display: grid;
  place-items: center;
}

.about-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.about-preview.has-image .about-preview-frame img {
  display: block;
}

.about-preview.has-image .about-preview-empty {
  display: none;
}

.about-preview-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}

.about-preview-meta strong {
  font-size: 0.92rem;
}

.about-preview-meta span {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.65);
  word-break: break-word;
}

.about-preview-btn {
  justify-self: start;
}

.about-preview-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.about-preview-empty {
  font-size: 0.75rem;
  color: rgba(15, 36, 51, 0.6);
  text-align: center;
  padding: 0 6px;
}

.about-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.about-actions .btn.primary {
  min-width: 160px;
  box-shadow: 0 10px 20px rgba(47, 99, 164, 0.2);
}

.about-actions .form-status {
  margin-left: auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--admin-accent), #2f7fd8);
  color: #ffffff;
}

.btn.ghost {
  background: rgba(47, 99, 164, 0.1);
  color: var(--admin-accent);
}

.btn.danger {
  background: rgba(217, 72, 59, 0.1);
  color: var(--admin-danger);
}

.form-status {
  font-size: 0.9rem;
  color: var(--admin-muted);
}

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

.chart {
  min-height: 120px;
  display: grid;
  gap: 4px;
}

.chart-bar {
  background: #f2f6fb;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border: 1px solid rgba(47, 99, 164, 0.12);
  position: relative;
  overflow: hidden;
  --bar: 0%;
  min-height: 36px;
}

.chart-bar a {
  color: var(--admin-accent);
  text-decoration: none;
}

.chart-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(47, 99, 164, 0.5), rgba(79, 143, 202, 0.2));
  z-index: 0;
}

.chart-bar span,
.chart-bar strong {
  position: relative;
  z-index: 1;
}

#recent-activity .chart-bar {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

#recent-activity .chart-bar strong {
  font-size: 0.78rem;
  color: var(--admin-muted);
  align-self: flex-end;
}


#recent-activity {
  display: grid;
  gap: 6px;
  align-content: start;
  margin-bottom: 0;
}

#recent-activity.pie-chart {
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
}

#recent-activity .pie {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 10px #ffffff, 0 10px 20px rgba(47, 74, 120, 0.18);
  margin: 4px auto;
}

#recent-activity .pie::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(47, 99, 164, 0.08);
}

#recent-activity .pie-legend {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: #4b5a6b;
}

#recent-activity .pie-legend-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
}

#recent-activity .pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

#recent-activity.line-chart {
  gap: 6px;
}

.line-chart svg {
  width: 100%;
  height: 140px;
  margin-top: 6px;
}

.line-grid {
  stroke: rgba(15, 36, 51, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.line-area {
  fill: rgba(47, 99, 164, 0.18);
}

.line-path {
  fill: none;
  stroke: rgba(47, 99, 164, 0.95);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: lineDraw 1.2s ease forwards;
}

.line-point {
  fill: #2f63a4;
  stroke: #ffffff;
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 6px rgba(47, 99, 164, 0.25));
}

.line-value {
  font-size: 0.68rem;
  fill: rgba(15, 36, 51, 0.7);
}

.line-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--admin-muted);
  padding: 0 4px 2px;
}

@keyframes lineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.chat-log {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 8px;
}

.chat-log.user {
  border-left: 4px solid var(--admin-accent);
  background: rgba(47, 99, 164, 0.05);
}

.chat-log.bot {
  border-left: 4px solid var(--admin-accent-2);
  background: rgba(29, 122, 110, 0.06);
}

.chat-log.admin {
  border-left: 4px solid #e7a54f;
  background: rgba(231, 165, 79, 0.08);
}

.chat-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--admin-muted);
}

.chat-log-header .tag {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--admin-ink);
  background: rgba(15, 36, 51, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.chat-log-text {
  font-size: 0.92rem;
  color: var(--admin-ink);
  line-height: 1.4;
  word-break: break-word;
}

#top-intents li strong {
  font-size: 0.9rem;
}

#peak-hours .chart-bar {
  background: #f1fbf8;
  border-color: rgba(29, 122, 110, 0.2);
}

#peak-hours .chart-bar::before {
  background: linear-gradient(90deg, rgba(29, 122, 110, 0.45), rgba(29, 122, 110, 0.18));
}

#top-intents .chart-bar::before {
  background: linear-gradient(90deg, rgba(47, 99, 164, 0.5), rgba(79, 143, 202, 0.2));
}

#recent-activity .chart-bar {
  background: #f3f7fc;
  border-color: rgba(47, 99, 164, 0.18);
}

#recent-activity .chart-bar::before {
  background: linear-gradient(90deg, rgba(47, 99, 164, 0.45), rgba(79, 143, 202, 0.2));
}

.conversation-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  display: grid;
  gap: 6px;
  cursor: pointer;
  background: #ffffff;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.conversation-card {
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid rgba(47, 99, 164, 0.14);
}

.conversation-card:hover {
  border-color: rgba(47, 99, 164, 0.32);
  box-shadow: 0 18px 34px rgba(15, 36, 51, 0.12);
  transform: translateY(-2px);
}

.conversation-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.conversation-card-main {
  display: grid;
  gap: 4px;
}

.conversation-token {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: #1d3557;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

.conversation-meta {
  font-size: 0.82rem;
  color: #4a5f7a;
}

.conversation-badges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(15, 36, 51, 0.08);
}

.btn.btn-mini {
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
}

.status-pill.status-pending {
  color: #7a4b00;
  background: linear-gradient(135deg, #ffd65c, #ffb81f);
  border-color: #f3a000;
}

.status-pill.status-resolved {
  color: #0b5a35;
  background: linear-gradient(135deg, #66e2a3, #21c979);
  border-color: #16a764;
}

.status-pill.status-follow-up {
  color: #7a2341;
  background: linear-gradient(135deg, #ffd4c5, #f9b4a0);
  border-color: #f08b76;
}

.status-pill.is-active {
  color: #0f5132;
  background: rgba(32, 201, 151, 0.18);
  border-color: rgba(32, 201, 151, 0.45);
}

.conversation-preview {
  margin: 0;
  color: #1f2a44;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conversation-empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(47, 99, 164, 0.35);
  background: rgba(79, 143, 202, 0.08);
  color: #36557a;
  font-weight: 600;
  text-align: center;
}

.empty-state {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(47, 99, 164, 0.3);
  background: rgba(79, 143, 202, 0.08);
  color: #36557a;
  text-align: center;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.empty-state strong {
  font-size: 1rem;
}

.staff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(47, 99, 164, 0.14);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 36, 51, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.staff-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(15, 36, 51, 0.12);
  border-color: rgba(47, 99, 164, 0.3);
}

.staff-item-main {
  display: grid;
  gap: 4px;
}

.staff-item-main strong {
  font-size: 0.98rem;
}

.staff-item-main span {
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.65);
}

.staff-item-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.staff-item-status.is-active {
  color: #11615b;
  background: rgba(29, 122, 110, 0.15);
  border-color: rgba(29, 122, 110, 0.35);
}

.staff-item-status.is-inactive {
  color: #7a4b0f;
  background: rgba(246, 194, 122, 0.2);
  border-color: rgba(246, 194, 122, 0.55);
}

.table-wrap {
  overflow-x: auto;
}

.resolved-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.resolved-table th,
.resolved-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 36, 51, 0.08);
  font-size: 0.92rem;
  color: #1f2a44;
  vertical-align: top;
}

.resolved-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a5f7a;
  background: rgba(240, 246, 255, 0.8);
}

.resolved-row:hover {
  background: rgba(79, 143, 202, 0.08);
}

.resolved-preview {
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.resolved-empty td {
  text-align: center;
  color: #6b7b92;
  padding: 16px;
}

.conversation-item.active {
  border-color: var(--admin-accent);
  background: rgba(47, 99, 164, 0.08);
  box-shadow: 0 10px 20px rgba(10, 30, 44, 0.12);
  transform: translateY(-1px);
}

.conversation-detail {
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

.conversation-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 88%;
  font-size: 0.95rem;
  line-height: 1.4;
}

.conversation-bubble.user {
  background: rgba(47, 99, 164, 0.1);
  justify-self: end;
}

.conversation-bubble.bot,
.conversation-bubble.admin {
  background: rgba(29, 122, 110, 0.12);
  justify-self: start;
}

.conversation-actions,
.conversation-reply {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.resolve-note {
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.65);
}

.resolve-note.ready {
  color: #1d7a6e;
  font-weight: 600;
}

.conversation-reply textarea {
  flex: 1;
  min-height: 70px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 14px;
  border: 1px solid rgba(47, 99, 164, 0.18);
  background: #f7f9ff;
  padding: 12px 14px;
  color: #1f2a44;
  box-shadow: inset 0 1px 2px rgba(15, 36, 51, 0.08);
}

#conversation-reply::placeholder {
  color: rgba(15, 36, 51, 0.45);
}

#conversation-list {
  max-height: 520px;
  display: grid;
  gap: 12px;
  padding-right: 4px;
}

.panel-note {
  font-size: 0.85rem;
  color: #6b7b92;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(47, 99, 164, 0.08);
  border: 1px solid rgba(47, 99, 164, 0.12);
}

#reviews .panel-header {
  align-items: flex-start;
}

#reviews .panel-header h3 {
  margin-bottom: 4px;
}

#reviews .panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.reviews-dashboard {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.review-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.review-metric-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(47, 99, 164, 0.12);
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 6px;
}

.review-metric-card span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #62748a;
}

.review-metric-card strong {
  font-size: 1.4rem;
  color: #1f2a44;
}

.review-metric-card small {
  font-size: 0.75rem;
  color: rgba(15, 36, 51, 0.6);
}

.review-chart-card {
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 12px;
}

.review-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-chart-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.review-chart-meta {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.6);
}

.review-chart {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 140px;
}

.review-bar {
  display: grid;
  gap: 6px;
  justify-items: center;
  font-size: 0.75rem;
  color: rgba(15, 36, 51, 0.6);
}

.review-bar-track {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  background: rgba(47, 99, 164, 0.08);
  display: flex;
  align-items: flex-end;
  padding: 6px;
}

.review-bar-fill {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #4f8fca, #2f63a4);
}

.review-recent {
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 12px;
}

.review-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-recent-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.review-recent-header span {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
}

.review-recent-list {
  display: grid;
  gap: 10px;
}

.review-recent-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
}

.review-recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 99, 164, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #2f63a4;
}

.review-recent-main {
  display: grid;
  gap: 2px;
}

.review-recent-main strong {
  font-size: 0.85rem;
}

.review-recent-main span {
  font-size: 0.75rem;
  color: rgba(15, 36, 51, 0.65);
}

.review-recent-rating {
  font-weight: 700;
  font-size: 0.85rem;
  color: #2f63a4;
}

#reviews .review-actions select,
#reviews .review-actions .btn {
  height: 38px;
}

#reviews .review-actions select {
  min-width: 140px;
  border-radius: 999px;
  padding: 6px 34px 6px 12px;
  background: #ffffff;
  border: 1px solid rgba(47, 99, 164, 0.2);
  box-shadow: 0 8px 18px rgba(15, 36, 51, 0.08);
  color: #1d3557;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2f63a4 50%),
    linear-gradient(135deg, #2f63a4 50%, transparent 50%),
    linear-gradient(to right, rgba(47, 99, 164, 0.15), rgba(47, 99, 164, 0.15));
  background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px, calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 16px;
  background-repeat: no-repeat;
}

#reviews .review-actions select:focus {
  outline: none;
  border-color: rgba(47, 99, 164, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 99, 164, 0.18);
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.review-summary-card {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fbff;
  border: 1px solid rgba(47, 99, 164, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-summary-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(47, 99, 164, 0.6), rgba(79, 143, 202, 0.2));
}

.review-summary-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b82;
}

.review-summary-card strong {
  font-size: 1.4rem;
  color: #1d3557;
}

.review-summary-card.positive {
  background: rgba(29, 122, 110, 0.12);
  border-color: rgba(29, 122, 110, 0.28);
}

.review-summary-card.negative {
  background: rgba(217, 72, 59, 0.12);
  border-color: rgba(217, 72, 59, 0.28);
}

.review-summary-card.positive::after {
  background: linear-gradient(90deg, rgba(29, 122, 110, 0.7), rgba(29, 122, 110, 0.2));
}

.review-summary-card.negative::after {
  background: linear-gradient(90deg, rgba(217, 72, 59, 0.7), rgba(217, 72, 59, 0.2));
}

.review-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.14);
  background: #ffffff;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(15, 36, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(47, 99, 164, 0.4);
}

.review-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(15, 36, 51, 0.12);
  border-color: rgba(47, 99, 164, 0.3);
}

.review-card.sentiment-positive::before {
  background: rgba(29, 122, 110, 0.6);
}

.review-card.sentiment-negative::before {
  background: rgba(217, 72, 59, 0.6);
}

.review-card.sentiment-neutral::before {
  background: rgba(246, 194, 122, 0.8);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 99, 164, 0.18), rgba(79, 143, 202, 0.1));
  color: #1d3557;
  font-weight: 700;
  border: 1px solid rgba(47, 99, 164, 0.18);
}

.review-rating .rating-value {
  font-size: 1.05rem;
}

.review-rating .rating-max {
  font-size: 0.78rem;
  color: #5a6b82;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #5a6b82;
}

.review-sentiment {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-sentiment.sentiment-positive {
  color: #11615b;
  background: rgba(29, 122, 110, 0.15);
}

.review-sentiment.sentiment-negative {
  color: #9b2c23;
  background: rgba(217, 72, 59, 0.15);
}

.review-sentiment.sentiment-neutral {
  color: #6b4b1b;
  background: rgba(246, 194, 122, 0.2);
}

.review-comment {
  margin: 0;
  font-size: 0.98rem;
  color: #1f2a44;
  line-height: 1.5;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #5a6b82;
}

.review-user {
  font-weight: 600;
}


.review-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.review-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 120px;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(15, 36, 51, 0.08);
  align-items: start;
  position: relative;
}

.review-row.sentiment-positive,
.review-row.sentiment-negative,
.review-row.sentiment-neutral {
  border-left: 1px solid rgba(47, 99, 164, 0.12);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9f0ff;
  color: #2f63a4;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.review-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-name {
  font-weight: 700;
  color: #1f2a44;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-date {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.55);
  white-space: nowrap;
}

.review-text {
  font-size: 0.9rem;
  color: #1f2a44;
  line-height: 1.5;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
  width: fit-content;
}

.review-tag.sentiment-positive {
  color: #11615b;
  background: rgba(29, 122, 110, 0.15);
}

.review-tag.sentiment-negative {
  color: #9b2c23;
  background: rgba(217, 72, 59, 0.15);
}

.review-tag.sentiment-neutral {
  color: #6b4b1b;
  background: rgba(246, 194, 122, 0.2);
}

.review-score {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.review-stars {
  display: inline-flex;
  gap: 4px;
  font-size: 0.85rem;
  color: #d2d9e6;
}

.review-star.filled {
  color: #f4b740;
}

.review-score-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 700;
  color: #1f2a44;
}

.review-score-max {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.55);
}

@media (max-width: 1200px) {
  .reviews-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .review-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .review-metrics {
    grid-template-columns: 1fr;
  }
  .review-row {
    grid-template-columns: 44px 1fr;
  }
  .review-score {
    justify-items: start;
  }
  .review-score {
    grid-column: 1 / -1;
  }
}

.review-empty {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(47, 99, 164, 0.3);
  background: rgba(79, 143, 202, 0.08);
  color: #36557a;
  text-align: center;
  font-weight: 600;
}

.btn-mini {
  padding: 6px 10px;
  font-size: 0.78rem;
}

#conversations .panel-header .btn {
  padding: 6px 12px;
}

#conversations .panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#conversations .panel {
  height: calc(100vh - 135px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conversations-layout {
  display: grid;
  grid-template-columns: 260px minmax(360px, 1fr) 240px;
  gap: 14px;
  margin-top: 12px;
  flex: 1;
  min-height: 0;
}

.conversations-sidebar {
  background: #ffffff;
  border: 1px solid rgba(47, 99, 164, 0.12);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 22px rgba(15, 36, 51, 0.08);
  min-height: 0;
  min-width: 0;
}

.conversation-search {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: center;
}

.conversation-search input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  background: #f9fbff;
  font-size: 0.9rem;
  width: 100%;
  min-width: 0;
}

.conversation-search .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.conversation-filters {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 10px;
  border-radius: 14px;
  background: #f7f9ff;
  border: 1px solid rgba(47, 99, 164, 0.12);
}

.conversation-filters select,
.conversation-filters input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
  min-width: 0;
}

.conversation-filters select {
  min-width: 0;
  border-radius: 999px;
  padding: 10px 36px 10px 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2f63a4 50%),
    linear-gradient(135deg, #2f63a4 50%, transparent 50%),
    linear-gradient(to right, rgba(47, 99, 164, 0.15), rgba(47, 99, 164, 0.15));
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px, calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 16px;
  background-repeat: no-repeat;
  background-color: #f7f9ff;
  box-shadow: inset 0 1px 2px rgba(15, 36, 51, 0.08);
}

.conversation-filters select:focus {
  outline: none;
  border-color: rgba(47, 99, 164, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 99, 164, 0.18);
}

.conversation-filters .date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

#conv-refresh {
  border-radius: 999px;
  padding: 10px 14px;
  background: #e9f0ff;
  border: 1px solid rgba(47, 99, 164, 0.18);
  font-weight: 700;
  width: 100%;
}

.conversation-thread-list {
  display: grid;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.thread-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #f6f8fc;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.thread-top span {
  font-size: 0.75rem;
  color: rgba(15, 36, 51, 0.55);
}

.thread-item.active {
  background: #e9f1ff;
  border-color: rgba(47, 99, 164, 0.3);
}

.thread-item:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 99, 164, 0.2);
}

.thread-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(47, 99, 164, 0.12);
  color: #2f63a4;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.thread-main {
  display: grid;
  gap: 4px;
}

.thread-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.6);
}

.thread-top strong {
  font-size: 0.9rem;
  color: #1f2a44;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-preview {
  font-size: 0.82rem;
  color: rgba(15, 36, 51, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.thread-active {
  font-size: 0.72rem;
  color: #1d7a6e;
}

.conversations-thread {
  border-radius: 18px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #ffffff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  box-shadow: 0 12px 22px rgba(15, 36, 51, 0.08);
}

.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 36, 51, 0.08);
}

.thread-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thread-title .thread-avatar {
  width: 46px;
  height: 46px;
}

.thread-title strong {
  display: block;
  font-size: 1rem;
}

.thread-title span {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.6);
}

.thread-messages {
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
  border: 1px solid rgba(47, 99, 164, 0.12);
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.conversations-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

.aside-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  padding: 12px;
  box-shadow: 0 12px 22px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 10px;
}

.aside-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #607086;
  font-weight: 700;
}

.aside-list {
  display: grid;
  gap: 8px;
}

.aside-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #f6f8fc;
  border: 1px solid rgba(47, 99, 164, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.aside-item:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 99, 164, 0.35);
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
}

.aside-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f0ff;
  color: #2f63a4;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.aside-text strong {
  display: block;
  font-size: 0.85rem;
  color: #1f2a44;
}

.aside-text span {
  font-size: 0.72rem;
  color: rgba(15, 36, 51, 0.6);
}

.aside-suggestion {
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid rgba(47, 99, 164, 0.16);
  font-size: 0.78rem;
  color: #2f63a4;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

.aside-suggestion:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.aside-suggestion-btn {
  border: none;
  background: transparent;
  padding: 0;
}

.aside-suggestion-btn.aside-suggestion {
  width: 100%;
}

.thread-placeholder {
  text-align: center;
  padding: 24px;
  color: rgba(15, 36, 51, 0.6);
}

@media (max-width: 1200px) {
  .conversations-layout {
    grid-template-columns: 1fr;
  }
  .conversations-thread {
    min-height: 360px;
    height: 100%;
  }
  #conversations .panel {
    height: auto;
  }
}

@media (max-width: 600px) {
  .conversation-filters .date-range {
    grid-template-columns: 1fr;
  }
  .conversation-search {
    grid-template-columns: 1fr 36px;
  }
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resolved-modal-card {
  width: min(980px, 92vw);
  max-height: 86vh;
}

.resolved-scroll {
  max-height: 60vh;
  overflow: auto;
}

#conversation-detail {
  max-height: 420px;
  overflow-y: auto;
}

#conversations .panel h3 {
  margin-bottom: 10px;
}

#conversations .conversation-actions select,
#conversations .conversation-actions input {
  min-width: 180px;
}

#conversations .conversation-actions select {
  border-radius: 999px;
  padding: 10px 36px 10px 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2f63a4 50%),
    linear-gradient(135deg, #2f63a4 50%, transparent 50%),
    linear-gradient(to right, rgba(47, 99, 164, 0.15), rgba(47, 99, 164, 0.15));
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px, calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 16px;
  background-repeat: no-repeat;
  background-color: #f7f9ff;
  box-shadow: inset 0 1px 2px rgba(15, 36, 51, 0.08);
}

#conversations .conversation-actions select:focus {
  outline: none;
  border-color: rgba(47, 99, 164, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 99, 164, 0.18);
}

#conversations .conversation-actions button,
#conversations .conversation-reply button {
  white-space: nowrap;
}

#conversations .conversation-reply {
  align-items: flex-end;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.swal2-container {
  z-index: 3000;
}

.about-image-modal {
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(10, 30, 44, 0.25);
  background: #ffffff;
}

.about-image-modal__title {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #1f2a44;
}

.about-image-modal__image {
  border-radius: 14px;
  border: 1px solid rgba(47, 99, 164, 0.15);
  box-shadow: 0 14px 28px rgba(15, 36, 51, 0.18);
  max-width: 100%;
  max-height: 60vh;
}

.about-image-modal__button {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #2f63a4, #4f8fca);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 99, 164, 0.25);
}

.about-image-modal__close {
  color: rgba(15, 36, 51, 0.6);
  font-size: 1.4rem;
}

.about-image-modal__close:focus {
  box-shadow: none;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  backdrop-filter: blur(2px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(700px, 92%);
  max-height: 85vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(10, 30, 44, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-modal-card {
  max-height: 90vh;
  overflow: auto;
  padding-bottom: 20px;
}

.staff-modal-card .form-actions {
  margin-top: 6px;
}

#staff-form input[type="file"] {
  border: 1px dashed rgba(47, 99, 164, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(47, 99, 164, 0.05);
}

#staff-form input[type="file"]::file-selector-button {
  border: none;
  background: linear-gradient(135deg, #2f63a4, #4f8fca);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-right: 10px;
  cursor: pointer;
}

#staff-form input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}

#staff-form input[type="file"]::file-selector-button:active {
  transform: translateY(1px);
}

.admin-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 36, 51, 0.08);
  font-size: 1.2rem;
  cursor: pointer;
}

.admin-modal-card #conversation-detail {
  max-height: 42vh;
}

@media (max-width: 1200px) {
  #conversations .filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  #conversations .filters {
    grid-template-columns: 1fr 1fr;
  }

  #conversation-list {
    max-height: 360px;
  }
}

.profile-card {
  background: rgba(47, 99, 164, 0.08);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.admin-settings {
  background: linear-gradient(140deg, #f4f7ff 0%, #ffffff 45%, #f7faff 100%);
  border: 1px solid rgba(15, 36, 51, 0.08);
}

.admin-settings-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
}

.admin-settings-nav {
  border-radius: 20px;
  background: linear-gradient(160deg, #2f63a4, #1f3b66);
  border: none;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 16px 28px rgba(15, 36, 51, 0.16);
  position: sticky;
  top: 18px;
}

.admin-settings-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-settings-link {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-settings-link.active {
  background: #ffffff;
  color: #2f63a4;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 18px rgba(15, 36, 51, 0.12);
}

.admin-settings-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.admin-settings-content {
  display: grid;
  gap: 16px;
}

.admin-settings-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 36, 51, 0.08);
  padding: 18px;
  display: none;
  gap: 12px;
  box-shadow: 0 16px 26px rgba(15, 36, 51, 0.08);
}

.admin-settings-card.active {
  display: grid;
}

.admin-settings-card-header {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1f2a44;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(15, 36, 51, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-profile-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f6f8fd;
  border: 1px solid rgba(15, 36, 51, 0.08);
}

.admin-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(47, 99, 164, 0.18);
  color: #2f63a4;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.admin-profile-main {
  display: grid;
  gap: 4px;
}

.admin-profile-main strong {
  font-size: 1rem;
}

.admin-profile-main span {
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.6);
}

.admin-profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.admin-profile-meta div {
  background: #f6f8fd;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 4px;
}

.admin-profile-meta span {
  font-size: 0.72rem;
  color: rgba(15, 36, 51, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-profile-meta strong {
  font-size: 0.9rem;
  color: #1f2a44;
}

.admin-settings-form input {
  background: #f7f9ff;
}

@media (max-width: 900px) {
  .admin-settings-layout {
    grid-template-columns: 1fr;
  }
  .admin-settings-link {
    text-align: center;
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-header .panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-toolbar {
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.08);
  padding: 6px;
  border-radius: 999px;
  align-items: center;
  box-shadow: 0 8px 16px rgba(15, 36, 51, 0.08);
}

.staff-toolbar input,
.staff-toolbar select {
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  padding: 6px 12px;
  font-family: inherit;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 36, 51, 0.06);
}

.staff-toolbar select {
  min-width: 140px;
}

.staff-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

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

.project-card-admin {
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px rgba(15, 36, 51, 0.12);
  border-color: rgba(47, 99, 164, 0.3);
}

.project-card-admin.selected {
  border-color: rgba(47, 99, 164, 0.55);
  box-shadow: 0 18px 28px rgba(47, 99, 164, 0.2);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.project-pill.is-active {
  color: #11615b;
  background: rgba(29, 122, 110, 0.15);
  border-color: rgba(29, 122, 110, 0.35);
}

.project-pill.is-inactive {
  color: #7a4b0f;
  background: rgba(246, 194, 122, 0.2);
  border-color: rgba(246, 194, 122, 0.55);
}

.project-edit {
  border: none;
  background: rgba(15, 36, 51, 0.08);
  color: #1f2a44;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(47, 99, 164, 0.08);
  border: 1px solid rgba(47, 99, 164, 0.12);
  max-width: 180px;
  margin: 0 auto;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
}

.project-card-caption {
  font-size: 0.82rem;
  color: #1f2a44;
  line-height: 1.35;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
}

.advisory-card-body {
  display: grid;
  gap: 4px;
}

.advisory-card-body strong {
  font-size: 0.9rem;
  color: #1f2a44;
}

.advisory-card-body span {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.advisory-editor-preview img {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(47, 99, 164, 0.2);
}

.advisory-editor-preview {
  justify-items: stretch;
  text-align: center;
}

.advisory-editor-preview span {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.65);
}

.advisory-hidden {
  display: none;
}

#advisory-modal.mode-add .advisory-edit-only {
  display: none;
}

#announcement-modal.mode-add .announcement-edit-only {
  display: none;
}

.announcement-card-body {
  display: grid;
  gap: 6px;
}

.announcement-card-body strong {
  font-size: 0.92rem;
  color: #1f2a44;
}

.announcement-card-body p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.65);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body,
.schedule-card-body {
  display: grid;
  gap: 4px;
}

.news-card-body strong,
.schedule-card-body strong {
  font-size: 0.9rem;
  color: #1f2a44;
}

.news-card-body span,
.schedule-card-body span {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-editor-preview img {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(47, 99, 164, 0.2);
}

.news-editor-preview {
  justify-items: stretch;
  text-align: center;
}

.news-editor-preview span {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.65);
}

.project-editor-preview {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(47, 99, 164, 0.3);
  background: rgba(79, 143, 202, 0.06);
}

.project-editor-preview img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(47, 99, 164, 0.2);
}

.project-editor-preview span {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.65);
}

.project-modal-card {
  max-height: 90vh;
  overflow: auto;
}

.staff-card-admin {
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 14px 26px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.staff-card-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(15, 36, 51, 0.12);
  border-color: rgba(47, 99, 164, 0.18);
}

.staff-card-header,
.staff-card-top {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
}

.staff-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.staff-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2a44;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid transparent;
  width: fit-content;
}

.staff-pill.is-active {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.16);
  border-color: rgba(25, 135, 84, 0.3);
}

.staff-pill.is-inactive {
  color: #8a5a00;
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.3);
}

.staff-card-menu {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: #f1f4fb;
  color: #1f2a44;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(47, 99, 164, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(47, 99, 164, 0.22);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-role {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(15, 36, 51, 0.7);
}

.staff-card-id {
  font-size: 0.72rem;
  color: rgba(15, 36, 51, 0.55);
}

.staff-card-body {
  display: grid;
  gap: 10px;
}

.staff-meta {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f8fc;
}

.staff-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 36, 51, 0.5);
}

.staff-meta-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2a44;
  text-align: right;
  word-break: break-word;
}

.staff-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-card-actions .btn {
  border: none;
  background: #eef3ff;
  color: #2f63a4;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.staff-card-actions .btn:hover {
  background: #e2ebff;
}

.report-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.reports-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.reports-actions select {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  padding: 6px 10px;
  font-family: inherit;
  background: #ffffff;
}

.reports-range {
  font-size: 0.8rem;
  color: rgba(15, 36, 51, 0.6);
  background: #f1f5ff;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(47, 99, 164, 0.12);
}

.reports-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
}

.report-tab {
  border: 1px solid rgba(47, 99, 164, 0.16);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #1f2a44;
  cursor: pointer;
}

.report-tab.active {
  background: linear-gradient(135deg, #2f63a4, #4f8fca);
  color: #ffffff;
  border-color: transparent;
}

.reports-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reports-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f8fd;
  border: 1px solid rgba(47, 99, 164, 0.12);
}

.report-filter {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.report-filter label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 36, 51, 0.6);
  font-weight: 700;
}

.report-filter input,
.report-filter select {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  padding: 6px 10px;
  font-family: inherit;
  background: #ffffff;
}

.report-filter-actions {
  align-self: stretch;
  display: flex;
}

.report-filter-actions .btn {
  height: 34px;
  align-self: end;
}

.reports-view {
  display: none;
}

.reports-view.active {
  display: grid;
  gap: 16px;
}

.report-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #f3f6ff;
  color: #2f63a4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  background: #2f63a4;
  color: #ffffff;
  border-color: transparent;
}

.reports-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reports-label {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

#report-group {
  border-radius: 999px;
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(47, 99, 164, 0.15);
  background: #f7f9ff;
  font-family: inherit;
  font-size: 0.84rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2f63a4 50%),
    linear-gradient(135deg, #2f63a4 50%, transparent 50%),
    linear-gradient(to right, rgba(47, 99, 164, 0.15), rgba(47, 99, 164, 0.15));
  background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px, calc(100% - 34px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 16px;
  background-repeat: no-repeat;
}

.reports-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.report-kpi {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(15, 36, 51, 0.08);
}

.report-kpi span {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.report-kpi strong {
  font-size: 1.4rem;
  color: #1f2a44;
}

.report-kpi small {
  color: rgba(15, 36, 51, 0.6);
  font-size: 0.78rem;
}

.reports-body {
  display: grid;
  grid-template-columns: minmax(320px, 2.2fr) minmax(240px, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.reports-table-wrap {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.report-summary-card {
  border-radius: 14px;
  padding: 10px 12px;
  background: #f6f8fd;
  border: 1px solid rgba(47, 99, 164, 0.12);
  display: grid;
  gap: 4px;
}

.report-summary-card span {
  font-size: 0.75rem;
  color: rgba(15, 36, 51, 0.6);
}

.report-summary-card strong {
  font-size: 1rem;
  color: #1f2a44;
}

.reports-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reports-table-header h4 {
  margin: 0;
}

.reports-table-actions {
  display: flex;
  gap: 6px;
}

.report-table .data-row {
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.7fr);
  min-width: 0;
  width: 100%;
}

#report-table[data-mode="sessions"] .data-row {
  grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(90px, 0.6fr)
    minmax(90px, 0.6fr) minmax(80px, 0.6fr) minmax(80px, 0.6fr) minmax(120px, 1fr) minmax(90px, 0.7fr);
  min-width: 980px;
}

#report-table[data-mode="users"] .data-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(90px, 0.6fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(90px, 0.6fr);
  min-width: 820px;
}

#report-table[data-mode="feedback"] .data-row {
  grid-template-columns: minmax(90px, 0.6fr) minmax(160px, 1fr) minmax(280px, 2fr) minmax(90px, 0.6fr) minmax(140px, 0.9fr);
  min-width: 860px;
}

#report-table[data-mode="resolution"] .data-row {
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  min-width: 720px;
}

.reports-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.report-side-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  padding: 12px;
  box-shadow: 0 10px 20px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 8px;
}

.report-side-card h4 {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .reports-body {
    grid-template-columns: 1fr;
  }
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.data-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.data-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: #ffffff;
  min-width: 680px;
}

.data-row.header {
  background: #f2f5fb;
  border-color: rgba(47, 99, 164, 0.16);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #5d6c82;
}

.data-cell {
  display: grid;
  gap: 4px;
}

.data-cell strong {
  font-size: 0.92rem;
  color: #1f2a44;
}

.data-cell span {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
}

.faq-table .data-row {
  grid-template-columns: minmax(220px, 2.1fr) minmax(140px, 1fr) 80px 100px 64px 120px;
}

.faq-actions {
  display: inline-flex;
  gap: 6px;
}

.training-table .data-row {
  grid-template-columns: 140px 160px 160px minmax(220px, 1.6fr);
}

.activity-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-filters select {
  border-radius: 999px;
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(47, 99, 164, 0.15);
  background: #f7f9ff;
  font-family: inherit;
  font-size: 0.84rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2f63a4 50%),
    linear-gradient(135deg, #2f63a4 50%, transparent 50%),
    linear-gradient(to right, rgba(47, 99, 164, 0.15), rgba(47, 99, 164, 0.15));
  background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px, calc(100% - 34px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 16px;
  background-repeat: no-repeat;
}

.activity-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.activity-search input {
  min-width: 220px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 99, 164, 0.15);
  background: #f7f9ff;
  font-family: inherit;
  font-size: 0.84rem;
}

.activity-table .data-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(120px, 1.1fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr)
    minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.6fr);
}

.activity-table {
  width: 100%;
}

.activity-table .data-row .data-cell span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-table .data-row .data-cell:last-child span {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(47, 99, 164, 0.1);
  color: #2f63a4;
  border: 1px solid rgba(47, 99, 164, 0.2);
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #e2e8f5;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(15, 36, 51, 0.18);
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: #35d28b;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:disabled + .slider {
  opacity: 0.6;
}

.training-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.status-pill.status-active {
  color: #0b5a35;
  background: linear-gradient(135deg, #66e2a3, #21c979);
  border-color: #16a764;
}

.status-pill.status-inactive {
  color: #7a4b00;
  background: linear-gradient(135deg, #ffd65c, #ffb81f);
  border-color: #f3a000;
}

.status-pill.status-info {
  color: #0f3d73;
  background: linear-gradient(135deg, #7bb6ff, #4a8dff);
  border-color: #2f6fe6;
}

.faq-card {
  border: 1px solid rgba(47, 99, 164, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px rgba(15, 36, 51, 0.12);
  border-color: rgba(47, 99, 164, 0.28);
}

.faq-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 99, 164, 0.12);
  color: #2f63a4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-edit {
  border: none;
  background: rgba(15, 36, 51, 0.08);
  color: #1f2a44;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.faq-card h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.faq-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.7);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faq-modal-card {
  max-height: 90vh;
  overflow: auto;
}

.faq-modal-card .panel-header {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(47, 99, 164, 0.12);
}

#faq-form {
  gap: 12px;
  margin-top: 6px;
}

#faq-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 36, 51, 0.65);
  font-weight: 700;
}

#faq-form input,
#faq-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(47, 99, 164, 0.18);
  background: #f7f9ff;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: #1f2a44;
  box-shadow: inset 0 1px 2px rgba(15, 36, 51, 0.08);
}

#faq-form textarea {
  min-height: 120px;
  line-height: 1.5;
}

#faq-form input:focus,
#faq-form textarea:focus {
  outline: none;
  border-color: rgba(47, 99, 164, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 99, 164, 0.15);
}

#faq-form .form-actions {
  margin-top: 4px;
  gap: 10px;
}

#faq-form .toggle {
  background: #f1f5ff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 99, 164, 0.16);
  font-weight: 600;
}

#faq-form .form-status {
  font-size: 0.82rem;
}

.image-preview-card {
  width: min(680px, 90vw);
  max-height: 80vh;
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
  place-items: center;
  background: #ffffff;
}

.image-preview-card img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  box-shadow: 0 18px 30px rgba(15, 36, 51, 0.18);
}

.image-preview-caption {
  margin: 0;
  font-size: 0.9rem;
  color: #1f2a44;
  text-align: center;
  max-width: 560px;
  line-height: 1.4;
}

.image-preview-caption.is-empty {
  display: none;
}

img[data-preview="true"] {
  cursor: zoom-in;
}

.staff-view-card {
  width: min(820px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
}

.staff-view-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.staff-view-photo {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: rgba(47, 99, 164, 0.08);
  border: 1px solid rgba(47, 99, 164, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.staff-view-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-view-info h4 {
  margin: 0;
  font-size: 1.2rem;
}

.staff-view-info p {
  margin: 4px 0 12px;
  color: rgba(15, 36, 51, 0.65);
}

.staff-view-meta {
  display: grid;
  gap: 8px;
}

.staff-view-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  background: rgba(47, 99, 164, 0.05);
  font-size: 0.9rem;
}

.staff-view-meta span {
  color: rgba(15, 36, 51, 0.6);
}

.staff-view-meta strong {
  color: #1f2a44;
}

@media (max-width: 720px) {
  .staff-view-grid {
    grid-template-columns: 1fr;
  }
  .staff-view-photo {
    width: 100%;
    height: 240px;
  }
}

@media (max-width: 860px) {
  .about-form-layout {
    grid-template-columns: 1fr;
  }

  .about-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-preview-frame {
    width: 100%;
    height: 180px;
  }

  .about-preview-btn {
    justify-self: center;
  }

  .about-actions {
    align-items: stretch;
  }

  .about-actions .btn.primary {
    width: 100%;
  }

  .about-actions .form-status {
    margin-left: 0;
  }
}

.training-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.training-log-card {
  border-radius: 14px;
  border: 1px solid rgba(47, 99, 164, 0.12);
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 36, 51, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.75);
}

.training-log-card strong {
  display: block;
  color: #1f2a44;
  font-size: 0.9rem;
}

.training-log-meta {
  font-size: 0.78rem;
  color: rgba(15, 36, 51, 0.6);
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.admin-login-page {
  background: linear-gradient(180deg, #0b5fbe 0%, #0a56ad 100%);
  font-family: "Manrope", sans-serif;
  display: grid;
  place-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.admin-login-page::before {
  content: "";
  position: absolute;
  width: 960px;
  height: 960px;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  background: url("/img/logo1.png") center / cover no-repeat;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.login-card {
  width: min(360px, 92%);
  background: #ffffff;
  border-radius: 6px;
  padding: 26px 24px 24px;
  border: 1px solid rgba(15, 36, 51, 0.08);
  box-shadow: 0 20px 40px rgba(10, 30, 44, 0.25);
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-direction: column;
  text-align: center;
}

.login-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  border: 1px solid rgba(15, 36, 51, 0.1);
}

.login-brand h1 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1c4f8d;
}

.login-brand p {
  margin: 0;
  color: rgba(15, 36, 51, 0.55);
  font-size: 0.78rem;
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.alert.error {
  background: rgba(217, 72, 59, 0.12);
  color: var(--admin-danger);
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 36, 51, 0.5);
  font-weight: 600;
}

.login-form input {
  padding: 10px 6px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(15, 36, 51, 0.2);
  background: transparent;
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #1b63d1;
}

.admin-login-page .btn.primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 4px;
  background: #1b63d1;
  box-shadow: none;
  border: 1px solid #1b63d1;
}

body.admin-body.sidebar-collapsed {
  grid-template-columns: 88px 1fr;
}

body.admin-body.sidebar-collapsed .admin-sidebar {
  padding: 20px 12px;
  align-items: center;
  gap: 18px;
}

body.admin-body.sidebar-collapsed .admin-sidebar-top {
  flex-direction: column;
}

body.admin-body.sidebar-collapsed .admin-brand {
  flex-direction: column;
}

body.admin-body.sidebar-collapsed .admin-brand div {
  display: none;
}

body.admin-body.sidebar-collapsed .admin-nav a {
  text-align: center;
  padding: 10px 6px;
}

body.admin-body.sidebar-collapsed .admin-nav a span {
  display: none;
}

body.admin-body.sidebar-collapsed .admin-nav a::before {
  content: attr(data-short);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

body.admin-body.sidebar-collapsed .admin-footer span {
  display: none;
}

body.admin-body.sidebar-collapsed .admin-footer {
  align-items: center;
  text-align: center;
}

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

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

  .mini-metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-shell {
    padding: 16px;
  }

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

  .mini-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .review-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-donut {
    width: 110px;
    height: 110px;
  }

  #recent-activity.pie-chart {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #recent-activity .pie-legend {
    width: 100%;
  }
}

@media (max-width: 960px) {
  body.admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  body.admin-body.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

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

  .conversation-actions,
  .conversation-reply {
    flex-direction: column;
    align-items: stretch;
  }
}
