:root {
  --sihnag-blue: #3874ff;
  --sihnag-blue-dark: #1f4fd6;
  --sihnag-navy: #0b1b3a;
  --sihnag-bg: #f4f7fc;
  --sihnag-surface: #ffffff;
  --sihnag-text: #152238;
  --sihnag-muted: #5b6b86;
  --sihnag-border: #d7e0ef;
  --sihnag-shadow: 0 18px 40px rgba(15, 36, 84, 0.08);
  --sihnag-radius: 18px;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

html[data-theme="dark"] {
  --sihnag-bg: #10141f;
  --sihnag-surface: #1a2233;
  --sihnag-text: #eef3ff;
  --sihnag-muted: #b4c0d9;
  --sihnag-border: #31405a;
  --sihnag-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  /* Keep Bootstrap components readable in dark mode */
  --bs-body-color: #eef3ff;
  --bs-body-color-rgb: 238, 243, 255;
  --bs-body-bg: #10141f;
  --bs-body-bg-rgb: 16, 20, 31;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #b4c0d9;
  --bs-secondary-bg: #243049;
  --bs-tertiary-color: #9eacc8;
  --bs-tertiary-bg: #182233;
  --bs-heading-color: #f5f8ff;
  --bs-link-color: #7ea6ff;
  --bs-link-hover-color: #a8c2ff;
  --bs-border-color: #31405a;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
  --bs-card-bg: #1a2233;
  --bs-card-color: #eef3ff;
  --bs-card-border-color: #31405a;
  --bs-card-cap-bg: #151d2c;
  --bs-table-color: #eef3ff;
  --bs-table-bg: transparent;
  --bs-table-border-color: #31405a;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(126, 166, 255, 0.08);
  --bs-form-control-bg: #121a29;
  --bs-form-control-disabled-bg: #0f1520;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--sihnag-text);
  background:
    radial-gradient(circle at top left, rgba(56, 116, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #eef3fb 0%, var(--sihnag-bg) 42%, var(--sihnag-bg) 100%);
  min-height: 100vh;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(56, 116, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #0d121c 0%, var(--sihnag-bg) 45%, var(--sihnag-bg) 100%);
}

a { color: var(--sihnag-blue); text-decoration: none; }
a:hover { color: var(--sihnag-blue-dark); }

.card {
  background: var(--sihnag-surface);
  border: 1px solid var(--sihnag-border);
  border-radius: var(--sihnag-radius);
  box-shadow: var(--sihnag-shadow);
  color: var(--sihnag-text);
}

.btn-primary {
  --bs-btn-bg: var(--sihnag-blue);
  --bs-btn-border-color: var(--sihnag-blue);
  --bs-btn-hover-bg: var(--sihnag-blue-dark);
  --bs-btn-hover-border-color: var(--sihnag-blue-dark);
  --bs-btn-active-bg: var(--sihnag-blue-dark);
  --bs-btn-active-border-color: var(--sihnag-blue-dark);
}

.text-primary, .dashboard-title { color: var(--sihnag-blue) !important; }
.dashboard-subtitle, .text-muted { color: var(--sihnag-muted) !important; }
.dashboard-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sihnag-blue);
  margin-bottom: 0.35rem;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .table,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .list-group-item {
  color: var(--sihnag-text);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background-color: #121a29;
  border-color: var(--sihnag-border);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
  background-color: #121a29;
  border-color: var(--sihnag-blue);
  color: var(--sihnag-text);
  box-shadow: 0 0 0 0.2rem rgba(56, 116, 255, 0.2);
}

html[data-theme="dark"] .form-control::placeholder {
  color: #8fa0bd;
}

html[data-theme="dark"] .table {
  --bs-table-color: var(--sihnag-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--sihnag-border);
  --bs-table-striped-color: var(--sihnag-text);
  --bs-table-hover-color: var(--sihnag-text);
}

html[data-theme="dark"] .badge.bg-light {
  background-color: #243049 !important;
  color: #d7e2f7 !important;
}

html[data-theme="dark"] .btn-outline-primary {
  color: #9fbdff;
  border-color: #4d74c7;
}

html[data-theme="dark"] .btn-outline-primary:hover {
  color: #fff;
  background-color: var(--sihnag-blue);
  border-color: var(--sihnag-blue);
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-success,
html[data-theme="dark"] .btn-outline-danger {
  color: #d7e2f7;
}

html[data-theme="dark"] .pagination .page-link {
  background-color: var(--sihnag-surface);
  border-color: var(--sihnag-border);
  color: var(--sihnag-text);
}

html[data-theme="dark"] .pagination .page-item.active .page-link {
  background-color: var(--sihnag-blue);
  border-color: var(--sihnag-blue);
  color: #fff;
}

html[data-theme="dark"] .alert {
  border-color: transparent;
}

.app-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.app-brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sihnag-text);
}
.app-brand-subtitle {
  font-size: 0.78rem;
  color: var(--sihnag-muted);
}

.ssu-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.ssu-logo-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.ssu-logo-sidebar { width: 48px; height: 48px; }
.ssu-logo-auth { width: 72px; height: 72px; margin-bottom: 1rem; }
.ssu-logo-light { display: block; }
.ssu-logo-dark { display: none; }
html[data-theme="dark"] .ssu-logo-light { display: none; }
html[data-theme="dark"] .ssu-logo-dark { display: block; }
.ssu-logo-fallback,
.ssu-logo-sidebar-fallback,
.ssu-logo-auth-fallback,
.ssu-logo-nav-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sihnag-blue);
  color: #fff;
  font-weight: 800;
}

/* Auth — shared (register / forgot) */
.phoenix-auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}
.phoenix-auth-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 27, 58, 0.92), rgba(31, 79, 214, 0.78)),
    url("../images/ssu_logo.png") center/cover;
  filter: saturate(1.05);
  opacity: 0.95;
  z-index: 0;
}
.phoenix-auth-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}
.phoenix-auth-brand {
  color: #fff;
  display: flex;
  align-items: center;
  padding: 1.5rem;
}
.phoenix-auth-brand .app-brand-title,
.phoenix-auth-brand .app-brand-subtitle { color: #fff; }
.phoenix-auth-brand .app-brand-title { font-size: 2rem; }
.phoenix-auth-tagline {
  margin-top: 1rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.86);
}
.phoenix-login-card {
  padding: 2rem;
  background: var(--sihnag-surface);
}
.phoenix-login-title {
  font-family: var(--font-serif);
  font-weight: 700;
}
.phoenix-login-subtitle,
.phoenix-link-small { color: var(--sihnag-muted); }
.theme-toggle-auth-wrap {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.form-icon-container { position: relative; }
.form-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sihnag-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.form-icon-input { padding-left: 2.4rem; }

/* Auth — minimalist login */
body.auth-minimal {
  background: #edf2f8;
}

html[data-theme="dark"] body.auth-minimal {
  background: #0c1018;
}

.flash-banner {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.flash-banner-auth {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 2rem));
  padding: 0;
}

