/* Theme selector --------------------------------------------------------- */

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.theme-switcher button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-switcher button:hover {
  transform: translateY(-1px);
}

.theme-switcher button.is-active {
  background: #fff;
  box-shadow: 0 4px 13px rgba(20, 32, 58, 0.16);
}

.theme-switcher button:focus-visible {
  outline: 3px solid rgba(42, 121, 255, 0.25);
  outline-offset: 2px;
}

.theme-swatch {
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 34, 55, 0.14);
}

.theme-swatch-blue {
  background: linear-gradient(135deg, #071a33, #2478ff 62%, #78d8ff);
}

.theme-swatch-rose {
  background: linear-gradient(135deg, #331126, #c7456d 62%, #f1c8d6);
}

.mobile-theme-picker {
  display: none;
}

.site-language-picker {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 7px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--plum);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.site-language-picker > span:first-child {
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.site-language-picker select {
  max-width: 72px;
  padding: 0 17px 0 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.site-language-picker:focus-within {
  outline: 3px solid rgba(42, 121, 255, 0.22);
  outline-offset: 2px;
}

.mobile-language-picker {
  display: none;
}

html,
body,
.site-header,
.glass-card,
.button,
.brand-mark,
.feature-card,
.profile-card,
.site-footer {
  transition: color 0.28s ease, background-color 0.28s ease,
    border-color 0.28s ease, box-shadow 0.28s ease;
}

/* Midnight Sapphire ----------------------------------------------------- */

html[data-theme="midnight"] {
  color-scheme: light;
  --ink: #0b1728;
  --muted: #607087;
  --cream: #f3f7fc;
  --paper: #ffffff;
  --line: rgba(30, 67, 114, 0.14);
  --plum: #0c315f;
  --plum-dark: #06182e;
  --rose: #2778f6;
  --rose-light: #dceaff;
  --gold: #d3aa61;
  --sage: #188e87;
  --indigo: #153d7a;
  --shadow: 0 28px 90px rgba(13, 43, 84, 0.14);
  --shadow-soft: 0 16px 48px rgba(18, 54, 99, 0.09);
}

html[data-theme="midnight"] body {
  background:
    radial-gradient(circle at 11% 8%, rgba(36, 120, 255, 0.14), transparent 29rem),
    radial-gradient(circle at 94% 48%, rgba(81, 190, 235, 0.12), transparent 33rem),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

html[data-theme="midnight"] body::before {
  opacity: 0.14;
}

html[data-theme="midnight"] .site-orb-one {
  background: #2478ff;
  opacity: 0.18;
}

html[data-theme="midnight"] .site-orb-two {
  background: #54c4e8;
  opacity: 0.13;
}

html[data-theme="midnight"] .site-header {
  background: rgba(244, 248, 253, 0.78);
}

html[data-theme="midnight"] .site-header.is-scrolled {
  box-shadow: 0 10px 36px rgba(16, 49, 91, 0.08);
}

html[data-theme="midnight"] .brand-mark {
  background: transparent;
  box-shadow: none;
}

html[data-theme="midnight"] .glass-card {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 48px rgba(18, 54, 99, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="midnight"] .nav-link {
  color: #43546d;
}

html[data-theme="midnight"] .nav-link:hover,
html[data-theme="midnight"] .nav-link.is-active {
  color: #0d4386;
}

html[data-theme="midnight"] .nav-link::after {
  background: linear-gradient(90deg, #2478ff, #62c8f0);
}

html[data-theme="midnight"] .button-primary {
  background: linear-gradient(135deg, #2478ff, #0c438d 68%, #082b59);
  box-shadow: 0 15px 32px rgba(31, 103, 211, 0.24);
}

html[data-theme="midnight"] .button-primary:hover {
  box-shadow: 0 20px 40px rgba(31, 103, 211, 0.32);
}

html[data-theme="midnight"] .button-ghost {
  color: #0d4386;
  border-color: rgba(19, 72, 139, 0.17);
}

html[data-theme="midnight"] .trust-pill {
  color: #123e76;
  border-color: rgba(39, 120, 246, 0.18);
}

html[data-theme="midnight"] .trust-pill-icon,
html[data-theme="midnight"] .play-dot {
  background: linear-gradient(145deg, #4da5ff, #206ce1);
  box-shadow: 0 10px 24px rgba(32, 108, 225, 0.24);
}

html[data-theme="midnight"] .hero-halo {
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 255, 255, 0.88), transparent 17%),
    linear-gradient(145deg, rgba(104, 188, 240, 0.68), rgba(20, 66, 135, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 35px 90px rgba(16, 61, 123, 0.17);
}

html[data-theme="midnight"] .match-card {
  background: rgba(250, 253, 255, 0.86);
  box-shadow: 0 38px 105px rgba(8, 35, 75, 0.26);
}

html[data-theme="midnight"] .match-portrait {
  background:
    linear-gradient(180deg, transparent 55%, rgba(6, 31, 68, 0.3)),
    radial-gradient(circle at 50% 33%, #d9edff 0 13%, transparent 13.5%),
    linear-gradient(145deg, #b9e2fb, #387bcc);
}

html[data-theme="midnight"] .compatibility-bubble {
  background: rgba(5, 28, 61, 0.76);
}

html[data-theme="midnight"] .match-tags span,
html[data-theme="midnight"] .profile-facts span {
  color: #56687f;
  background: #edf4fc;
}

html[data-theme="midnight"] .search-panel {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 65px rgba(18, 59, 109, 0.13);
}

html[data-theme="midnight"] .search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(71, 150, 255, 0.06), transparent 55%);
}

html[data-theme="midnight"] .trust-strip {
  background: rgba(234, 243, 253, 0.6);
}

html[data-theme="midnight"] .feature-card-emphasis {
  background:
    radial-gradient(circle at 82% 12%, rgba(91, 185, 236, 0.18), transparent 32%),
    linear-gradient(155deg, #124786, #061b36 75%);
}

html[data-theme="midnight"] .feature-card-emphasis .feature-symbol {
  color: #8bd8ff;
}

html[data-theme="midnight"] .feature-card-emphasis a {
  color: #8bd8ff;
}

html[data-theme="midnight"] .profiles-section,
html[data-theme="midnight"] .process-long-section {
  background: rgba(230, 240, 252, 0.5);
}

html[data-theme="midnight"] .profile-visual-rose {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.58), transparent 30%),
    linear-gradient(145deg, #bfe4fb, #397ac3);
}

html[data-theme="midnight"] .profile-visual-indigo {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.5), transparent 27%),
    linear-gradient(145deg, #cadbf2, #315e9e);
}

html[data-theme="midnight"] .journey-card {
  background:
    radial-gradient(circle at 88% 15%, rgba(91, 188, 239, 0.2), transparent 27%),
    linear-gradient(145deg, #0c3c78, #04152b 78%);
  box-shadow: 0 38px 105px rgba(5, 31, 68, 0.27);
}

html[data-theme="midnight"] .section-kicker-light,
html[data-theme="midnight"] .journey-steps article > span,
html[data-theme="midnight"] .preference-panel .panel-kicker {
  color: #8fdcff;
}

html[data-theme="midnight"] .compatibility-visual {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(145deg, #c5e7fb, #6aabe0);
}

html[data-theme="midnight"] .meter-row b {
  background: linear-gradient(90deg, #2478ff, #5ccce9);
}

html[data-theme="midnight"] .compatibility-note {
  background: #f4f9ff;
  border-color: rgba(39, 120, 246, 0.15);
}

html[data-theme="midnight"] .cta-card {
  background:
    radial-gradient(circle at 92% 20%, rgba(67, 153, 255, 0.18), transparent 29%),
    rgba(255, 255, 255, 0.7);
}

html[data-theme="midnight"] .site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(43, 119, 221, 0.18), transparent 28rem),
    #041426;
}

html[data-theme="midnight"] .footer-grid a:hover {
  color: #78d8ff;
}

html[data-theme="midnight"] .filters-card,
html[data-theme="midnight"] .registration-card,
html[data-theme="midnight"] .contact-form,
html[data-theme="midnight"] .legal-card {
  background: rgba(255, 255, 255, 0.76);
}

html[data-theme="midnight"] .privacy-filter-note,
html[data-theme="midnight"] .review-notice {
  background: #eef7ff;
  border-color: rgba(39, 120, 246, 0.12);
}

html[data-theme="midnight"] .rose-detail {
  background: linear-gradient(145deg, #c5e9fc, #3e7fc6);
}

html[data-theme="midnight"] .indigo-detail {
  background: linear-gradient(145deg, #d5e4f5, #315d98);
}

html[data-theme="midnight"] .preference-panel,
html[data-theme="midnight"] .contact-card-accent,
html[data-theme="midnight"] .pricing-featured,
html[data-theme="midnight"] .story-card-dark {
  background:
    radial-gradient(circle at 88% 10%, rgba(81, 180, 234, 0.18), transparent 32%),
    linear-gradient(145deg, #0b4487, #06182e 78%);
}

html[data-theme="midnight"] .interest-panel {
  background: linear-gradient(145deg, #1767c8, #082d61 66%, #06182e);
}

html[data-theme="midnight"] .reference-box {
  background: #edf5ff;
  border-color: rgba(39, 120, 246, 0.3);
}

html[data-theme="midnight"] .choice-card input:checked + span {
  background: linear-gradient(135deg, #2478ff, #0c438d);
  border-color: #1f6bd9;
  box-shadow: 0 10px 22px rgba(31, 107, 217, 0.22);
}

html[data-theme="midnight"] .progress-track i {
  background: linear-gradient(90deg, #2478ff, #62c8f0);
}

html[data-theme="midnight"] .progress-dots span.active {
  background: #155cad;
}

html[data-theme="midnight"] .form-alert {
  color: #174d88;
  background: #e7f2ff;
  border-color: rgba(39, 120, 246, 0.14);
}

html[data-theme="midnight"] .faq-list details,
html[data-theme="midnight"] .values-grid article,
html[data-theme="midnight"] .safety-grid article,
html[data-theme="midnight"] .pricing-card:not(.pricing-featured) {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="midnight"] .admin-header {
  background: #041426;
}

html[data-theme="midnight"] .admin-body {
  background: #edf3fa;
}

html[data-theme="midnight"] .admin-tabs a.active {
  background: #0c438d;
}

@media (max-width: 900px) {
  html[data-theme="midnight"] .mobile-menu {
    background: rgba(248, 252, 255, 0.98);
  }
}

@media (max-width: 640px) {
  .header-actions > .theme-switcher {
    display: none;
  }

  .mobile-theme-picker {
    display: grid;
    gap: 8px;
    padding: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .mobile-theme-picker > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-theme-picker .theme-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 13px;
  }

  .mobile-theme-picker .theme-switcher button {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 750;
  }
}

@media (max-width: 900px) {
  .mobile-language-picker {
    display: grid;
    gap: 7px;
    padding: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .mobile-language-picker > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-language-picker .site-language-picker {
    width: 100%;
    border-radius: 12px;
  }

  .mobile-language-picker .site-language-picker select {
    width: 100%;
    max-width: none;
  }

  .mobile-language-picker small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
  }
}

@media (max-width: 560px) {
  .header-actions > .site-language-picker {
    display: none;
  }
}

/* Midnight operations portal */
.admin-portal-body {
  min-height: 100vh;
  margin: 0;
  background: #eef4fb;
  color: #122b49;
}

.admin-portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 10%, rgba(52, 137, 255, 0.24), transparent 31%),
    radial-gradient(circle at 86% 78%, rgba(99, 206, 240, 0.12), transparent 35%),
    linear-gradient(165deg, #071f3f, #041326 72%);
  border-right: 1px solid rgba(138, 197, 255, 0.16);
  box-shadow: 16px 0 48px rgba(3, 20, 43, 0.08);
  z-index: 10;
}

.admin-sidebar-brand {
  padding: 0 10px 26px;
}

.admin-sidebar-brand .brand-copy strong,
.admin-sidebar-brand .brand-copy small {
  color: #fff;
}

.admin-sidebar-brand .brand-copy small {
  opacity: 0.55;
}

.admin-sidebar-nav {
  display: grid;
  gap: 7px;
}

.admin-sidebar-nav a {
  min-height: 47px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(234, 245, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  transition: 180ms ease;
}

.admin-sidebar-nav a > span {
  color: #69c9f0;
  font-size: 17px;
  text-align: center;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(46, 126, 242, 0.25), rgba(40, 172, 230, 0.1));
  border-color: rgba(115, 194, 255, 0.16);
  transform: translateX(2px);
}

.admin-sidebar-nav a.active {
  box-shadow: inset 3px 0 #58c6f0, 0 10px 30px rgba(0, 0, 0, 0.12);
}

.admin-sidebar-nav b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2e7ef2;
  color: #fff;
  font-size: 10px;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid rgba(171, 216, 255, 0.12);
}

.admin-user-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.admin-user-card > span,
.admin-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 210, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(60, 143, 255, 0.28), rgba(75, 201, 237, 0.12));
  color: #dff7ff;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-card strong,
.admin-user-card small {
  display: block;
}

.admin-user-card strong {
  font-size: 12px;
}

.admin-user-card small {
  margin-top: 2px;
  color: rgba(218, 239, 255, 0.55);
  font-size: 10px;
}

.admin-sidebar-footer form button {
  width: 100%;
  padding: 10px;
  margin-top: 13px;
  border: 1px solid rgba(155, 206, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(230, 243, 255, 0.72);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.admin-workspace {
  min-width: 0;
  padding: 38px clamp(22px, 4vw, 64px) 70px;
}

.admin-topbar {
  margin-bottom: 27px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}

.admin-topbar h1 {
  margin: 5px 0 6px;
  color: #08264b;
  font-family: var(--font-display);
  font-size: clamp(29px, 3vw, 42px);
  letter-spacing: -0.035em;
}

.admin-topbar p,
.admin-profile-heading p,
.admin-panel > p {
  margin: 0;
  color: #6c7f95;
  font-size: 13px;
  line-height: 1.65;
}

.admin-topbar-actions {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 11px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.admin-stat-card {
  min-height: 145px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(26, 91, 161, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(36, 120, 255, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(20, 62, 109, 0.07);
  color: #183a62;
  transition: 180ms ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 120, 255, 0.25);
  box-shadow: 0 20px 52px rgba(20, 62, 109, 0.11);
}

.admin-stat-card > span {
  color: #647d99;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  margin: 13px 0 9px;
  color: #0d3768;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.admin-stat-card small {
  margin-top: auto;
  color: #8293a6;
  font-size: 10px;
}

.admin-stat-card.accent-amber { background: radial-gradient(circle at 100% 0, rgba(232, 172, 65, 0.16), transparent 48%), rgba(255,255,255,.88); }
.admin-stat-card.accent-green { background: radial-gradient(circle at 100% 0, rgba(52, 177, 132, 0.14), transparent 48%), rgba(255,255,255,.88); }
.admin-stat-card.accent-cyan { background: radial-gradient(circle at 100% 0, rgba(63, 187, 222, 0.16), transparent 48%), rgba(255,255,255,.88); }
.admin-stat-card.accent-violet { background: radial-gradient(circle at 100% 0, rgba(118, 103, 222, 0.14), transparent 48%), rgba(255,255,255,.88); }

.admin-dashboard-grid,
.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.admin-panel,
.admin-table-card {
  border: 1px solid rgba(29, 93, 165, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(19, 62, 111, 0.065);
}

.admin-panel {
  padding: 25px;
}

.admin-panel-head,
.admin-profile-heading,
.admin-table-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.admin-panel-head {
  margin-bottom: 18px;
}

.admin-panel h2,
.admin-profile-heading h2 {
  margin: 4px 0 0;
  color: #11365f;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.admin-panel-head a,
.admin-profile-heading a,
.admin-table-link {
  color: #1f6fcf;
  font-size: 11px;
  font-weight: 800;
}

.admin-compact-list {
  display: grid;
}

.admin-compact-list > a,
.admin-staff-list > div {
  min-width: 0;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf2f7;
  color: #1b3d64;
}

.admin-compact-list > a:first-child,
.admin-staff-list > div:first-child {
  border-top: 0;
}

.admin-compact-list strong,
.admin-compact-list small,
.admin-staff-list strong,
.admin-staff-list small {
  display: block;
}

.admin-compact-list strong,
.admin-staff-list strong {
  font-size: 12px;
}

.admin-compact-list small,
.admin-staff-list small {
  margin-top: 3px;
  color: #8190a2;
  font-size: 10px;
  line-height: 1.5;
}

.admin-compact-list b {
  color: #2676d6;
  font-size: 10px;
}

.admin-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-activity-list li {
  position: relative;
  min-height: 51px;
  padding: 3px 0 14px 26px;
}

.admin-activity-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -3px;
  width: 1px;
  background: #dce8f5;
}

.admin-activity-list li:last-child::before { display: none; }
.admin-activity-list li > span { position: absolute; left: 1px; top: 8px; width: 11px; height: 11px; border: 3px solid #dcebfa; border-radius: 50%; background: #2a7ddd; }
.admin-activity-list strong,
.admin-activity-list small { display: block; }
.admin-activity-list strong { color: #254665; font-size: 11px; line-height: 1.45; }
.admin-activity-list small { margin-top: 3px; color: #8898a9; font-size: 9px; }

.admin-filter-bar {
  padding: 16px;
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px auto auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(29, 93, 165, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.admin-filter-compact {
  grid-template-columns: 190px auto;
  justify-content: start;
}

.admin-filter-bar label > span {
  display: block;
  margin: 0 0 6px 2px;
  color: #637c98;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-inline-status select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d6e2ef;
  border-radius: 11px;
  background: #fff;
  color: #244663;
  font: inherit;
  font-size: 11px;
}

.admin-table-card {
  overflow: hidden;
}

.admin-table-summary {
  padding: 18px 20px;
  border-bottom: 1px solid #e8eff6;
}

.admin-table-summary strong { color: #153a63; font-size: 13px; }
.admin-table-summary span { color: #8392a3; font-size: 10px; }
.admin-table-scroll { overflow-x: auto; }
.admin-table-card table { width: 100%; border-collapse: collapse; }
.admin-table-card th,
.admin-table-card td { padding: 15px 18px; border-bottom: 1px solid #edf2f7; text-align: left; vertical-align: middle; }
.admin-table-card th { color: #778ca2; background: #f9fbfd; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-table-card td { color: #34526f; font-size: 11px; }
.admin-table-card td strong,
.admin-table-card td small { display: block; }
.admin-table-card td strong { color: #173b60; font-size: 11px; }
.admin-table-card td small { margin-top: 4px; color: #8a99aa; font-size: 9px; }
.admin-message-cell { min-width: 260px; max-width: 430px; white-space: normal; line-height: 1.55; }

.admin-status {
  width: fit-content;
  padding: 6px 9px;
  display: inline-flex;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-status.status-approved { color: #137155; background: #e4f7ef; }
.admin-status.status-pending { color: #95641a; background: #fff3d9; }
.admin-status.status-paused { color: #606f7d; background: #edf1f5; }
.admin-status.status-rejected { color: #a13f50; background: #fbe9ec; }

.admin-inline-status {
  min-width: 166px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}

.admin-inline-status select { height: 34px; padding: 0 8px; }
.admin-inline-status button,
.admin-staff-list button { padding: 0 10px; border: 0; border-radius: 9px; background: #e9f2fc; color: #1c65bb; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }

.admin-empty-state {
  padding: 26px;
  color: #7f90a2;
  text-align: center;
  font-size: 12px;
}

.admin-profile-heading {
  padding: 21px 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(29, 93, 165, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
}

.admin-profile-heading .admin-status { margin-left: 10px; }
.admin-profile-heading h2 { font-size: 25px; }
.admin-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.admin-editor-main { display: grid; gap: 18px; }
.admin-editor-side { display: grid; gap: 18px; }
.admin-sticky-panel { position: sticky; top: 20px; }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-grid .field,
.admin-settings-grid > form > .field,
.admin-sticky-panel > .field {
  margin: 0;
}

.admin-span-2 { grid-column: span 2; }
.admin-panel .field > span { color: #526f8c; font-size: 10px; }
.admin-panel .field input,
.admin-panel .field select,
.admin-panel .field textarea {
  border-color: #d7e3ef;
  background: #fbfdff;
  color: #203f5e;
  font-size: 12px;
}
.admin-panel .field textarea { resize: vertical; }
.admin-panel .field small { display: block; margin-top: 5px; color: #8a99aa; font-size: 9px; }

.admin-create-privacy {
  margin: 14px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  color: #7f90a2 !important;
  font-size: 10px !important;
  line-height: 1.6 !important;
}

.admin-pagination {
  margin: 0;
  border: 0;
  border-top: 1px solid #e8eff6;
  border-radius: 0;
  background: #f9fbfd;
}

.admin-pagination a {
  background: #176dcc;
}

.admin-check {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
}

.admin-check input { width: 17px; height: 17px; accent-color: #2478ff; }
.admin-check strong,
.admin-check small { display: block; }
.admin-check strong { color: #244664; font-size: 11px; }
.admin-check small { margin-top: 3px; color: #8a99aa; font-size: 9px; line-height: 1.5; }

.admin-answer-list { margin: 12px 0 0; }
.admin-answer-list > div { padding: 11px 0; border-top: 1px solid #edf2f7; }
.admin-answer-list dt { color: #8191a2; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.admin-answer-list dd { margin: 4px 0 0; color: #2a4a69; font-size: 11px; line-height: 1.5; }

.admin-seo-health ul { padding: 0; margin: 18px 0 22px; list-style: none; }
.admin-seo-health li { padding: 12px 0; display: grid; grid-template-columns: 28px 1fr; gap: 10px; border-top: 1px solid #edf2f7; }
.admin-seo-health li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e3f6ee; color: #17815e; font-size: 10px; font-weight: 900; }
.admin-seo-health strong,
.admin-seo-health small { display: block; }
.admin-seo-health strong { color: #244665; font-size: 11px; }
.admin-seo-health small { margin-top: 3px; color: #8796a7; font-size: 9px; line-height: 1.5; }

.admin-staff-list > div { grid-template-columns: 42px minmax(0, 1fr) auto; }
.admin-staff-list button { height: 30px; color: #9a4d5a; background: #fae9ec; }
.admin-staff-list button.active { color: #167255; background: #e4f7ef; }
.admin-staff-list button:disabled { opacity: .5; cursor: not-allowed; }

.admin-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px;
  align-items: start;
}

.admin-import-upload > p {
  margin: 8px 0 20px;
}

.admin-template-download {
  min-height: 76px;
  padding: 13px 15px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #cfe1f3;
  border-radius: 15px;
  background: linear-gradient(135deg, #f5faff, #edf6ff);
  color: #183f69;
}

.admin-template-download > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1b6bc5;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.admin-template-download strong,
.admin-template-download small {
  display: block;
}

.admin-template-download strong { font-size: 12px; }
.admin-template-download small { margin-top: 4px; color: #7c8fa3; font-size: 9px; line-height: 1.4; }
.admin-template-download > b { color: #2676d6; font-size: 18px; }

.admin-file-drop {
  min-height: 145px;
  padding: 24px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #8db8e4;
  border-radius: 17px;
  background: rgba(232, 244, 255, .54);
  text-align: center;
  cursor: pointer;
}

.admin-file-drop input {
  width: min(100%, 320px);
  color: #52708e;
  font-size: 10px;
}

.admin-file-drop > span { color: #184d83; font-size: 13px; font-weight: 850; }
.admin-file-drop > small { color: #8293a6; font-size: 9px; }
.admin-import-privacy { color: #8495a7 !important; font-size: 9px !important; text-align: center; }

.admin-import-guide > ol {
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.admin-import-guide > ol li {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  border-top: 1px solid #edf2f7;
}

.admin-import-guide > ol li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e7f2ff;
  color: #1f6fcf;
  font-size: 10px;
  font-weight: 900;
}

.admin-import-guide strong,
.admin-import-guide small { display: block; }
.admin-import-guide strong { color: #244665; font-size: 11px; }
.admin-import-guide small { margin-top: 3px; color: #8696a7; font-size: 9px; line-height: 1.55; }
.admin-import-note { padding: 14px; border-radius: 13px; background: #eef6ff; }
.admin-import-note p { margin: 5px 0 0; color: #6f849a; font-size: 10px; line-height: 1.55; }

.admin-import-report,
.admin-import-errors {
  margin-bottom: 18px;
}

.admin-import-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-color: #bfe7d6;
  background: linear-gradient(135deg, #f4fff9, #f8fcff);
}

.admin-import-report > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
}

.admin-import-report > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff6ec;
  color: #137155;
  font-weight: 900;
}

.admin-import-report strong,
.admin-import-report small { display: block; }
.admin-import-report strong { color: #17644e; font-size: 13px; }
.admin-import-report small { margin-top: 2px; color: #719282; font-size: 9px; }
.admin-import-report > p { grid-column: 1 / -1; margin: 0; color: #657b8e; font-size: 10px; overflow-wrap: anywhere; }
.admin-import-errors ol { margin: 13px 0 0; padding-left: 20px; color: #8a3f4c; font-size: 10px; line-height: 1.7; }

.admin-login-page {
  background:
    radial-gradient(circle at 15% 8%, rgba(36, 120, 255, .34), transparent 32%),
    radial-gradient(circle at 80% 88%, rgba(86, 205, 239, .16), transparent 34%),
    linear-gradient(150deg, #08284f, #031222 72%);
}

.admin-login-shell > .brand { margin-bottom: 24px; }
.admin-login-card { border-color: rgba(140, 201, 255, .25); background: rgba(250, 253, 255, .92); box-shadow: 0 35px 100px rgba(0, 0, 0, .3); }

@media (max-width: 1280px) {
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1040px) {
  .admin-portal { grid-template-columns: 86px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 12px; }
  .admin-sidebar-brand .brand-copy,
  .admin-sidebar-nav a:not(.active) > b,
  .admin-sidebar-nav a { font-size: 0; }
  .admin-sidebar-brand .brand-copy { display: none; }
  .admin-sidebar-brand { justify-content: center; padding-inline: 0; }
  .admin-sidebar-nav a { grid-template-columns: 1fr; place-items: center; padding: 0; }
  .admin-sidebar-nav a > span { font-size: 19px; }
  .admin-sidebar-nav a b { position: absolute; transform: translate(16px, -15px); font-size: 8px; }
  .admin-user-card { grid-template-columns: 1fr; place-items: center; }
  .admin-user-card > div { display: none; }
  .admin-dashboard-grid,
  .admin-settings-grid,
  .admin-import-grid,
  .admin-editor-grid { grid-template-columns: 1fr; }
  .admin-sticky-panel { position: static; }
}

@media (max-width: 760px) {
  .admin-portal { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; padding: 14px; display: block; }
  .admin-sidebar-brand,
  .admin-sidebar-footer { display: none; }
  .admin-sidebar-nav { grid-template-columns: repeat(5, 1fr); }
  .admin-sidebar-nav a { min-height: 42px; }
  .admin-sidebar-nav a:nth-child(n+6) { display: none; }
  .admin-workspace { padding: 24px 14px 50px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar-actions { display: none; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stat-card { min-height: 125px; }
  .admin-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar label:first-of-type { grid-column: span 2; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-span-2 { grid-column: span 1; }
  .admin-profile-heading { align-items: flex-start; }
  .admin-import-report { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-topbar h1 { font-size: 29px; }
  .admin-profile-heading { display: grid; }
  .admin-filter-bar { display: grid; grid-template-columns: 1fr; }
  .admin-filter-bar label:first-of-type { grid-column: span 1; }
  .admin-panel { padding: 19px; }
}

.admin-status.status-active,.admin-status.status-published { color:#137155; background:#e4f7ef; }
.admin-status.status-in_progress,.admin-status.status-draft { color:#95641a; background:#fff3d9; }
.admin-status.status-inactive,.admin-status.status-archived { color:#6b7280; background:#edf1f5; }
