:root {
  --ink: #0f1623;
  --ink-soft: #2a3547;
  --ink-muted: #5a6a82;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #eaeff7;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-hover: #1d4ed8;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 22, 35, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 22, 35, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 0.75rem 0 1.25rem;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: white;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0 14px;
  height: 68px;
  display: flex;
  align-items: center;
  border-radius: 0;
  border-bottom: 3px solid rgba(37, 99, 235, 0);
  transition:
    background 0.15s,
    color 0.15s,
    border-bottom-color 0.15s;
}
.nav-links a:hover {
  /* background: var(--surface-2);
  color: var(--ink); */
  border-bottom-color: rgba(37, 99, 235, 1);
}

.current-page{
  border-bottom-color: rgba(37, 99, 235, 1) !important;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, #f0f4ff 0%, #fafbff 50%, #f0faf8 100%);
  padding: 80px 2rem 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.hero-visual {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.visual-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.visual-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.visual-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.progress-bar-wrap {
  margin-bottom: 1rem;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.progress-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  animation: growBar 2s ease-out forwards;
}
@keyframes growBar {
  from {
    width: 0;
  }
  to {
    width: var(--w, 60%);
  }
}
.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
}
.module-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.85rem;
}
.module-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.done {
  background: var(--green-light);
}
.active {
  background: var(--accent-light);
}
.pending {
  background: var(--surface-3);
}
.check {
  color: var(--green);
  font-weight: 700;
}
.play {
  color: var(--accent);
}
.lock {
  color: var(--ink-muted);
}