.auth-minimal-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
}

.auth-minimal-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(56, 116, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(11, 27, 58, 0.06), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, #e8eef7 100%);
  z-index: 0;
}

html[data-theme="dark"] .auth-minimal-atmosphere {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(56, 116, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(56, 116, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #10151f 0%, #0c1018 100%);
}

.theme-toggle-minimal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(215, 224, 239, 0.9);
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .theme-toggle-minimal {
  background: rgba(26, 34, 51, 0.8);
  border-color: rgba(49, 64, 90, 0.9);
}

.theme-toggle-minimal .theme-toggle-label { display: none; }

.auth-minimal-shell {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  animation: authRise 0.55s ease both;
}

.auth-minimal-brand {
  text-align: center;
  margin-bottom: 2.25rem;
  animation: authRise 0.65s ease both;
}

.ssu-logo-auth-minimal {
  width: 92px;
  height: auto;
  margin: 0 auto 1.1rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ssu-logo-auth-minimal.ssu-logo-light {
  display: block;
  mix-blend-mode: multiply;
}

.ssu-logo-auth-minimal.ssu-logo-dark {
  display: none;
  mix-blend-mode: screen;
}

html[data-theme="dark"] .ssu-logo-auth-minimal.ssu-logo-light {
  display: none;
}

html[data-theme="dark"] .ssu-logo-auth-minimal.ssu-logo-dark {
  display: block;
}

.ssu-logo-auth-minimal-fallback {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  background: transparent;
  box-shadow: none;
}

.auth-minimal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sihnag-navy);
  line-height: 1.15;
}

html[data-theme="dark"] .auth-minimal-title {
  color: #f2f6ff;
}

.auth-minimal-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sihnag-muted);
}

.auth-minimal-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  animation: authRise 0.75s ease both;
}

.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sihnag-muted);
}

.auth-quiet-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sihnag-muted);
}

.auth-quiet-link:hover { color: var(--sihnag-blue); }

