:root {
  --black: #17181a;
  --black-soft: #2c312d;
  --red: #d32a22;
  --green: #0a7b3e;
  --green-dark: #095f30;
  --green-soft: #eaf4ec;
  --gray-25: #fbfcfb;
  --gray-50: #f6f7f6;
  --gray-100: #eceeec;
  --gray-200: #e1e5e1;
  --gray-500: #6b746e;
  --gray-600: #5b6560;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-align: start;
}

#main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(10, 123, 62, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-block-end: 1px solid var(--gray-100);
  backdrop-filter: saturate(1.4) blur(10px);
}

.flag-strip {
  display: flex;
  block-size: 5px;
}

.flag-strip span {
  flex: 1;
}

.flag-strip__black {
  background: #111111;
}

.flag-strip__red {
  background: var(--red);
}

.flag-strip__green {
  background: var(--green);
}

.nav-shell {
  width: min(100% - 32px, var(--container));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand__logo {
  inline-size: 48px;
  block-size: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.brand__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  max-width: 290px;
  overflow: hidden;
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__sub {
  color: #7a857e;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.desktop-nav a:not(.nav-login):not(.nav-register) {
  padding: 9px 12px;
  color: #3a423d;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:not(.nav-login):not(.nav-register):hover {
  color: var(--green);
  background: var(--green-soft);
}

.lang-button,
.nav-login,
.nav-register,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lang-button:hover,
.nav-login:hover,
.nav-register:hover,
.button:hover {
  transform: translateY(-1px);
}

.lang-button {
  padding: 9px 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #d5dad6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.nav-login {
  padding: 10px 16px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #d5dad6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.nav-register {
  padding: 10px 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nav-register:hover,
.button--primary:hover,
.mobile-menu__cta:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 18px rgba(10, 123, 62, 0.24);
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  inline-size: 44px;
  block-size: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid #d5dad6;
  border-radius: 8px;
  cursor: pointer;
}

.menu-button span {
  inline-size: 20px;
  block-size: 2.4px;
  background: var(--black);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.4px) rotate(-45deg);
}

.mobile-menu {
  width: 100%;
  padding: 10px 18px 18px;
  background: var(--white);
  border-block-start: 1px solid var(--gray-100);
  animation: menuDrop 0.18s ease;
}

.mobile-menu a {
  display: block;
  padding: 14px 8px;
  color: var(--black);
  border-block-end: 1px solid #f0f1f0;
  font-size: 16px;
  font-weight: 700;
}

.mobile-menu a:hover {
  color: var(--green);
}

.mobile-menu__cta {
  margin-block-start: 14px;
  padding: 14px !important;
  color: var(--white) !important;
  background: var(--green);
  border: 0 !important;
  border-radius: var(--radius-sm);
  text-align: center;
}

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #f1f7f2 0%, rgba(241, 247, 242, 0) 60%), var(--gray-25);
}

[dir="rtl"] .hero {
  background: radial-gradient(1200px 600px at 15% -10%, #f1f7f2 0%, rgba(241, 247, 242, 0) 60%), var(--gray-25);
}

.hero__side-flag {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  inline-size: 6px;
}

.hero__side-flag span {
  flex: 1;
}

.hero__grid {
  display: grid;
  gap: 44px;
  align-items: center;
  justify-content: center;
  padding-block: clamp(46px, 8vw, 78px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__content h1,
.hero__content .hero__subtitle,
.hero__content .slogan-card {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #cde6d3;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.eyebrow span:first-child {
  inline-size: 7px;
  block-size: 7px;
  background: var(--green);
  border-radius: 50%;
}

.hero h1,
.section-heading h2,
.about-panel h2,
.registration-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--black);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 760px;
  margin-block-start: 22px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.14;
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.75;
}

.slogan-card {
  max-width: 650px;
  margin-block-start: 26px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid #e6e8e6;
  border-inline-start: 4px solid var(--green);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.section-label {
  display: block;
  color: #9aa39d;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slogan-card strong {
  display: block;
  margin-block-start: 7px;
  color: var(--black);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 900;
  line-height: 1.55;
}

.hero__actions,
.registration-actions,
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-block-start: 28px;
  justify-content: center;
}

.button {
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 900;
}

.button--primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 6px 16px rgba(10, 123, 62, 0.22);
}

