:root {
  --brand-950: #0c1633;
  --brand-900: #111f45;
  --brand-800: #172c63;
  --brand-500: #2563eb;
  --brand-400: #38bdf8;
  --brand-200: #e0f2fe;
  --neutral-900: #0f172a;
  --neutral-700: #1f2940;
  --neutral-500: #475569;
  --neutral-300: #cbd5f5;
  --neutral-200: #d9e2f4;
  --neutral-100: #eef3fb;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-muted: rgba(255, 255, 255, 0.6);
  --shadow-soft: 0 24px 48px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 12px 60px rgba(56, 189, 248, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: 0.26s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--neutral-900);
  background: radial-gradient(140% 140% at 100% 0%, rgba(37, 99, 235, 0.25) 0%, rgba(14, 24, 45, 0) 50%), linear-gradient(180deg, #f5f7ff 0%, #eef3fb 40%, #e7edf9 100%);
  min-height: 100vh;
}

body.app-shell {
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 80% at 20% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 60%);
  z-index: -2;
}

body.home-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/images/7ER9uKtYDFNYr6jhjiSqS.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100vh;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: top var(--transition);
  z-index: 999;
}

.skip-link:focus {
  top: 16px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.site-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: block;
}

.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand-900);
}

.section-heading p {
  margin: 0;
  color: var(--neutral-500);
  font-size: 1.05rem;
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  background: rgba(12, 22, 51, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.site-header .container.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
}

.logo img {
  height: 42px;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.45));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.main-nav__primary,
.main-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
  padding: 8px 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.6), rgba(56, 189, 248, 0));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  padding: 10px 22px;
}

.nav-action--ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.nav-action--ghost:hover,
.nav-action--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.nav-action--solid {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-glow);
}

.nav-action--solid:hover,
.nav-action--solid:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.42);
}

.w-100 {
  width: 100%;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 28px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.primary-btn {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.4);
}

.secondary-btn {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-900);
  border: 1px solid rgba(37, 99, 235, 0.24);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.4);
}

.link {
  color: var(--brand-500);
  font-weight: 600;
  transition: color var(--transition);
}

.link:hover,
.link:focus-visible {
  color: var(--brand-400);
  text-decoration: underline;
}

.link.subtle {
  font-weight: 500;
  color: rgba(37, 99, 235, 0.8);
}

.auth-wrapper {
  padding: clamp(48px, 8vw, 96px) 0;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 24px;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--neutral-500);
}

.auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.auth-form {
  display: grid;
  gap: 20px;
}

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

.form-group label {
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group input,
.form-group textarea {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 14px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.form-group input::placeholder {
  color: rgba(71, 85, 105, 0.6);
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.form-label-row .link.subtle {
  font-size: 0.9rem;
  color: var(--brand-500);
}

.form-helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-500);
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  display: grid;
  gap: 6px;
  border: 1px solid transparent;
}

.alert--info {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--brand-900);
}

.alert--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
  color: #0f5132;
}

.alert--warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #92400e;
}

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.divider {
  position: relative;
  text-align: center;
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  padding: 0 12px;
  background: transparent;
}

.auth-alt-actions {
  display: grid;
  gap: 12px;
}

.nav-account {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.account-trigger:hover,
.account-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.account-menu {
  position: absolute;
  top: 52px;
  right: 0;
  min-width: 220px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}

.nav-account[data-open="true"] .account-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 0;
  font: inherit;
  cursor: pointer;
  justify-content: flex-start;
}

.account-menu form {
  margin: 0;
}

