:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-2: #eef4f8;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --primary: #14c6a4;
  --primary-strong: #10b981;
  --accent: #0ea5e9;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 0.82rem 0.9rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
}

.brand-mark {
  display: inline-block;
  width: 13rem;
  height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: transparent;
  background: #f8fafc url("../img/ninja-hub-logo.png") center / 92% auto no-repeat;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  font-size: 0;
  overflow: hidden;
}

.brand > span:not(.brand-mark) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.public-nav,
.topbar-actions,
.hero-actions,
.form-actions,
.row-actions,
.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.public-nav {
  color: var(--muted);
  flex-wrap: wrap;
}

.level-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 360px);
  gap: 0.35rem 1.1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.level-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 1.3rem;
  color: var(--text);
  font-size: 0.9rem;
}

.level-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.4rem;
  white-space: nowrap;
}

.level-item svg {
  width: 1.45rem;
  height: 1.45rem;
  color: #64748b;
  fill: currentColor;
  flex: 0 0 auto;
}

.level-progress {
  grid-column: 1 / 2;
  width: 100%;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5ef;
}

.level-progress span {
  display: block;
  height: 100%;
  min-width: 0.5rem;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.level-actions {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.level-icon {
  position: relative;
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: #111827;
}

.level-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.level-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.5rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 2px #ffffff;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-panel,
.hero-media,
.panel,
.auth-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #eaf2f8;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.hero-float-card span {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-float-card strong {
  font-size: 1.15rem;
}

.metric {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--panel);
}

.metric strong {
  font-size: 1.6rem;
}

.metric span,
.muted-link,
.hint {
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 720px;
  margin-top: 1.25rem;
}

.trust-grid span {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
}

.trust-grid strong {
  color: var(--text);
  font-size: 1.45rem;
}

.home-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.home-section h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.05;
}

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

