/* ==========================================================================
   HEADER & MOBILE DRAWER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
}

.header-inner {
  max-width: 1380px;
  padding-inline: 20px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  padding: 4px 0;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--emerald-950);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--emerald-900);
  background: rgba(13, 59, 36, 0.06);
}

.nav-link.is-active {
  color: var(--emerald-900);
  background: var(--emerald-50);
  box-shadow: inset 0 -2px 0 var(--ruby-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-gold);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-900);
  white-space: nowrap;
}

.cloud-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-800);
  font-size: 0.71rem;
  font-weight: 700;
}

.admin-quickbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-pill-btn {
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(201, 162, 63, 0.55);
  background: var(--gold-100);
  color: var(--emerald-950);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.admin-pill-btn:hover {
  background: var(--gold-200);
}

.admin-pill-btn--accent {
  background: var(--ruby-50, #fdf2f3);
  border-color: rgba(124, 29, 38, 0.38);
  color: var(--ruby-900, #5e131b);
}

.admin-pill-btn--accent:hover {
  background: #f9e0e3;
}

.mobile-drawer__meta .admin-quickbar {
  flex-wrap: wrap;
}

.admin-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-dropdown-trigger {
  gap: 6px;
}

.admin-dropdown-caret {
  font-size: 0.72rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.admin-dropdown.is-open .admin-dropdown-caret {
  transform: rotate(180deg);
}

.admin-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 196px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg, 0 14px 32px rgba(7, 34, 21, 0.16));
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 350;
}

.admin-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--emerald-950);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.admin-dropdown-item:hover {
  background: var(--gold-100);
}

.admin-dropdown-item--accent {
  color: var(--ruby-900, #5e131b);
  background: rgba(124, 29, 38, 0.05);
}

.admin-dropdown-item--accent:hover {
  background: #f9e0e3;
}

.admin-dropdown-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-admin-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 63, 0.1);
  border: 1px solid rgba(201, 162, 63, 0.35);
}

.mobile-admin-group__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-900);
}

.mobile-admin-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--emerald-900);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px 22px;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer__nav .nav-link {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.96rem;
}

.mobile-drawer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid var(--gold-500);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-islamic-light);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 63, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 64px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.52);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-200);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.1vw, 3.35rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--gold-400);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hero-title span {
    white-space: normal;
  }
}

.hero-desc {
  font-size: 1.04rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin-bottom: 28px;
}

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

/* 3D Hero Flip Card */
.hero-flip-scene {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.hero-flip-inner {
  position: relative;
  width: 100%;
  display: grid;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s ease;
  -webkit-transition: -webkit-transform 0.6s ease;
  will-change: transform;
}

.hero-flip-scene.is-flipped .hero-flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.hero-flip-face {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
}

.hero-flip-face--front {
  position: relative;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.hero-flip-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-200);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.hero-flip-scene:hover .hero-flip-badge {
  background: rgba(212, 175, 55, 0.24);
  border-color: var(--gold-400);
}

.hero-emblem-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 34px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hero-flip-face--back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background-image: var(--pattern-islamic-light), linear-gradient(155deg, #0d3b24 0%, #072215 100%);
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-gold);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 16px;
}

.hero-hadith-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.8;
  color: var(--gold-400);
  opacity: 0.88;
  margin-top: 4px;
}

.hero-hadith-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: auto 0;
}

.hero-hadith-text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.6;
  color: #ffffff;
}

.hero-hadith-source {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.hero-flip-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(236, 219, 164, 0.78);
  letter-spacing: 0.03em;
}

.hero-emblem-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-200);
}

.hero-emblem-sub {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
}

.hero-stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-400);
}

.hero-stat-item span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   CONTINUE LEARNING BANNER
   ========================================================================== */
.continue-section {
  margin-top: -26px;
  position: relative;
  z-index: 10;
}

.continue-bar {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-left: 5px solid var(--ruby-600);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.continue-bar__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 320px;
}

.continue-bar__top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.continue-bar__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ruby-600);
}

.continue-bar__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--emerald-950);
}

.continue-bar__meta {
  font-size: 0.85rem;
  color: var(--ink-700);
}

.continue-bar__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  max-width: 360px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-900);
}

/* ==========================================================================
   SECTIONS, LIVE SCHEDULE & COURSE CARDS
   ========================================================================== */
.page-section {
  padding-block: 56px;
}

.page-section--tinted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, var(--parchment) 100%);
  background-image: var(--pattern-islamic-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.schedule-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--ruby-600);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.schedule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.schedule-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.schedule-day {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-900);
}