.auth-input {
  width: 100%;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--sihnag-border);
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0.1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sihnag-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder { color: #9aa8c0; font-weight: 400; }

.auth-input:focus {
  border-bottom-color: var(--sihnag-blue);
  box-shadow: 0 1px 0 0 var(--sihnag-blue);
}

.auth-submit {
  margin-top: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--sihnag-navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  background: #13284f;
  box-shadow: 0 12px 28px rgba(11, 27, 58, 0.22);
  transform: translateY(-1px);
}

.auth-submit:active { transform: translateY(0); }

html[data-theme="dark"] .auth-submit {
  background: var(--sihnag-blue);
}

html[data-theme="dark"] .auth-submit:hover {
  background: var(--sihnag-blue-dark);
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .auth-minimal-page { padding: 2rem 1.1rem; }
  .auth-minimal-title { font-size: 1.65rem; }
}
/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--sihnag-border);
  background: var(--sihnag-surface);
  color: var(--sihnag-text);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.theme-toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #c9d5ea;
  position: relative;
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.theme-toggle[aria-pressed="true"] .theme-toggle-track { background: var(--sihnag-blue); }
.theme-toggle[aria-pressed="true"] .theme-toggle-thumb { transform: translateX(16px); }
.theme-toggle-label { font-size: 0.8rem; font-weight: 600; }
.theme-toggle-compact,
.theme-toggle-header {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
  gap: 0;
}
.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.theme-toggle-icon-light { display: none; color: #f59e0b; }
.theme-toggle-icon-dark { display: inline-flex; color: var(--sihnag-blue); }
.theme-toggle-compact[aria-pressed="true"] .theme-toggle-icon-dark,
.theme-toggle-header[aria-pressed="true"] .theme-toggle-icon-dark { display: none; }
.theme-toggle-compact[aria-pressed="true"] .theme-toggle-icon-light,
.theme-toggle-header[aria-pressed="true"] .theme-toggle-icon-light { display: inline-flex; }

/* Admin layout */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-mobile-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, #0d2248, #132b57);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}
.admin-mobile-brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-mobile-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}
.admin-mobile-actions .theme-toggle-header {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  color: #fff;
}
.admin-mobile-actions .theme-toggle-icon-dark {
  color: #cfe0ff;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.25rem 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sihnag-border);
  border-radius: 16px;
  background: var(--sihnag-surface);
  box-shadow: var(--sihnag-shadow);
}
.admin-topbar-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-topbar-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sihnag-muted);
}
.admin-topbar-user {
  font-weight: 700;
  color: var(--sihnag-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.ssu-logo-mobile {
  width: 34px;
  height: 34px;
}
.admin-menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-menu-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.admin-menu-toggle-bars::before,
.admin-menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.admin-menu-toggle-bars::before { top: -6px; }
.admin-menu-toggle-bars::after { top: 6px; }
.admin-sidebar-close {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.admin-sidebar-backdrop {
  display: none;
}
.admin-sidebar {
  background: linear-gradient(180deg, #0d2248, #132b57);
  color: #fff;
  padding: 1.25rem 1rem 2rem;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
}
.sidebar-brand .app-brand-title,
.sidebar-brand .app-brand-subtitle { color: #fff; }
.sidebar-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin: 0.75rem 0.5rem 0.4rem;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  border-radius: 12px;
  margin-bottom: 0.25rem;
}
.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.sidebar-nav-icon {
  width: 1.15rem;
  height: auto;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border-radius: 0;
}
.sidebar-nav-link.active .sidebar-nav-icon,
.sidebar-nav-link:hover .sidebar-nav-icon {
  color: #9fc2ff;
}
.admin-content { padding: 1.5rem; min-width: 0; }
.admin-metric-card,
.admin-summary-card,
.form-card,
.filter-card,
.dashboard-list-card,
.featured-publication-card,
.publication-grid-card,
.profile-hero-card,
.profile-panel-card,
.admin-quick-actions-card {
  padding: 1.1rem;
}
.admin-metric-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.admin-metric-card-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 36, 84, 0.12);
  border-color: rgba(56, 116, 255, 0.35);
}
.admin-metric-top,
.admin-summary-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.admin-metric-icon,
.admin-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.admin-metric-kicker,
.admin-summary-title,
.dashboard-card-title,
.profile-panel-title {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--sihnag-muted);
  text-transform: capitalize;
}
.admin-summary-card p,
.admin-metric-card,
.dashboard-list-card,
.featured-publication-card {
  color: var(--sihnag-text);
}
.admin-metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sihnag-blue);
  line-height: 1.1;
}
.admin-summary-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--sihnag-text);
}
.admin-summary-meta {
  color: var(--sihnag-muted);
  font-size: 0.9rem;
}
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.admin-quick-actions-stack {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.admin-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--sihnag-border);
  background: rgba(56, 116, 255, 0.04);
  color: var(--sihnag-text);
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.admin-quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.admin-quick-action-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.admin-quick-action-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}
.admin-quick-action-copy small {
  color: var(--sihnag-muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.admin-quick-action-arrow {
  color: var(--sihnag-muted);
  font-size: 0.9rem;
}
.admin-quick-action i {
  color: var(--sihnag-blue);
  font-size: 1.1rem;
}
.admin-quick-action:hover {
  color: var(--sihnag-text);
  background: rgba(56, 116, 255, 0.1);
  border-color: rgba(56, 116, 255, 0.35);
  transform: translateY(-1px);
}
.admin-quick-action:hover .admin-quick-action-arrow {
  color: var(--sihnag-blue);
}
.dashboard-section-head {
  margin-bottom: 0.85rem;
}
.dashboard-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.dashboard-section-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--sihnag-muted);
}
.admin-quick-actions-card {
  padding: 0.85rem;
}
.dashboard-bottom-grid > [class*="col-"] > .dashboard-section {
  display: flex;
  flex-direction: column;
}
.dashboard-bottom-grid .admin-quick-actions-card {
  flex: 1;
}
.tone-blue .admin-metric-icon,
.tone-blue.admin-summary-icon,
.tone-blue .admin-summary-icon { background: rgba(56, 116, 255, 0.14); color: #3874ff; }
.tone-indigo .admin-metric-icon,
.tone-indigo .admin-summary-icon { background: rgba(79, 70, 229, 0.14); color: #6366f1; }
.tone-teal .admin-metric-icon,
.tone-teal .admin-summary-icon { background: rgba(13, 148, 136, 0.14); color: #0d9488; }
.tone-violet .admin-metric-icon,
.tone-violet .admin-summary-icon { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.tone-rose .admin-metric-icon,
.tone-rose .admin-summary-icon { background: rgba(225, 29, 72, 0.12); color: #e11d48; }
.tone-amber .admin-metric-icon,
.tone-amber .admin-summary-icon { background: rgba(217, 119, 6, 0.14); color: #d97706; }
.tone-cyan .admin-metric-icon,
.tone-cyan .admin-summary-icon { background: rgba(8, 145, 178, 0.14); color: #0891b2; }

.dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-card-title i {
  color: var(--sihnag-blue);
}

/* User nav */
.user-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sihnag-border);
}
html[data-theme="dark"] .user-navbar {
  background: rgba(23, 29, 43, 0.92);
}
.user-navbar .navbar-brand {
  min-width: 0;
}
.user-navbar .navbar-brand .app-brand-title {
  font-size: 0.95rem;
}
.user-navbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.user-navbar .navbar-collapse {
  flex-basis: 100%;
}
@media (min-width: 992px) {
  .user-navbar-tools {
    order: 3;
    margin-left: 0.75rem;
  }
  .user-navbar .navbar-collapse {
    flex-basis: auto;
    order: 2;
  }
  .user-navbar .navbar-brand {
    order: 1;
  }
  .user-navbar .navbar-toggler {
    display: none;
  }
}
.user-navbar .navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 0;
}
.user-navbar .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2821, 34, 56, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
html[data-theme="dark"] .user-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28232, 238, 252, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.user-navbar .nav-link {
  color: var(--sihnag-muted);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.user-navbar .nav-link.active,
.user-navbar .nav-link:hover {
  color: var(--sihnag-blue);
  background: rgba(56, 116, 255, 0.1);
}

.cover-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: #e8eef8;
}
.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sihnag-border);
}
.dashboard-list li:last-child { border-bottom: 0; }

/* User dashboard */
.user-dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
.user-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.user-stat-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.user-stat-card:hover {
  color: inherit;
  transform: translateY(-2px);
  border-color: rgba(56, 116, 255, 0.35);
}
.user-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.user-stat-icon.tone-blue { background: rgba(56, 116, 255, 0.14); color: #3874ff; }
.user-stat-icon.tone-rose { background: rgba(225, 29, 72, 0.12); color: #e11d48; }
.user-stat-icon.tone-amber { background: rgba(217, 119, 6, 0.14); color: #d97706; }
.user-stat-icon.tone-teal { background: rgba(13, 148, 136, 0.14); color: #0d9488; }
.user-stat-icon.tone-violet { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
a.user-stat-card.is-active {
  border-color: rgba(56, 116, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 116, 255, 0.1);
}
.user-stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sihnag-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.user-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sihnag-text);
  line-height: 1.1;
}
.user-featured-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.user-featured-cover {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: #dbe5f5;
}
.user-featured-body {
  padding: 1.25rem 1.35rem;
}
.user-featured-title {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sihnag-text);
}
.user-featured-copy {
  color: var(--sihnag-muted);
  margin-bottom: 0.75rem;
}
.user-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.user-panel-card {
  padding: 1rem 1.1rem;
}
.user-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.user-panel-link {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.user-panel-card .dashboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.user-panel-card .dashboard-list li a {
  font-weight: 650;
}
.user-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}
.user-side-card {
  padding: 1rem 1.05rem;
}
.user-side-card-head h6 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.user-side-card-head h6 i {
  color: var(--sihnag-blue);
}
.user-side-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.user-side-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--sihnag-border);
  color: var(--sihnag-text);
  font-weight: 650;
  text-decoration: none;
}
.user-side-links a:hover {
  background: rgba(56, 116, 255, 0.08);
  border-color: rgba(56, 116, 255, 0.3);
  color: var(--sihnag-text);
}
.user-side-links a i {
  color: var(--sihnag-blue);
}
.user-pulse {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.user-pulse-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  color: var(--sihnag-muted);
  font-size: 0.9rem;
}
.user-pulse-row strong {
  color: var(--sihnag-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.user-side-tip {
  background: linear-gradient(180deg, rgba(56, 116, 255, 0.1), rgba(56, 116, 255, 0.03));
}
.user-side-tip p {
  margin-top: 0.45rem;
  color: var(--sihnag-text);
}
.user-navbar .nav-link-logout {
  color: #e11d48;
}
.user-navbar .nav-link-logout:hover {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

/* Browse publications */
.browse-toolbar-card {
  padding: 1rem 1.1rem;
}
.browse-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.browse-search-field {
  flex: 1 1 220px;
  min-width: min(100%, 200px);
}
.browse-toolbar .form-select {
  max-width: 170px;
}
.browse-toolbar-meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.browse-empty-card {
  text-align: center;
  padding: 2.75rem 1.25rem;
  color: var(--sihnag-muted);
}
.browse-empty-card i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.65rem;
  color: var(--sihnag-blue);
}
.browse-empty-card h3 {
  margin: 0 0 0.35rem;
  color: var(--sihnag-text);
  font-size: 1.15rem;
}
.browse-pub-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.browse-pub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 36, 84, 0.1);
  border-color: rgba(56, 116, 255, 0.28);
}
.browse-pub-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(56, 116, 255, 0.08);
  overflow: hidden;
}
.browse-pub-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.browse-pub-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sihnag-blue);
  font-size: 2rem;
}
.browse-pub-type {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sihnag-blue);
}
.browse-pub-type.is-magazine {
  color: #7c3aed;
}
.browse-pub-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.1rem;
}
.browse-pub-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--sihnag-muted);
  margin-bottom: 0.45rem;
}
.browse-pub-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--sihnag-text);
  line-height: 1.3;
}
.browse-pub-copy {
  margin: 0 0 1rem;
  color: var(--sihnag-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.browse-pub-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--sihnag-border);
}
.browse-pub-date {
  font-size: 0.8rem;
  color: var(--sihnag-muted);
  font-weight: 600;
}
.browse-pub-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.browse-pub-actions form {
  margin: 0;
}

