:root {
  --blue: #08a9d9;
  --blue-dark: #007aa7;
  --blue-soft: #e6f9ff;
  --white: #ffffff;
  --ink: #101820;
  --muted: #657786;
  --danger: #d62828;
  --success: #198754;
  --warning: #b26b00;
  --shadow: 0 18px 55px rgba(0, 122, 167, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #f8fdff;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(8, 169, 217, 0.23), transparent 270px),
    radial-gradient(circle at bottom right, rgba(8, 169, 217, 0.15), transparent 300px),
    linear-gradient(180deg, #f8fdff, #e8faff);
}

.hidden {
  display: none !important;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.auth-page {
  min-height: 100svh;
  width: min(1120px, calc(100% - 36px));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
  padding: 34px 0;
}

.auth-logo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: floatLogo 5s ease-in-out infinite;
}

.eyebrow {
  margin: 22px 0 14px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.auth-hero h1,
.hero-content h1 {
  max-width: 690px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -4px;
}

.auth-hero h1 span,
.hero-content h1 span,
.section-title h2 span {
  color: var(--blue);
}

.auth-hero p,
.auth-card p,
.hero-content p,
.section-title p,
.info-card p,
.status-card p {
  color: var(--muted);
  line-height: 1.75;
}

.auth-hero > p:last-child {
  max-width: 560px;
  margin-top: 22px;
  font-size: 18px;
}

.auth-card,
.info-card,
.stat-card,
.summary-card,
.panel,
.status-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card {
  padding: 28px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.tab-btn {
  border: 0;
  padding: 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.tab-btn.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 122, 167, 0.12);
}

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

.auth-form h2 {
  font-size: 36px;
  letter-spacing: -2px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(8, 169, 217, 0.25);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 169, 217, 0.12);
}

textarea {
  resize: vertical;
}

.btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

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

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 26px rgba(8, 169, 217, 0.25);
}

.ghost-btn {
  color: var(--blue-dark);
  background: white;
  border: 1px solid rgba(8, 169, 217, 0.22);
}

.danger-btn {
  margin-bottom: 18px;
  color: var(--danger);
  background: #fff0f0;
  border: 1px solid rgba(214, 40, 40, 0.18);
}

.form-message {
  min-height: 22px;
  color: var(--danger);
  font-weight: 900;
  line-height: 1.5;
}

.form-message.success {
  color: var(--success);
}

.guest-access {
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
  gap: 10px;
  text-align: center;
  border-top: 1px solid rgba(8, 169, 217, 0.16);
}

.guest-btn {
  width: 100%;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid rgba(8, 169, 217, 0.22);
}

.guest-access p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(8, 169, 217, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  background: var(--blue-soft);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

#roleBadge {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

#logoutBtn {
  border: 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--danger);
  background: #fff0f0;
  font-weight: 900;
  cursor: pointer;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: auto;
  padding: 70px 0;
}

.hero-section {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 38px;
  align-items: center;
}

.hero-content p {
  max-width: 620px;
  margin: 24px 0;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-grid,
.summary-grid,
.cards-grid,
.forms-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.stat-card,
.summary-card {
  padding: 20px;
}

.stat-card strong,
.summary-card strong {
  display: block;
  font-size: 24px;
  letter-spacing: -1px;
}

.stat-card span,
.summary-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.logo-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(8, 169, 217, 0.18);
  box-shadow: var(--shadow);
}

.logo-stage img {
  position: relative;
  z-index: 2;
  width: 320px;
  border-radius: 50%;
  filter: drop-shadow(0 20px 26px rgba(0, 122, 167, 0.16));
}

.orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 22px solid rgba(8, 169, 217, 0.11);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2,
.status-card h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 14px;
}

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

.info-card {
  padding: 24px;
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 65px rgba(0, 122, 167, 0.22);
}

.info-card h3 {
  margin: 14px 0 8px;
  font-size: 24px;
  letter-spacing: -1px;
}

.icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: var(--blue);
  font-size: 22px;
}

.status-card {
  padding: 34px;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 20px;
}

.profit-card {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.profit-card span {
  color: rgba(255, 255, 255, 0.82);
}

.forms-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.panel {
  padding: 24px;
  margin-top: 18px;
}

.panel h3 {
  margin-bottom: 18px;
  font-size: 24px;
  letter-spacing: -1px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.records-top {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-list {
  display: grid;
  gap: 12px;
}

.record-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 169, 217, 0.16);
}

.record-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(8, 169, 217, 0.1);
}

.record-row:last-child {
  border-bottom: 0;
}

.record-label {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.record-value {
  color: #243746;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.paid {
  color: var(--success);
  background: #eafff2;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.due {
  color: var(--warning);
  background: #fff5dd;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.delete-btn {
  width: 100%;
  margin-top: 12px;
  border: 0;
  padding: 11px;
  border-radius: 14px;
  color: var(--danger);
  background: #fff0f0;
  font-weight: 900;
  cursor: pointer;
}

.empty-message {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 169, 217, 0.14);
}

footer {
  width: min(1120px, calc(100% - 36px));
  margin: auto;
  padding: 30px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}


/* ===============================
   STUDENT HOME LEADERBOARD
================================ */

.student-home-leaderboard {
  margin: 0 0 26px;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 140px),
    linear-gradient(135deg, rgba(8, 169, 217, 0.95), rgba(91, 83, 255, 0.92));
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.leaderboard-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.student-home-leaderboard .eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.8);
}

.leaderboard-hero-card h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -2px;
}