/* Admin utility classes */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.flex-gap-4 { display: flex; gap: 4px; }
.flex-gap-8 { display: flex; gap: 8px; }
.flex-gap-12 { display: flex; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

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

.admin-edit-panel {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
}

.admin-edit-panel.is-visible {
  display: block;
}

.admin-inline-form {
  display: inline;
}

.admin-btn-sm {
  padding: 4px 8px;
  font-size: 0.85rem;
}

.admin-option-images {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.admin-option-image-wrap {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px;
}

.admin-option-image-delete-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
}

.admin-block-label {
  display: block;
}

.form-control--disabled {
  background-color: #f5f5f5;
}

.admin-img-thumb-sm {
  max-width: 60px;
  max-height: 60px;
  display: block;
}

.admin-img-thumb {
  max-width: 80px;
  max-height: 80px;
}

.admin-img-thumb-lg {
  max-width: 100px;
  max-height: 100px;
}

.admin-img-preview {
  max-width: 200px;
  max-height: 200px;
}

.admin-img-signature {
  max-width: 150px;
  max-height: 150px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3fb 42%, #dfe7fb 100%);
  color: var(--neutral-900);
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(12, 22, 51, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.admin-sidebar {
  background: rgba(12, 22, 51, 0.95);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 150;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.admin-sidebar__brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.admin-sidebar__brand small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.64);
}

.admin-sidebar__nav {
  display: grid;
  gap: 12px;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition);
  font-weight: 600;
}

.admin-sidebar__link:hover,
.admin-sidebar__link:focus-visible {
  color: var(--white);
  background: rgba(56, 189, 248, 0.15);
}

.admin-sidebar__link.is-active {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.75), rgba(56, 189, 248, 0.75));
  color: var(--white);
  box-shadow: 0 18px 32px rgba(14, 24, 45, 0.22);
}

.admin-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(16px);
}

.admin-toolbar__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.admin-toolbar__toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--neutral-700);
}

.admin-toolbar__info {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.admin-toolbar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.3);
}

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

.admin-toolbar__user strong {
  font-size: 1rem;
  margin: 0;
}

.admin-toolbar__user small {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.admin-toolbar__logout {
  padding: 10px 20px;
}

.admin-main {
  padding: 36px;
  flex: 1 1 auto;
  display: grid;
  gap: 32px;
}

.admin-section__header {
  display: grid;
  gap: 12px;
}

.admin-section__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--brand-900);
}

.admin-section__header p {
  margin: 0;
  color: var(--neutral-500);
  max-width: 620px;
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter-bar {
  display: inline-flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.admin-filter-bar input[type="search"] {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 16px;
  min-width: 240px;
  background: var(--white);
  font-size: 1rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.admin-metric-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-metric-card__label {
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.admin-metric-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-900);
}

.admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.admin-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-panel__header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--brand-900);
}

.admin-panel__empty {
  margin: 0;
  color: var(--neutral-500);
}

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

.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
  color: var(--brand-900);
}