/* Most read */
.most-read-select {
  flex: 1;
  max-width: none !important;
  min-width: min(100%, 240px);
}
.most-read-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.most-read-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--sihnag-border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--sihnag-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}
.most-read-tab:hover,
.most-read-tab.is-active {
  color: var(--sihnag-blue);
  border-color: rgba(56, 116, 255, 0.35);
  background: rgba(56, 116, 255, 0.1);
}
.most-read-list-card {
  padding: 0.35rem 0.5rem;
  overflow: hidden;
}
.most-read-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.most-read-list > li {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.most-read-list > li:last-child {
  border-bottom: 0;
}
.most-read-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.most-read-rank {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.most-read-thumb {
  width: 48px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--sihnag-blue);
}
.most-read-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.most-read-meta {
  flex: 1;
  min-width: 0;
}
.most-read-meta strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.most-read-meta > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--sihnag-muted);
  margin-bottom: 0.45rem;
}
.most-read-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  max-width: 420px;
}
.most-read-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3874ff, #7c3aed);
}
.most-read-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}
.most-read-views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 750;
  color: var(--sihnag-muted);
  font-size: 0.88rem;
}

/* My feedback */
.my-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.my-feedback-card {
  padding: 1rem 1.05rem;
}
.my-feedback-main {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.my-feedback-cover {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--sihnag-blue);
}
.my-feedback-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-feedback-body {
  flex: 1;
  min-width: 0;
}
.my-feedback-top {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
.my-feedback-top h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--sihnag-text);
}
.my-feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
}
.my-feedback-rating {
  text-align: right;
  flex-shrink: 0;
}
.my-feedback-rating span:last-child {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
  font-weight: 650;
}
.my-feedback-comment {
  margin: 0 0 0.85rem;
  color: var(--sihnag-text);
  line-height: 1.45;
}
.my-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Profile page */
.user-profile-page {
  max-width: 960px;
}
.profile-page-head {
  margin-bottom: 1.25rem;
}
.profile-page-head .dashboard-title {
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
}
.profile-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.profile-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #3874ff, #1d4ed8);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  position: relative;
  box-shadow: 0 8px 20px rgba(56, 116, 255, 0.25);
}
.profile-avatar.is-online::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--sihnag-card, #fff);
}
.profile-summary-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.75rem;
}
.profile-summary-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--sihnag-text);
  line-height: 1.2;
}
.profile-summary-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
  margin: 0;
}
.profile-summary-meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sihnag-muted);
}
.profile-summary-meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--sihnag-text);
  word-break: break-word;
}
.profile-summary-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-left: 1px solid var(--sihnag-border);
  padding-left: 1.1rem;
}
.profile-summary-stats a {
  min-width: 88px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  text-align: center;
  color: inherit;
}
.profile-summary-stats a + a {
  border-left: 1px solid var(--sihnag-border);
}
.profile-summary-stats a:hover strong {
  color: #1d4ed8;
}
.profile-summary-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sihnag-blue);
  line-height: 1.1;
}
.profile-summary-stats span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sihnag-muted);
}
.profile-forms-row {
  margin-bottom: 1rem;
}
.profile-forms-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.profile-accordion {
  padding: 0;
  overflow: hidden;
}
.profile-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  user-select: none;
}
.profile-accordion-summary::-webkit-details-marker {
  display: none;
}
.profile-accordion-summary::marker {
  content: "";
}
.profile-accordion-copy {
  min-width: 0;
}
.profile-accordion-copy strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.profile-accordion-copy span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--sihnag-muted);
  line-height: 1.4;
}
.profile-accordion-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.1);
  color: var(--sihnag-blue);
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.15s ease;
}
.profile-accordion[open] .profile-accordion-arrow {
  transform: rotate(180deg);
  background: rgba(56, 116, 255, 0.16);
}
.profile-accordion-summary:hover .profile-accordion-arrow {
  background: rgba(56, 116, 255, 0.18);
}
.profile-accordion-body {
  padding: 0 1.15rem 1.2rem;
  border-top: 1px solid var(--sihnag-border);
  padding-top: 1rem;
}
.profile-accordion .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sihnag-muted);
}
.profile-readonly {
  background: rgba(148, 163, 184, 0.12);
  color: var(--sihnag-muted);
  cursor: default;
}
.profile-form-actions {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sihnag-border);
}
.profile-session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.95rem 0.15rem 0.25rem;
  border-top: 1px solid var(--sihnag-border);
  margin-top: 0.25rem;
}
.profile-session-bar strong {
  display: block;
  font-size: 0.92rem;
  color: var(--sihnag-text);
}
.profile-session-bar span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.84rem;
  color: var(--sihnag-muted);
}
.profile-session-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #be123c;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
}
.profile-session-logout:hover {
  color: #9f1239;
  background: rgba(225, 29, 72, 0.08);
}

@media (max-width: 767.98px) {
  .most-read-row {
    flex-wrap: wrap;
  }
  .most-read-side {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 2.15rem;
  }
  .my-feedback-top {
    flex-direction: column;
  }
  .my-feedback-rating {
    text-align: left;
  }
  .profile-summary-card {
    grid-template-columns: 1fr;
  }
  .profile-summary-stats {
    border-left: 0;
    border-top: 1px solid var(--sihnag-border);
    padding-left: 0;
    padding-top: 0.85rem;
    width: 100%;
  }
  .profile-summary-stats a {
    flex: 1;
  }
  .profile-summary-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .user-featured-card {
    grid-template-columns: 1fr;
  }
  .user-featured-cover {
    min-height: 180px;
    max-height: 220px;
  }
  .user-side-stack {
    position: static;
  }
  .browse-toolbar .form-select {
    max-width: none;
    flex: 1 1 140px;
  }
}