.schedule-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-edit-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-gold);
  background: var(--gold-100);
  color: var(--emerald-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.schedule-edit-btn:hover {
  background: var(--gold-200);
}

.schedule-time {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--emerald-950);
}

.schedule-subtext {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ruby-600);
}

.schedule-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-900);
}

.schedule-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink-700);
}

.schedule-cta {
  font-weight: 700;
  color: var(--emerald-900);
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}

.course-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-card__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-500);
}

.course-card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.26;
}

.course-card__scholar {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-600);
}

.course-card__desc {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__match {
  font-size: 0.8rem;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: var(--emerald-50);
  color: var(--emerald-900);
  border: 1px solid rgba(13, 59, 36, 0.12);
}

.course-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.course-card__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}

.course-card__open-label {
  color: var(--ruby-600);
  font-weight: 700;
}

/* ==========================================================================
   COURSES ARCHIVE PAGE (FILTER + SEARCH)
   ========================================================================== */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  background-image: var(--pattern-islamic-light), linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  color: #ffffff;
  padding-block: 44px;
  border-bottom: 2px solid var(--gold-500);
}

.page-banner__title {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 10px;
}

.page-banner__sub {
  color: rgba(255, 255, 255, 0.82);
  max-width: 64ch;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-toolbar--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.search-status-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.status-pill {
  padding: 7px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.status-pill:hover {
  color: var(--emerald-900);
}

.status-pill.is-active {
  background: var(--ruby-600);
  color: #ffffff;
}

.course-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.player-speed-seek {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.seek-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.filter-pill {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--emerald-800);
  color: var(--emerald-900);
}

.filter-pill.is-active {
  background: var(--emerald-900);
  color: #ffffff;
  border-color: var(--emerald-900);
}

.search-box {
  position: relative;
  min-width: min(340px, 100%);
  flex: 1 1 280px;
  max-width: 400px;
}

.search-box__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
  pointer-events: none;
}

.search-box__input {
  padding-left: 38px;
  padding-right: 34px;
}

.search-box__clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-500);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-box__clear:hover {
  background: var(--parchment);
  color: var(--ruby-600);
}

/* ==========================================================================
   COURSE DETAIL & MEDIA PLAYER
   ========================================================================== */
.course-detail-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border-gold);
  padding-block: 28px 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--ruby-600);
}

.course-detail-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.course-detail-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  color: var(--emerald-950);
  margin: 10px 0 8px;
}

.course-detail-desc {
  color: var(--ink-700);
  max-width: 68ch;
}

.course-progress-box {
  background: var(--parchment);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.course-workspace {
  padding-block: 34px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071910;
}

.video-stage iframe,
.video-stage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.audio-stage {
  padding: 32px 26px;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  background-image: var(--pattern-islamic-light), linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audio-stage__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-stage__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-stage audio {
  width: 100%;
  height: 44px;
}

.player-toolbar {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-lesson-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.player-lesson-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--emerald-950);
  margin-top: 4px;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.speed-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--parchment);
  padding: 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.speed-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-500);
  padding-inline: 6px;
}

.speed-btn {
  padding: 5px 9px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-700);
}

.speed-btn.is-active {
  background: var(--emerald-900);
  color: #ffffff;
}

.nav-lesson-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-box {
  background: linear-gradient(135deg, var(--gold-100) 0%, #fffdf7 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdf-box__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-box__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--ruby-600);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notes-card {
  padding: 22px;
}

.notes-card h3 {
  font-size: 1.22rem;
  color: var(--emerald-950);
  margin-bottom: 10px;
}

.notes-body {
  color: var(--ink-700);
  white-space: pre-line;
  line-height: 1.72;
}

/* Sidebar Lesson List */
.lesson-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.lesson-sidebar__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lesson-sidebar__list {
  display: flex;
  flex-direction: column;
  max-height: 620px;
  overflow-y: auto;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item:hover {
  background: var(--parchment);
}

.lesson-item.is-active {
  background: var(--emerald-50);
  box-shadow: inset 4px 0 0 var(--ruby-600);
}

.lesson-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.lesson-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 59, 36, 0.25);
  background: var(--surface);
  color: var(--emerald-900);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lesson-num.is-done {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  color: #ffffff;
}

.lesson-item__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lesson-item__title {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink-900);
  line-height: 1.35;
}