.admin-list span {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.admin-list__meta {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-badge--draft {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.admin-badge--scheduled {
  background: rgba(250, 204, 21, 0.22);
  color: #92400e;
}

.admin-badge--published {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.admin-badge--outline {
  border: 1px solid rgba(37, 99, 235, 0.32);
  color: var(--brand-500);
  background: rgba(37, 99, 235, 0.08);
}

.admin-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.admin-badge--muted {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-500);
  background: rgba(15, 23, 42, 0.02);
}

.admin-table thead {
  background: rgba(37, 99, 235, 0.08);
}

.admin-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.admin-table .btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.admin-table__empty {
  text-align: center;
  color: var(--neutral-500);
  padding: 36px 0;
}

.admin-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-table__actions form {
  margin: 0;
}

.admin-table__actions .danger {
  color: #dc2626;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--surface);
  color: var(--neutral-700);
  transition: var(--transition);
}

.admin-pagination__link:hover,
.admin-pagination__link:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--brand-500);
}

.admin-pagination__link.is-active {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.admin-form {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.admin-form__group {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.admin-form__grid .admin-form__group--full {
  grid-column: 1 / -1;
}

.admin-form__group label {
  font-weight: 600;
  color: var(--neutral-700);
}

.admin-form__group input,
.admin-form__group select,
.admin-form__group textarea {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-form__group input:focus,
.admin-form__group select:focus,
.admin-form__group textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--neutral-600);
}

.admin-switch input[type="checkbox"] {
  width: 48px;
  height: 24px;
  accent-color: var(--brand-500);
}

.admin-form__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.admin-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-status-list li:last-child {
  border-bottom: none;
}

.admin-status-list strong {
  font-size: 1.05rem;
  color: var(--brand-900);
}

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

@media (max-width: 1024px) {
  .admin-panels {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

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

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: min(80vw, 280px);
    box-shadow: 0 24px 48px rgba(12, 22, 51, 0.4);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar__close {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background var(--transition);
  }

  .admin-sidebar__close:hover,
  .admin-sidebar__close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
  }

  .admin-sidebar .admin-sidebar__brand {
    padding-right: 48px;
  }

  .admin-toolbar__toggle {
    display: inline-flex;
  }

  .admin-main {
    padding: 24px;
  }
}

@media (min-width: 961px) {
  .admin-sidebar__close {
    display: none;
  }
}

@media (max-width: 720px) {
  .admin-toolbar__info {
    gap: 12px;
  }

  .admin-toolbar__logout {
    padding: 8px 16px;
  }

  .admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .admin-filter-bar {
    align-items: stretch;
  }

  .admin-form {
    padding: 24px 20px;
  }
}

.account-menu a:hover,
.account-menu button:hover,
.account-menu a:focus-visible,
.account-menu button:focus-visible {
  color: var(--white);
}

.account-email {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.language-switcher__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.language-switcher__options {
  display: inline-flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.lang-btn[data-active="true"],
.lang-btn[aria-pressed="true"],
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  padding: 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
}

.menu-toggle__icon {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.menu-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 3px 0;
  border-radius: 999px;
  transition: var(--transition);
}

.hero {
  padding: 120px 0 80px;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 31, 69, 0.04) 0%, rgba(17, 31, 69, 0) 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  max-width: 720px;
  margin: 0;
  color: var(--brand-900);
  line-height: 1.1;
  text-shadow: 0 12px 30px rgba(17, 31, 69, 0.14);
}

.hero p {
  font-size: 1.15rem;
  color: var(--neutral-500);
  max-width: 720px;
  margin: 0;
  line-height: 1.75;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta.primary-btn {
  padding: 14px 32px;
}

.cta.secondary-btn {
  border-width: 2px;
  padding: 13px 28px;
  color: var(--brand-900);
  border-color: rgba(17, 31, 69, 0.12);
  background: var(--surface);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  gap: 12px;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(56, 189, 248, 0.2);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  margin: 0;
  color: var(--brand-900);
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.7;
}

.tests-section {
  padding: 80px 0;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.test-box {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: grid;
  align-content: flex-end;
  gap: 14px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.test-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 22, 51, 0.85) 0%, rgba(12, 22, 51, 0.55) 50%, rgba(56, 189, 248, 0.4) 100%);
  transition: opacity var(--transition);
  opacity: 0.9;
}

.test-box::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--radius-lg) - 14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity var(--transition);
}

.test-box > * {
  position: relative;
  z-index: 1;
}

.test-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.45);
}

.test-box:hover::after {
  opacity: 1;
}

.test-box .icon {
  font-size: 2.6rem;
}

.test-box h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.test-box p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.test-box .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.test-box .meta::before {
  content: '';
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.test-box .cta-link {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.test1 { background-image: url('../images/tests/Test1.jpg'); }
.test2 { background-image: url('../images/tests/Test2.png'); }
.test3 { background-image: url('../images/tests/test3.jpg'); }
.test4 { background-image: url('../images/tests/Test1.jpg'); }
.test5 { background-image: url('../images/tests/Test2.png'); }
.test6 { background-image: url('../images/tests/test3.jpg'); }
.test7 { background-image: url('../images/tests/Test1.jpg'); }
.test8 { background-image: url('../images/tests/Test2.png'); }
.test9 { background-image: url('../images/tests/test3.jpg'); }
.test10 { background-image: url('../images/tests/Test1.jpg'); }
.test11 { background-image: url('../images/tests/Test2.png'); }
.test12 { background-image: url('../images/tests/test3.jpg'); }
.test13 { background-image: url('../images/tests/Test1.jpg'); }
.test14 { background-image: url('../images/tests/Test2.png'); }
.test15 { background-image: url('../images/tests/test3.jpg'); }

.page-hero.test1,
.page-hero.test2,
.page-hero.test3,
.page-hero.test4,
.page-hero.test5,
.page-hero.test6,
.page-hero.test7,
.page-hero.test8,
.page-hero.test9,
.page-hero.test10,
.page-hero.test11,
.page-hero.test12,
.page-hero.test13,
.page-hero.test14,
.page-hero.test15 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 48px;
  color: white;
}

.page-hero.test1::before,
.page-hero.test2::before,
.page-hero.test3::before,
.page-hero.test4::before,
.page-hero.test5::before,
.page-hero.test6::before,
.page-hero.test7::before,
.page-hero.test8::before,
.page-hero.test9::before,
.page-hero.test10::before,
.page-hero.test11::before,
.page-hero.test12::before,
.page-hero.test13::before,
.page-hero.test14::before,
.page-hero.test15::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 31, 69, 0.75), rgba(56, 189, 248, 0.4));
  z-index: 0;
}