.leaderboard-hero-card p {
  margin: 10px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.leaderboard-rank-bubble {
  width: 116px;
  height: 116px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.leaderboard-rank-bubble span {
  display: block;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -2px;
}

.leaderboard-rank-bubble small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leaderboard-mini-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 14px;
}

.leaderboard-mini-card {
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.leaderboard-mini-card > span {
  display: block;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leaderboard-mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 36px;
  letter-spacing: -1px;
}

.leaderboard-mini-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 800;
}

.home-top-students {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.home-top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(8, 169, 217, 0.08);
}

.home-top-row.mine {
  background: linear-gradient(135deg, rgba(8, 169, 217, 0.16), rgba(115, 55, 200, 0.12));
  outline: 2px solid rgba(8, 169, 217, 0.16);
}

.home-top-row b {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-size: 13px;
}

.home-top-row strong,
.home-top-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-top-row strong {
  color: var(--ink);
  font-size: 14px;
}

.home-top-row span {
  color: var(--blue-dark);
  font-weight: 950;
  font-size: 13px;
}

.leaderboard-actions-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-home-leaderboard .ghost-btn {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 760px) {
  .student-home-leaderboard {
    padding: 18px;
    border-radius: 26px;
  }

  .leaderboard-hero-card,
  .leaderboard-mini-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-rank-bubble {
    width: 100%;
    height: auto;
    min-height: 88px;
    border-radius: 24px;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 10px;
  }

  .leaderboard-rank-bubble span {
    font-size: 34px;
  }
}



/* ===============================
   GUEST NEWS PAGE
================================ */

.guest-page {
  min-height: 100svh;
}

.guest-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(8, 169, 217, 0.16);
  backdrop-filter: blur(18px);
}

.guest-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.guest-brand strong {
  display: block;
  font-size: 18px;
}

.guest-brand span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.guest-hero {
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100svh - 76px);
  margin: auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}

.guest-hero h1 {
  max-width: 720px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -4px;
}

.guest-hero h1 span {
  color: var(--blue);
}

.guest-hero p {
  max-width: 620px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.guest-hero-card,
.contact-card,
.guest-news-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.guest-hero-card {
  padding: 34px;
  text-align: center;
}

.guest-hero-card img {
  width: 220px;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: logoFloat 5s ease-in-out infinite;
}

.guest-hero-card h2 {
  font-size: 34px;
  letter-spacing: -2px;
}

.guest-hero-card p {
  margin: 12px auto 0;
  font-size: 15px;
}

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

.guest-news-card {
  overflow: hidden;
}

.news-image,
.video-box {
  min-height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), rgba(8, 169, 217, 0.18));
}

.placeholder-image {
  font-size: 58px;
}

.video-box {
  text-align: center;
  color: var(--blue-dark);
  font-weight: 900;
}

.play-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 28px;
  box-shadow: 0 14px 28px rgba(8, 169, 217, 0.25);
}

.video-box p {
  margin-top: 12px;
}

.news-content {
  padding: 22px;
}

.news-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
}

.news-content h3 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -1px;
}

.news-content p {
  color: var(--muted);
  line-height: 1.65;
}

.guest-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(8, 169, 217, 0.32);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.contact-card {
  padding: 34px;
  text-align: center;
}

.contact-card h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 14px;
}

.contact-card p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.magic-stage {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  overflow: hidden;
  border-radius: 46px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72) 42%, rgba(8, 169, 217, 0.11)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(230, 249, 255, 0.88));
}

.magic-stage::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 42px;
  background:
    radial-gradient(circle, transparent 44%, rgba(8, 169, 217, 0.10) 45%, transparent 63%);
  animation: softPulse 4s ease-in-out infinite;
  z-index: -1;
}

.stage-logo {
  position: relative;
  z-index: 5;
  width: 300px;
  border-radius: 50%;
  filter: drop-shadow(0 24px 30px rgba(0, 122, 167, 0.20));
  animation: logoFloat 5s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(8, 169, 217, 0.12);
  z-index: 1;
}

.orbit-ring-one {
  width: 360px;
  height: 360px;
  animation: spin 20s linear infinite;
}

.orbit-ring-two {
  width: 430px;
  height: 430px;
  border-style: dashed;
  animation: spinReverse 28s linear infinite;
}

.orbit-words {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  animation: spin 22s linear infinite;
  z-index: 8;
}

.orbit-word {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 169, 217, 0.20);
  box-shadow: 0 12px 24px rgba(0, 122, 167, 0.12);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transform-origin: center;
  animation: keepTextStraight 22s linear infinite;
}

.word-1 {
  transform: rotate(0deg) translateX(185px) rotate(0deg);
}

.word-2 {
  transform: rotate(72deg) translateX(185px) rotate(-72deg);
}

.word-3 {
  transform: rotate(144deg) translateX(185px) rotate(-144deg);
}

.word-4 {
  transform: rotate(216deg) translateX(185px) rotate(-216deg);
}

.word-5 {
  transform: rotate(288deg) translateX(185px) rotate(-288deg);
}

.reveal-motion {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-motion.show-motion {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-14px) scale(1.03);
  }
}

@keyframes softPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes keepTextStraight {
  to {
    rotate: -360deg;
  }
}