.benefit-card {
  display: grid;
  gap: 0.7rem;
  min-height: 180px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.benefit-card strong {
  font-size: 1.2rem;
}

.benefit-card p,
.home-split p {
  color: var(--muted);
  line-height: 1.7;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.25rem;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-list span {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.final-cta {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text);
  background: var(--panel-2);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.btn-primary {
  color: #03120c;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: rgba(96, 165, 250, 0.16);
  color: #0369a1;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.btn-small {
  min-height: 2.1rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.auth-card h1 {
  margin: 0;
}

.stack {
  display: grid;
  gap: 1rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: #ffffff;
  position: sticky;
  top: 0;
}

.side-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.side-nav a {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  color: var(--muted);
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--text);
  background: var(--panel);
}

.main {
  padding: 1.25rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.topbar h1,
.section-head h2 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  font-size: 2rem;
}

.panel {
  padding: 1rem;
}

.panel-narrow {
  max-width: 900px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.search-form {
  display: flex;
  gap: 0.7rem;
  width: min(100%, 560px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.span-2 {
  grid-column: span 2;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.check-label {
  width: auto;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}

.check-label input {
  width: 1rem;
  height: 1rem;
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #047857;
  font-size: 0.8rem;
}

.flash {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(52, 211, 153, 0.12);
  color: #047857;
}

.flash-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.page-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto;
}

.span-all {
  grid-column: 1 / -1;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px auto;
  gap: 0.75rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

.checkout-summary {
  position: sticky;
  top: 1rem;
}

.pix-box {
  display: grid;
  justify-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.pix-box img {
  width: min(100%, 260px);
  height: auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.course-cover {
  display: grid;
  min-height: 150px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(20, 198, 164, 0.18), rgba(14, 165, 233, 0.18)),
    #eef7fb;
}

.course-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-cover span {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  font-size: 2rem;
  font-weight: 900;
}

.site-footer {
  padding: 1.25rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.media-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0.5rem;
}

.media-preview img {
  display: block;
  width: min(100%, 420px);
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plan-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}

.plan-banner {
  width: calc(100% + 2rem);
  height: 11.5rem;
  margin: -1rem -1rem 0;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.plan-card h2 {
  margin: 0;
}

.plan-card strong {
  font-size: 2rem;
}

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

.course-card-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.course-card h2,
.course-hero h1,
.lesson-main h1 {
  margin: 0;
}

.course-card p,
.course-hero p,
.lesson-main p,
.dashboard-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-row span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.progress-block {
  display: grid;
  gap: 0.4rem;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

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

.progress-track {
  width: 100%;
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5ef;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

.course-progress-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.lesson-list {
  display: grid;
  gap: 1rem;
}

.module-panel {
  display: grid;
  gap: 0.6rem;
}

.lesson-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.lesson-row small,
.mini-item span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.lesson-status {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--muted);
}

.lesson-status.is-done {
  border-color: var(--primary);
  background: var(--primary);
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}

.lesson-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #020617;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.video-frame iframe,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lesson-actions-premium {
  align-items: stretch;
}

.lesson-actions-premium form {
  display: contents;
}

.lesson-current {
  display: grid;
  gap: 1rem;
}

.lesson-current-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.lesson-current h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.lesson-number,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-completed {
  border-color: rgba(20, 198, 164, 0.35);
  background: rgba(20, 198, 164, 0.12);
  color: #047857;
}

.btn-next {
  min-width: 10rem;
  box-shadow: 0 14px 30px rgba(20, 198, 164, 0.24);
}

.lesson-sidebar {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 1rem;
}

.xp-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid rgba(20, 198, 164, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(20, 198, 164, 0.12), rgba(14, 165, 233, 0.12));
}

.xp-card strong {
  font-size: 2.1rem;
  line-height: 1;
}

.xp-card span,
.sidebar-progress p {
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-progress {
  display: grid;
  gap: 0.65rem;
}

.module-sidebar {
  display: grid;
  gap: 1rem;
}

.module-nav-group {
  display: grid;
  gap: 0.45rem;
}

.module-nav-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.module-lesson {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
}

.module-lesson:hover,
.module-lesson.is-active {
  border-color: rgba(20, 198, 164, 0.35);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.module-lesson.is-active {
  color: #047857;
}

.module-lesson small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
}

.module-lesson.is-done .lesson-status {
  border-color: var(--primary);
  background: var(--primary);
}

.lesson-resources {
  display: grid;
  gap: 1rem;
}

.resource-alert {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  background: #fffbeb;
}

.resource-alert strong {
  color: #92400e;
}

.resource-alert p {
  margin: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.resource-item {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(20, 198, 164, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 198, 164, 0.1), rgba(14, 165, 233, 0.08)),
    #ffffff;
}

.resource-item span {
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-item small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-list,
.mini-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.community-panel {
  display: grid;
  gap: 1rem;
}

.comment-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.comment-composer label {
  color: var(--muted);
}

.comment-composer textarea {
  min-height: 6rem;
  resize: vertical;
}

.comment-item,
.mini-item {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.community-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.comment-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.comment-preview {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  white-space: normal;
}

.certificate-page {
  background: var(--bg);
}

.certificate-wrap {
  width: min(1000px, calc(100% - 2rem));
  margin: 2rem auto;
  display: grid;
  gap: 1rem;
}

.certificate-sheet {
  min-height: 620px;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding: clamp(2rem, 6vw, 5rem);
  border: 2px solid rgba(52, 211, 153, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(96, 165, 250, 0.1)),
    #f8fafc;
  color: #0f172a;
  text-align: center;
}

.certificate-sheet h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.certificate-sheet h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}

.certificate-sheet p,
.certificate-sheet footer,
.certificate-meta {
  color: #475569;
}

.certificate-meta {
  display: grid;
  gap: 0.35rem;
}

.certificate-sheet footer {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.certificate-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.certificate-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.certificate-result.valid {
  background: rgba(52, 211, 153, 0.12);
}

.certificate-result.invalid {
  background: rgba(239, 68, 68, 0.12);
}

@media print {
  .certificate-actions {
    display: none;
  }

  body.certificate-page {
    background: #fff;
  }

  .certificate-wrap {
    width: 100%;
    margin: 0;
  }

  .certificate-sheet {
    min-height: 100vh;
    border-color: #0f172a;
    box-shadow: none;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.student-hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.student-xp-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 220px;
  gap: 1rem 1.25rem;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 198, 164, 0.16), transparent 16rem),
    radial-gradient(circle at 8% 20%, rgba(14, 165, 233, 0.16), transparent 14rem),
    linear-gradient(135deg, #07111f, #020711);
  color: #f8fafc;
  box-shadow: 0 26px 80px rgba(2, 7, 17, 0.32);
}

.student-xp-panel::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(20, 198, 164, 0.18);
  border-radius: 50%;
}

.student-xp-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.xp-avatar-ring {
  display: grid;
  width: 7.4rem;
  height: 7.4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background:
    conic-gradient(var(--accent) var(--xp), rgba(15, 23, 42, 0.86) 0),
    #020711;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.22), 0 0 34px rgba(14, 165, 233, 0.16);
}

.xp-avatar {
  display: grid;
  width: 5.65rem;
  height: 5.65rem;
  place-items: center;
  overflow: hidden;
  border: 0.45rem solid #07111f;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(20, 198, 164, 0.18));
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 900;
}

.xp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xp-rank-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.xp-rank-copy span,
.xp-rank-copy small,
.xp-next-badge span,
.student-xp-panel .xp-panel-progress small {
  color: #8aa1b8;
}

.xp-rank-copy strong {
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.xp-rank-copy b {
  color: var(--primary);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.xp-next-badge {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
}

.xp-next-badge strong {
  color: #dbeafe;
  font-size: 1.45rem;
}

.xp-hex-badge {
  display: grid;
  width: 7rem;
  height: 6.4rem;
  place-items: center;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background:
    linear-gradient(145deg, rgba(20, 198, 164, 0.45), rgba(14, 165, 233, 0.2)),
    #07111f;
  box-shadow: inset 0 0 0 0.45rem rgba(20, 198, 164, 0.16);
}

.xp-hex-badge span {
  display: grid;
  width: 3.8rem;
  height: 3.8rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  color: #67e8f9;
  font-weight: 900;
}

.xp-panel-progress {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
}

.student-xp-panel .progress-track {
  height: 0.82rem;
  background: rgba(15, 23, 42, 0.86);
}

.xp-reward-grid {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: rgba(2, 7, 17, 0.38);
}

.xp-reward-grid article {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

.xp-reward-grid article:last-child {
  border-right: 0;
}

.xp-reward-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.38);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 198, 164, 0.24), rgba(14, 165, 233, 0.16));
  color: #67e8f9;
  font-weight: 900;
}

.xp-reward-grid strong {
  color: #dbeafe;
}

.xp-reward-grid small {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.student-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card,
.student-course-card,
.certificate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.summary-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.summary-card span,
.summary-card small {
  color: var(--muted);
}

.summary-card strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.summary-card.is-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: #fffbeb;
}

.summary-card.is-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: #fef2f2;
}

.subscription-card,
.level-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: center;
}

.subscription-card h2,
.level-card h2,
.student-section h2 {
  margin: 0;
}

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

.subscription-meter {
  display: grid;
  gap: 0.55rem;
}

.student-section {
  display: grid;
  gap: 1rem;
}

.student-course-grid,
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.student-course-card {
  overflow: hidden;
}

.student-course-cover {
  display: grid;
  height: 11rem;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(20, 198, 164, 0.18), rgba(14, 165, 233, 0.18)),
    #eef7fb;
}

.student-course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-course-cover span {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--primary-strong);
  font-size: 2rem;
  font-weight: 900;
}

.student-course-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.student-course-body p,
.certificate-card small {
  color: var(--muted);
  line-height: 1.5;
}

.certificate-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  min-height: 13rem;
  padding: 1rem;
  overflow: hidden;
}

.certificate-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 198, 164, 0.16), rgba(14, 165, 233, 0.18));
}

.certificate-card span {
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-card strong,
.certificate-card small,
.certificate-card em {
  position: relative;
  z-index: 1;
}

.certificate-card em {
  align-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.profile-social-card {
  align-self: start;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-list a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #f8fafc;
  color: #0369a1;
  font-weight: 800;
}

.social-list-inline {
  margin-top: 0.75rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.person-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.person-card span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.avatar {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.26), rgba(96, 165, 250, 0.26));
  color: var(--text);
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 5.5rem;
  height: 5.5rem;
  font-size: 2rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.profile-hero h1 {
  margin: 0;
}

.profile-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.home-v2-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 198, 164, 0.2), transparent 32rem),
    radial-gradient(circle at 5% 20%, rgba(14, 165, 233, 0.18), transparent 28rem),
    #020711;
  color: #f8fafc;
}