.button--light {
  color: var(--black);
  background: var(--white);
  border: 1px solid #d5dad6;
}

.button--text {
  color: var(--green);
  padding-inline: 18px;
}

[dir="rtl"] .button--text::before {
  content: "←";
  margin-inline-end: 8px;
}

[dir="ltr"] .button--text::after {
  content: "→";
  margin-inline-start: 8px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.logo-orbit {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
}

.logo-orbit__ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #111 0 33%, var(--red) 33% 42%, var(--green) 42% 75%, #111 75% 100%);
  filter: blur(2px);
  opacity: 0.1;
}

.logo-orbit__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid #e6e8e6;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.logo-orbit__card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.info-section {
  background: var(--gray-50);
  border-block: 1px solid var(--gray-100);
}

.info-section .container,
.about-section .container,
.registration-section .container,
.final-cta .container {
  padding-block: clamp(52px, 7vw, 72px);
}

.section-heading {
  margin-block-end: 30px;
}

.section-heading--with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-heading h2,
.about-panel h2,
.registration-copy h2,
.final-cta h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.2;
}

.section-heading p,
.about-panel p,
.registration-copy p,
.final-cta p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.75;
}

.section-heading p {
  margin: 8px 0 0;
}

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

.info-card {
  min-height: 185px;
  padding: 24px;
  background: var(--white);
  border: 1px solid #e6e8e6;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-card__icon {
  inline-size: 44px;
  block-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 16px;
  border-radius: 12px;
}