@keyframes recordPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes recordPulseButton {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 850px) {
  .auth-page {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 18px 40px;
    text-align: center;
  }

  .auth-logo {
    width: 94px;
    height: 94px;
  }

  .auth-hero h1,
  .hero-content h1 {
    font-size: 44px;
    line-height: 0.98;
    letter-spacing: -2.5px;
  }

  .auth-hero > p:last-child {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
  }

  .auth-card {
    padding: 22px;
    text-align: left;
  }

  .auth-form h2 {
    font-size: 32px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand span {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-grid;
  }

  .site-header > .nav {
    display: none;
  }

  .user-menu {
    justify-self: end;
  }

  .user-menu-btn {
    min-width: 48px;
    height: 48px;
    padding: 4px;
    gap: 0;
  }

  .user-menu-btn span,
  .user-menu-btn b {
    display: none;
  }

  .nav-profile-pic {
    width: 40px;
    height: 40px;
  }

  .user-dropdown {
    right: -4px;
    width: 180px;
  }

  .user-box {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    width: 100%;
    padding: 46px 18px;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
  }

  .hero-content p,
  .section-title p {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-buttons,
  .stats-grid,
  .cards-grid,
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .stats-grid {
    gap: 12px;
  }

  .logo-stage {
    min-height: 330px;
    border-radius: 34px;
  }

  .logo-stage img {
    width: 230px;
  }

  .orbit {
    width: 270px;
    height: 270px;
    border-width: 16px;
  }

  .magic-stage {
    min-height: 350px;
    border-radius: 34px;
  }

  .stage-logo {
    width: 220px;
  }

  .orbit-ring-one {
    width: 270px;
    height: 270px;
  }

  .orbit-ring-two {
    width: 320px;
    height: 320px;
  }

  .orbit-words {
    width: 315px;
    height: 315px;
  }

  .orbit-word {
    font-size: 11px;
    padding: 7px 10px;
  }

  .word-1 {
    transform: rotate(0deg) translateX(138px) rotate(0deg);
  }

  .word-2 {
    transform: rotate(72deg) translateX(138px) rotate(-72deg);
  }

  .word-3 {
    transform: rotate(144deg) translateX(138px) rotate(-144deg);
  }

  .word-4 {
    transform: rotate(216deg) translateX(138px) rotate(-216deg);
  }

  .word-5 {
    transform: rotate(288deg) translateX(138px) rotate(-288deg);
  }

  .section-title h2,
  .status-card h2 {
    font-size: 36px;
    letter-spacing: -2px;
  }

  .cards-grid {
    gap: 14px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .summary-card {
    padding: 18px;
    border-radius: 22px;
  }

  .summary-card strong {
    font-size: 20px;
  }

  .summary-card span {
    font-size: 11px;
  }

  .forms-grid {
    display: grid;
    gap: 14px;
  }

  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .record-row {
    grid-template-columns: 98px 1fr;
  }

  footer {
    width: 100%;
    padding: 28px 18px 40px;
  }
.guest-header {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guest-hero {
    width: 100%;
    min-height: auto;
    padding: 42px 18px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guest-hero h1 {
    font-size: 43px;
    letter-spacing: -2.5px;
  }

  .guest-hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
  }

  .guest-news-grid,
  .guest-gallery {
    grid-template-columns: 1fr;
  }

  .guest-hero-card img {
    width: 190px;
  }

  .contact-buttons {
    display: grid;
  }
}

@media (max-width: 390px) {
  .stage-logo {
    width: 195px;
  }

  .orbit-words {
    width: 285px;
    height: 285px;
  }

  .word-1 {
    transform: rotate(0deg) translateX(124px) rotate(0deg);
  }

  .word-2 {
    transform: rotate(72deg) translateX(124px) rotate(-72deg);
  }

  .word-3 {
    transform: rotate(144deg) translateX(124px) rotate(-144deg);
  }

  .word-4 {
    transform: rotate(216deg) translateX(124px) rotate(-216deg);
  }

  .word-5 {
    transform: rotate(288deg) translateX(124px) rotate(-288deg);
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .auth-hero h1,
  .hero-content h1 {
    font-size: 39px;
  }

  .logo-stage img {
    width: 210px;
  }
}

/* Dramagic Memories navbar link */
.memories-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  color: #5c6f83;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.25s ease;
}

.memories-link:hover {
  background: rgba(0, 174, 239, 0.12);
  color: #00aeef;
  transform: translateY(-1px);
}

.memories-link.active {
  background: linear-gradient(135deg, #00aeef, #7edcff);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 174, 239, 0.22);
}


/* ===============================
   MOBILE HAMBURGER APP MENU
================================ */

.mobile-menu-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 18px;
  background: var(--blue-soft);
  display: none;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 122, 167, 0.10);
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(7, 19, 27, 0.34);
  backdrop-filter: blur(8px);
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 960;
  width: min(350px, calc(100% - 42px));
  height: 100svh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 169, 217, 0.16), transparent 260px),
    rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(8, 169, 217, 0.16);
  box-shadow: -22px 0 70px rgba(0, 35, 55, 0.18);
  backdrop-filter: blur(20px);
  animation: mobileMenuIn 0.22s ease both;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(8, 169, 217, 0.14);
}

.mobile-nav-head strong,
.mobile-nav-head span {
  display: block;
}

.mobile-nav-head strong {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.5px;
}

.mobile-nav-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-nav-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.mobile-nav-links {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.mobile-nav-link {
  min-height: 52px;
  padding: 0 15px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 169, 217, 0.14);
  box-shadow: 0 10px 24px rgba(0, 122, 167, 0.06);
  font-size: 15px;
  font-weight: 950;
}

.mobile-nav-link::after {
  content: "›";
  color: var(--blue-dark);
  font-size: 22px;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-color: transparent;
}

.mobile-nav-link.active::after,
.mobile-nav-link:hover::after {
  color: white;
}

.mobile-nav-footer {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(8, 169, 217, 0.14);
}

.mobile-nav-footer a,
.mobile-nav-footer button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: rgba(8, 169, 217, 0.08);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-footer button {
  color: var(--danger);
  background: #fff0f0;
}

body.mobile-menu-open {
  overflow: hidden;
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===============================
   PERSONAL USER MENU
================================ */

.user-menu {
  position: relative;
}

.user-menu-btn {
  border: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
}

.nav-profile-pic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid rgba(8, 169, 217, 0.25);
}

.user-menu-btn span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-menu-btn strong {
  font-size: 13px;
  white-space: nowrap;
}

.user-menu-btn small {
  color: var(--blue-dark);
  font-size: 11px;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 10px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(8, 169, 217, 0.18);
  box-shadow: var(--shadow);
  z-index: 999;
}

.user-dropdown a,
.user-dropdown button {
  width: 100%;
  border: 0;
  padding: 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  display: block;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--blue-soft);
}

.user-dropdown button {
  color: var(--danger);
}

/* ===============================
   PERSONAL HOME CARD
================================ */

.personal-card {
  max-width: 620px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 169, 217, 0.18);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.personal-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
  color: var(--ink);
}

.personal-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.personal-avatar-wrap img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-soft);
  border: 3px solid white;
  box-shadow: 0 10px 26px rgba(8, 169, 217, 0.18);
}

/* ===============================
   DARK MODE
================================ */

