
/* ═══════════════════════════════════════════════════
   GLOBAL NAV
═══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  padding: 12px 32px;
  background: rgba(10, 6, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* Right side wrapper */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: static;
}

/* ── Stream Now ── */
.nav-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pink, #FF2D7D);
  color: #fff !important;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: 0 0 20px rgba(255,45,125,0.35);
  white-space: nowrap;
}
.nav-stream-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(255,45,125,0.55);
}

/* ── Dropdown buttons (Tools / Courses) ── */
.nav-drop-wrap { position: relative; }

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-drop-btn:hover,
.nav-drop-btn.open {
  background: rgba(255,45,125,0.12);
  border-color: rgba(255,45,125,0.4);
  color: #FF2D7D;
}
.drop-caret {
  transition: transform 0.22s;
  flex-shrink: 0;
}
.nav-drop-btn.open .drop-caret { transform: rotate(180deg); }

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: rgba(12, 7, 24, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,45,125,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 8px;
  z-index: 100;
}
.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s;
  color: #fff;
}
.drop-item:hover { background: rgba(255,45,125,0.1); }

.drop-item-icon {
  width: 36px; height: 36px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  flex-shrink: 0;
}
.drop-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drop-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.drop-item-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.drop-item-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}
.drop-item-badge.free {
  background: rgba(0,240,255,0.1);
  color: #00F0FF;
}
.drop-item-badge.paid {
  background: rgba(255,45,125,0.1);
  color: #FF2D7D;
}
.drop-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
}
.drop-coming-soon {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  text-align: center;
  padding: 8px;
  letter-spacing: 0.05em;
}

/* ── Detail Modal ── */
.detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.detail-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.detail-modal {
  background: rgba(14, 8, 28, 0.99);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,45,125,0.08);
}
.detail-modal-overlay.open .detail-modal {
  transform: translateY(0) scale(1);
}
.detail-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.detail-modal-close:hover {
  background: rgba(255,45,125,0.1);
  color: #fff;
}

/* Detail modal content styles */
.dmc-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.dmc-icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}
.dmc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FF2D7D;
  background: rgba(255,45,125,0.1);
  border: 1px solid rgba(255,45,125,0.2);
  border-radius: 100px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 6px;
}
.dmc-title {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin: 0;
}
.dmc-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.dmc-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0 0 20px;
}
.dmc-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 10px;
}
.dmc-list {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dmc-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.dmc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dmc-cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF2D7D, #FF6B00);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(255,45,125,0.35);
}
.dmc-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,45,125,0.55);
}
.dmc-note {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ── Hamburger ── */
.hamburger {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.hamburger:hover {
  background: rgba(255,45,125,0.1);
  border-color: rgba(255,45,125,0.3);
}
.hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Drawer ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 90vw;
  background: rgba(10, 6, 20, 0.98);
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.drawer-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.18s;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}
.drawer-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.drawer-link-icon { width: 28px; text-align: center; font-size: 17px; flex-shrink: 0; }

/* Accordion */
.drawer-accordion { position: relative; }
.drawer-accordion-btn {
  display: flex; align-items: center;
  width: 100%; background: none; border: none;
  cursor: pointer; text-align: left;
}
.drawer-accordion-caret {
  color: rgba(255,255,255,0.35);
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
}
.drawer-accordion-btn.open .drawer-accordion-caret { transform: rotate(180deg); color: #FF2D7D; }
.drawer-accordion-btn.open { color: #FF2D7D; background: rgba(255,45,125,0.08); }

.drawer-accordion-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
}
.drawer-accordion-body.open {
  max-height: 500px;
  opacity: 1;
  padding: 6px 6px 4px;
}

/* Drawer tool/course cards */
.drawer-tool-card {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.18s;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.drawer-tool-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: #FF2D7D; opacity: 0;
  transition: opacity 0.18s;
}
.drawer-tool-card:hover { background: rgba(255,45,125,0.08); border-color: rgba(255,45,125,0.2); }
.drawer-tool-card:hover::before { opacity: 1; }
.dtc-left { flex-shrink: 0; }
.dtc-icon {
  width: 34px; height: 34px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border-radius: 8px;
}
.dtc-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dtc-top { display: flex; align-items: center; gap: 7px; }
.dtc-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.dtc-sub { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtc-arrow { color: rgba(255,255,255,0.2); flex-shrink: 0; transition: transform 0.18s, color 0.18s; }
.drawer-tool-card:hover .dtc-arrow { transform: translateX(3px); color: #FF2D7D; }

.drawer-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px; margin-left: 4px;
}
.drawer-badge.free { background: rgba(0,240,255,0.12); color: #00F0FF; }
.drawer-badge.paid { background: rgba(255,45,125,0.12); color: #FF2D7D; }

.drawer-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }

.drawer-socials { display: flex; gap: 8px; padding: 12px 14px 20px; margin-top: auto; }
.drawer-social {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; transition: all 0.2s;
}
.drawer-social:hover { background: rgba(255,45,125,0.1); border-color: rgba(255,45,125,0.3); color: #fff; }

/* ── Mobile ── */
@media (max-width: 600px) {
  #nav { padding: 14px 16px; }
  #nav.scrolled { padding: 10px 16px; }
  .nav-drop-btn { display: none; }
  .nav-stream-btn { padding: 8px 14px; font-size: 12px; }
  .detail-modal { padding: 24px 20px; }
  .dmc-title { font-size: 20px; }
}
@media (max-width: 380px) {
  .nav-stream-btn span { display: none; }
}
.mobile-toggle { display: none !important; }
