:root {
  --app-bg: #f6f1e8;
  --app-bg-accent: #dff3ec;
  --app-surface: rgba(255, 253, 249, 0.82);
  --app-border: rgba(224, 214, 199, 0.72);
  --app-text: #25313d;
  --app-subtle: #6d746f;
  --app-primary: #2f7a6a;
  --app-primary-dark: #245e51;
  --app-highlight: #f29f67;
  --app-shadow: 0 14px 32px rgba(92, 82, 68, 0.12);
}

:root[data-theme="dark"] {
  --app-bg: #17211d;
  --app-bg-accent: #23332b;
  --app-surface: rgba(31, 43, 38, 0.86);
  --app-border: rgba(109, 142, 128, 0.34);
  --app-text: #eef5ef;
  --app-subtle: #b2c4ba;
  --app-primary: #7bc6a7;
  --app-primary-dark: #58a789;
  --app-highlight: #f1b07a;
  --app-shadow: 0 16px 34px rgba(5, 11, 8, 0.42);
}

:root[data-theme="dark"] body {
  color: var(--app-text);
}

:root[data-theme="dark"] p,
:root[data-theme="dark"] li,
:root[data-theme="dark"] label,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .card-subtitle,
:root[data-theme="dark"] .card-text,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .form-text,
:root[data-theme="dark"] strong {
  color: var(--app-text);
}

:root[data-theme="dark"] .text-secondary,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] small {
  color: var(--app-subtle);
}

:root[data-theme="dark"] .dropdown-menu {
  background-color: rgba(31, 43, 38, 0.96);
  border-color: rgba(109, 142, 128, 0.48);
}

:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:focus {
  background: rgba(123, 198, 167, 0.16);
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] textarea {
  color: #eef5ef;
  background: rgba(21, 31, 27, 0.94);
  border-color: rgba(118, 150, 136, 0.46);
}

:root[data-theme="dark"] .form-control::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #9db1a6;
}

:root[data-theme="dark"] .alert-info {
  color: #eaf6ee;
  background: rgba(66, 110, 90, 0.36);
  border-color: rgba(123, 198, 167, 0.34);
}

:root[data-theme="dark"] .auth-form-wrap,
:root[data-theme="dark"] .action-box,
:root[data-theme="dark"] .check-item,
:root[data-theme="dark"] .listing-meta-item,
:root[data-theme="dark"] .chat-user-item,
:root[data-theme="dark"] .hero-sidecard,
:root[data-theme="dark"] .balance-pill {
  background: rgba(22, 32, 28, 0.88);
  border-color: rgba(109, 142, 128, 0.38);
  color: var(--app-text);
}

:root[data-theme="dark"] .action-box summary,
:root[data-theme="dark"] .listing-meta-item strong,
:root[data-theme="dark"] .listing-meta-item a,
:root[data-theme="dark"] .check-item strong,
:root[data-theme="dark"] .panel-item a,
:root[data-theme="dark"] .chat-user-item strong,
:root[data-theme="dark"] .chat-user-item,
:root[data-theme="dark"] .hero-sidecard strong,
:root[data-theme="dark"] .balance-pill strong {
  color: var(--app-text);
}

:root[data-theme="dark"] .action-box input,
:root[data-theme="dark"] .action-box textarea,
:root[data-theme="dark"] .action-box select {
  background: rgba(16, 24, 21, 0.95);
  color: var(--app-text);
  border-color: rgba(109, 142, 128, 0.4);
}

:root[data-theme="dark"] .listing-badge {
  background: rgba(123, 198, 167, 0.18);
  color: #e9fff2;
  border-color: rgba(123, 198, 167, 0.28);
}

:root[data-theme="dark"] .btn-outline-secondary {
  color: #eef5ef;
  border-color: rgba(158, 188, 174, 0.34);
}

:root[data-theme="dark"] .btn-outline-secondary:hover {
  background: rgba(123, 198, 167, 0.18);
  color: #fff;
  border-color: rgba(158, 188, 174, 0.46);
}