body.dark-mode {
  --white: #ffffff;
  --ink: #f4fbff;
  --muted: #b8c9d6;
  --blue-soft: rgba(8, 169, 217, 0.16);
  background:
    radial-gradient(circle at top left, rgba(8, 169, 217, 0.18), transparent 270px),
    radial-gradient(circle at bottom right, rgba(8, 169, 217, 0.12), transparent 300px),
    linear-gradient(180deg, #07131b, #0b1d28);
}

body.dark-mode .site-header,
body.dark-mode .auth-card,
body.dark-mode .info-card,
body.dark-mode .stat-card,
body.dark-mode .summary-card,
body.dark-mode .panel,
body.dark-mode .status-card,
body.dark-mode .personal-card,
body.dark-mode .user-dropdown {
  background: rgba(12, 29, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

body.dark-mode .user-dropdown a,
body.dark-mode .user-dropdown button {
  color: var(--ink);
}

body.dark-mode .ghost-btn,
body.dark-mode .guest-btn {
  background: rgba(255, 255, 255, 0.08);
}


body.dark-mode .mobile-nav-panel {
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 169, 217, 0.18), transparent 260px),
    rgba(12, 29, 40, 0.96);
  border-color: rgba(255, 255, 255, 0.10);
}

body.dark-mode .mobile-nav-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}

body.dark-mode .mobile-nav-link.active,
body.dark-mode .mobile-nav-link:hover {
  color: white;
}

body.dark-mode .mobile-nav-footer a {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

/* ===============================
   PARENT SIGNUP + PARENT DASHBOARD
================================ */

.parent-code-hint {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(8, 169, 217, 0.09);
  border: 1px solid rgba(8, 169, 217, 0.18);
  color: var(--blue-dark);
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.45;
}

.parent-code-hint strong {
  color: var(--ink);
}

.parent-children-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.parent-child-card {
  min-width: min(100%, 210px);
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(0, 122, 167, 0.08);
  text-align: left;
  cursor: pointer;
  transition: 0.22s ease;
}

.parent-child-card:hover,
.parent-child-card.active {
  transform: translateY(-2px);
  border-color: rgba(8, 169, 217, 0.34);
  box-shadow: 0 18px 48px rgba(0, 122, 167, 0.16);
}

.parent-child-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-size: 20px;
  margin-bottom: 10px;
}

.parent-child-card strong,
.parent-child-card small {
  display: block;
}

.parent-child-card strong {
  color: var(--ink);
  font-size: 16px;
}

.parent-child-card small {
  color: var(--muted);
  margin-top: 4px;
  font-weight: 900;
}

.parent-child-dashboard {
  display: grid;
  gap: 16px;
}

.parent-child-hero {
  padding: 24px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.22), transparent 160px),
    linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.parent-child-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
}

.parent-child-hero h3 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -2px;
  margin: 0 0 8px;
}

.parent-child-hero p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

.parent-rank-badge {
  width: 106px;
  height: 106px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  text-align: center;
  flex: 0 0 auto;
}

.parent-rank-badge span {
  display: block;
  font-size: 30px;
  font-weight: 950;
}

.parent-rank-badge small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.parent-progress-grid,
.parent-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.parent-progress-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 169, 217, 0.18);
  box-shadow: 0 14px 40px rgba(0, 122, 167, 0.08);
}

.parent-progress-card span,
.parent-progress-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.parent-progress-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.parent-progress-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -1px;
}

@media (max-width: 760px) {
  .parent-child-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .parent-progress-grid,
  .parent-action-grid {
    grid-template-columns: 1fr;
  }

  .parent-rank-badge {
    width: 100%;
    height: auto;
    padding: 18px;
    display: flex;
    justify-content: space-between;
  }
}


/* =====================================================
   DRAMAGIC PUBLIC STORY HOMEPAGE
   Guest-first landing page + CEO-managed public content.
===================================================== */

.guest-public-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 169, 217, 0.18), transparent 330px),
    radial-gradient(circle at 82% 8%, rgba(9, 126, 167, 0.11), transparent 360px),
    linear-gradient(180deg, #fbfdff 0%, #eefaff 48%, #f8fdff 100%);
}

.guest-public-page {
  min-height: 100svh;
  color: var(--ink);
}

.guest-public-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.guest-public-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guest-public-nav::-webkit-scrollbar {
  display: none;
}

.guest-public-nav a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.guest-public-nav a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.guest-story-hero {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100svh - 76px);
  margin: auto;
  padding: 76px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.guest-story-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -4px;
}

.guest-story-copy h1 span {
  color: var(--blue);
}

.guest-hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.guest-hero-micro-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guest-hero-micro-grid article {
  padding: 16px;
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(0, 122, 167, 0.08);
}

.guest-hero-micro-grid strong,
.guest-hero-micro-grid span {
  display: block;
}

.guest-hero-micro-grid strong {
  color: var(--blue-dark);
  font-size: 24px;
  letter-spacing: -1px;
}

.guest-hero-micro-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.guest-stage-card {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 32px;
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66) 42%, rgba(8, 169, 217, 0.11)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(230, 249, 255, 0.9));
  box-shadow: var(--shadow);
}

.guest-stage-card::before,
.guest-stage-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.guest-stage-card::before {
  width: 390px;
  height: 390px;
  border: 2px solid rgba(8, 169, 217, 0.13);
  animation: spin 24s linear infinite;
}

.guest-stage-card::after {
  width: 470px;
  height: 470px;
  border: 2px dashed rgba(8, 169, 217, 0.14);
  animation: spinReverse 34s linear infinite;
}

.guest-stage-card img {
  width: min(300px, 72%);
  border-radius: 50%;
  filter: drop-shadow(0 24px 30px rgba(0, 122, 167, 0.18));
  animation: logoFloat 5s ease-in-out infinite;
}

.guest-stage-orbit {
  position: absolute;
  inset: 28px;
  z-index: 3;
  pointer-events: none;
}