.lesson-item__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.tag-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  background: var(--parchment-deep);
  color: var(--emerald-900);
}

.tag-chip--pdf {
  background: var(--ruby-50);
  color: var(--ruby-600);
}

/* ==========================================================================
   EDITORIAL PAGES (O PREDAVAČU & O MEDRESI)
   ========================================================================== */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.editorial-card {
  padding: 32px;
}

.editorial-card p + p {
  margin-top: 16px;
}

.editorial-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scholar-profile-card {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scholar-portrait-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  padding: 5px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--gold-400), var(--emerald-900) 55%, var(--gold-500));
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(201, 162, 63, 0.35);
  overflow: hidden;
}

.scholar-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: calc(var(--radius-md) - 4px);
  display: block;
  background: var(--emerald-950);
}

.scholar-profile-name {
  font-size: 1.25rem;
  color: var(--emerald-950);
  margin: 2px 0 0;
}

.scholar-profile-role {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin: 0;
}

.pillar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pillar-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--parchment);
}

.pillar-card h3 {
  font-size: 1.08rem;
  color: var(--emerald-950);
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--ink-700);
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 38px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--emerald-950);
  color: rgba(255, 255, 255, 0.84);
  border-top: 2px solid var(--gold-500);
  padding-block: 38px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-200);
}

.footer-copy {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 3px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.views-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   ADMIN SCHEDULE LIST INSIDE MODAL
   ========================================================================== */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--parchment);
}

.admin-list-item__info {
  min-width: 0;
}

.admin-list-item__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--emerald-950);
}

.admin-list-item__meta {
  font-size: 0.8rem;
  color: var(--ink-700);
}

.admin-list-item__btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   PWA INSTALL BUTTONS & GUIDE MODAL
   ========================================================================== */
.btn--install-hero {
  background: linear-gradient(135deg, rgba(13, 59, 36, 0.92) 0%, rgba(7, 34, 21, 0.95) 100%);
  color: var(--gold-200);
  border-color: rgba(212, 175, 55, 0.68);
  box-shadow: 0 6px 18px rgba(7, 34, 21, 0.25);
}

.btn--install-hero:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
  border-color: var(--gold-400);
  color: #ffffff;
}

.btn--install-nav {
  background: var(--emerald-50);
  color: var(--emerald-900);
  border-color: rgba(201, 162, 63, 0.65);
}

.btn--install-nav:hover:not(:disabled) {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  color: var(--gold-200);
}

.install-modal-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  border: 1px solid var(--gold-500);
  color: #ffffff;
}

.install-modal-brand {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-200);
}

.install-modal-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.install-modal-lead {
  font-size: 0.94rem;
  color: var(--ink-700);
  line-height: 1.58;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  border: 1px solid var(--border-gold);
}

.install-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--emerald-900);
  color: var(--gold-200);
  border: 1px solid var(--gold-500);
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-text {
  font-size: 0.92rem;
  color: var(--ink-900);
  line-height: 1.5;
}

.ios-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid rgba(13, 59, 36, 0.22);
  color: var(--emerald-900);
  font-weight: 700;
  font-size: 0.82rem;
  vertical-align: middle;
}

.install-modal-notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
  color: var(--emerald-950);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ==========================================================================
   WEB PUSH BELL BUTTONS
   ========================================================================== */
.btn--push-icon {
  position: relative;
  width: 34px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--emerald-900);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.btn--push-icon:hover:not(:disabled) {
  background: var(--emerald-50);
  border-color: var(--border-gold);
}

.btn--push-icon.is-subscribed {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  color: var(--gold-400);
  border-color: var(--gold-500);
  box-shadow: 0 3px 12px rgba(201, 162, 63, 0.22);
}

.push-active-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 1.5px solid var(--emerald-950);
}

.btn--push-drawer {
  padding: 7px 13px;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--emerald-900);
  border: 1px solid var(--border-subtle);
}

.btn--push-drawer:hover:not(:disabled) {
  background: var(--emerald-50);
  border-color: var(--border-gold);
}

.btn--push-drawer.is-subscribed {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  color: var(--gold-200);
  border-color: var(--gold-500);
}

/* ==========================================================================
   YOUTUBE LIVESTREAM, OFFLINE SCHEDULE CARD & ADMIN DRAFT STREAMS
   ========================================================================== */