:root[data-theme="dark"] .hero-chip {
  background: rgba(123, 198, 167, 0.22);
  color: #effaf2;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top right, #f8d8bf 0%, transparent 38%),
    radial-gradient(circle at bottom left, #d7eee4 0%, transparent 42%),
    var(--app-bg);
  color: var(--app-text);
  margin-bottom: 60px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
  max-width: 1080px;
}

.app-navbar {
  background: linear-gradient(135deg, #3d7268 0%, #6da08c 100%);
  border: 1px solid rgba(202, 232, 217, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: var(--app-shadow);
  position: relative;
  z-index: 1030;
  overflow: visible;
}

.navbar-brand {
  color: #f2f6ff !important;
  font-size: 1.4rem;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.app-logo {
  height: 52px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.1rem;
  color: #fff;
}

.brand-copy small {
  font-size: 0.78rem;
  color: rgba(237, 243, 255, 0.78);
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 1035;
}

.app-toolbar .btn {
  min-height: 38px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(223, 231, 255, 0.18);
  color: #eef4ff;
}

.user-pill i {
  font-size: 1.1rem;
}

.user-pill div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-pill small {
  color: rgba(237, 243, 255, 0.74);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #eef4ff;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.quick-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-link.active {
  background: rgba(255, 255, 255, 0.19);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 3rem 1.5rem;
  box-shadow: var(--app-shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 1.2rem;
  align-items: stretch;
}

.hero-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--app-primary-dark);
  background: #e7f3ff;
  font-weight: 600;
  font-size: 0.86rem;
}

.hero-sidecard {
  border-radius: 20px;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.92) 0%, rgba(225, 235, 255, 0.8) 100%);
  border: 1px solid rgba(165, 187, 235, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--app-subtle);
  margin-bottom: 0.55rem;
}

.summary-note {
  margin-top: 1rem;
  color: var(--app-subtle);
}

.card {
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.listing-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(77, 93, 79, 0.14);
}

.listing-badge {
  background: #e2f3ec;
  color: #205649;
  border: 1px solid #bddfce;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.btn-outline-primary {
  color: var(--app-primary);
  border-color: var(--app-primary);
  border-radius: 10px;
}

.btn-outline-primary:hover {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.menu-toggle-btn {
  border-radius: 10px;
  padding: 0.42rem 0.8rem;
}

.dropdown {
  position: relative;
}

#themeToggleBtn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #f3f7ff;
}

#themeToggleBtn:hover,
#themeToggleBtn:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.app-menu {
  border-radius: 12px;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1080;
  margin-top: 0.45rem;
}

.app-menu .dropdown-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 500;
}

.form-control,
.form-select,
textarea {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.form-control:focus,
.form-select:focus,
textarea:focus,
.btn:focus,
.btn:active:focus {
  box-shadow: 0 0 0 0.2rem rgba(47, 122, 106, 0.18);
  border-color: #86c3b1;
}

.footer {
  background: transparent;
  border-top-color: transparent !important;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.footer-card p {
  color: var(--app-subtle);
  max-width: 540px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.footer-card-compact {
  padding: 0.35rem 0.2rem;
  min-height: auto;
  align-items: center;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.text-danger,
.field-validation-error,
.validation-summary-errors,
.validation-summary-errors ul,
.validation-summary-errors li {
  color: #dc2626 !important;
  font-weight: 600;
}

input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.2) !important;
}

.feature-card,
.panel-card,
.auth-card,
.metric-card,
.dashboard-hero {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--app-shadow);
}

.feature-card {
  padding: 1.2rem;
  height: 100%;
  transition: transform 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card h5 {
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--app-subtle);
  margin-bottom: 0;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(47, 122, 106, 0.12), rgba(242, 159, 103, 0.18));
  color: var(--app-primary);
  font-size: 1.2rem;
}

.auth-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.6rem;
}

.auth-card-simple {
  max-width: 760px;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 1.5rem;
}

.auth-intro,
.auth-form-wrap {
  padding: 0.4rem;
}

