:root {
  --ink: #141828;
  --muted: #667085;
  --paper: #fffaf0;
  --sun: #ffd447;
  --red: #d52136;
  --blue: #22306f;
  --teal: #00a78e;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(20, 24, 40, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 71, .5), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(0, 167, 142, .22), transparent 28%),
    linear-gradient(145deg, #fff9e7 0%, #fff 48%, #eef7ff 100%);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

body.night-mode {
  --ink: #f8fafc;
  --muted: #b8c3d6;
  --white: #172033;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 71, .12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(0, 167, 142, .18), transparent 26%),
    linear-gradient(145deg, #070b14 0%, #101829 48%, #071f27 100%);
}

.night-mode .site-header,
.night-mode .course-card,
.night-mode .product-card,
.night-mode .gallery-item,
.night-mode .empty-state,
.night-mode .feature-list div,
.night-mode .step,
.night-mode .contact-card,
.night-mode .lead-form,
.night-mode .quick-stats span {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(17, 24, 39, .78);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .24);
}

.night-mode .hero-text,
.night-mode .course-card p,
.night-mode .course-card small,
.night-mode .product-body p,
.night-mode .feature-list p,
.night-mode .contact-card p,
.night-mode .gallery-item figcaption,
.night-mode .laptops .section-heading p {
  color: #c8d2e2;
}

.night-mode .btn.secondary,
.night-mode .lead-form input,
.night-mode .lead-form select {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(15, 23, 42, .9);
}

.night-mode .header-call {
  color: #101829;
  background: #ffd447;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 48, 111, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 48, 111, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  z-index: -2;
}

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

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hindi {
  font-family: "Noto Sans Devanagari", Inter, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 60px rgba(34, 48, 111, .12);
  backdrop-filter: blur(18px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--white);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(213, 33, 54, .24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-stack {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.header-call,
.login-link {
  border-radius: 18px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(34, 48, 111, .08);
}

.header-call {
  color: var(--white);
  background: var(--ink);
  white-space: nowrap;
}

.login-link {
  color: var(--blue);
  background: rgba(34, 48, 111, .08);
  white-space: nowrap;
}

.night-mode .login-link {
  color: #ffd447;
  background: rgba(255, 212, 71, .12);
}

.theme-toggle {
  position: relative;
  width: 62px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(135deg, var(--sun), #f45b31);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 40, .08);
}

.theme-toggle span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 24, 40, .22);
  transition: transform .25s ease;
}

.night-mode .theme-toggle {
  background: linear-gradient(135deg, #22306f, #00a78e);
}

.night-mode .theme-toggle span {
  transform: translateX(28px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 88px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(50px, 8vw, 112px);
  line-height: .9;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  font-size: 34px;
  line-height: 1;
}

.hero-subtitle {
  margin: 24px 0 12px;
  color: var(--blue);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.18;
}

.hero-text {
  max-width: 660px;
  margin: 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #f45b31);
  box-shadow: 0 18px 42px rgba(213, 33, 54, .28);
}

.btn.secondary {
  color: var(--blue);
  border: 1px solid rgba(34, 48, 111, .18);
  background: rgba(255, 255, 255, .78);
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.quick-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 36px rgba(34, 48, 111, .08);
  color: var(--muted);
  font-weight: 800;
}

.quick-stats strong {
  color: var(--ink);
  font-size: 22px;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  perspective: 1100px;
}

.laptop-3d {
  position: relative;
  width: min(92vw, 520px);
  transform-style: preserve-3d;
  animation: floatLaptop 6s ease-in-out infinite;
}

.screen {
  position: relative;
  height: 330px;
  border: 16px solid #18203e;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), transparent),
    linear-gradient(145deg, #202b62 0%, #12182e 100%);
  box-shadow: var(--shadow);
  transform: rotateX(8deg) rotateY(-16deg);
  transform-style: preserve-3d;
  overflow: hidden;
}

.screen::after {
  content: "";
  position: absolute;
  inset: -70px auto auto -20%;
  width: 70%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: rotate(18deg);
  animation: shine 4.8s linear infinite;
}

.screen-top {
  height: 42px;
  background: rgba(255, 255, 255, .08);
}

.screen-top::before {
  content: "";
  display: block;
  width: 72px;
  height: 12px;
  margin: 15px 0 0 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff5f57, #ffbd2e, #28c840);
}

.code-lines {
  display: grid;
  gap: 15px;
  padding: 34px 28px;
}

.code-lines span {
  display: block;
  height: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 212, 71, .94), rgba(0, 167, 142, .82));
  transform-origin: left;
  animation: codePulse 2.5s ease-in-out infinite;
}

.code-lines span:nth-child(2) {
  width: 74%;
  animation-delay: .2s;
}

.code-lines span:nth-child(3) {
  width: 58%;
  animation-delay: .4s;
}

.code-lines span:nth-child(4) {
  width: 86%;
  animation-delay: .6s;
}

.screen-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  width: 168px;
  padding: 18px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .24);
  transform: translateZ(52px);
}

.screen-card strong {
  font-size: 36px;
  line-height: 1;
}

.screen-card small {
  font-weight: 800;
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  width: 95%;
  height: 92px;
  margin: -4px auto 0;
  padding: 18px;
  border-radius: 18px 18px 34px 34px;
  background: linear-gradient(180deg, #f7fafc, #ccd5e1);
  box-shadow: 0 30px 55px rgba(20, 24, 40, .18);
  transform: rotateX(62deg) rotateY(-10deg) translateY(-12px);
  transform-origin: top;
}

.keyboard span {
  border-radius: 7px;
  background: #8b98ae;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}

.orbital-ring {
  position: absolute;
  border: 1px solid rgba(34, 48, 111, .2);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.ring-one {
  width: 520px;
  height: 520px;
  animation: orbit 12s linear infinite;
}

.ring-two {
  width: 380px;
  height: 380px;
  border-color: rgba(213, 33, 54, .22);
  animation: orbit 9s linear infinite reverse;
}

.floating-badge {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(20, 24, 40, .22);
  animation: bob 4s ease-in-out infinite;
}

.badge-a {
  top: 96px;
  left: 18px;
  background: var(--blue);
}

.badge-b {
  right: 4px;
  top: 178px;
  background: var(--red);
  animation-delay: .6s;
}

.badge-c {
  left: 74px;
  bottom: 118px;
  background: var(--teal);
  animation-delay: 1.1s;
}

.marquee-band {
  overflow: hidden;
  padding: 18px 0;
  background: var(--ink);
  color: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: var(--sun);
  font-size: 24px;
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1000px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(34, 48, 111, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 56px rgba(34, 48, 111, .1);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 212, 71, .5);
  z-index: 0;
}

.course-card:hover {
  box-shadow: 0 28px 70px rgba(34, 48, 111, .18);
}

.course-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.course-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.course-card h3 {
  position: relative;
  z-index: 1;
}

.course-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--red);
  font-weight: 900;
}

.course-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.laptops .section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

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

.product-card,
.gallery-item,
.empty-state {
  border: 1px solid rgba(34, 48, 111, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 56px rgba(34, 48, 111, .1);
  overflow: hidden;
}

.product-card {
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(34, 48, 111, .16), rgba(0, 167, 142, .18));
}

.product-media img,
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-media span {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.product-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--blue);
  font-size: 36px;
  font-weight: 900;
}

.product-body {
  padding: 22px;
}

.product-body h3 {
  font-size: 26px;
}

.product-body p {
  color: var(--muted);
  line-height: 1.6;
}

.product-body strong {
  display: block;
  margin: 18px 0;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.gallery-item {
  margin: 0;
}

.gallery-item img,
.gallery-item video {
  aspect-ratio: 4 / 3;
}

.gallery-item figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.visual-panel {
  display: grid;
  place-items: center;
  min-height: 430px;
}

.cube-scene {
  width: 220px;
  height: 220px;
  perspective: 900px;
}

.cube {
  position: relative;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  animation: spinCube 10s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .72);
  color: var(--white);
  background: linear-gradient(135deg, rgba(213, 33, 54, .92), rgba(34, 48, 111, .9));
  box-shadow: inset 0 0 45px rgba(255, 255, 255, .08);
  font-size: 42px;
  font-weight: 900;
}

.front { transform: translateZ(110px); }
.back { transform: rotateY(180deg) translateZ(110px); }
.right { transform: rotateY(90deg) translateZ(110px); }
.left { transform: rotateY(-90deg) translateZ(110px); }
.top { transform: rotateX(90deg) translateZ(110px); }
.bottom { transform: rotateX(-90deg) translateZ(110px); }

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.feature-list div,
.step,
.contact-card {
  border: 1px solid rgba(34, 48, 111, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 56px rgba(34, 48, 111, .1);
}

.feature-list div {
  padding: 22px;
}

.feature-list strong {
  font-size: 20px;
}

.feature-list p,
.step p,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admission {
  text-align: center;
}

.admission .section-heading {
  margin-left: auto;
  margin-right: auto;
}

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

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr auto;
  gap: 12px;
  align-items: end;
  margin: 26px auto 0;
  padding: 14px;
  border: 1px solid rgba(34, 48, 111, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 56px rgba(34, 48, 111, .1);
  text-align: left;
}

.lead-form.large {
  grid-template-columns: 1fr 1fr 1.1fr 1.1fr auto;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(34, 48, 111, .14);
  border-radius: 16px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(34, 48, 111, .1);
}

.step {
  padding: 28px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 22px;
  font-weight: 900;
}

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

.contact {
  padding-top: 40px;
}

.contact-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .72)),
    linear-gradient(135deg, rgba(255, 212, 71, .35), rgba(0, 167, 142, .18));
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-weight: 800;
}

.notice {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.notice.success {
  color: #05603a;
  background: #d1fadf;
}

.notice.error {
  color: #b42318;
  background: #fee4e2;
}

.login-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.login-hint a {
  color: var(--red);
  font-weight: 900;
}

.flash-section {
  padding-top: 18px;
  padding-bottom: 0;
}

.install-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.install-box {
  width: min(620px, 100%);
  padding: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

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

.auth-wrap {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.auth-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.auth-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.admin-box,
.admin-card,
.admin-list,
.admin-stats div {
  border: 1px solid rgba(34, 48, 111, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 56px rgba(34, 48, 111, .1);
}

.admin-box {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  padding: 30px;
}

.admin-box label,
.admin-card label {
  display: grid;
  gap: 8px;
}

.admin-box span,
.admin-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-box input,
.admin-card input,
.admin-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(34, 48, 111, .14);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 32px rgba(34, 48, 111, .08);
  backdrop-filter: blur(18px);
}

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

.admin-header small {
  color: var(--muted);
  margin-top: 4px;
}

.admin-header nav {
  display: flex;
  gap: 10px;
}

.admin-header a,
.actions a,
.actions button,
.mini-row button {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-wrap {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.admin-stats div {
  padding: 22px;
}

.admin-stats strong {
  display: block;
  color: var(--red);
  font-size: 34px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 900;
}

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

.admin-card {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.admin-card h2,
.admin-list h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.admin-card p {
  color: var(--muted);
  line-height: 1.6;
}

.check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--muted);
  font-weight: 900;
}

.check input {
  width: auto;
  min-height: auto;
}

.admin-list {
  margin-top: 18px;
  padding: 20px;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid rgba(34, 48, 111, .1);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.actions form,
.mini-row form {
  margin: 0;
}

.actions button,
.mini-row button {
  background: var(--red);
}

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

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 48, 111, .1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatLaptop {
  0%, 100% { transform: translateY(0) rotateZ(-1deg); }
  50% { transform: translateY(-22px) rotateZ(1.2deg); }
}

@keyframes shine {
  from { transform: translateX(-120%) rotate(18deg); }
  to { transform: translateX(260%) rotate(18deg); }
}

@keyframes codePulse {
  0%, 100% { transform: scaleX(.72); opacity: .65; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes orbit {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 44px); }
  50% { transform: translate3d(0, -18px, 68px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spinCube {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 22px;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
    order: 1;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    order: 2;
  }

  .nav-links {
    display: none;
    order: 5;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    display: grid;
    place-items: center;
    min-height: 42px;
    background: rgba(34, 48, 111, .08);
  }

  .header-actions {
    display: contents;
  }

  .account-stack {
    order: 4;
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .account-stack .header-call,
  .account-stack .login-link {
    display: flex;
    flex: 1 1 0;
    place-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 13px;
    font-size: 12px;
  }

  .theme-toggle {
    order: 3;
    justify-self: end;
  }

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-stage {
    min-height: 390px;
    order: -1;
  }

  .laptop-3d {
    width: min(82vw, 420px);
  }

  .screen {
    height: 275px;
  }

  .course-grid,
  .admission-grid,
  .product-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form,
  .lead-form.large {
    grid-template-columns: 1fr 1fr;
  }

  .admin-grid,
  .admin-columns,
  .admin-stats,
  .auth-wrap,
  .auth-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-wrap {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .theme-toggle {
    width: 50px;
    height: 28px;
    padding: 3px;
  }

  .theme-toggle span {
    width: 22px;
    height: 22px;
  }

  .night-mode .theme-toggle span {
    transform: translateX(22px);
  }

  .header-actions {
    gap: 7px;
  }

  .account-stack .header-call,
  .account-stack .login-link {
    min-width: 0;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .hero,
  .section,
  footer {
    width: min(100% - 22px, 1180px);
  }

  h1 {
    font-size: clamp(40px, 14vw, 58px);
    line-height: .96;
  }

  h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  h3 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: clamp(20px, 7vw, 28px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions,
  .quick-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .quick-stats span {
    width: 100%;
  }

  .hero-stage {
    min-height: 310px;
    overflow: hidden;
  }

  .screen {
    height: 210px;
    border-width: 12px;
    border-radius: 20px;
  }

  .screen-card {
    width: 116px;
    padding: 13px;
    right: 16px;
    bottom: 16px;
  }

  .screen-card strong {
    font-size: 28px;
  }

  .keyboard {
    height: 58px;
    gap: 5px;
    padding: 12px;
  }

  .ring-one {
    width: 260px;
    height: 260px;
  }

  .ring-two {
    width: 190px;
    height: 190px;
  }

  .floating-badge {
    min-width: 62px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .badge-a { left: 4px; top: 48px; }
  .badge-b { right: 2px; top: 88px; }
  .badge-c { left: 22px; bottom: 58px; }

  .course-grid,
  .admission-grid,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lead-form,
  .lead-form.large {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-columns,
  .admin-stats,
  .auth-panels {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-card {
    min-height: 0;
  }

  .cube-scene,
  .cube {
    width: 168px;
    height: 168px;
  }

  .front { transform: translateZ(84px); }
  .back { transform: rotateY(180deg) translateZ(84px); }
  .right { transform: rotateY(90deg) translateZ(84px); }
  .left { transform: rotateY(-90deg) translateZ(84px); }
  .top { transform: rotateX(90deg) translateZ(84px); }
  .bottom { transform: rotateX(-90deg) translateZ(84px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