.home-v2-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 7, 17, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.home-v2-page .brand-mark {
  width: 13rem;
  height: 4.05rem;
  border-color: rgba(20, 198, 164, 0.22);
  background: #ffffff url("../img/ninja-hub-logo.png") center / 91% auto no-repeat;
  box-shadow: 0 18px 40px rgba(20, 198, 164, 0.16);
}

.home-v2-page .public-nav {
  color: #cbd5e1;
}

.home-header-cta {
  min-height: 2.9rem;
}

.home-v2 {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 7, 17, 0), #020711 36rem),
    #020711;
}

.home-carousel {
  position: relative;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #020711;
}

.carousel-track,
.carousel-slide {
  min-height: inherit;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, 0.94), rgba(2, 7, 17, 0.52) 42%, rgba(2, 7, 17, 0.06)),
    linear-gradient(180deg, rgba(2, 7, 17, 0.22), rgba(2, 7, 17, 0.88));
}

.carousel-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  width: min(720px, calc(100% - 2rem));
  margin-left: clamp(1rem, 6vw, 7rem);
  padding: clamp(2rem, 8vw, 5rem) 0;
}

.carousel-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.carousel-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.btn-xl {
  min-height: 3.4rem;
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
}

.btn-glass {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.54);
  color: #e0f2fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel-controls {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 6vw, 7rem);
  bottom: clamp(1.2rem, 4vw, 3rem);
  display: flex;
  gap: 0.65rem;
}