.guest-stage-orbit span {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 169, 217, 0.18);
  box-shadow: 0 10px 26px rgba(0, 122, 167, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.guest-stage-orbit span:nth-child(1) {
  top: 10%;
  left: 8%;
}

.guest-stage-orbit span:nth-child(2) {
  top: 12%;
  right: 6%;
}

.guest-stage-orbit span:nth-child(3) {
  bottom: 28%;
  left: 2%;
}

.guest-stage-orbit span:nth-child(4) {
  bottom: 18%;
  right: 8%;
}

.guest-stage-quote {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(8, 169, 217, 0.16);
  box-shadow: 0 16px 45px rgba(0, 122, 167, 0.09);
  text-align: center;
}

.guest-stage-quote strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.4px;
}

.guest-stage-quote p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.guest-story-feature article,
.guest-manager-card,
.guest-manager-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.guest-story-feature article {
  padding: 24px;
}

.guest-story-feature span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 950;
}

.guest-story-feature h3 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -1px;
}

.guest-story-feature p {
  color: var(--muted);
  line-height: 1.65;
}

.guest-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.guest-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 128px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(8, 169, 217, 0.36), transparent);
}

.guest-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.guest-timeline-year {
  position: relative;
  z-index: 2;
  align-self: start;
  padding: 16px;
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 122, 167, 0.08);
}

.guest-timeline-year::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 6px rgba(8, 169, 217, 0.13);
}

.guest-timeline-year strong,
.guest-timeline-year span {
  display: block;
}

.guest-timeline-year strong {
  color: var(--blue-dark);
  font-size: 28px;
  letter-spacing: -1px;
}

.guest-timeline-year span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.guest-timeline-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 169, 217, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.guest-timeline-media,
.guest-live-media,
.guest-gallery-media {
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.65), transparent 150px),
    linear-gradient(135deg, rgba(8, 169, 217, 0.12), rgba(8, 169, 217, 0.22));
}

.guest-timeline-media img,
.guest-live-media img,
.guest-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guest-media-placeholder {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 169, 217, 0.20);
  font-size: 38px;
  box-shadow: 0 14px 32px rgba(0, 122, 167, 0.11);
}

.guest-timeline-copy {
  padding: 26px;
}

.guest-timeline-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.guest-timeline-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.guest-news-grid-live .guest-news-card {
  display: flex;
  flex-direction: column;
}

.guest-news-grid-live .guest-live-media {
  min-height: 230px;
}

.guest-gallery-live {
  grid-template-columns: repeat(4, 1fr);
}

.guest-gallery-card {
  min-height: auto;
  display: block;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-style: solid;
}

.guest-gallery-card > div:last-child {
  padding: 18px;
}

.guest-gallery-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: capitalize;
}

.guest-gallery-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.5px;
}

.guest-gallery-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

.guest-video-preview {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--blue-dark);
  background: linear-gradient(135deg, var(--blue-soft), rgba(8, 169, 217, 0.22));
  font-weight: 900;
}

.guest-video-preview span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(8, 169, 217, 0.24);
}

.guest-manager-section {
  padding-top: 26px;
}

.guest-manager-shell {
  padding: 26px;
}

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

.guest-manager-card {
  padding: 22px;
}

.guest-manager-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: -1px;
}

.guest-manager-form {
  display: grid;
  gap: 12px;
}

.guest-manager-form textarea {
  min-height: 120px;
}

.guest-manager-actions {
  margin-top: 18px;
}

.guest-item-actions {
  margin-top: 14px;
}

.guest-delete-btn {
  border: 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--danger);
  background: #fff0f0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.guest-final-cta {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.34), transparent 160px),
    linear-gradient(135deg, rgba(8, 169, 217, 0.96), rgba(0, 122, 167, 0.96));
  color: #ffffff;
}

.guest-final-cta .eyebrow,
.guest-final-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.guest-final-cta h2 {
  color: #ffffff;
}

.guest-final-cta .ghost-btn {
  background: rgba(255, 255, 255, 0.95);
}

.guest-manager-open.hidden {
  display: none !important;
}

body.dark-mode .guest-public-body,
html.dark-mode .guest-public-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 169, 217, 0.18), transparent 330px),
    radial-gradient(circle at 82% 8%, rgba(9, 126, 167, 0.12), transparent 360px),
    linear-gradient(180deg, #07131b 0%, #0b1d28 55%, #07131b 100%);
}