.profile-hero-content {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.profile-hero-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.profile-badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.profile-badge-muted {
  background: rgba(91, 107, 134, 0.12);
  color: var(--sihnag-muted);
}
.profile-panel-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.profile-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
  font-weight: 800;
}

/* Book reader */
.book-reader-page {
  padding: 0.75rem 0 1.25rem;
}
.book-reader-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: calc(100vh - 4.75rem);
  max-width: 1400px;
}
.book-reader-topbar {
  flex: 0 0 auto;
}
.book-reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
.book-reader-heading {
  min-width: min(100%, 280px);
  flex: 1 1 auto;
}
.book-reader-title {
  margin: 0.1rem 0 0.2rem;
  color: var(--sihnag-blue);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
}
.book-reader-subtitle {
  color: var(--sihnag-muted);
  font-size: 0.88rem;
}
.book-reader-desc {
  margin-top: 0.35rem;
  max-width: 52rem;
  color: var(--sihnag-text);
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.88;
}
.book-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.book-reader-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 12.5rem);
  background: var(--sihnag-surface);
  border: 1px solid var(--sihnag-border);
  border-radius: var(--sihnag-radius);
  box-shadow: var(--sihnag-shadow);
  overflow: hidden;
}
.book-reader-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: calc(100vh - 12.5rem);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(56, 116, 255, 0.08), transparent 42%),
    #dbe4f3;
  padding: 0.35rem 0.35rem 3rem;
  overflow: auto;
}
html[data-theme="dark"] .book-reader-stage {
  background:
    radial-gradient(circle at top, rgba(56, 116, 255, 0.14), transparent 42%),
    #0f1420;
}
.book-reader-stage.is-zoomed {
  place-items: center;
  align-content: center;
}
.book-reader-canvas-wrap {
  width: auto;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.book-reader-canvas {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  background: #fff;
  image-rendering: -webkit-optimize-contrast;
}
.book-reader-articles {
  flex: 0 0 auto;
}
.book-reader-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  max-width: min(90%, 28rem);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-align: center;
  color: var(--sihnag-muted);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}
.book-reader-status .text-danger {
  color: #fecaca !important;
}
.book-reader-ready .book-reader-status {
  display: none !important;
}

