:root {
  --bg: #08111f;
  --bg2: #0f172a;
  --card: #111c31;
  --text: #f8fafc;
  --muted: #a7b0c0;
  --green: #22c55e;
  --blue: #38bdf8;
  --yellow: #facc15;
  --red: #ef4444;
  --line: rgba(255, 255, 255, .12);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, .18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, .14), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  overflow-x: hidden;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, .78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: .1px;
}

.logo-text small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links a,
.nav-links button {
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links button:hover {
  color: white
}

.nav-btn,
.nav-cta,
.nav-logout {
  padding: 10px 15px;
  border-radius: 999px;
  color: white !important;
}

.nav-btn {
  background: rgba(255, 255, 255, .08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--green), #86efac);
  color: #03110a !important;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(34, 197, 94, .22);
}

.nav-cta:hover {
  color: #03110a !important;
  box-shadow: 0 14px 34px rgba(34, 197, 94, .32);
}

.nav-logout {
  border: 0;
  background: var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px 56px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: -1.8px;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transition: .18s transform, .18s box-shadow, .18s background;
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #86efac);
  color: #03110a;
  box-shadow: 0 18px 45px rgba(34, 197, 94, .24);
}

.btn-secondary {
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--line);
  color: white;
}

.stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 620px;
}

.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.visual-card {
  position: relative;
  min-height: 460px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, .16), transparent 30%);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.intersection {
  position: absolute;
  inset: 36px;
  border-radius: 26px;
  background: #123024;
  overflow: hidden;
}

.road-v,
.road-h {
  position: absolute;
  background: #27313f;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04);
}

.road-v {
  width: 34%;
  height: 100%;
  left: 33%;
  top: 0;
}

.road-h {
  height: 34%;
  width: 100%;
  left: 0;
  top: 33%;
}

.lane-v,
.lane-h {
  position: absolute;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, .8) 0 18px,
      transparent 18px 34px);
  opacity: .65;
}

.lane-v {
  width: 3px;
  height: 100%;
  left: 50%;
  top: 0;
}

.lane-h {
  height: 3px;
  width: 100%;
  left: 0;
  top: 50%;
  background: repeating-linear-gradient(to right,
      rgba(255, 255, 255, .8) 0 18px,
      transparent 18px 34px);
}

.cross-center {
  position: absolute;
  left: 33%;
  top: 33%;
  width: 34%;
  height: 34%;
  background: #303b4b;
}

.car {
  position: absolute;
  width: 48px;
  height: 28px;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.car:before {
  content: "";
  position: absolute;
  inset: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .35);
}

.car.green {
  background: var(--green);
  left: 54%;
  top: 74%;
  transform: rotate(-90deg)
}

.car.blue {
  background: var(--blue);
  left: 12%;
  top: 43%
}

.car.yellow {
  background: var(--yellow);
  right: 13%;
  top: 51%;
  transform: rotate(180deg)
}

.car.red {
  background: var(--red);
  left: 42%;
  top: 12%;
  transform: rotate(90deg)
}

.route {
  position: absolute;
  left: 49%;
  top: 50%;
  width: 125px;
  height: 125px;
  border: 6px solid var(--green);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 80px 0 0;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, .75));
}

.route:after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -5px;
  width: 0;
  height: 0;
  border-left: 14px solid var(--green);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.sign {
  position: absolute;
  right: 34px;
  top: 30px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #2563eb;
  border: 7px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.traffic {
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 46px;
  padding: 7px;
  border-radius: 18px;
  background: #111827;
  display: grid;
  gap: 7px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .35);
}

.light {
  height: 28px;
  border-radius: 50%;
  background: #374151;
}

.light.red {
  background: #ef4444
}

.light.yellow {
  background: #facc15
}

.light.green {
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, .8)
}

.floating-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 230px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(8, 17, 31, .86);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.floating-panel strong {
  display: block;
  margin-bottom: 8px
}

.progress {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
}