.carousel-controls button {
  width: 2.7rem;
  height: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
}

.carousel-controls button.is-active {
  width: 4.4rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 26px rgba(20, 198, 164, 0.42);
}

.home-dark-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 5.5rem) 0;
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.home-section-head h2,
.xp-cert-section h2,
.home-final-cta h2 {
  max-width: 820px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.category-strip a,
.featured-course,
.how-grid article,
.xp-showcase article,
.home-plan-grid article,
.proof-grid article,
.faq-grid details {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(3, 13, 26, 0.86)),
    #07111f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.category-strip a {
  display: grid;
  min-height: 9.4rem;
  gap: 0.7rem;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.category-strip span,
.featured-course span,
.home-plan-grid span,
.xp-showcase span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-strip strong {
  color: #f8fafc;
  font-size: 1.05rem;
}

.featured-course-grid,
.home-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.featured-course {
  display: grid;
  gap: 0.85rem;
  min-height: 18rem;
  padding: 1.2rem;
}

.featured-course h3,
.home-plan-grid strong,
.xp-showcase strong {
  margin: 0;
  color: #ffffff;
  font-size: 1.55rem;
}

.featured-course p,
.how-grid p,
.xp-cert-section p,
.xp-showcase small,
.home-plan-grid p,
.faq-grid p,
.home-footer span {
  color: #b6c5d8;
  line-height: 1.65;
}

.featured-course a {
  align-self: end;
  color: var(--primary);
  font-weight: 900;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.how-grid article {
  display: grid;
  gap: 0.7rem;
  min-height: 15rem;
  padding: 1.15rem;
}

.how-grid span {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
}

.how-grid strong {
  color: #f8fafc;
  font-size: 1.15rem;
}

.xp-cert-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 1.25rem;
  align-items: center;
}

.xp-showcase {
  display: grid;
  gap: 0.85rem;
}

.xp-showcase article,
.home-plan-grid article {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem;
}

.home-plan-grid article {
  min-height: 17rem;
}

.home-plan-grid article.is-featured {
  border-color: rgba(20, 198, 164, 0.42);
  background:
    linear-gradient(145deg, rgba(20, 198, 164, 0.18), rgba(14, 165, 233, 0.12)),
    #07111f;
}

.home-plan-grid strong {
  font-size: 2.2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.proof-grid article {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem;
}

.proof-grid strong {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.proof-grid span {
  color: #b6c5d8;
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
}

.faq-grid details {
  padding: 1rem;
}

.faq-grid summary {
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.home-final-cta {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(3rem, 8vw, 7rem) 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top-color: rgba(148, 163, 184, 0.14);
  background: #020711;
  color: #e2e8f0;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #b6c5d8;
}

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

  .sidebar {
    min-height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

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

  .trust-grid,
  .benefit-grid,
  .home-split,
  .course-grid,
  .checkout-layout,
  .resource-grid,
  .course-hero,
  .category-strip,
  .featured-course-grid,
  .how-grid,
  .xp-cert-section,
  .home-plan-grid,
  .proof-grid,
  .lesson-layout,
  .student-summary,
  .student-xp-panel,
  .student-course-grid,
  .certificate-grid,
  .subscription-card,
  .level-card,
  .dashboard-grid,
  .plan-grid,
  .people-grid,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .home-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header,
  .topbar,
  .section-head,
  .row-actions,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header .brand,
  .site-header .public-nav,
  .site-header .level-header {
    width: 100%;
  }

  .brand-mark {
    width: min(100%, 13rem);
  }

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

  .home-header-cta {
    width: 100%;
  }

  .home-carousel {
    min-height: 720px;
  }

  .carousel-slide img {
    opacity: 0.72;
  }

  .carousel-slide::after {
    background:
      linear-gradient(180deg, rgba(2, 7, 17, 0.38), rgba(2, 7, 17, 0.96)),
      linear-gradient(90deg, rgba(2, 7, 17, 0.8), rgba(2, 7, 17, 0.25));
  }

  .carousel-copy {
    align-self: end;
    margin: 0 auto;
    padding-bottom: 5rem;
  }

  .carousel-copy h1 {
    font-size: clamp(2.2rem, 15vw, 4.3rem);
  }

  .carousel-controls {
    left: 1rem;
  }

  .side-nav,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .lesson-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lesson-row .btn {
    grid-column: 1 / -1;
  }

  .lesson-current-head,
  .comment-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-number {
    width: max-content;
  }

  .comment-composer {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .student-hero-profile {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-xp-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .xp-next-badge {
    justify-items: start;
    text-align: left;
  }

  .xp-reward-grid {
    grid-template-columns: 1fr;
  }

  .xp-reward-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .xp-reward-grid article:last-child {
    border-bottom: 0;
  }

  .person-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .person-card form,
  .person-card .badge,
  .profile-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
}


/* Padrao profissional do menu da area do aluno - Ninja HUB */
.site-header.student-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.72rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.student-header .brand-mark {
  width: 12.3rem;
  height: 3.75rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.student-nav {
  justify-self: center;
  justify-content: center;
  max-width: 100%;
  gap: 0.3rem;
  padding: 0.34rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.student-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.58rem 0.86rem;
  border-radius: 999px;
  color: #536174;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: 0.18s ease;
  white-space: nowrap;
}

.student-nav a:hover,
.student-nav a.active {
  color: #06111f;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.student-nav a.active::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(20, 198, 164, 0.14);
}

.student-nav .admin-link {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.10);
}

.student-nav .logout-link {
  color: #b91c1c;
}

.student-header .level-header {
  width: min(100%, 330px);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}

@media (max-width: 1180px) {
  .site-header.student-header {
    grid-template-columns: 1fr auto;
  }

  .student-header .student-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .student-header .student-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header.student-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .student-header .brand,
  .student-header .student-nav,
  .student-header .level-header {
    width: 100%;
  }

  .student-header .brand-mark {
    width: 100%;
    height: 3.45rem;
    background-size: auto 82%;
  }

  .student-header .student-nav {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.28rem;
  }

  .student-nav a {
    min-height: 2.2rem;
    padding: 0.52rem 0.76rem;
    font-size: 0.86rem;
  }
}


/* Avatar padrao dos alunos sem foto - Ninja HUB */
.avatar,
.xp-avatar {
  border-radius: 999px;
}

.avatar img,
.xp-avatar img,
.level-avatar-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.avatar {
  background: #07111f;
  border: 1px solid rgba(20, 198, 164, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.avatar-small {
  width: 2.35rem;
  height: 2.35rem;
}

.level-avatar-icon {
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid rgba(20, 198, 164, 0.38);
  background: #07111f;
}

.level-avatar-icon svg {
  display: none;
}

.ranking-student-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-preview {
  display: grid;
  gap: 0.5rem;
}

.profile-preview span {
  color: var(--muted);
  font-weight: 800;
}

.profile-preview small {
  color: var(--muted);
}

.profile-preview img {
  width: 7rem;
  height: 7rem;
  max-height: none;
  border-radius: 999px;
  object-fit: cover;
  background: #07111f;
  border: 3px solid rgba(20, 198, 164, 0.34);
}