.book-reader-cover {
  position: absolute;
  inset: 0.35rem 0.35rem 3rem;
  width: auto;
  height: auto;
  max-width: calc(100% - 0.7rem);
  max-height: calc(100% - 3.35rem);
  margin: auto;
  object-fit: contain;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.book-reader-cover.book-reader-cover-hidden {
  opacity: 0;
  visibility: hidden;
}
.book-reader-overlay-bottom {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}
.book-reader-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
}
.book-reader-page-badge,
.book-reader-ctrl-btn,
.book-reader-nav,
.book-reader-progress,
.book-reader-zoom-badge {
  pointer-events: auto;
}
.book-reader-page-badge,
.book-reader-zoom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}
.book-reader-zoom-badge {
  min-width: 3.4rem;
  padding-inline: 0.55rem;
}
.book-reader-ctrl-btn {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.book-reader-icon-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}
.book-reader-ctrl-btn:hover:not(:disabled) {
  background: rgba(29, 78, 216, 0.98);
  transform: translateY(-1px);
}
.book-reader-ctrl-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.book-reader-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.book-reader-nav:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.92);
  transform: translateY(-50%) scale(1.05);
}
.book-reader-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.book-reader-nav-prev { left: 0.35rem; }
.book-reader-nav-next { right: 0.35rem; }
.book-reader-progress {
  min-height: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.book-reader-progress:not(:empty) {
  opacity: 1;
}
.book-reader-page-badge {
  white-space: nowrap;
}
.book-reader-shell:fullscreen,
.book-reader-shell:-webkit-full-screen,
.book-reader-shell.book-reader-expanded {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0b1220 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.book-reader-shell:fullscreen .book-reader-stage,
.book-reader-shell:-webkit-full-screen .book-reader-stage,
.book-reader-shell.book-reader-expanded .book-reader-stage {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0.25rem 0.25rem 3.35rem !important;
  background: #0b1220 !important;
  overflow: auto !important;
  place-items: center !important;
  align-content: center !important;
}
.book-reader-shell:fullscreen .book-reader-cover,
.book-reader-shell:-webkit-full-screen .book-reader-cover,
.book-reader-shell.book-reader-expanded .book-reader-cover {
  inset: 0.25rem 0.25rem 3.35rem;
  max-width: calc(100% - 0.5rem);
  max-height: calc(100% - 3.6rem);
}
.book-reader-shell:fullscreen .book-reader-overlay-bottom,
.book-reader-shell:-webkit-full-screen .book-reader-overlay-bottom,
.book-reader-shell.book-reader-expanded .book-reader-overlay-bottom {
  position: absolute !important;
  left: 0.5rem !important;
  right: 0.5rem !important;
  bottom: 0.5rem !important;
  z-index: 5 !important;
}
.book-reader-shell:fullscreen .book-reader-nav,
.book-reader-shell:-webkit-full-screen .book-reader-nav,
.book-reader-shell.book-reader-expanded .book-reader-nav {
  position: absolute !important;
  top: 50% !important;
  z-index: 5 !important;
}
.book-reader-shell:fullscreen .book-reader-nav-prev,
.book-reader-shell:-webkit-full-screen .book-reader-nav-prev,
.book-reader-shell.book-reader-expanded .book-reader-nav-prev {
  left: 0.35rem !important;
}
.book-reader-shell:fullscreen .book-reader-nav-next,
.book-reader-shell:-webkit-full-screen .book-reader-nav-next,
.book-reader-shell.book-reader-expanded .book-reader-nav-next {
  right: 0.35rem !important;
}
.book-reader-shell:fullscreen .book-reader-canvas,
.book-reader-shell:-webkit-full-screen .book-reader-canvas,
.book-reader-shell.book-reader-expanded .book-reader-canvas {
  max-width: none;
  max-height: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
body.book-reader-no-scroll {
  overflow: hidden !important;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}
.btn, .form-control, .form-select {
  min-height: 42px;
}
.btn-sm {
  min-height: 36px;
}

@media (max-width: 991.98px) {
  .phoenix-auth-shell { grid-template-columns: 1fr; }
  .phoenix-auth-brand { justify-content: center; text-align: center; }
  .phoenix-auth-brand-inner { display: flex; flex-direction: column; align-items: center; }

  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-mobile-bar {
    display: flex;
  }
  .admin-topbar {
    display: none;
  }
  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 14, 28, 0.5);
    z-index: 45;
  }
  .admin-sidebar-backdrop[hidden] {
    display: none !important;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.25);
  }
  .admin-layout.admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.admin-menu-locked {
    overflow: hidden;
  }
  .admin-content {
    padding: 1rem;
  }
  .admin-metric-value {
    font-size: 1.45rem;
  }
  .admin-quick-actions:not(.admin-quick-actions-stack) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-reader-meta {
    flex-direction: column;
  }
  .book-reader-actions {
    justify-content: flex-start;
  }
  .book-reader-shell,
  .book-reader-stage {
    min-height: calc(100vh - 15.5rem);
  }
  .book-reader-stage {
    padding: 0.35rem 0.25rem 3rem;
  }
  .book-reader-nav {
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 1.65rem;
  }
  .book-reader-nav-prev { left: 0.25rem; }
  .book-reader-nav-next { right: 0.25rem; }
  .book-reader-overlay-bottom {
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    flex-wrap: wrap;
  }
  .book-reader-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .book-reader-shell:fullscreen .book-reader-stage,
  .book-reader-shell:-webkit-full-screen .book-reader-stage,
  .book-reader-shell.book-reader-expanded .book-reader-stage {
    padding: 0.2rem 0.2rem 3.25rem !important;
  }
  .cover-thumb {
    height: 160px;
  }
  .user-page,
  .user-dashboard-page,
  .user-profile-page,
  .book-reader-page {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .profile-hero-content {
    align-items: flex-start;
  }
  .navbar-brand-text .app-brand-subtitle {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .admin-content {
    padding: 0.85rem;
  }
  .dashboard-title {
    font-size: 1.35rem;
  }
  .text-nowrap {
    white-space: normal !important;
  }
  .table td .btn {
    margin: 0.15rem 0.15rem 0.15rem 0;
  }
  .profile-hero-content {
    flex-direction: column;
  }
  .auth-submit {
    min-height: 48px;
  }
  .admin-quick-actions:not(.admin-quick-actions-stack) {
    grid-template-columns: 1fr;
  }
  .admin-metric-icon,
  .admin-summary-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* User management */
.users-stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}
.users-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.users-stat-icon.tone-violet { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.users-stat-icon.tone-teal { background: rgba(13, 148, 136, 0.14); color: #0d9488; }
.users-stat-icon.tone-amber { background: rgba(217, 119, 6, 0.14); color: #d97706; }
.users-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sihnag-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.users-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sihnag-text);
  line-height: 1.1;
}
.users-form-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.users-list-card {
  overflow: hidden;
  padding: 0;
}
.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.users-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 1;
  min-width: min(100%, 280px);
  align-items: center;
}
.users-filter-select {
  max-width: 140px;
}
.users-you-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  vertical-align: middle;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.users-search-field {
  position: relative;
  flex: 1;
  min-width: min(100%, 220px);
}
.users-search-field i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sihnag-muted);
}
.users-search-field .form-control {
  padding-left: 2.35rem;
}
.users-toolbar-meta {
  font-size: 0.88rem;
  font-weight: 600;
}
.users-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sihnag-muted);
  white-space: nowrap;
  padding: 0.85rem 1rem;
  border-bottom-color: var(--sihnag-border);
}
.users-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom-color: var(--sihnag-border);
}
.users-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
}
.users-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(56, 116, 255, 0.14);
  color: var(--sihnag-blue);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
}
.users-avatar.is-online::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--sihnag-surface);
}
.users-online-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
  vertical-align: middle;
}
.users-identity-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.users-identity-text strong {
  color: var(--sihnag-text);
}
.users-identity-text span {
  font-size: 0.82rem;
  color: var(--sihnag-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.users-id {
  font-size: 0.85rem;
  color: var(--sihnag-blue);
  background: rgba(56, 116, 255, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}
.users-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.users-badge-admin { background: rgba(124, 58, 237, 0.14); color: #8b5cf6; }
.users-badge-user { background: rgba(56, 116, 255, 0.12); color: var(--sihnag-blue); }
.users-badge-active { background: rgba(13, 148, 136, 0.14); color: #0d9488; }
.users-badge-inactive { background: rgba(148, 163, 184, 0.18); color: #94a3b8; }
.users-date {
  color: var(--sihnag-muted);
  white-space: nowrap;
}
.users-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}
.users-actions .btn span {
  margin-left: 0.25rem;
}
.users-empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  color: var(--sihnag-muted);
}
.users-empty i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Admin quick actions FAB + right panel */
.admin-qa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3874ff, #1f4fd6);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(31, 79, 214, 0.38);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-qa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(31, 79, 214, 0.45);
  color: #fff;
}
.admin-qa-fab-icon {
  font-size: 1.15rem;
}
.admin-qa-fab-label {
  font-size: 0.92rem;
}
.admin-qa.is-open .admin-qa-fab {
  background: #13284f;
}
.admin-qa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 68;
  background: rgba(7, 14, 28, 0.45);
}
.admin-qa-backdrop[hidden] {
  display: none !important;
}
.admin-qa-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 69;
  width: min(360px, 92vw);
  background: var(--sihnag-surface);
  border-left: 1px solid var(--sihnag-border);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.22);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
}
.admin-qa.is-open .admin-qa-panel {
  transform: translateX(0);
}
.admin-qa-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.admin-qa-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.admin-qa-subtitle {
  margin: 0.2rem 0 0;
  color: var(--sihnag-muted);
  font-size: 0.86rem;
}
.admin-qa-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--sihnag-border);
  border-radius: 12px;
  background: transparent;
  color: var(--sihnag-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.admin-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  padding-bottom: 4.5rem;
}
.admin-qa-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--sihnag-border);
  background: rgba(56, 116, 255, 0.04);
  color: var(--sihnag-text);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.admin-qa-item:hover {
  color: var(--sihnag-text);
  background: rgba(56, 116, 255, 0.1);
  border-color: rgba(56, 116, 255, 0.35);
  transform: translateY(-1px);
}
.admin-qa-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
  flex-shrink: 0;
}
.admin-qa-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.admin-qa-item-copy strong {
  font-size: 0.94rem;
}
.admin-qa-item-copy small {
  color: var(--sihnag-muted);
  font-size: 0.78rem;
}
.admin-qa-item-arrow {
  color: var(--sihnag-muted);
}
body.admin-qa-locked {
  overflow: hidden;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  display: inline-block;
  flex-shrink: 0;
}
.admin-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--sihnag-border);
  background: rgba(34, 197, 94, 0.08);
  color: var(--sihnag-text);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}