.auth-form-wrap {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(187, 199, 228, 0.68);
  border-radius: 18px;
  padding: 1.2rem;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-points i {
  color: var(--app-highlight);
}

.login-logo {
  height: 110px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.page-header {
  padding: 1.15rem 1.2rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.action-box {
  border: 1px dashed #c7d2cc;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.58);
}

.action-box summary {
  cursor: pointer;
  font-weight: 600;
}

.dashboard-hero {
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1rem;
}

.metric-card p {
  margin-bottom: 0.3rem;
  color: var(--app-subtle);
}

.metric-card h3 {
  margin-bottom: 0;
}

.panel-card {
  padding: 1rem;
}

.panel-item {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(173, 183, 204, 0.35);
  display: flex;
  flex-direction: column;
}

.panel-item small {
  color: var(--app-subtle);
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(177, 191, 227, 0.8);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: #163178;
}

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

.check-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(188, 199, 224, 0.55);
}

.check-item i {
  font-size: 1.2rem;
  color: var(--app-highlight);
}

.check-item p {
  color: var(--app-subtle);
}

.results-summary {
  margin-bottom: 0.85rem;
  color: var(--app-subtle);
}

.listing-description {
  color: var(--app-text);
}

.listing-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.listing-meta-item {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(220, 212, 195, 0.82);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.listing-meta-item span,
.listing-meta-item small {
  color: var(--app-subtle);
}

.empty-state {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 22px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

.empty-state-icon {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 122, 106, 0.14), rgba(242, 159, 103, 0.2));
  color: var(--app-primary);
  font-size: 1.5rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.listing-card-compact {
  min-height: 100%;
}

.listing-card-compact .card-body {
  padding: 1rem;
}

.listing-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.listing-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-highlight);
  margin-bottom: 0.35rem;
}

.listing-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.listing-title-strong {
  color: #1e4f44;
  font-size: 1.18rem;
  text-wrap: balance;
}

.btn-text-danger {
  color: #b84b4b;
  background: transparent;
  border: 1px solid rgba(184, 75, 75, 0.18);
  border-radius: 10px;
}

.btn-text-danger:hover,
.btn-text-danger:focus {
  color: #fff;
  background: #c75c5c;
  border-color: #c75c5c;
}

.listing-description.compact {
  color: var(--app-subtle);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9rem;
}

.listing-meta-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.listing-meta-item.compact {
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
}

.listing-actions-stack {
  margin-top: auto;
}

.listing-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.listing-actions-row form {
  margin: 0;
}

.inline-action {
  position: relative;
}

.inline-action summary {
  list-style: none;
}

.inline-action summary::-webkit-details-marker {
  display: none;
}

.inline-action[open] summary {
  margin-bottom: 0.6rem;
}

.inline-action-panel {
  width: min(320px, calc(100vw - 4rem));
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(218, 208, 190, 0.9);
  box-shadow: 0 18px 32px rgba(82, 73, 58, 0.14);
}

.btn-soft {
  background: rgba(223, 243, 236, 0.85);
  border: 1px solid rgba(189, 223, 206, 1);
  color: #23584c;
  border-radius: 10px;
}

.btn-soft:hover,
.btn-soft:focus {
  background: rgba(209, 236, 226, 0.95);
  color: #1a4b40;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.chart-wrap canvas {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.report-chart-wrap {
  border-radius: 14px;
  border: 1px solid rgba(220, 212, 195, 0.75);
  background: rgba(255, 252, 247, 0.78);
}

.report-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  align-items: end;
}

.report-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-user-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(130px, 1fr) repeat(3, 70px) auto;
  gap: 0.65rem;
  align-items: center;
}

.admin-mini-stat {
  min-width: 52px;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: rgba(223, 243, 236, 0.68);
  color: #2e584c;
  font-weight: 700;
}

.admin-table td,
.admin-table th {
  color: var(--app-text);
}

.report-metric-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95) 0%, rgba(245, 251, 248, 0.86) 100%);
}

.report-filter-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.report-filter-card:hover {
  transform: translateY(-2px);
}

.report-filter-card.active {
  border-color: rgba(47, 122, 106, 0.5);
  box-shadow: 0 14px 28px rgba(47, 122, 106, 0.12);
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-primary), var(--app-highlight));
  margin-top: 0.45rem;
  box-shadow: 0 0 0 6px rgba(123, 198, 167, 0.12);
}

.timeline-content {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid rgba(220, 212, 195, 0.75);
}

.report-card-like .timeline-content {
  box-shadow: 0 14px 24px rgba(82, 73, 58, 0.08);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-highlight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.timeline-meta span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(223, 243, 236, 0.72);
  color: #2e584c;
  font-size: 0.82rem;
}

.timeline-amount {
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.9);
  color: var(--app-text);
}

.timeline-amount.positive {
  background: rgba(209, 240, 224, 0.86);
  color: #1e6a58;
}

.timeline-amount.neutral {
  background: rgba(244, 224, 210, 0.86);
  color: #8a5d3f;
}

.timeline-amount span {
  font-size: 0.86rem;
}

.offer-timeline-mini,
.report-card-grid {
  display: grid;
  gap: 0.75rem;
}

.offer-timeline-mini {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.offer-timeline-mini span {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(223, 243, 236, 0.62);
  color: #2b5d50;
  font-size: 0.84rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.status-pill.success {
  background: rgba(209, 240, 224, 0.86);
  color: #1f6a58;
}

.report-history-panel {
  width: min(420px, calc(100vw - 4rem));
  display: grid;
  gap: 0.7rem;
}

.mini-report-card,
.report-mini-card {
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(220, 212, 195, 0.75);
}

.report-card-grid {
  grid-template-columns: 1fr;
}

.profile-editor {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.2rem 0.4rem 0.2rem;
}

.profile-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-editor-form .form-control,
.profile-editor-form .form-select,
.profile-editor-form textarea {
  background: rgba(255, 255, 255, 0.68);
}

.profile-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.profile-column {
  display: grid;
  gap: 1rem;
}

.profile-identity {
  display: grid;
  gap: 0.85rem;
  padding: 0.35rem 0;
}

.profile-identity-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(208, 200, 184, 0.7);
}

.profile-identity-line strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-subtle);
}