.page-hero.test1 .section-heading,
.page-hero.test2 .section-heading,
.page-hero.test3 .section-heading,
.page-hero.test4 .section-heading,
.page-hero.test5 .section-heading,
.page-hero.test6 .section-heading,
.page-hero.test7 .section-heading,
.page-hero.test8 .section-heading,
.page-hero.test9 .section-heading,
.page-hero.test10 .section-heading,
.page-hero.test11 .section-heading,
.page-hero.test12 .section-heading,
.page-hero.test13 .section-heading,
.page-hero.test14 .section-heading,
.page-hero.test15 .section-heading {
  position: relative;
  z-index: 1;
}

.page-hero.test1 h1,
.page-hero.test2 h1,
.page-hero.test3 h1,
.page-hero.test4 h1,
.page-hero.test5 h1,
.page-hero.test6 h1,
.page-hero.test7 h1,
.page-hero.test8 h1,
.page-hero.test9 h1,
.page-hero.test10 h1,
.page-hero.test11 h1,
.page-hero.test12 h1,
.page-hero.test13 h1,
.page-hero.test14 h1,
.page-hero.test15 h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero.test1 p,
.page-hero.test2 p,
.page-hero.test3 p,
.page-hero.test4 p,
.page-hero.test5 p,
.page-hero.test6 p,
.page-hero.test7 p,
.page-hero.test8 p,
.page-hero.test9 p,
.page-hero.test10 p,
.page-hero.test11 p,
.page-hero.test12 p,
.page-hero.test13 p,
.page-hero.test14 p,
.page-hero.test15 p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-hero {
  padding: 96px 0 32px;
  text-align: center;
  display: grid;
  gap: 16px;
}

.page-hero h1 {
  margin: 0;
  color: var(--brand-900);
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.page-hero p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--neutral-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-section {
  padding: 32px 0 96px;
}

.two-column {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.two-column article {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.two-column h2 {
  margin-top: 0;
  color: var(--brand-900);
  font-size: 1.5rem;
}

.two-column p,
.two-column ul {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.75;
}

.two-column ul {
  padding-inline-start: 20px;
  display: grid;
  gap: 12px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
}

.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-details .contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
  color: var(--neutral-500);
}

.contact-details .contact-list a {
  color: inherit;
}

.contact-divider {
  height: 1px;
  background: rgba(37, 99, 235, 0.18);
  margin: 24px 0;
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-900);
  font-size: 0.9rem;
  font-weight: 600;
}

.test-runner {
  display: grid;
  gap: 24px;
}

.test-form {
  display: grid;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.question-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: var(--surface);
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}

.question-card.has-error {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.question-card legend {
  font-weight: 700;
  padding: 0;
  margin: 0;
  color: var(--brand-900);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
}

.question-index {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.question-image img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  max-height: 260px;
}

.question-options {
  display: grid;
  gap: 14px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(71, 85, 105, 0.22);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  background: rgba(255, 255, 255, 0.75);
}

.option:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.option input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-500);
}

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

.option-image {
  max-width: 80px;
  max-height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.form-error {
  margin: 0;
  color: #dc2626;
  font-weight: 600;
}

.test-result {
  display: grid;
  gap: 24px;
}

.test-result__header {
  display: grid;
  gap: 12px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.test-result__header h2 {
  margin: 0;
  font-size: 2.4rem;
  color: var(--brand-900);
}

.test-result__percentage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.percentage-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.percentage-label {
  font-size: 0.9rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.test-result .result-band {
  color: var(--brand-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin: 0;
}

.test-result__main {
  display: grid;
  gap: 16px;
}

.test-result__main h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--brand-900);
}

.test-result__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--neutral-700);
  padding: 20px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-500);
}

.test-result__section {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.test-result__section h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--brand-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-result__section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  border-radius: 2px;
}

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