.section h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -1px;
}

.section-desc {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, .14);
  margin-bottom: 16px;
  font-size: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.school {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, .13), rgba(56, 189, 248, .10));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
}

.school ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.school strong {
  color: var(--text);
}

.mock-admin {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .25);
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  margin-bottom: 10px;
  color: var(--muted);
}

.admin-row b {
  color: white
}

.cta {
  text-align: center;
  border-radius: 34px;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(34, 197, 94, .22), transparent 38%),
    rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.cta p {
  color: var(--muted);
  font-size: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 22px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: white
}

@media(max-width:900px) {

  .hero,
  .school {
    grid-template-columns: 1fr
  }

  .visual-card {
    min-height: 380px
  }

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

  .stats {
    grid-template-columns: 1fr
  }

  .nav {
    align-items: flex-start
  }

  .nav-links {
    justify-content: flex-end
  }
}

@media(max-width:760px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 18px;
  }

  .logo {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-links a,
  .nav-links button,
  .nav-links a:not(.nav-btn):not(.nav-cta) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: max-content;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 999px;
    line-height: 1.2;
    text-align: center;
  }

  .auth-main,
  .account-main {
    min-height: auto;
  }
}

@media(max-width:560px) {
  .nav-links a,
  .nav-links button,
  .nav-links a:not(.nav-btn):not(.nav-cta) {
    min-width: 0;
    white-space: normal;
  }

  .hero {
    padding-top: 44px
  }

  .visual-card {
    min-height: 330px
  }

  .intersection {
    inset: 22px
  }

  .floating-panel {
    left: 18px;
    right: 18px;
    width: auto
  }

  .sign {
    width: 58px;
    height: 58px;
    font-size: 28px
  }
}