.info-card__icon svg {
  inline-size: 22px;
  block-size: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.info-card__icon--green {
  color: var(--green);
  background: var(--green-soft);
}

.info-card__icon--red {
  color: var(--red);
  background: #fbebea;
}

.info-card__icon--dark {
  color: var(--black);
  background: #eef0ee;
}

.info-card span {
  display: block;
  color: #9aa39d;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  margin-block-start: 6px;
  color: var(--black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.about-section {
  background: var(--white);
}

.about-grid,
.registration-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.about-panel h2,
.registration-copy h2 {
  margin-block-start: 10px;
}

.about-panel p,
.registration-copy p {
  max-width: 720px;
  margin: 16px 0 0;
}

.principles-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: linear-gradient(135deg, #17181a 0%, #262b27 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.principles-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 8px;
  background: linear-gradient(var(--black), var(--red), var(--green));
}

.principles-card__header {
  color: var(--white);
}

.principles-card__header span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.principles-card__header small {
  display: block;
  margin-block-start: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.principles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 24px;
}

.principles-list span {
  padding: 10px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.registration-section {
  background: var(--gray-50);
  border-block: 1px solid var(--gray-100);
}

.registration-actions {
  margin-block-start: 24px;
}

.steps-card {
  display: grid;
  gap: 14px;
}

.step-item {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: var(--white);
  border: 1px solid #e6e8e6;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-item::after {
  content: "";
  position: absolute;
  inset-inline-end: -35px;
  inset-block-start: -35px;
  inline-size: 90px;
  block-size: 90px;
  background: var(--green-soft);
  border-radius: 50%;
  opacity: 0.85;
}

.step-item span,
.step-item h3,
.step-item p {
  position: relative;
  z-index: 1;
}

.step-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.step-item h3 {
  margin: 18px 0 8px;
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
}

.step-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14.5px;
  line-height: 1.65;
}

.final-cta {
  background: var(--white);
}

.final-cta__box {
  display: grid;
  gap: 24px;
  padding-inline: 24px;
  background: linear-gradient(135deg, #f7faf8 0%, #ffffff 50%, #f5fbf6 100%);
  border: 1px solid #e6e8e6;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.final-cta p {
  max-width: 760px;
  margin: 12px 0 0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #121412;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-block: 46px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  inline-size: 50px;
  block-size: 50px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--white);
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
}

.footer-brand span {
  display: block;
  max-width: 560px;
  margin-block-start: 8px;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.site-footer a,
.site-footer span:not(.footer-brand span) {
  display: block;
  margin-block-start: 9px;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.62);
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@media (min-width: 620px) {
  .info-grid,
  .steps-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-controls,
  .mobile-menu {
    display: none !important;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 800px);
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .registration-grid {
    grid-template-columns: 0.9fr 1.2fr;
  }

  .final-cta__box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

@media (min-width: 1080px) {
  .info-grid,
  .steps-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, var(--container));
  }

  .brand__logo {
    inline-size: 42px;
    block-size: 42px;
  }

  .brand__name {
    max-width: 185px;
    font-size: 13.5px;
  }

  .brand__sub {
    font-size: 10.5px;
  }

  .lang-button {
    padding-inline: 11px;
  }

  .hero__grid {
    gap: 34px;
  }

  .hero__actions .button,
  .registration-actions .button,
  .final-cta__actions .button {
    width: 100%;
  }

  .final-cta__box {
    border-radius: 20px;
  }
}

.auth-section {
  background: var(--gray-25);
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
}

.auth-section .container {
  padding-block: clamp(40px, 7vw, 64px);
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid #e6e8e6;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card__header {
  margin-block-end: 26px;
  text-align: center;
}

.auth-card__header h1 {
  margin: 10px 0 0;
  color: var(--black);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
}

.auth-card__header p {
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
}

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

.form-row {
  display: grid;
  gap: 18px;
}

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

.form-group label {
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.form-group .hint {
  color: var(--gray-500);
  font-size: 12.5px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
  inline-size: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--black);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 123, 62, 0.14);
}

.form-group input.field-invalid,
.form-group select.field-invalid {
  border-color: var(--red);
}

.field-error {
  min-height: 16px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.auth-alert--error {
  color: var(--red);
  background: #fbebea;
  border: 1px solid #f3cdc9;
}

.auth-alert--success {
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cde6d3;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-block-start: 6px;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10, 123, 62, 0.22);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  margin-block-start: 18px;
  color: var(--gray-500);
  font-size: 14.5px;
  text-align: center;
}

.auth-switch a {
  color: var(--green);
  font-weight: 800;
}

.auth-switch--muted {
  margin-block-start: 8px;
  font-size: 13px;
}

.auth-switch--muted a {
  color: var(--white);
  font-weight: 700;
}

.auth-section--admin {
  background: var(--gray-50);
}

.auth-card--admin {
  border-block-start: 4px solid var(--black);
}

.auth-submit--dark {
  background: var(--black);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.auth-submit--dark:hover {
  background: #2c312d;
}

.auth-submit--danger {
  background: var(--red);
  box-shadow: 0 6px 16px rgba(211, 42, 34, 0.22);
}

.auth-submit--danger:hover {
  background: #a82219;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-block-start: 22px;
}

.modal-actions .button,
.modal-actions .auth-submit {
  flex: 1;
  width: auto;
}

.account-list {
  display: grid;
  gap: 14px;
  margin-block-start: 24px;
}

.account-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.account-list__row span:first-child {
  color: var(--gray-500);
  font-size: 13.5px;
  font-weight: 700;
}

.account-list__row span:last-child {
  color: var(--black);
  font-size: 14.5px;
  font-weight: 800;
}

@media (min-width: 620px) {
  .form-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Registration status panel (account page) --- */

.status-panel {
  margin-block-end: 24px;
}

.status-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.status-card h2 {
  margin: 10px 0 6px;
  font-size: 19px;
  font-weight: 900;
}

.status-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.7;
}

.status-card__note {
  margin-block-start: 10px !important;
  font-weight: 800 !important;
  color: var(--green-dark) !important;
}

.status-card__badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.status-card--pending {
  background: #fdf7ec;
  border-color: #f2e2b8;
}

.status-card--pending .status-card__badge {
  color: #92700c;
  background: #f7e6b8;
}

.status-card--pending h2 {
  color: #92700c;
}

.status-card--approved {
  background: var(--green-soft);
  border-color: #cde6d3;
}

.status-card--approved .status-card__badge {
  color: var(--green-dark);
  background: #d6ecdb;
}

.status-card--approved h2 {
  color: var(--green-dark);
}

.status-card--rejected {
  background: #fbebea;
  border-color: #f3cdc9;
}

.status-card--rejected .status-card__badge {
  color: var(--red);
  background: #f6d4d1;
}

.status-card--rejected h2 {
  color: var(--red);
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 320px;
  margin: 20px auto 0;
  padding: 22px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.qr-card__brand {
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.qr-card__image {
  width: 200px;
  height: 200px;
  margin-block: 10px;
  border-radius: 10px;
}

.qr-card__name {
  color: var(--black);
  font-size: 16px;
  font-weight: 900;
}

.qr-card__code {
  color: var(--gray-500);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.badge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-start: 18px;
}

.badge-actions .button {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}

.badge-actions__status {
  margin: 10px 0 0;
  color: var(--gray-500);
  font-size: 13px;
  text-align: center;
  min-height: 16px;
}

/* --- Admin dashboard --- */

.admin-section .container {
  padding-block: clamp(40px, 6vw, 60px);
}

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-sidebar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-sidebar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-sidebar__link svg {
  inline-size: 18px;
  block-size: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.admin-sidebar__link:hover {
  color: var(--green);
  border-color: #cde6d3;
}

.admin-sidebar__link.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.admin-content {
  min-width: 0;
}

@media (min-width: 860px) {
  .admin-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .admin-sidebar {
    position: sticky;
    inset-block-start: 90px;
    flex: 0 0 210px;
  }

  .admin-sidebar__nav {
    flex-direction: column;
  }

  .admin-sidebar__link {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-content {
    flex: 1;
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 18px;
}

.admin-tab {
  padding: 9px 16px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.admin-table th {
  padding: 14px 16px;
  color: var(--gray-500);
  background: var(--gray-50);
  font-size: 12.5px;
  font-weight: 800;
  text-align: start;
}

.admin-table td {
  padding: 12px 16px;
  border-block-start: 1px solid var(--gray-100);
}

.admin-empty {
  padding: 30px;
  color: var(--gray-500);
  text-align: center;
}

.status-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge--pending {
  color: #92700c;
  background: #f7e6b8;
}

.status-badge--approved {
  color: var(--green-dark);
  background: #d6ecdb;
}

.status-badge--rejected {
  color: var(--red);
  background: #f6d4d1;
}

.attendance-status-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.attendance-status-badge--none {
  color: var(--gray-500);
  background: var(--gray-100);
}

.attendance-status-badge--present {
  color: var(--green-dark);
  background: #d6ecdb;
}

.attendance-status-badge--left {
  color: #184f95;
  background: #dbe9fb;
}

.attendance-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.attendance-cell__sep {
  color: var(--gray-500);
}

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

.admin-btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.admin-btn--approve {
  color: var(--white);
  background: var(--green);
}

.admin-btn--reject {
  color: var(--white);
  background: var(--red);
}

.admin-btn--reset {
  color: var(--black);
  background: var(--gray-100);
}

.admin-btn--details,
.admin-btn--password {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.admin-btn--delete {
  color: var(--red);
  background: var(--white);
  border: 1px solid #f3cdc9;
}

/* --- Insights: KPI tiles, charts --- */

.insights-export-status {
  min-height: 16px;
  margin: -10px 0 16px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.insights-export-status--error {
  color: var(--red);
}

.kpi-row {
  display: grid;
  gap: 14px;
  margin-block-end: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.kpi-tile strong {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.1;
}

.kpi-tile span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.insights-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.chart-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.chart-card h3 {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 15.5px;
  font-weight: 900;
}

.chart-card--wide {
  grid-column: 1 / -1;
}

.chart-empty {
  padding: 30px 0;
  color: var(--gray-500);
  font-size: 14px;
  text-align: center;
}

/* Donut */

.donut-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.donut-svg {
  inline-size: 180px;
  block-size: 180px;
  transform: rotate(-90deg);
}

.donut-segment {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.donut-segment:hover,
.donut-segment:focus-visible {
  opacity: 0.85;
  outline: none;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center strong {
  color: var(--black);
  font-size: 26px;
  font-weight: 900;
}

.donut-center span {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: 18px;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13.5px;
  font-weight: 600;
}

.chart-legend__swatch {
  inline-size: 11px;
  block-size: 11px;
  border-radius: 3px;
  flex: 0 0 auto;
}

/* Bar chart */

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(90px, 140px) 1fr auto;
}

.bar-row__label {
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row__track {
  block-size: 14px;
  background: var(--gray-50);
  border-radius: 999px;
  overflow: hidden;
}

.bar-row__fill {
  block-size: 100%;
  background: var(--green);
  border-radius: 999px;
  min-inline-size: 4px;
  transition: width 0.3s ease;
}

.bar-row__value {
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-inline-size: 28px;
  text-align: end;
}

/* Trend chart */

.trend-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.trend-baseline {
  stroke: var(--gray-200);
  stroke-width: 1;
}

.trend-area {
  fill: rgba(10, 123, 62, 0.1);
  stroke: none;
}

.trend-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-dot {
  fill: var(--green);
  stroke: var(--white);
  stroke-width: 2;
}

.trend-hit {
  fill: transparent;
  cursor: pointer;
}

/* Shared chart tooltip */

.chart-tooltip {
  position: fixed;
  z-index: 300;
  padding: 7px 12px;
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

@media (min-width: 620px) {
  .kpi-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Admin details modal --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 18, 20, 0.55);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.modal-subtitle {
  margin: 0 0 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.modal-card .auth-form {
  margin-block-start: 4px;
}

.modal-close {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 14px;
  inline-size: 32px;
  block-size: 32px;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--black);
}

/* --- In-dashboard QR scanner --- */

.modal-card--scanner {
  max-width: 420px;
  text-align: center;
}

.scanner-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-block-start: 6px;
  background: #111111;
  border-radius: var(--radius-md);
}

.scanner-viewport #scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-frame {
  position: absolute;
  inset: 14%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25);
}

.scanner-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.scan-result {
  margin-block-start: 6px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.scan-result__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 60px;
  block-size: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--white);
  font-size: 30px;
  font-weight: 900;
}

.scan-result--granted {
  background: var(--green-soft);
  border-color: #cde6d3;
}

.scan-result--granted .scan-result__icon {
  background: var(--green);
}

.scan-result--granted .scan-result__status {
  color: var(--green-dark);
}

.scan-result--denied {
  background: #fbebea;
  border-color: #f3cdc9;
}

.scan-result--denied .scan-result__icon {
  background: var(--red);
}

.scan-result--denied .scan-result__status {
  color: var(--red);
}

.scan-result__status {
  margin-block-end: 8px;
  font-size: 15px;
  font-weight: 900;
}

.scan-result h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 900;
}

.scan-result p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

#scan-next-btn {
  width: 100%;
  margin-block-start: 16px;
}

/* Attendance: day picker + check-in/out actions inside the scan result */

.attendance-panel {
  margin-block-start: 18px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--gray-200);
}

.attendance-day-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-block-end: 8px;
}

.day-pill {
  inline-size: 38px;
  block-size: 38px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.day-pill:hover {
  border-color: var(--green);
}

.day-pill.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.attendance-day-label {
  margin: 0 0 4px !important;
  color: var(--black) !important;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.attendance-status {
  margin: 0 0 16px !important;
  color: var(--gray-500) !important;
  font-size: 13px;
  text-align: center;
}

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

.attendance-action-btn {
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.attendance-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.attendance-action-btn.is-suggested {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(10, 123, 62, 0.22);
}

.attendance-feedback {
  min-height: 16px;
  margin: 10px 0 0 !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.attendance-feedback--success {
  color: var(--green-dark) !important;
}

.attendance-feedback--error {
  color: var(--red) !important;
}

.admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Door check-in page --- */

.checkin-card {
  max-width: 480px;
  text-align: center;
}

.checkin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 72px;
  block-size: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.checkin-icon--granted {
  color: var(--white);
  background: var(--green);
}

.checkin-icon--denied {
  color: var(--white);
  background: var(--red);
}

.checkin-status {
  display: inline-flex;
  margin-block-end: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.checkin-card--granted .checkin-status {
  color: var(--green-dark);
  background: var(--green-soft);
}

.checkin-card--denied .checkin-status {
  color: var(--red);
  background: #fbebea;
}

.checkin-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

.checkin-email {
  margin: 0 0 4px;
  color: var(--gray-500);
  font-size: 15px;
}

/* --- Print: Insights tab export-to-PDF --- */

@media print {
  .site-header,
  .admin-sidebar,
  .section-heading__actions,
  .modal-overlay,
  .admin-tabs,
  .admin-table-wrap,
  .badge-actions,
  .badge-actions__status {
    display: none !important;
  }

  .admin-layout {
    display: block !important;
  }

  .admin-content {
    width: 100%;
  }

  .chart-card,
  .kpi-tile {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid var(--gray-200) !important;
  }

  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body {
    background: var(--white) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