.admin-online-chip:hover {
  color: var(--sihnag-text);
  border-color: rgba(34, 197, 94, 0.35);
}
.admin-mobile-actions .admin-online-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  color: #fff;
  min-width: 42px;
  justify-content: center;
  padding: 0 0.65rem;
}
.online-users-card {
  padding: 0.85rem;
}
.online-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
}
.online-user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--sihnag-border);
  background: rgba(56, 116, 255, 0.03);
}
.online-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.online-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.online-user-meta strong {
  color: var(--sihnag-text);
}
.online-user-meta span,
.online-user-seen {
  font-size: 0.8rem;
  color: var(--sihnag-muted);
}
.online-user-seen {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.online-users-empty {
  text-align: center;
  color: var(--sihnag-muted);
  padding: 1.5rem 1rem;
}
.online-users-empty i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* Publications management */
.publications-list-card {
  overflow: hidden;
  padding: 0;
}
.publications-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.publications-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 1;
  min-width: min(100%, 280px);
}
.publications-search-field {
  min-width: min(100%, 200px);
  flex: 1.2;
}
.publications-filters .form-select {
  max-width: 160px;
}
.publications-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.publications-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sihnag-muted);
  white-space: nowrap;
  padding: 0.85rem 1rem;
  border-bottom-color: var(--sihnag-border);
}
.publications-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom-color: var(--sihnag-border);
}
.pub-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}
.pub-cover-thumb,
.pub-cover-fallback {
  width: 46px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.1);
}
.pub-cover-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sihnag-blue);
  font-size: 1.1rem;
}
.pub-identity-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.pub-identity-text strong {
  color: var(--sihnag-text);
}
.pub-identity-text span {
  font-size: 0.8rem;
  color: var(--sihnag-muted);
}
.pub-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.pub-type-newsletter {
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.pub-type-magazine {
  background: rgba(124, 58, 237, 0.12);
  color: #8b5cf6;
}
.pub-badge-published {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}
.pub-badge-draft {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}
.pub-badge-archived {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}
.pub-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sihnag-muted);
  font-weight: 650;
}
.users-stat-icon.tone-blue {
  background: rgba(56, 116, 255, 0.14);
  color: #3874ff;
}

/* Upload / edit publication */
.upload-section-card {
  padding: 1.25rem 1.35rem 1.4rem;
}
.upload-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.upload-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
  font-size: 1.15rem;
}
.upload-section-icon.tone-teal {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}
.upload-section-icon.tone-violet {
  background: rgba(124, 58, 237, 0.14);
  color: #7c3aed;
}
.upload-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.upload-section-copy {
  margin-top: 0.15rem;
  color: var(--sihnag-muted);
  font-size: 0.9rem;
}
.upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1.5px dashed rgba(56, 116, 255, 0.35);
  border-radius: 14px;
  background: rgba(56, 116, 255, 0.04);
  min-height: 88px;
}
.upload-dropzone > i {
  font-size: 1.55rem;
  color: var(--sihnag-blue);
}
.upload-dropzone strong {
  display: block;
  color: var(--sihnag-text);
}
.upload-dropzone span {
  display: block;
  font-size: 0.82rem;
  color: var(--sihnag-muted);
}
.upload-dropzone .form-control {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-file-name {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--sihnag-muted);
}
.upload-cover-panel {
  padding: 0.85rem;
  border: 1px solid var(--sihnag-border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
}
.upload-cover-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 0.85rem;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(56, 116, 255, 0.08);
}
.upload-cover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.upload-cover-preview-wrap.has-preview .upload-cover-preview,
.upload-cover-preview:not([hidden]) {
  display: block;
}
.upload-cover-preview-wrap.has-preview .upload-cover-placeholder {
  display: none;
}
.upload-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--sihnag-muted);
  font-size: 0.85rem;
}
.upload-cover-placeholder i {
  font-size: 1.6rem;
  color: var(--sihnag-blue);
}
.upload-cover-status {
  font-size: 0.86rem;
  color: var(--sihnag-muted);
  text-align: center;
}
.upload-cover-status[data-tone="ok"] {
  color: #0d9488;
}
.upload-cover-status[data-tone="busy"] {
  color: var(--sihnag-blue);
}
.upload-cover-status[data-tone="error"] {
  color: #dc2626;
}
.upload-featured-check {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(56, 116, 255, 0.06);
  border: 1px solid rgba(56, 116, 255, 0.12);
}
.upload-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.upload-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.upload-progress-overlay.d-none,
.upload-progress-overlay[hidden] {
  display: none !important;
}
.upload-progress-card {
  max-width: 520px;
  width: 100%;
}

/* Feedback management */
.feedback-list-card {
  overflow: hidden;
  padding: 0;
}
.feedback-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.feedback-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.feedback-search-field {
  flex: 1 1 220px;
  min-width: min(100%, 200px);
}
.feedback-filters .form-select,
.feedback-date {
  max-width: 150px;
}
.feedback-toolbar-meta {
  font-size: 0.88rem;
}
.feedback-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sihnag-muted);
  white-space: nowrap;
  padding: 0.85rem 1rem;
  border-bottom-color: var(--sihnag-border);
}
.feedback-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom-color: var(--sihnag-border);
}
.feedback-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 120px;
}
.feedback-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.14);
  color: var(--sihnag-blue);
  font-weight: 750;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.feedback-pub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 140px;
}
.feedback-pub strong {
  color: var(--sihnag-text);
  line-height: 1.25;
}
.feedback-rating-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.feedback-stars {
  display: inline-flex;
  gap: 0.08rem;
  color: #f59e0b;
  font-size: 0.85rem;
}
.feedback-rating-num {
  font-size: 0.78rem;
  color: var(--sihnag-muted);
  font-weight: 650;
}
.feedback-comment {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 240px;
  color: var(--sihnag-text);
  line-height: 1.35;
}
.feedback-badge-visible {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}
.feedback-badge-hidden {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}
.feedback-date {
  color: var(--sihnag-muted);
  white-space: nowrap;
  font-size: 0.88rem;
}
.feedback-avg-card {
  padding: 1.15rem 1.2rem 1.25rem;
}
.feedback-avg-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.feedback-avg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.feedback-avg-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.feedback-avg-meta {
  min-width: 0;
}
.feedback-avg-meta strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 0.92rem;
  line-height: 1.3;
}
.feedback-avg-meta span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
}
.feedback-avg-score {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--sihnag-blue);
  font-size: 1.05rem;
}
.feedback-avg-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.feedback-avg-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3874ff, #7c3aed);
}