body.dark-mode .guest-story-feature article,
body.dark-mode .guest-hero-micro-grid article,
body.dark-mode .guest-stage-card,
body.dark-mode .guest-stage-quote,
body.dark-mode .guest-timeline-year,
body.dark-mode .guest-timeline-card,
body.dark-mode .guest-manager-card,
body.dark-mode .guest-manager-shell,
body.dark-mode .guest-gallery-card {
  background: rgba(12, 29, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .guest-stage-orbit span,
body.dark-mode .guest-media-placeholder {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .guest-timeline-year::after {
  border-color: #07131b;
}

@media (max-width: 980px) {
  .guest-public-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .guest-public-nav {
    justify-content: flex-start;
  }

  .guest-story-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .guest-stage-card {
    min-height: 420px;
  }

  .guest-story-feature,
  .guest-manager-grid,
  .guest-gallery-live {
    grid-template-columns: 1fr 1fr;
  }

  .guest-timeline::before {
    display: none;
  }

  .guest-timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guest-timeline-year::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .guest-public-header {
    padding: 10px 12px;
  }

  .guest-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guest-story-hero {
    width: 100%;
    padding: 34px 18px 40px;
    gap: 24px;
  }

  .guest-story-copy h1 {
    font-size: 44px;
    line-height: 0.98;
    letter-spacing: -2.5px;
  }

  .guest-hero-lead {
    font-size: 15px;
  }

  .guest-hero-micro-grid,
  .guest-story-feature,
  .guest-timeline-card,
  .guest-manager-grid,
  .guest-gallery-live,
  .guest-difference-grid {
    grid-template-columns: 1fr;
  }

  .guest-stage-card {
    min-height: 360px;
    border-radius: 34px;
  }

  .guest-stage-card img {
    width: 210px;
  }

  .guest-stage-card::before {
    width: 280px;
    height: 280px;
  }

  .guest-stage-card::after {
    width: 335px;
    height: 335px;
  }

  .guest-stage-orbit span {
    font-size: 10px;
    padding: 6px 8px;
  }

  .guest-stage-quote {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .guest-timeline-copy,
  .guest-manager-shell {
    padding: 20px;
  }

  .guest-timeline-year strong {
    font-size: 24px;
  }
}

/* =====================================================
   MOBILE POLISH FIXES — Dramagic logo stage + profile avatar
   Fixes: guest story quote covering logo, home avatar stretching.
===================================================== */

.personal-avatar-wrap {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.personal-avatar-wrap img,
#homeProfilePic,
#navProfilePic {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50% !important;
  flex: 0 0 auto;
}

.personal-avatar-wrap img,
#homeProfilePic {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px;
  min-height: 76px;
  max-width: 76px;
  max-height: 76px;
}

#navProfilePic {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
}

@media (max-width: 760px) {
  .guest-stage-card {
    min-height: auto;
    padding: 26px 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .guest-stage-card img {
    width: min(205px, 58vw);
    margin: 20px auto 0;
    z-index: 2;
  }

  .guest-stage-card::before {
    width: 265px;
    height: 265px;
    top: 44px;
  }

  .guest-stage-card::after {
    width: 325px;
    height: 325px;
    top: 16px;
  }

  .guest-stage-orbit {
    inset: 28px 18px auto;
    height: 260px;
  }

  .guest-stage-orbit span:nth-child(3) {
    bottom: 14%;
    left: 0;
  }

  .guest-stage-orbit span:nth-child(4) {
    bottom: 4%;
    right: 7%;
  }

  .guest-stage-quote {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 4;
    width: calc(100% - 26px);
    margin: 10px auto 0;
    padding: 14px 12px;
    border-radius: 20px;
  }

  .guest-stage-quote strong {
    font-size: 18px;
    line-height: 1.2;
  }

  .guest-stage-quote p {
    font-size: 13px;
    line-height: 1.45;
  }

  .personal-card {
    align-items: center;
  }
}

@media (max-width: 390px) {
  .guest-stage-card img {
    width: min(190px, 56vw);
  }

  .guest-stage-orbit {
    height: 245px;
  }
}

/* Keep the hamburger visible on mobile after the shared menu rules load. */
@media (max-width: 850px) {
  .mobile-menu-btn {
    display: inline-grid;
  }

  .site-header > .nav {
    display: none;
  }
}

/* =====================================================
   MOBILE HEADER FINAL FIX
   Logo + circular profile picture + hamburger only.
   This block is intentionally at the end to override older
   user-menu rules that made the profile pill too wide.
===================================================== */
@media (max-width: 850px) {
  .site-header {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 72px;
  }

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

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand > div {
    display: none !important;
  }

  .site-header > .nav {
    display: none !important;
  }

  .user-menu {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    justify-self: auto;
  }

  .mobile-menu-btn {
    order: 3;
    flex: 0 0 48px;
    display: inline-grid !important;
  }

  .user-menu-btn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    padding: 3px !important;
    border-radius: 50% !important;
    gap: 0 !important;
    overflow: hidden;
    background: var(--blue-soft) !important;
    box-shadow: 0 10px 26px rgba(0, 122, 167, 0.10);
  }

  .user-menu-btn > span,
  .user-menu-btn > b {
    display: none !important;
  }

  .nav-profile-pic {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
  }

  .user-dropdown {
    right: 0;
    width: 190px;
  }
}

/* =====================================================
   HAMBURGER ICON FINAL SPACING FIX
   Makes the 3 lines look like a standard compact hamburger.
===================================================== */
@media (max-width: 850px) {
  .mobile-menu-btn {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 0 !important;
  }

  .mobile-menu-btn span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
  }
}

/* =====================================================
   DRAMAGIC DARK MODE COHESION PATCH
   Fixes logo stage/orbit cards + public story dark mode.
===================================================== */
html.dark-mode body,
body.dark-mode {
  --ink: #f4fbff;
  --muted: #b8c9d6;
  --blue-soft: rgba(8, 169, 217, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 169, 217, 0.16), transparent 340px),
    radial-gradient(circle at 88% 12%, rgba(91, 83, 255, 0.10), transparent 360px),
    linear-gradient(180deg, #07131b 0%, #0b1d28 55%, #07131b 100%) !important;
}

html.dark-mode .guest-public-page,
body.dark-mode .guest-public-page,
html.dark-mode .app,
body.dark-mode .app {
  color: var(--ink) !important;
}

html.dark-mode .guest-public-body,
body.dark-mode.guest-public-body,
html.dark-mode body.guest-public-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 169, 217, 0.16), transparent 340px),
    radial-gradient(circle at 82% 8%, rgba(9, 126, 167, 0.12), transparent 360px),
    linear-gradient(180deg, #07131b 0%, #0b1d28 55%, #07131b 100%) !important;
}

html.dark-mode .site-header,
html.dark-mode .guest-header,
body.dark-mode .site-header,
body.dark-mode .guest-header {
  background: rgba(8, 19, 28, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24) !important;
}

html.dark-mode .brand strong,
html.dark-mode .guest-brand strong,
html.dark-mode .guest-story-copy h1,
html.dark-mode .section-title h2,
html.dark-mode .guest-story-feature h3,
html.dark-mode .guest-timeline-card h3,
html.dark-mode .guest-news-card h3,
html.dark-mode .guest-gallery-card h3,
body.dark-mode .brand strong,
body.dark-mode .guest-brand strong,
body.dark-mode .guest-story-copy h1,
body.dark-mode .section-title h2,
body.dark-mode .guest-story-feature h3,
body.dark-mode .guest-timeline-card h3,
body.dark-mode .guest-news-card h3,
body.dark-mode .guest-gallery-card h3 {
  color: #f4fbff !important;
}