.test-result__list li {
  padding: 12px 16px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-sm);
  color: var(--neutral-700);
  line-height: 1.6;
  position: relative;
  padding-left: 32px;
}

.test-result__list li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: var(--brand-500);
  font-weight: 700;
}

.test-result__actions {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

form .form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

form label {
  font-weight: 600;
  color: var(--brand-900);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 1px solid rgba(71, 85, 105, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  background: rgba(255, 255, 255, 0.92);
}

input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
}

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

.form-feedback {
  min-height: 24px;
  font-weight: 600;
  color: var(--neutral-500);
}

.btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.primary-btn {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: var(--shadow-glow);
}

.secondary-btn {
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--brand-900);
  padding: 12px 26px;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: rgba(37, 99, 235, 0.08);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  border-radius: 12px;
  padding: 10px 18px;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 35px rgba(37, 99, 235, 0.3);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.articles-grid .card {
  min-height: 220px;
}

.article-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  color: var(--neutral-500);
}

.article-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-points li::before {
  content: '•';
  color: var(--brand-500);
  font-size: 1.2rem;
  line-height: 1;
}

.auth-wrapper {
  display: grid;
  place-items: center;
  padding: 96px 0 120px;
}

.auth-card {
  width: min(420px, 92vw);
  text-align: center;
  display: grid;
  gap: 16px;
}

.auth-card .section-heading {
  margin-bottom: 0;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--neutral-500);
  text-align: left;
}

.auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-benefits li::before {
  content: '✔';
  color: var(--brand-500);
  font-size: 0.9rem;
}

.auth-card h1 {
  margin: 0;
  color: var(--brand-900);
}

.form-helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-500);
}

.link {
  color: var(--brand-500);
  text-decoration: underline;
}

.checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-500);
}

.auth-switch {
  margin-top: 12px;
  color: var(--neutral-500);
}

.tests-grid .page-header {
  margin-bottom: 24px;
}

.tests-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.test-card header h2 {
  margin: 0;
  color: var(--brand-900);
}

.test-card .desc {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.7;
}

.test-card .meta-lines {
  display: grid;
  gap: 6px;
}

.test-card .meta-line {
  margin: 0;
  color: var(--neutral-500);
}

.test-card footer {
  display: flex;
  justify-content: flex-end;
}

.empty {
  color: var(--neutral-500);
}

.site-footer {
  margin-top: 96px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(12, 22, 51, 0.92)), #0b1531;
  color: rgba(255, 255, 255, 0.92);
  padding: 64px 0 24px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 44, 0.3) 0%, rgba(11, 21, 49, 0.9) 100%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-content .logo {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.footer-content .logo img {
  height: 36px;
}

.footer-highlights {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links ul,
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.contact-info a:hover {
  color: rgba(56, 189, 248, 0.9);
}

.subscribe h3,
.contact-info h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.05rem;
}

.subscribe p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.contact-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-info ul li a {
  color: inherit;
}

.support-hours {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.15rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 22, 51, 0.72);
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer button {
  width: 100%;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
}

body.rtl .site-header .container,
body.rtl .hero-actions,
body.rtl .feature-cards,
body.rtl .tests-grid,
body.rtl .two-column {
  direction: rtl;
}

body.rtl .logo,
body.rtl .main-nav,
body.rtl .language-switcher,
body.rtl .form-actions {
  flex-direction: row-reverse;
}

body.rtl .lang-btn {
  letter-spacing: 0;
}

body.rtl .option,
body.rtl .question-card legend {
  direction: rtl;
}

body.rtl input,
body.rtl textarea {
  text-align: right;
}

body.rtl input[type="email"],
body.rtl input[type="password"],
body.rtl input[type="text"][dir="ltr"] {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1080px) {
  .hero {
    padding: 100px 0 72px;
  }

  .site-header .container {
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 90px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta.primary-btn,
  .cta.secondary-btn {
    width: 100%;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .two-column article {
    padding: 24px;
  }

  .page-hero {
    padding-top: 80px;
  }
}

@media (max-width: 540px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 12px;
}

  .language-switcher {
  order: 3;
    width: 100%;
    justify-content: center;
  }

  .feature-card,
  .card,
  .question-card {
    padding: 24px;
  }

  .test-box {
    min-height: 240px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Test Form User Info */
.test-form__user-info {
  margin-top: 32px;
  padding: 24px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.test-form__user-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--brand-900);
}

.test-form__user-info-note {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.test-form__user-info .form-group {
  margin-bottom: 16px;
}

.test-form__user-info label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.test-form__user-info .required {
  color: #dc2626;
}

.test-form__user-info .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.test-form__user-info .form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Consultation Form */
.test-result__consultation {
  margin-top: 32px;
  padding: 24px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.test-result__consultation h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--brand-900);
}

.test-result__consultation > p {
  margin: 0 0 20px 0;
  color: var(--neutral-700);
  line-height: 1.6;
}

.consultation-form .form-group {
  margin-bottom: 16px;
}

.consultation-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.consultation-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.consultation-form .form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Admin Archive Styles */
.admin-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.admin-filter-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-filter-form .form-group {
  flex: 1;
  min-width: 200px;
}

.admin-filter-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.9rem;
}

.admin-filter-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.admin-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.admin-stat strong {
  font-size: 0.85rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-stat span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-900);
}

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--neutral-500);
}