.profile-identity-line span,
.profile-identity-line a {
  color: var(--app-text);
  text-decoration: none;
}

.profile-copy-block h5 {
  margin-bottom: 0.45rem;
}

.profile-copy-block p {
  margin-bottom: 0;
  color: var(--app-subtle);
  line-height: 1.7;
}

.profile-lite-card {
  background: rgba(255, 253, 249, 0.7);
  box-shadow: none;
}

.profile-flow-item {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(208, 200, 184, 0.55);
}

.profile-flow-item:first-of-type {
  border-top: 0;
  padding-top: 0.2rem;
}

:root[data-theme="dark"] .inline-action-panel,
:root[data-theme="dark"] .timeline-content {
  background: rgba(20, 29, 25, 0.96);
  border-color: rgba(106, 136, 123, 0.4);
}

:root[data-theme="dark"] .listing-title-strong {
  color: #ecfff5;
}

:root[data-theme="dark"] .timeline-meta span {
  background: rgba(123, 198, 167, 0.16);
  color: #eefaf1;
}

:root[data-theme="dark"] .report-metric-card,
:root[data-theme="dark"] .mini-report-card,
:root[data-theme="dark"] .report-mini-card {
  background: rgba(20, 29, 25, 0.96);
  border-color: rgba(106, 136, 123, 0.4);
}

:root[data-theme="dark"] .offer-timeline-mini span,
:root[data-theme="dark"] .btn-soft,
:root[data-theme="dark"] .admin-mini-stat {
  background: rgba(123, 198, 167, 0.14);
  border-color: rgba(123, 198, 167, 0.3);
  color: #eefaf1;
}

:root[data-theme="dark"] .status-pill.success {
  background: rgba(123, 198, 167, 0.2);
  color: #ecfff5;
}

:root[data-theme="dark"] .btn-text-danger {
  color: #ffc3c3;
  border-color: rgba(199, 92, 92, 0.25);
}

:root[data-theme="dark"] .btn-text-danger:hover,
:root[data-theme="dark"] .btn-text-danger:focus {
  background: #b85b5b;
  border-color: #b85b5b;
  color: #fff;
}

:root[data-theme="dark"] .report-filter-card.active {
  border-color: rgba(123, 198, 167, 0.48);
  box-shadow: 0 14px 28px rgba(4, 15, 10, 0.28);
}

:root[data-theme="dark"] .profile-identity-line {
  border-bottom-color: rgba(106, 136, 123, 0.34);
}

:root[data-theme="dark"] .profile-lite-card,
:root[data-theme="dark"] .profile-editor-form .form-control,
:root[data-theme="dark"] .profile-editor-form .form-select,
:root[data-theme="dark"] .profile-editor-form textarea {
  background: rgba(24, 35, 30, 0.82);
}

:root[data-theme="dark"] .profile-flow-item {
  border-top-color: rgba(106, 136, 123, 0.26);
}