html.dark-mode .guest-story-copy p,
html.dark-mode .section-title p,
html.dark-mode .guest-hero-lead,
html.dark-mode .guest-story-feature p,
html.dark-mode .guest-timeline-card p,
html.dark-mode .guest-news-card p,
html.dark-mode .guest-gallery-card p,
body.dark-mode .guest-story-copy p,
body.dark-mode .section-title p,
body.dark-mode .guest-hero-lead,
body.dark-mode .guest-story-feature p,
body.dark-mode .guest-timeline-card p,
body.dark-mode .guest-news-card p,
body.dark-mode .guest-gallery-card p {
  color: #b8c9d6 !important;
}

html.dark-mode .magic-stage,
body.dark-mode .magic-stage,
html.dark-mode .guest-stage-card,
body.dark-mode .guest-stage-card {
  background:
    radial-gradient(circle at 50% 40%, rgba(8, 169, 217, 0.18), transparent 210px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 260px),
    linear-gradient(135deg, rgba(7, 19, 27, 0.96), rgba(12, 39, 54, 0.88)) !important;
  border-color: rgba(8, 169, 217, 0.22) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32) !important;
}

html.dark-mode .magic-stage::before,
body.dark-mode .magic-stage::before {
  background:
    radial-gradient(circle, transparent 44%, rgba(8, 169, 217, 0.16) 45%, transparent 63%) !important;
}

html.dark-mode .orbit-ring,
body.dark-mode .orbit-ring,
html.dark-mode .guest-stage-card::before,
html.dark-mode .guest-stage-card::after,
body.dark-mode .guest-stage-card::before,
body.dark-mode .guest-stage-card::after {
  border-color: rgba(8, 169, 217, 0.22) !important;
  opacity: 0.85 !important;
}

html.dark-mode .orbit-word,
body.dark-mode .orbit-word,
html.dark-mode .guest-stage-orbit span,
body.dark-mode .guest-stage-orbit span {
  color: #eaffff !important;
  background: rgba(8, 169, 217, 0.14) !important;
  border-color: rgba(111, 223, 255, 0.22) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;
  opacity: 0.92 !important;
}

html.dark-mode .guest-stage-quote,
body.dark-mode .guest-stage-quote {
  background: rgba(7, 19, 27, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html.dark-mode .guest-story-feature article,
html.dark-mode .guest-hero-micro-grid article,
html.dark-mode .guest-timeline-card,
html.dark-mode .guest-timeline-year,
html.dark-mode .guest-news-card,
html.dark-mode .guest-gallery-card,
html.dark-mode .guest-manager-card,
html.dark-mode .guest-manager-shell,
body.dark-mode .guest-story-feature article,
body.dark-mode .guest-hero-micro-grid article,
body.dark-mode .guest-timeline-card,
body.dark-mode .guest-timeline-year,
body.dark-mode .guest-news-card,
body.dark-mode .guest-gallery-card,
body.dark-mode .guest-manager-card,
body.dark-mode .guest-manager-shell {
  background: rgba(12, 29, 40, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
}

html.dark-mode .guest-hero-micro-grid strong,
body.dark-mode .guest-hero-micro-grid strong,
html.dark-mode .guest-story-copy h1 span,
body.dark-mode .guest-story-copy h1 span,
html.dark-mode .section-title h2 span,
body.dark-mode .section-title h2 span {
  color: #08a9d9 !important;
}

html.dark-mode .guest-final-cta,
body.dark-mode .guest-final-cta {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 220px),
    linear-gradient(135deg, #075a77, #08a9d9) !important;
}

/* =====================================================
   DRAMAGIC LOGO ORBIT — PLANET STYLE
   Each word now moves on its own orbit with its own speed.
===================================================== */
.orbit-words {
  animation: none !important;
  width: 440px;
  height: 440px;
  pointer-events: none;
}

.orbit-word {
  left: 50% !important;
  top: 50% !important;
  transform-origin: center center !important;
  will-change: transform;
  animation-duration: var(--orbit-speed, 24s) !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-delay: var(--orbit-delay, 0s) !important;
}

.word-1 {
  --word-orbit-r: 205px;
  --orbit-speed: 30s;
  --orbit-delay: -3s;
  animation-name: wordPlanetOrbit1 !important;
}

.word-2 {
  --word-orbit-r: 170px;
  --orbit-speed: 23s;
  --orbit-delay: -8s;
  animation-name: wordPlanetOrbit2 !important;
}

.word-3 {
  --word-orbit-r: 190px;
  --orbit-speed: 34s;
  --orbit-delay: -14s;
  animation-name: wordPlanetOrbit3 !important;
}

.word-4 {
  --word-orbit-r: 155px;
  --orbit-speed: 27s;
  --orbit-delay: -18s;
  animation-name: wordPlanetOrbit4 !important;
}

.word-5 {
  --word-orbit-r: 215px;
  --orbit-speed: 38s;
  --orbit-delay: -24s;
  animation-name: wordPlanetOrbit5 !important;
}

@keyframes wordPlanetOrbit1 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--word-orbit-r)) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(var(--word-orbit-r)) rotate(-360deg); }
}

@keyframes wordPlanetOrbit2 {
  from { transform: translate(-50%, -50%) rotate(72deg) translateX(var(--word-orbit-r)) rotate(-72deg); }
  to { transform: translate(-50%, -50%) rotate(432deg) translateX(var(--word-orbit-r)) rotate(-432deg); }
}

@keyframes wordPlanetOrbit3 {
  from { transform: translate(-50%, -50%) rotate(144deg) translateX(var(--word-orbit-r)) rotate(-144deg); }
  to { transform: translate(-50%, -50%) rotate(504deg) translateX(var(--word-orbit-r)) rotate(-504deg); }
}

@keyframes wordPlanetOrbit4 {
  from { transform: translate(-50%, -50%) rotate(216deg) translateX(var(--word-orbit-r)) rotate(-216deg); }
  to { transform: translate(-50%, -50%) rotate(576deg) translateX(var(--word-orbit-r)) rotate(-576deg); }
}