.admin-answers {
  display: grid;
  gap: 12px;
}

.admin-answer-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-sm);
}

.admin-answer-item strong {
  color: var(--brand-900);
  min-width: 120px;
}

.admin-answer-item span {
  color: var(--neutral-700);
}

.admin-analysis h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--brand-900);
}

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

.admin-analysis li {
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-sm);
  color: var(--neutral-700);
  line-height: 1.6;
}

.question-image-preview img {
  max-width: 240px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--neutral-200);
}

.danger-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.danger-btn:hover {
  background: #b91c1c;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--low {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.badge--medium {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badge--high {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.text-muted {
  color: var(--neutral-500);
  font-style: italic;
}

/* Enhanced Admin Panel Styles */
.admin-flash {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-flash--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.admin-flash--error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
}

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-form .form-group {
  display: grid;
  gap: 8px;
}

.admin-form label {
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.admin-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.admin-form .form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
  display: grid;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.checkbox-label:hover {
  background: rgba(37, 99, 235, 0.04);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand-500);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.admin-system-info {
  display: grid;
  gap: 16px;
}

.system-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.system-info-item strong {
  color: var(--brand-900);
  font-weight: 600;
}

.system-info-item span {
  color: var(--neutral-700);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.admin-metric-card__subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-top: 4px;
  font-weight: 400;
}

.admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-panel__header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--brand-900);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Enhanced Test Cards */
.test-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.test-card header h2 {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
  color: var(--brand-900);
}

.test-card .desc {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.7;
}

.test-card .meta-lines {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.test-card .meta-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-card .meta-line::before {
  content: '•';
  color: var(--brand-500);
  font-size: 1.2rem;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Enhanced Forms */
.test-form__user-info {
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.test-form__user-info h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: var(--brand-900);
}

.test-result__consultation {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(56, 189, 248, 0.04));
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Smooth Animations */
.card,
.admin-panel,
.admin-metric-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover,
.admin-panel:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Mobile Navigation */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, 90vw);
    background: linear-gradient(135deg, rgba(12, 22, 51, 0.98), rgba(17, 31, 69, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav[data-open="true"] {
    display: flex;
  }

  .main-nav__primary {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav__locale {
    width: 100%;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav .nav-link,
  .main-nav .nav-action {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    text-align: center;
    justify-content: center;
    border-radius: 10px;
    transition: background var(--transition);
    box-sizing: border-box;
  }

  .main-nav .nav-link:hover,
  .main-nav .nav-link:focus-visible,
  .main-nav .nav-action:hover,
  .main-nav .nav-action:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }

  .main-nav .language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .main-nav .lang-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
  }
}

/* Responsive Admin Improvements */
@media (max-width: 768px) {
  .admin-main {
    padding: 20px;
  }
  
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-panels {
    grid-template-columns: 1fr;
  }
  
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .admin-table {
    min-width: 600px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

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

  .admin-form__group input,
  .admin-form__group select,
  .admin-form__group textarea {
    min-height: 44px;
  }
  
  .admin-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-filter-form .form-group {
    min-width: 100%;
  }
}