.live-section-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.live-stream-box {
  background: linear-gradient(155deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.live-stream-box__head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.live-stream-box__title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.live-stream-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  color: #ffffff;
  font-weight: 700;
}

.live-stream-box__player {
  background: #071910;
}

.live-schedule-card {
  padding: 26px 28px;
  border-top: 3px solid var(--gold-500);
}

.live-schedule-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.live-schedule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-schedule-row {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--parchment);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.live-schedule-row.is-clickable {
  cursor: pointer;
}

.live-schedule-row.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--emerald-800);
}

.live-schedule-row__day {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.live-schedule-row__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.35;
}

.live-schedule-row__link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-900);
}

.admin-streams-wrap {
  padding-top: 24px;
}

.admin-streams-panel {
  background: var(--surface);
  border: 2px solid var(--gold-500);
  border-left: 6px solid var(--emerald-900);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

.admin-streams-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-streams-panel__title {
  font-size: 1.32rem;
  color: var(--emerald-950);
  margin-top: 4px;
}

.admin-streams-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-stream-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--parchment);
  border: 1px solid var(--border-subtle);
}

.admin-stream-thumb {
  width: 168px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-gold);
  background: #071910;
}

.admin-stream-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-stream-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.url-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.url-input-row .input {
  flex: 1 1 auto;
  min-width: 0;
}

.url-input-row .btn {
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1380px) and (min-width: 1221px) {
  .header-inner {
    gap: 10px;
    padding-inline: 16px;
  }

  .brand-link {
    gap: 9px;
  }

  .brand-title {
    font-size: 0.94rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 0.83rem;
  }

  .header-actions {
    gap: 6px;
  }

  .progress-pill {
    padding: 5px 9px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .cloud-chip {
    padding: 2px 6px;
    font-size: 0.68rem;
  }

  .header-install-btn,
  .header-auth-btn {
    padding: 6px 10px;
    font-size: 0.77rem;
  }

  .admin-pill-btn {
    padding: 6px 9px;
    font-size: 0.76rem;
  }
}

@media (max-width: 1220px) {
  .main-nav,
  .header-actions .progress-pill,
  .header-actions .header-push-btn,
  .header-actions .header-install-btn,
  .header-actions .admin-quickbar,
  .header-actions .admin-dropdown,
  .header-actions .header-auth-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .course-detail-header-grid,
  .course-workspace,
  .editorial-grid,
  .live-schedule-list,
  .admin-stream-fields {
    grid-template-columns: 1fr;
  }

  .admin-stream-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-stream-thumb {
    width: 100%;
    max-width: 280px;
  }

  .admin-stream-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .lesson-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }

  .hero-inner {
    padding-block: 40px 48px;
    gap: 28px;
  }

  .page-section {
    padding-block: 40px;
  }

  .editorial-card {
    padding: 22px 18px;
  }

  .scholar-portrait-frame {
    max-width: 240px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .url-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-header,
  .modal-body {
    padding-inline: 18px;
  }

  .user-role-row {
    flex-direction: column;
    align-items: stretch;
  }

  .role-toggles {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MANUAL PUSH & SUPER-ADMIN USERS MODALS
   ========================================================================== */
.cooldown-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--emerald-950);
}

.cooldown-banner--ready {
  background: var(--emerald-50);
  border-color: rgba(13, 59, 36, 0.25);
  color: var(--emerald-900);
}

.cooldown-banner--wait {
  background: #fff8ea;
  border-color: rgba(201, 162, 63, 0.55);
  color: #6b4c08;
}

.cooldown-last-info {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.push-result-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.88rem;
  background: var(--emerald-50);
  border: 1px solid rgba(13, 59, 36, 0.28);
  color: var(--emerald-900);
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 2px;
}

.user-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.user-role-row--super {
  border-color: rgba(201, 162, 63, 0.55);
  background: #fdf9ef;
}

.user-role-info {
  min-width: 0;
  flex: 1;
}

.user-role-email {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--emerald-950);
  word-break: break-word;
}

.user-role-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.role-badge-super {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  border: 1px solid rgba(201, 162, 63, 0.6);
  color: var(--emerald-950);
  font-size: 0.72rem;
  font-weight: 700;
}

.role-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.role-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-950);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.role-toggle-chip.is-enabled {
  background: var(--emerald-50);
  border-color: rgba(13, 59, 36, 0.38);
  color: var(--emerald-900);
}

.role-toggle-chip.is-locked {
  background: var(--gold-100);
  border-color: rgba(201, 162, 63, 0.45);
  color: var(--emerald-950);
  cursor: default;
}

.role-toggle-chip input[type="checkbox"] {
  accent-color: var(--emerald-800);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