@keyframes wordPlanetOrbit5 {
  from { transform: translate(-50%, -50%) rotate(288deg) translateX(var(--word-orbit-r)) rotate(-288deg); }
  to { transform: translate(-50%, -50%) rotate(648deg) translateX(var(--word-orbit-r)) rotate(-648deg); }
}

@media (max-width: 850px) {
  .orbit-words {
    width: 330px;
    height: 330px;
  }

  .word-1 { --word-orbit-r: 150px; }
  .word-2 { --word-orbit-r: 123px; }
  .word-3 { --word-orbit-r: 140px; }
  .word-4 { --word-orbit-r: 112px; }
  .word-5 { --word-orbit-r: 155px; }
}

@media (max-width: 390px) {
  .orbit-words {
    width: 300px;
    height: 300px;
  }

  .word-1 { --word-orbit-r: 136px; }
  .word-2 { --word-orbit-r: 112px; }
  .word-3 { --word-orbit-r: 126px; }
  .word-4 { --word-orbit-r: 102px; }
  .word-5 { --word-orbit-r: 140px; }
}


/* ===============================
   PARENT ATTENDANCE + WEEKLY AGENDA FIXES
================================ */

.parent-progress-card.clickable-card,
.parent-attendance-card {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.parent-progress-card.clickable-card:hover,
.parent-attendance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 122, 167, 0.18);
}

.parent-attendance-card strong::after {
  content: " →";
  color: var(--blue);
}

.agenda-status-note {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 720px) {
  .parent-progress-grid,
  .parent-action-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
  }

  .parent-child-hero {
    grid-template-columns: 1fr !important;
    text-align: left;
  }

  .parent-rank-badge {
    justify-self: start;
  }
}


/* Connected Dramagic points copy */
.parent-progress-card small {
  line-height: 1.45;
}


/* =====================================================
   DARK MODE READABILITY FINAL PATCH
   Keeps text readable on cards, panels, forms, tables, and drawers.
===================================================== */
html.dark-mode,
body.dark-mode {
  --white: rgba(12, 29, 40, 0.94);
  --ink: #f4fbff;
  --muted: #b8c9d6;
  --blue-soft: rgba(8, 169, 217, 0.18);
}

html.dark-mode body,
body.dark-mode {
  color: #f4fbff !important;
}

html.dark-mode .auth-card,
html.dark-mode .info-card,
html.dark-mode .stat-card,
html.dark-mode .summary-card,
html.dark-mode .panel,
html.dark-mode .status-card,
html.dark-mode .personal-card,
html.dark-mode .guest-manager-card,
html.dark-mode .guest-timeline-card,
html.dark-mode .guest-news-card,
html.dark-mode .guest-gallery-card,
html.dark-mode .parent-progress-card,
html.dark-mode .parent-attendance-card,
html.dark-mode .leaderboard-mini-card,
html.dark-mode .leaderboard-hero-card,
body.dark-mode .auth-card,
body.dark-mode .info-card,
body.dark-mode .stat-card,
body.dark-mode .summary-card,
body.dark-mode .panel,
body.dark-mode .status-card,
body.dark-mode .personal-card,
body.dark-mode .guest-manager-card,
body.dark-mode .guest-timeline-card,
body.dark-mode .guest-news-card,
body.dark-mode .guest-gallery-card,
body.dark-mode .parent-progress-card,
body.dark-mode .parent-attendance-card,
body.dark-mode .leaderboard-mini-card,
body.dark-mode .leaderboard-hero-card {
  background: rgba(12, 29, 40, 0.94) !important;
  color: #f4fbff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark-mode .auth-card h1,
html.dark-mode .auth-card h2,
html.dark-mode .auth-card h3,
html.dark-mode .info-card h3,
html.dark-mode .panel h2,
html.dark-mode .panel h3,
html.dark-mode .status-card h3,
html.dark-mode .summary-card h3,
html.dark-mode .leaderboard-mini-card strong,
html.dark-mode .leaderboard-hero-card strong,
body.dark-mode .auth-card h1,
body.dark-mode .auth-card h2,
body.dark-mode .auth-card h3,
body.dark-mode .info-card h3,
body.dark-mode .panel h2,
body.dark-mode .panel h3,
body.dark-mode .status-card h3,
body.dark-mode .summary-card h3,
body.dark-mode .leaderboard-mini-card strong,
body.dark-mode .leaderboard-hero-card strong {
  color: #f4fbff !important;
}

html.dark-mode .auth-card p,
html.dark-mode .info-card p,
html.dark-mode .panel p,
html.dark-mode .status-card p,
html.dark-mode .summary-card p,
html.dark-mode .leaderboard-mini-card small,
html.dark-mode .leaderboard-mini-card span,
body.dark-mode .auth-card p,
body.dark-mode .info-card p,
body.dark-mode .panel p,
body.dark-mode .status-card p,
body.dark-mode .summary-card p,
body.dark-mode .leaderboard-mini-card small,
body.dark-mode .leaderboard-mini-card span {
  color: #b8c9d6 !important;
}

html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #f4fbff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: rgba(244, 251, 255, 0.58) !important;
}

html.dark-mode table,
body.dark-mode table {
  color: #f4fbff !important;
}

html.dark-mode th,
html.dark-mode td,
body.dark-mode th,
body.dark-mode td {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark-mode .ghost-btn,
html.dark-mode .guest-btn,
body.dark-mode .ghost-btn,
body.dark-mode .guest-btn {
  color: #f4fbff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Extra auth readability guard after removing chat */
html.dark-mode .auth-tabs,
body.dark-mode .auth-tabs {
  background: rgba(255, 255, 255, 0.06) !important;
}

html.dark-mode .auth-tabs .tab-btn,
body.dark-mode .auth-tabs .tab-btn {
  color: #f4fbff !important;
}

html.dark-mode .auth-tabs .tab-btn.active,
body.dark-mode .auth-tabs .tab-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #08a9d9, #007aa7) !important;
}