@media (max-width: 991.98px) {
  .listing-grid,
  .report-summary-grid,
  .admin-metric-grid,
  .report-filter-form,
  .profile-showcase {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .listing-meta-grid,
  .listing-meta-grid.compact {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-dot {
    display: none;
  }
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  min-height: 70vh;
}

.chat-sidebar {
  padding: 1rem;
  overflow-y: auto;
}

.chat-user-item {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(173, 183, 204, 0.4);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.7rem;
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.62);
}

.chat-user-item.active {
  border-color: rgba(34, 58, 143, 0.58);
  background: rgba(34, 58, 143, 0.12);
}

.chat-user-item p {
  margin-top: 0.2rem;
  margin-bottom: 0;
  color: var(--app-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-main {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  min-height: 70vh;
}

.chat-main-header {
  border-bottom: 1px solid rgba(173, 183, 204, 0.4);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
}

.chat-bubbles {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-right: 0.2rem;
}

.chat-bubble-wrapper {
  display: flex;
}

.chat-bubble-wrapper.incoming {
  justify-content: flex-start;
}

.chat-bubble-wrapper.outgoing {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 78%;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}

.chat-bubble p {
  margin-bottom: 0.35rem;
  white-space: pre-wrap;
}

.chat-bubble small {
  display: block;
  color: var(--app-subtle);
  text-align: right;
}

.chat-bubble-wrapper.incoming .chat-bubble {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(173, 183, 204, 0.4);
}

.chat-bubble-wrapper.outgoing .chat-bubble {
  background: rgba(34, 58, 143, 0.16);
  border: 1px solid rgba(34, 58, 143, 0.45);
}

.chat-listing-ref {
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-align: left !important;
}

.chat-send-form {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(173, 183, 204, 0.4);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-empty-state {
  flex: 1;
  display: grid;
  place-items: center;
}

.animate-in {
  animation: slideUp 0.45s ease both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root[data-theme="dark"] .balance-pill {
  background: rgba(24, 35, 30, 0.9);
  border-color: rgba(123, 198, 167, 0.34);
  color: #ecfff5;
}

:root[data-theme="dark"] .text-danger,
:root[data-theme="dark"] .field-validation-error,
:root[data-theme="dark"] .validation-summary-errors,
:root[data-theme="dark"] .validation-summary-errors ul,
:root[data-theme="dark"] .validation-summary-errors li {
  color: #ff8b8b !important;
}

:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .dashboard-hero,
:root[data-theme="dark"] .card {
  background: rgba(20, 29, 25, 0.9);
}

:root[data-theme="dark"] .quick-link {
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .quick-link.active {
  background: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .hero-sidecard,
:root[data-theme="dark"] .auth-form-wrap,
:root[data-theme="dark"] .listing-meta-item,
:root[data-theme="dark"] .check-item,
:root[data-theme="dark"] .empty-state {
  background: rgba(24, 35, 30, 0.92);
  border-color: rgba(106, 136, 123, 0.4);
}

:root[data-theme="dark"] .btn-primary {
  color: #fff !important;
}

:root[data-theme="dark"] .btn-outline-primary {
  color: #ecfff5 !important;
  border-color: rgba(123, 198, 167, 0.6);
}

:root[data-theme="dark"] .btn-outline-primary:hover,
:root[data-theme="dark"] .btn-outline-primary:focus {
  color: #fff !important;
  background: rgba(123, 198, 167, 0.24);
  border-color: rgba(123, 198, 167, 0.8);
}

:root[data-theme="dark"] .btn-light {
  color: #1e3f35 !important;
}

:root[data-theme="dark"] .dropdown-item {
  color: var(--app-text) !important;
}

:root[data-theme="dark"] #themeToggleBtn {
  color: #eefaf1 !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(123, 198, 167, 0.3);
}

:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .hero-sidecard,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .auth-form-wrap,
:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .listing-meta-item,
:root[data-theme="dark"] .empty-state {
  color: var(--app-text);
}

:root[data-theme="dark"] .footer-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .brand-copy small,
:root[data-theme="dark"] .user-pill small {
  color: rgba(228, 245, 236, 0.72);
}

:root[data-theme="dark"] .action-box {
  background: rgba(24, 35, 30, 0.9);
  border-color: rgba(123, 198, 167, 0.34);
}

:root[data-theme="dark"] .panel-item {
  border-top-color: rgba(123, 198, 167, 0.2);
}

:root[data-theme="dark"] .listing-badge {
  background: rgba(123, 198, 167, 0.18);
  border-color: rgba(123, 198, 167, 0.28);
  color: #ecfff5;
}

:root[data-theme="dark"] .chat-user-item {
  background: rgba(22, 33, 69, 0.9);
  border-color: rgba(93, 117, 188, 0.65);
}

:root[data-theme="dark"] .chat-user-item.active {
  background: rgba(61, 102, 255, 0.22);
  border-color: rgba(106, 136, 232, 0.85);
}

:root[data-theme="dark"] .chat-main-header,
:root[data-theme="dark"] .chat-send-form {
  border-color: rgba(123, 143, 206, 0.35);
}

:root[data-theme="dark"] .chat-bubble-wrapper.incoming .chat-bubble {
  background: rgba(26, 40, 82, 0.9);
  border-color: rgba(93, 117, 188, 0.65);
}

:root[data-theme="dark"] .chat-bubble-wrapper.outgoing .chat-bubble {
  background: rgba(61, 102, 255, 0.25);
  border-color: rgba(106, 136, 232, 0.8);
}

@media (max-width: 991px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .auth-split,
  .listing-meta-grid,
  .check-grid,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-main,
  .chat-sidebar {
    min-height: auto;
  }

  .footer-card {
    flex-direction: column;
  }
}

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

  .hero-card {
    padding: 2.2rem 1rem;
  }

  .quick-links,
  .app-toolbar {
    gap: 0.5rem;
  }

  .quick-link {
    width: 100%;
    justify-content: center;
  }
}