@media(max-width:420px) {
  .nav {
    padding-inline: 14px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .nav-links button,
  .nav-links a:not(.nav-btn):not(.nav-cta) {
    width: 100%;
  }

  .logo-text small {
    font-size: 11px;
  }
}

.app-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: min(390px, 100%);
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.contact-page {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.contact-page h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -1.4px;
}

.contact-form {
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: white;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(8, 17, 31, .72);
  color: white;
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-message.success {
  color: #86efac;
}

.form-message.error {
  color: #fca5a5;
}

.form-message.warning {
  color: #fbbf24;
}

.admin-section {
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  margin: 28px 0;
}

.contact-requests-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-request-card {
  background: rgba(8, 17, 31, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 18px;
}

.contact-request-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.contact-request-head span {
  color: var(--muted);
  font-size: 13px;
}

.contact-request-card p {
  margin: 8px 0;
  color: var(--muted);
}

.contact-request-card a {
  color: #86efac;
}

.contact-request-message {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: white;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ==========================================================================
   Shared form/admin/account/auth styles
   ========================================================================== */

.page-card {
  width: min(100%, 900px);
  margin: 0 auto;
  background: #111827;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.row {
  margin: 10px 0;
  padding: 12px;
  background: #1e293b;
  border-radius: 10px;
}

.small {
  opacity: .8;
  font-size: 14px;
}

.msg {
  margin-top: 14px;
  min-height: 22px;
  color: var(--muted);
  white-space: pre-line;
}

.err,
.msg.err {
  color: #f87171;
}

.ok,
.msg.ok {
  color: #4ade80;
}

.reset-success-message {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(74, 222, 128, .35);
  border-radius: 16px;
  background: rgba(34, 197, 94, .12);
  color: #bbf7d0;
  line-height: 1.5;
}

.reset-success-message strong {
  color: #ffffff;
  font-size: 20px;
}

.auth-page .auth-login-btn {
  width: 100%;
  min-height: 46px;
  padding: 14px;
  border-radius: 10px;
  background: var(--green);
  color: #001;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-page,
.account-page,
.admin-page {
  min-height: 100vh;
}

.auth-page {
  display: block;
}

.auth-main,
.account-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
}

.auth-main {
  align-items: center;
  min-height: calc(100vh - 79px);
}

.account-page,
.admin-page {
  padding: 0;
}

.admin-page {
  padding: 30px;
}

.auth-page .page-card,
.auth-page .card {
  width: 100%;
  max-width: 420px;
  background: #111827;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.account-page .page-card,
.account-page .card {
  max-width: 760px;
}

.admin-page .page-card,
.admin-page .card {
  width: min(100%, 1180px);
  max-width: 1180px;
}

.auth-page h1,
.account-page h1,
.admin-page h1 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.auth-page input,
.admin-page input,
.admin-page select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  margin: 8px 0 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: white;
  font-size: 16px;
}

.admin-page input,
.admin-page select {
  padding: 12px;
}

.auth-page input:focus,
.admin-page input:focus,
.admin-page select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.auth-page .card a {
  color: #60a5fa;
}

.auth-consent {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.auth-page button,
.account-page button,
.admin-page button,
.admin-page a.btn,
.account-page a.btn {
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 8px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.auth-page button {
  width: 100%;
  padding: 14px;
  background: #3b82f6;
  color: white;
  font-size: 16px;
}

.register-page button {
  background: var(--green);
  color: #001;
}

.account-page button,
.account-page .btn-danger {
  background: var(--red);
  color: white;
}

.account-page a.btn,
.admin-page a.btn {
  background: #3b82f6;
  color: white;
}

.admin-page button {
  background: #3b82f6;
  color: white;
}

.admin-page .danger {
  background: var(--red);
  color: white;
}

.admin-page .good {
  background: var(--green);
  color: #001;
}

.admin-page .warn {
  background: #eab308;
  color: #001;
}

.admin-page .admin-section {
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  margin: 28px 0;
}

.contact-requests-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-request-card {
  background: rgba(8, 17, 31, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 18px;
}

.contact-request-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.contact-request-head span {
  color: var(--muted);
  font-size: 13px;
}

.contact-request-card p {
  margin: 8px 0;
  color: var(--muted);
}

.contact-request-card a {
  color: #86efac;
}

.contact-request-message {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: white;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  flex-wrap: wrap;
}

.admin-pagination button {
  margin: 0;
}

.admin-pagination button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.admin-pagination span {
  color: var(--muted);
}

.user-sessions-box {
  min-width: 0;
  margin-top: 16px;
}


.devices-help {
  margin-top: -4px;
  color: #cbd5e1;
  line-height: 1.5;
}

.session-device-label {
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
}

.user-sessions-table .session-device-id {
  display: block;
  margin-top: 5px;
  color: #86efac;
  font-size: 12px;
  font-weight: 400;
}

.user-sessions-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .72);
  font-weight: 700;
}

.user-sessions-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin-top: 14px;
}

.user-sessions-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: rgba(8, 17, 31, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  overflow: hidden;
}

.user-sessions-table th,
.user-sessions-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
  vertical-align: top;
}

.user-sessions-table th {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.user-sessions-table td {
  color: #f8fafc;
  font-size: 14px;
}

.user-sessions-table tr:last-child td {
  border-bottom: 0;
}

.user-sessions-table code {
  color: #86efac;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.user-sessions-table .user-agent {
  max-width: 320px;
  margin-top: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.user-sessions-table .session-revoke-btn {
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  white-space: nowrap;
}


@media(max-width:700px) {
  .account-page .card {
    min-width: 0;
  }

  .user-sessions-table-wrap {
    overflow-x: visible;
  }

  .user-sessions-table,
  .user-sessions-table thead,
  .user-sessions-table tbody,
  .user-sessions-table tr,
  .user-sessions-table th,
  .user-sessions-table td {
    display: block;
  }

  .user-sessions-table {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .user-sessions-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .user-sessions-table tbody {
    display: grid;
    gap: 14px;
  }

  .user-sessions-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(8, 17, 31, .72);
  }

  .user-sessions-table td {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .user-sessions-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
  }

  .user-sessions-table .session-platform-cell {
    order: 1;
  }

  .user-sessions-table .session-device-cell {
    order: 2;
  }

  .user-sessions-table .session-status-cell {
    order: 3;
  }

  .user-sessions-table .session-last-seen-cell {
    order: 4;
  }

  .user-sessions-table .session-created-cell {
    order: 5;
  }

  .user-sessions-table .session-action-cell {
    order: 6;
  }

  .user-sessions-table .session-revoke-btn {
    width: 100%;
    margin-top: 2px;
    white-space: normal;
  }
}

@media(max-width:560px) {
  .auth-main,
  .account-main {
    padding: 18px;
  }

  .admin-page {
    padding: 18px;
  }

  .page-card,
  .auth-page .card,
  .account-page .card,
  .admin-page .card {
    padding: 22px;
  }

  .contact-request-head {
    flex-direction: column;
  }
}


.mt-0 {
  margin-top: 0;
}

.muted-text {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions-compact {
  margin-top: 18px;
}

.hero-actions-center {
  justify-content: center;
}

.btn-trainer,
.account-page a.btn-trainer {
  background: linear-gradient(135deg, var(--green), #86efac);
  color: #03110a;
  box-shadow: 0 14px 34px rgba(34, 197, 94, .2);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.account-actions .btn,
.account-actions button {
  flex: 1 1 160px;
  margin: 0;
}

@media(max-width:560px) {
  .account-actions {
    flex-direction: column;
  }

  .account-actions .btn,
  .account-actions button {
    width: 100%;
    flex-basis: auto;
  }
}

.cta-note {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.continue-card,
.auth-helper {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}

.continue-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -.3px;
}

.continue-card p,
.auth-helper p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.auth-helper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 150px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, .08);
  font-weight: 700;
  text-align: center;
}

@media(max-width:560px) {
  .hero-actions .btn {
    width: 100%;
  }

  .auth-helper-links {
    flex-direction: column;
  }

  .auth-helper-links a {
    width: 100%;
    flex-basis: auto;
  }
}

.admin-account-btn {
  background: var(--green) !important;
  color: #001 !important;
}


.nav-links .nav-logout {
  min-height: 40px;
  margin: 0;
  padding: 10px 15px;
  border-radius: 999px;
  color: white !important;
  line-height: 1.2;
}

[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =======================================================================
   Pricing page
   ======================================================================= */

.pricing-hero {
  padding-bottom: 20px;
}

.pricing-hero h1 {
  margin-bottom: 16px;
}

.pricing-section {
  padding-top: 20px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.pricing-card-featured {
  background:
    radial-gradient(circle at 85% 0, rgba(34, 197, 94, .24), transparent 34%),
    rgba(255, 255, 255, .085);
  border-color: rgba(134, 239, 172, .32);
}

.pricing-card-school {
  background: linear-gradient(135deg, rgba(34, 197, 94, .13), rgba(56, 189, 248, .10));
}

.pricing-card-head h2 {
  margin: 12px 0 8px;
  font-size: 30px;
  letter-spacing: -.7px;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(56, 189, 248, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 800;
}

.price {
  margin: 0;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.8px;
}

.price span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.pricing-service,
.pricing-note {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.pricing-note:empty {
  display: none;
}

.pricing-note-error {
  color: #fecaca;
}

.pricing-features {
  display: grid;
  gap: 10px;
}

.pricing-features h3,
.pricing-school-box h3 {
  margin: 0;
  color: white;
  font-size: 18px;
}

.pricing-features ul {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-features p,
.pricing-school-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-school-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  background: #0b1220;
  border: 1px solid var(--line);
}

.pricing-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.pricing-actions .btn {
  width: 100%;
}

.btn-disabled,
.btn-disabled:hover {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media(max-width:980px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

@media(max-width:560px) {
  .pricing-card {
    padding: 22px;
    border-radius: 24px;
  }

  .price {
    font-size: 30px;
  }
}

/* =======================================================================
   Privacy page
   ======================================================================= */

.privacy-section {
  max-width: 980px;
}

.privacy-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.privacy-card h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
  overflow-wrap: break-word;
  hyphens: auto;
}

.privacy-card .btn-primary {
  background: linear-gradient(135deg, #2563eb, var(--blue));
  color: white;
  box-shadow: 0 18px 45px rgba(37, 99, 235, .28);
}

.privacy-card .btn-primary:hover {
  color: white;
  box-shadow: 0 20px 52px rgba(37, 99, 235, .36);
}

.privacy-block {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.privacy-block h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 14px;
  letter-spacing: -.6px;
}

.privacy-block h3 {
  margin: 20px 0 10px;
  color: white;
  font-size: 18px;
}

.privacy-block p,
.privacy-block li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.privacy-block p {
  margin: 0 0 14px;
}

.privacy-block ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.privacy-block a {
  color: #93c5fd;
  overflow-wrap: anywhere;
}

@media(max-width:560px) {
  .privacy-section {
    padding-top: 32px;
  }

  .privacy-card {
    border-radius: 22px;
  }

  .privacy-card h1 {
    font-size: clamp(28px, 9vw, 34px);
    line-height: 1.08;
    letter-spacing: -.9px;
  }

  .privacy-block p,
  .privacy-block li {
    font-size: 16px;
  }
}

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

.account-deletion-page .auth-main {
  min-height: 100vh;
  padding: 40px 16px;
}

.account-deletion-card {
  max-width: 720px;
  text-align: left;
}

.account-deletion-card h1 {
  text-align: center;
}

.account-deletion-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.account-deletion-card li {
  margin: 4px 0;
}

.account-deletion-card button:disabled {
  opacity: .65;
  cursor: wait;
}

.admin-users-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) minmax(190px, 240px) auto;
  gap: 12px;
  align-items: center;
}

.admin-users-filters input,
.admin-users-filters select,
.admin-users-filters button {
  margin: 0;
}

.admin-users-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 18px 0;
}

.admin-users-counter {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(8, 17, 31, .72);
}

.admin-users-counter span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-users-counter b {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.1;
}

.admin-users-table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-users-table {
  min-width: 1060px;
  table-layout: fixed;
}

.admin-users-col-id { width: 9%; }
.admin-users-col-email { width: 19%; }
.admin-users-col-status { width: 8%; }
.admin-users-col-role { width: 8%; }
.admin-users-col-access { width: 12%; }
.admin-users-col-expires { width: 15%; }
.admin-users-col-devices { width: 9%; }
.admin-users-col-created { width: 10%; }
.admin-users-col-last-seen { width: 10%; }

.admin-users-table th,
.admin-users-table td {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.admin-users-table th {
  hyphens: auto;
}

.admin-users-table td {
  white-space: normal;
}

.admin-users-table code {
  display: block;
  max-width: 100%;
}

.admin-users-email {
  display: block;
  max-width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent !important;
  color: #86efac !important;
  font: inherit;
  font-weight: 700;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-users-email-note {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(251, 191, 36, .45);
  border-radius: 999px;
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.3;
}

@media(max-width:900px) {
  .admin-users-filters {
    grid-template-columns: 1fr;
  }
}

@media(max-width:700px) {
  .admin-users-table-wrap {
    overflow-x: visible;
  }

  .admin-users-table {
    width: 100%;
    min-width: 0;
  }

  .admin-users-table tbody {
    width: 100%;
    max-width: 100%;
  }

  .admin-users-table tr {
    width: 100%;
    max-width: 100%;
  }

  .admin-users-table td,
  .admin-users-table .small,
  .admin-users-table code,
  .admin-users-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media(max-width:420px) {
  .admin-users-counters {
    grid-template-columns: minmax(0, 1fr);
  }
}