/* Reports */
.reports-stat-sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--sihnag-muted);
  font-weight: 600;
}
.reports-export-card {
  padding: 1.15rem 1.25rem 1.25rem;
}
.reports-export-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.reports-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.reports-panel {
  padding: 1.15rem 1.2rem 1.25rem;
}
.reports-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.upload-section-icon.tone-amber {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}
.reports-rank-list,
.reports-score-list,
.reports-month-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.reports-rank-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.reports-rank-index {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.reports-rank-meta {
  flex: 1;
  min-width: 0;
}
.reports-rank-meta strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--sihnag-text);
  margin-bottom: 0.35rem;
}
.reports-rank-value {
  flex-shrink: 0;
  font-weight: 750;
  color: var(--sihnag-muted);
  font-size: 0.88rem;
}
.reports-rank-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.reports-rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3874ff, #5b8cff);
}
.reports-rank-bar.tone-violet span {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.reports-rank-bar.tone-teal span {
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
}
.reports-score-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.reports-score-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.reports-score-list strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 0.92rem;
}
.reports-score-list li > div span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
}
.reports-score {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}
.reports-score.high {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}
.reports-score.low {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}
.reports-month-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.reports-month-row span {
  color: var(--sihnag-muted);
}
.reports-month-row strong {
  color: var(--sihnag-text);
}
.reports-summary-card {
  padding-bottom: 0.5rem;
}
.reports-summary-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sihnag-muted);
  border-bottom-color: var(--sihnag-border);
}
.reports-summary-table td {
  vertical-align: middle;
  border-bottom-color: var(--sihnag-border);
}
.reports-summary-avg {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 750;
  color: #d97706;
}

/* Analytics */
.analytics-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
}
.analytics-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
  font-size: 1.2rem;
}
.analytics-highlight-icon.tone-teal {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}
.analytics-highlight-label {
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sihnag-muted);
  margin-bottom: 0.2rem;
}
.analytics-highlight-card strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 1.02rem;
  line-height: 1.3;
}
.analytics-highlight-card span:last-child {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: var(--sihnag-muted);
  font-weight: 650;
}
.analytics-section {
  margin-bottom: 1.75rem;
}
.analytics-section-head {
  margin-bottom: 0.85rem;
}
.analytics-section-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.analytics-section-head p {
  margin: 0.2rem 0 0;
  color: var(--sihnag-muted);
  font-size: 0.9rem;
}
.analytics-chart-card {
  padding: 1.1rem 1.15rem 1.2rem;
}
.analytics-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.analytics-chart-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--sihnag-text);
}
.analytics-chart-head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--sihnag-muted);
}
.analytics-chart-head > i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.1);
  color: var(--sihnag-blue);
  flex-shrink: 0;
}
.analytics-chart-body {
  position: relative;
  height: 280px;
}
.analytics-chart-body-sm {
  height: 240px;
}
.analytics-chart-body-wide {
  height: 300px;
}

/* Settings */
.settings-preview-card {
  overflow: hidden;
  padding: 0;
}
.settings-preview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--settings-theme) 88%, #0f172a), color-mix(in srgb, var(--settings-theme) 55%, #1e3a8a));
  color: #fff;
}
.settings-preview-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.settings-preview-logo,
.settings-preview-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.settings-preview-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.settings-preview-brand strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.25;
}
.settings-preview-brand span {
  display: block;
  font-size: 0.82rem;
  opacity: 0.85;
}
.settings-theme-chip {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.settings-preview-body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.settings-preview-body > p {
  color: var(--sihnag-text);
  line-height: 1.5;
}
.settings-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: var(--sihnag-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.settings-preview-meta i {
  margin-right: 0.3rem;
  color: var(--sihnag-blue);
}
.settings-side-card {
  padding: 1.15rem 1.2rem 1.25rem;
}
.settings-featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.settings-featured-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.settings-featured-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.settings-featured-list strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 0.92rem;
}
.settings-featured-list span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
}
.settings-logo-upload {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.settings-logo-thumb,
.settings-logo-thumb-empty {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(56, 116, 255, 0.1);
}
.settings-logo-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sihnag-blue);
  font-size: 1.3rem;
}
.settings-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}
.settings-theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--sihnag-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: rgba(148, 163, 184, 0.05);
}
.settings-theme-option:hover,
.settings-theme-option.is-selected {
  border-color: rgba(56, 116, 255, 0.45);
  background: rgba(56, 116, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(56, 116, 255, 0.08);
}
.settings-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.settings-theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.settings-theme-copy {
  min-width: 0;
}
.settings-theme-copy strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 0.92rem;
}
.settings-theme-copy span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
}

/* Activity logs */
.activity-list-card {
  overflow: hidden;
  padding: 0;
}
.activity-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--sihnag-border);
}
.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.activity-search-field {
  flex: 1 1 220px;
  min-width: min(100%, 200px);
}
.activity-filters .form-select,
.activity-date {
  max-width: 180px;
}
.activity-toolbar-meta {
  font-size: 0.88rem;
  font-weight: 600;
}
.activity-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sihnag-muted);
  white-space: nowrap;
  padding: 0.85rem 1rem;
  border-bottom-color: var(--sihnag-border);
}
.activity-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom-color: var(--sihnag-border);
}
.activity-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 150px;
}
.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 116, 255, 0.14);
  color: var(--sihnag-blue);
  font-weight: 750;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.activity-user strong {
  display: block;
  color: var(--sihnag-text);
  line-height: 1.25;
}
.activity-user span {
  display: block;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
}
.activity-action-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}
.activity-action-badge.tone-blue {
  background: rgba(56, 116, 255, 0.12);
  color: var(--sihnag-blue);
}
.activity-action-badge.tone-success {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
}
.activity-action-badge.tone-violet {
  background: rgba(124, 58, 237, 0.14);
  color: #7c3aed;
}
.activity-action-badge.tone-danger {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
}
.activity-action-badge.tone-muted {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}
.activity-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 420px;
  color: var(--sihnag-text);
  line-height: 1.35;
}
.activity-when strong {
  display: block;
  color: var(--sihnag-text);
  font-size: 0.9rem;
}
.activity-when span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--sihnag-muted);
  white-space: nowrap;
}

@media print {
  .admin-sidebar,
  .admin-topbar,
  .admin-qa-fab,
  .admin-qa-panel,
  .reports-export-card,
  [data-print-page] {
    display: none !important;
  }
  .admin-content,
  .reports-page {
    padding: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .publications-filters .form-select {
    max-width: none;
    flex: 1;
  }
  .feedback-filters .form-select,
  .feedback-date {
    max-width: none;
    flex: 1 1 140px;
  }
  .analytics-chart-body,
  .analytics-chart-body-sm,
  .analytics-chart-body-wide {
    height: 240px;
  }
  .settings-preview-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .activity-filters .form-select,
  .activity-date {
    max-width: none;
    flex: 1 1 140px;
  }
}

@media (max-width: 575.98px) {
  .admin-qa-fab-label {
    display: none;
  }
  .admin-qa-fab {
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .settings-logo-upload {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .users-actions .btn span {
    display: none;
  }
  .users-toolbar {
    align-items: stretch;
  }
  .users-toolbar-meta {
    width: 100%;
  }
  .users-filter-select {
    max-width: none;
    flex: 1 1 120px;
  }
}