/* ─── STATS ─── */
.stats {
  background: var(--ink);
  padding: 3rem 2rem;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-num span {
  color: var(--accent);
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 9px;
  letter-spacing: 0.01em;
}

/* ─── SECTION ─── */
section {
  padding: 80px 2rem;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ─── COURSES ─── */
.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 2rem;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.course-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.course-body {
  padding: 1.25rem;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}
.tag-blue {
  background: var(--accent-light);
  color: var(--accent);
}
.tag-teal {
  background: var(--teal-light);
  color: var(--teal);
}
.tag-amber {
  background: var(--amber-light);
  color: var(--amber);
}
.tag-green {
  background: var(--green-light);
  color: var(--green);
}
.course-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.course-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.course-rating {
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.stars {
  color: #f59e0b;
}
.course-enroll {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.course-enroll:hover {
  background: #bfdbfe;
}

/* ─── INTEGRATIONS ─── */
.integrations {
  background: var(--surface-2);
}
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.integration-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.integration-card:hover {
  box-shadow: var(--shadow);
}
.int-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
}
.int-teams {
  background: #e8f0ff;
}
.int-google {
  background: #fef3c7;
}
.int-slack {
  background: #f5edff;
}
.int-zoom {
  background: #e8f5ff;
}
.int-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.int-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.int-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 100px;
  line-height: 1.45;
}
.status-available {
  background: var(--green-light);
  color: var(--green);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.int-connect {
  margin-left: auto;
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ─── HOW IT WORKS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.step-num.active-step {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.step-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.step-text {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--ink);
}
.testimonials .section-title {
  color: white;
}
.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.5);
}
.testimonials .section-tag {
  color: #93c5fd;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.testi-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.testi-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  font-family: 'Inter', sans-serif;
}
.testi-name {
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}
.testi-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── CTA ─── */
.cta {
  background: var(--accent);
  padding: 80px 2rem;
  text-align: center;
}
.cta h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: white;
  margin-bottom: 1rem;
}
.cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.btn-white {
  background: white;
  color: var(--accent);
  border: 2px solid white;
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ─── FOOTER ─── */
footer {
  background: #080d18;
  padding: 4rem 2rem 2rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: white;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.course-review-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.course-review-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
}

/* Review modal */
.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(8, 13, 24, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.review-overlay.visible {
  display: flex;
}
.review-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.22s ease;
  overflow: hidden;
}
.review-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.review-header-course {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  line-height: 1.5;
}
.review-header h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}
.review-body {
  padding: 1.5rem 1.75rem;
}
.review-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.5;
}
.review-field-wrap {
  margin-bottom: 1.1rem;
}
.review-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  background: white;
}
.review-input:focus {
  border-color: var(--accent);
}
textarea.review-input {
  resize: vertical;
  min-height: 90px;
}
.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 1.1rem;
}
.star-btn {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #d1d5db;
  line-height: 1;
  transition:
    color 0.1s,
    transform 0.1s;
  padding: 0;
}
.star-btn.lit {
  color: #f59e0b;
}
.star-btn:hover {
  transform: scale(1.15);
}
.review-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn-review-send {
  flex: 1;
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-review-send:hover {
  background: var(--accent-hover);
}
.btn-review-cancel {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-muted);
}
.review-success {
  text-align: center;
  padding: 2rem 1.75rem;
}
.review-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.review-success h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.review-success p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ─── ADMIN OVERLAY ─── */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 13, 24, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}
.admin-overlay.visible {
  display: flex;
}
.admin-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.admin-header {
  background: var(--ink);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-shield {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.admin-header-text h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: white;
  font-size: 1.15rem;
}
.admin-header-text p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.admin-body {
  padding: 2rem;
}
#admin-login-form {
  display: block;
}
#admin-panel-content {
  display: none;
}
.admin-body label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.admin-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.admin-input:focus {
  border-color: var(--accent);
}
.admin-input.error {
  border-color: var(--red);
}
.admin-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
  display: none;
}
.admin-footer-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-admin-submit {
  flex: 1;
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-admin-submit:hover {
  background: var(--accent-hover);
}
.btn-admin-cancel {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background 0.15s;
}
.btn-admin-cancel:hover {
  background: var(--surface-3);
}

/* admin panel tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.admin-tab {
  flex: 1;
  padding: 7px;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-muted);
  font-weight: 500;
  transition: all 0.15s;
}
.admin-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}
.admin-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
.admin-stat {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.admin-stat-n {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
}
.admin-stat-l {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.admin-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.admin-table td {
  padding: 8px;
  border-bottom: 1px solid var(--surface-2);
}
.admin-table tr:hover td {
  background: var(--surface-2);
}
.badge-green {
  background: var(--green-light);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-amber {
  background: var(--amber-light);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-red {
  background: #fee2e2;
  color: var(--red);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.admin-logout {
  width: 100%;
  margin-top: 1rem;
  padding: 9px;
  border: 1px solid var(--border);
  background: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--red);
  cursor: pointer;
  transition: background 0.15s;
}
.admin-logout:hover {
  background: #fee2e2;
}

.admin-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--border-strong);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.on {
  background: var(--accent);
}
.toggle-knob {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch.on .toggle-knob {
  left: 21px;
}

/* keyboard shortcut hint */
.kb-hint {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  opacity: 0;
  animation: fadeHint 6s ease forwards;
}
@keyframes fadeHint {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
kbd {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-grid {
    grid-template-columns: 1fr 1fr;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps::before {
    display: none;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DYNAMISKE KURSKORT
   Kursene rendres nå av JavaScript – disse stilene matcher
   den genererte HTML-strukturen i app.js (buildCourseCardHtml)
   ═══════════════════════════════════════════════════════════════════ */

/* Kortets emoji-visning (tidligere .course-thumb) */
.course-card .course-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Etikett og nivå-rad på kortet */
.course-card .course-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Rad med tag og nivå */
.course-card .course-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nivå-tekst (f.eks. "8.–13. trinn") */
.course-level {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Skjul lastedummyen når JS har fylt inn kurs */
#courses-grid:has(.course-card) > div:not(.course-card) {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN – BREDERE MODAL OG FANER SOM WRAPPER
   ═══════════════════════════════════════════════════════════════════ */

/* Gjør admin-panelet bredere for å ha plass til alle fanene */
.admin-modal {
  max-width: 1000px !important;
}

/* Faner kan brytes til ny rad på smal skjerm */
.admin-tabs {
  flex-wrap: wrap !important;
}

.admin-tab {
  flex: none !important;     /* Ikke strekk – hold naturlig bredde */
  white-space: nowrap;
  font-size: 0.76rem !important;
  padding: 6px 10px !important;
}

/* Scroll inne i admin-bodyen slik at modalen ikke vokser ut av skjermen */
.admin-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   REDIGERINGSMODUS
   Aktivert via toggleEditMode() i app.js.
   body.edit-mode → redigerbare elementer får synlig kant.
   ═══════════════════════════════════════════════════════════════════ */

body.edit-mode [contenteditable="true"] {
  outline: 2px dashed var(--accent, #2563eb);
  outline-offset: 4px;
  cursor: text;
  border-radius: 4px;
  transition: background 0.15s;
}

body.edit-mode [contenteditable="true"]:hover {
  background: rgba(37, 99, 235, 0.04);
}

body.edit-mode [contenteditable="true"]:focus {
  outline: 2px solid var(--accent, #2563eb);
  background: rgba(37, 99, 235, 0.03);
}

/* ═══════════════════════════════════════════════════════════════════
   KURSREDIGERING I ADMIN-PANELET
   Brukes av renderAdminCourses() i app.js
   ═══════════════════════════════════════════════════════════════════ */

/* Wrapper for hvert kurs i admin-listen */
.course-edit-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 12px);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}
.course-edit-block:hover {
  border-color: var(--border-strong, #94a3b8);
}

/* Header-rad med emoji, navn og slett-knapp */
.course-edit-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.course-edit-emoji { font-size: 1.3rem; }
.course-edit-name  { font-weight: 700; font-size: 0.88rem; color: var(--ink); }

/* 2-kolonners grid for emoji/farge/etikett/nivå */
.course-edit-grid {
  display: grid;
  grid-template-columns: auto auto 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  /* På smal skjerm: én kolonne */
  .course-edit-grid { grid-template-columns: 1fr 1fr; }
}

/* Feltetiketter (TITTEL, BESKRIVELSE, osv.) */
.course-edit-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

/* Bunn-rad med Lagre-knapp og statustekst */
.course-edit-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Kompakt Lagre-knapp */
.btn-save-course {
  padding: 7px 16px !important;
  font-size: 0.8rem !important;
  flex: none;
}

/* Statustekst etter lagring (✅ Lagret / ❌ Feil) */
.course-save-status {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Slett-knapp (rød) brukt i admin for anmeldelser og kurs */
.admin-delete-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}
.admin-delete-btn:hover { background: #fecaca; }

/* ═══════════════════════════════════════════════════════════════════
   v2 – AUTH, BOOKING, PAYMENT MODALS
═══════════════════════════════════════════════════════════════════ */

/* Felles overlay (semi-transparent backdrop) */
.auth-overlay,
.booking-overlay,
.payment-overlay,
.success-overlay,
.bookings-overlay,
.tasks-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.auth-overlay.visible,
.booking-overlay.visible,
.payment-overlay.visible,
.success-overlay.visible,
.bookings-overlay.visible,
.tasks-overlay.visible {
  display: flex;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* Felles modal-boks */
.auth-modal,
.booking-modal,
.payment-modal,
.success-modal,
.bookings-modal,
.tasks-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s ease;
  padding: 0;
}
.booking-modal,
.bookings-modal { max-width: 560px; }

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
  z-index: 1;
}
.auth-close:hover { background: rgba(0, 0, 0, 0.1); color: var(--ink); }

/* ─── AUTH (login / register) ─── */
.auth-header {
  text-align: center;
  padding: 2rem 1.75rem 1rem;
}
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, #7c3aed));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
}
.auth-logo svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.auth-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.auth-header p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  margin: 0 1.75rem;
  border-radius: 10px;
}
.auth-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-form {
  padding: 1.5rem 1.75rem 2rem;
}
.auth-label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 12px;
}
.auth-label:first-child { margin-top: 0; }
.auth-optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.78rem;
}
.auth-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-error {
  color: var(--red, #dc2626);
  font-size: 0.82rem;
  margin-top: 12px;
  display: none;
  background: #fef2f2;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.auth-success {
  color: #166534;
  font-size: 0.82rem;
  margin-top: 12px;
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  line-height: 1.5;
}

.auth-forgot-link {
  text-align: right;
  margin: -4px 0 12px;
  font-size: 0.82rem;
}

.auth-forgot-link a {
  color: var(--accent);
  text-decoration: none;
}

.auth-forgot-link a:hover { text-decoration: underline; }

.btn-auth-submit {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: background 0.15s, transform 0.05s;
}

.auth-google-wrap {
  margin-top: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.btn-auth-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-auth-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn-auth-submit:hover:not(:disabled) { background: #1d4ed8; }
.btn-auth-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-auth-secondary {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.btn-auth-secondary:hover { background: rgba(37, 99, 235, 0.06); }

.auth-switch-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}
.auth-switch-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch-hint a:hover { text-decoration: underline; }

/* Brukernavn i navbar når innlogget */
.user-menu-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.user-menu-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.user-menu-icon {
  font-size: 0.95rem;
}

.user-menu-caret {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 0.35rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 1100;
}

.user-menu-dropdown.show {
  display: flex;
}

.user-menu-link {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.user-menu-link:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.user-menu-link-danger {
  color: var(--red, #dc2626);
}

.user-menu-link-danger:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red, #dc2626);
}

/* ─── BOOKING ─── */
.booking-header,
.payment-header {
  text-align: center;
  padding: 2rem 1.75rem 1rem;
}
.booking-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.booking-header p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}
.booking-body {
  padding: 0.5rem 1.75rem 2rem;
}
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meeting-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
@media (max-width: 480px) {
  .meeting-apps { grid-template-columns: repeat(2, 1fr); }
}
.meeting-app input { display: none; }
.meeting-app-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.meeting-app input:checked + .meeting-app-card {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}
.meeting-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.meeting-app-teams   { background: #5b5fc7; }
.meeting-app-meet    { background: #00897b; }
.meeting-app-zoom    { background: #2d8cff; }
.meeting-app-tencent { background: #00a4ff; }
.meeting-app-webex   { background: #00bceb; }
.meeting-app-fysisk   { background: #00aff0; }
.meeting-app-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}


/* **********DISABLED MEETING APP OPTIONS********** */

.meeting-app-disabled {
  position: relative;
  cursor: not-allowed;
}
.meeting-app-disabled .meeting-app-card {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(1);
  pointer-events: none; /* prevents click/check even without the disabled attr */
}
.meeting-app-disabled::after {
  content: "Ikke tilgjengelig ennå";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 10;
}
.meeting-app-disabled:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ****** */

.booking-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-top: 1.25rem;
  font-weight: 600;
}
.booking-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

/* ─── PAYMENT ─── */
.payment-shield {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.payment-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.payment-header p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}
.payment-demo-banner {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #78350f;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin: 1rem 0 0;
  text-align: left;
  line-height: 1.4;
}
.payment-body {
  padding: 1.25rem 1.75rem 2rem;
}
.payment-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.payment-method:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.payment-method-icon {
  font-size: 1.6rem;
  width: 44px;
  text-align: center;
}
.payment-method-text { flex: 1; }
.payment-method-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.payment-method-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.payment-method-arrow {
  font-size: 1.2rem;
  color: var(--ink-muted);
}
.payment-vipps:hover { border-color: #ff5b24; }
.payment-vipps:hover .payment-method-arrow { color: #ff5b24; }

.payment-security {
  margin-top: 1rem;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.payment-security-row { padding: 2px 0; }

/* ─── SUCCESS ─── */
.success-modal {
  text-align: center;
  padding: 2.5rem 2rem;
}
.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.success-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.success-modal p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ─── MINE TIMER ─── */
.bookings-list {
  padding: 0.5rem 1.75rem 2rem;
}
.booking-card {
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}
.booking-paid { border-left: 4px solid #10b981; }
.booking-pending { border-left: 4px solid #f59e0b; background: #fffbeb; }

.booking-card-main {
  flex: 1;
  min-width: 0;
}
.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.booking-card-elev {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}
.booking-card-elev-empty {
  color: var(--ink-muted);
  font-weight: 400;
}
.booking-card-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.booking-paid .booking-card-status { color: #059669; }
.booking-pending .booking-card-status { color: #b45309; }

.booking-card-datetime {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.booking-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.booking-card-notes {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--ink);
  font-style: italic;
}

.booking-teams-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6264a7;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.booking-teams-btn:hover { background: #4f5296; }
.booking-teams-btn-disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.booking-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.booking-meeting-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent, #2563eb);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.booking-meeting-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.booking-meeting-btn svg {
  flex-shrink: 0;
}

.booking-teams-btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  padding: 8px 14px;
}
.booking-teams-btn-secondary:hover {
  background: #e2e8f0;
}

@media (max-width: 480px) {
  .booking-card {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 8px;
  }
}


/* ─── GRATIS OPPGAVER (placeholder) ─── */
.tasks-empty {
  text-align: center;
  padding: 1rem 1.5rem 2rem;
}
.tasks-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.tasks-empty h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.tasks-empty p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Responsive: mindre padding på små skjermer
@media (max-width: 480px) {
  .auth-header,
  .booking-header,
  .payment-header { padding: 1.5rem 1.25rem 0.75rem; }
  .auth-form,
  .booking-body,
  .payment-body,
  .bookings-list { padding-left: 1.25rem; padding-right: 1.25rem; }
  .auth-tabs { margin: 0 1.25rem; }
} */






/* ---------- 700px–1600px ---------- */


@media (min-width: 1020px) and (max-width: 1500px) {
  .nav-inner {
    width: 100%;
    max-width: min(95vw, 1500px);
  }

  .nav-links a {
    font-size: 1.1vw;
    padding: 1vw 0.8vw;
  }

  .nav-actions .btn {
    font-size: clamp(0.75rem, 0.8vw, 0.875rem);
  }
}





/* ---------- Burger ---------- */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Mobile ---------- */

/* @media (max-width: 1020px) {

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
  }

  .nav-actions.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 264px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    justify-content: right;
  }

  .nav-actions.show .btn {
    width: 25%;
    justify-content: center;
  }
} */

/* ---------- Mobile ---------- */

@media (max-width: 1020px) {

  .menu-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
  }

  /* Both sections are hidden by default */
  .nav-links,
  .nav-actions {
    display: none;
  }

  /* Links */
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    border-bottom: none;
    z-index: 1000;
  }

  .nav-links.show li {
    width: 100%;
  }

  .nav-links.show a {
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    width: 100%;
    border-bottom: none !important;
  }

  /* No blue current-page line in burger menu */
  .nav-links.show a.current-page {
    border-bottom: none !important;
  }

  .nav-links.show a:hover {
    border-bottom: none !important;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
  }

  /* Actions appear directly after the links */
  .nav-actions.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: auto;
    left: 0;
    width: 100%;
    background: white;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    gap: 0.75rem;
  }

  .nav-actions.show .btn {
    width: 100%;
    justify-content: center;
  }

  /* User menu */
  .nav-actions.show .user-menu-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-actions.show .user-menu {
    width: 100%;
  }

  .nav-actions.show .user-menu-button {
    width: 100%;
    justify-content: center;
  }

  /*
   * On mobile the dropdown should be part of
   * the normal document flow, not positioned
   * outside the screen.
   */
  .nav-actions.show .user-menu-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
    box-shadow: none;
    border-radius: var(--radius-sm);
  }
  
  .nav-links a,
  .nav-links a.current-page {
    border-bottom: none !important;
  }
}

/* ---------- >1600px ---------- */

@media (min-width: 1500px) {
  .nav-inner {
    max-width: 1450px;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 8px 18px;
  }
}


.socialM{
  width: 4%
}





/* ── Team cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.25rem;
}

.team-grid-v {
  grid-template-columns:repeat(2, minmax(400px, 1fr)) !important;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-card-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 600;
  font-size: 1.1rem;
  color: #666;
  background: #e8e8e8;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.team-card-name {
  font-weight: 700;
  font-size: 1rem;
}

.team-card-role {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.team-card-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-card-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #444;
  text-decoration: none;
}

.team-card-contact-item:hover {
  color: #000;
  text-decoration: underline;
}

/* ── Tutor cards ── */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.tutor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tutor-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 0.85rem;
}

.tutor-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-card-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 600;
  font-size: 1.2rem;
  color: #666;
  background: #e8e8e8;
}

.tutor-card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.tutor-card-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.tutor-card-subjects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: auto;
}

.tutor-subject-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #333;
}


.tutor-grid {
  justify-items: center; /* already centered text, this centres orphan cards too */
}

/* Or, more precisely: */
.tutor-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 200px; /* match your minmax min value */
}







#matematikkFag,
#pianoFag,
#norskFag,
#tyskFag,
#kinesiskFag,
#fiolinFag,
#engelskFag {
  scroll-margin-top: 100px; /* height of your navbar */
}

/* ─── PORTAL PAGES ─── */
.portal-body {
  background: var(--surface-2);
  min-height: 100vh;
}

.portal-nav {
  background: white;
  border-bottom: 1px solid var(--border);
}

.portal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.portal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.portal-card-wide {
  max-width: 640px;
  margin: 0 auto;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.portal-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.portal-intro {
  margin-bottom: 2rem;
}

.role-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .role-choices {
    grid-template-columns: 1fr;
  }
}

.role-choice {
  text-align: left;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: inherit;
}

.role-choice:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.role-choice.disabled {
  opacity: 0.55;
  border-color: var(--border);
  background: var(--surface-1);
  cursor: not-allowed;
}

.role-choice.disabled:hover {
  border-color: var(--border);
  box-shadow: none;
}

.role-choice-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.role-choice-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.role-choice p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.portal-list {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.portal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.portal-form {
  max-width: 500px;
  margin-top: 1rem;
}

.portal-form .auth-input,
.portal-form .auth-label {
  display: block;
  width: 100%;
  margin-bottom: 0.35rem;
}

.portal-form .auth-input {
  margin-bottom: 1rem;
}

.portal-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.portal-checkboxes label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.portal-status {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.portal-status-pending {
  background: var(--amber-light);
}

.portal-status-accepted {
  background: var(--green-light);
}

.portal-status-declined {
  background: #fee2e2;
}

.portal-status-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.portal-status h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portal-status p {
  color: var(--ink-muted);
}

.portal-teachers-list,
.portal-children-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-teacher-card,
.portal-child-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--surface-2);
}

.portal-teacher-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.portal-teacher-subjects {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.portal-child-info {
  margin-bottom: 0.75rem;
}

.portal-child-grade {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.portal-muted {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.portal-error {
  color: var(--red);
  font-size: 0.9rem;
}


/* #account-username {
  margin-left: 100px;
} */

.separator {
  margin: 50px 50px;
}

.user-menu-logout-icon{
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  display: inline-block;
  vertical-align: -0.25em;
  margin-right: 0.4rem;
}







/* ***************************KURS-SECTION CSS********************************** */

/* ==============================================
   kurs-section.css
   Styles for the #kurs / Fagområder section.
   Merge into your main stylesheet or link
   separately. Assumes you have a .section-inner
   max-width wrapper already defined.
   ============================================== */

/* ---------- Section shell ---------- */

#kurs {
  padding: 5rem 0;
}

#kurs .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.courses-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #534AB7;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: #5f5e5a;
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Subject rows ---------- */

.subject-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.subject-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subject-row-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888780;
}

/* ---------- Horizontal scroll row of cards ---------- */

.cards-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  /* hide scrollbar on webkit but keep functionality */
  scrollbar-width: thin;
  scrollbar-color: #d3d1c7 transparent;
}

.cards-row::-webkit-scrollbar {
  height: 4px;
}
.cards-row::-webkit-scrollbar-track {
  background: transparent;
}
.cards-row::-webkit-scrollbar-thumb {
  background: #d3d1c7;
  border-radius: 2px;
}

/* ---------- Individual teacher card ---------- */

.teacher-card {
  flex: 0 0 220px;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.teacher-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Card top: avatar + name/level ---------- */

.card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

/* If using a real <img> inside .avatar */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Avatar color variants */
.avatar--purple { background: #EEEDFE; color: #3C3489; }
.avatar--teal   { background: #E1F5EE; color: #085041; }
.avatar--blue   { background: #E6F1FB; color: #0C447C; }
.avatar--coral  { background: #FAECE7; color: #712B13; }
.avatar--amber  { background: #FAEEDA; color: #633806; }
.avatar--grey   { background: #c9c9c9; color: #484848; }

.card-meta {
  min-width: 0;
}

.card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-level {
  font-size: 0.75rem;
  color: #888780;
  margin: 0;
  margin-top: 1px;
}

/* ---------- Subject badge ---------- */

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 99px;
  background: #F1EFE8;
  color: #444441;
  border: 0.5px solid rgba(0,0,0,0.08);
}


.card-badge-metode {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  padding: 2px 15px;
  border-radius: 20px;
  background: #3d6bc1;
  color: #f8f8f5;
  border: 0.5px solid rgba(0,0,0,0.08);
}

/* ---------- Description ---------- */

.card-desc {
  font-size: 0.8125rem;
  color: #5f5e5a;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* ------------Bestill time-knapp---------- */

.btn.btn-fag {
  background: #271ca6;
  color: #ffffff;
  border: none;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  text-align: center;
}

.btn.btn-fag:hover {
  background: #3a318a;
}

/* ---------- Dark mode ----------

@media (prefers-color-scheme: dark) {
  .section-title  { color: #f0efec; }
  .section-desc   { color: #b4b2a9; }
  .section-tag    { color: #AFA9EC; }
  .subject-row-label { color: #5f5e5a; }

  .teacher-card {
    background: #1e1e1c;
    border-color: rgba(255,255,255,0.08);
  }
  .teacher-card:hover {
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }

  .card-name  { color: #f0efec; }
  .card-level { color: #5f5e5a; }
  .card-desc  { color: #888780; }

  .card-badge {
    background: #2c2c2a;
    color: #b4b2a9;
    border-color: rgba(255,255,255,0.06);
  }

  .avatar--purple { background: #26215C; color: #CECBF6; }
  .avatar--teal   { background: #04342C; color: #9FE1CB; }
  .avatar--blue   { background: #042C53; color: #B5D4F4; }
  .avatar--coral  { background: #4A1B0C; color: #F5C4B3; }
  .avatar--amber  { background: #412402; color: #FAC775; }

  .cards-row {
    scrollbar-color: #444441 transparent;
  }
} */

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  #kurs { padding: 3rem 0; }

  .teacher-card {
    flex: 0 0 180px;
  }
}

[data-role-section] {
  display: none;
}

[data-role-section].visible {
  display: grid; /* or flex/grid, whatever the section needs */
}




/* *********REGISTRER ELEV FOR FORESATTE************ */
/* registrer-elev.css */

.userPage-header{
  padding-top: 60px;
  padding-left: 8vw;
  padding-bottom: 0;
}

.registrer-elev-seksjon {
  max-width: 650px;
  margin: 0 8vw;
  margin-bottom: 5rem;
  padding: 1.5rem;
  background-color: #ffffff;
  /* border: 1px solid #e0e0e0;
  border-radius: 8px; */
}

.registrer-elev-seksjon h2 {
  margin: 0;
  font-size: 1.25rem;
}

.registrer-elev-seksjon form.skjult {
  display: none;
}

.vis-skjema-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a7dff;
  background-color: transparent;
  border: 1px dashed #4a7dff;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.vis-skjema-btn:hover {
  background-color: rgba(74, 125, 255, 0.08);
}

.registrer-elev-seksjon #registrerElevForm {
  margin-top: 1rem;
}

.registrer-elev-seksjon .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.registrer-elev-seksjon label {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.registrer-elev-seksjon input,
.registrer-elev-seksjon select {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #111;
}

.registrer-elev-seksjon input:focus,
.registrer-elev-seksjon select:focus {
  outline: none;
  border-color: #4a7dff;
  box-shadow: 0 0 0 2px rgba(74, 125, 255, 0.2);
}

#registrerElevBtn {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #4a7dff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

#registrerElevBtn:hover:not(:disabled) {
  background-color: #3a63cc;
}

#registrerElevBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#registrerElevMelding {
  margin-top: 0.75rem;
  min-height: 1.2em;
  font-size: 0.9rem;
}

#registrerElevMelding[data-type="feil"] {
  color: #d32f2f;
}

#registrerElevMelding[data-type="suksess"] {
  color: #2e7d32;
}

/* Elevliste */
.elev-liste {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.elev-kort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 0.6rem 0.9rem;
  background-color: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 6px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.elev-kort strong {
  flex: 1 1 auto;
}

.slett-elev-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d32f2f;
  background-color: transparent;
  border: 1px solid #d32f2f;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.slett-elev-btn:hover:not(:disabled) {
  background-color: rgba(211, 47, 47, 0.08);
}

.slett-elev-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .registrer-elev-seksjon {
    background-color: #1c1c1e;
    border-color: #333;
  }

  .registrer-elev-seksjon input,
  .registrer-elev-seksjon select {
    background-color: #2a2a2c;
    border-color: #444;
    color: #f2f2f2;
  }

  .elev-kort {
    background-color: #2a2a2c;
    border-color: #3a3a3c;
  }

  .vis-skjema-btn {
    color: #7ea3ff;
    border-color: #7ea3ff;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .registrer-elev-seksjon {
    margin: 1rem;
    padding: 1rem;
  }

  .elev-kort {
    flex-direction: column;
    align-items: flex-start;
  }
}






/* ─── MØTEROM ─── */

.meeting-body {
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.meeting-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.meeting-logo { font-size: 1rem; flex-shrink: 0; }
.meeting-topbar-info { flex: 1; text-align: center; min-width: 0; }
.meeting-course-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.meeting-status { font-size: 0.8rem; color: var(--ink-muted); }
.meeting-leave-btn { flex-shrink: 0; }

.meeting-room {
  flex: 1;
  min-height: 0;
  padding: 16px;
}

.meeting-video-full {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  background: #0f172a;
  box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,0.08));
}
.meeting-video-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.meeting-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.meeting-control-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.meeting-control-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.meeting-control-icon { font-size: 1.2rem; }
.meeting-control-accent {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--accent, #2563eb);
}
.meeting-control-active {
  background: var(--accent, #2563eb) !important;
  color: #fff !important;
  border-color: var(--accent, #2563eb) !important;
}
.meeting-control-off {
  opacity: 0.55;
  background: #fef2f2;
  border-color: #fecaca;
}
.meeting-controls-veileder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--border, #e2e8f0);
}

.meeting-error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.meeting-error-overlay[hidden] { display: none; }
.meeting-error-card {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.15));
}