.nav-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .nav-v2 {
    height: 60px;
    padding: 0 1rem;
  }
}

.desktop-only {
  display: flex !important;
}

.desktop-only-flex {
  display: flex !important;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .desktop-only, .desktop-only-flex {
    display: none !important;
  }
}

.nav-v2.scrolled {
  height: 70px;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-v2-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-v2-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-v2-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-v2-logo img {
  height: 24px;
  width: auto;
}

@media (max-width: 768px) {
  .nav-v2-logo img {
    height: 20px;
  }
}

.v2-tag {
  font-size: 10px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.nav-v2-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-v2-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-v2-link:hover, .nav-v2-link.active {
  color: #fff;
}

.special-link {
  background: linear-gradient(90deg, #3b82f6, #a855f7, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 800;
}

.nav-v2-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.v2-btn-ghost {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.v2-btn-primary {
  background: #fbbf24;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.v2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
  background: #fcd34d;
}

/* Profile Trigger */
.nav-v2-profile {
  position: relative;
}

.profile-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.avatar-initial {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  line-height: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* Ensure dropdown items are readable on hover */
.profile-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fbbf24 !important;
}

.profile-dropdown .dropdown-item.logout {
  color: #f87171 !important;
}

.profile-dropdown .dropdown-item.logout:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #ef4444 !important;
}


.mobile-v2-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-v2-links {
    display: none;
  }
  
  .v2-btn-ghost {
    display: none;
  }
  
  .mobile-v2-toggle {
    display: block;
  }
  
  .nav-v2-brand {
    margin-right: auto;
    gap: 0.4rem;
  }
  
  .v2-tag {
    margin-left: 0;
    font-size: 8px;
    padding: 1px 6px;
  }
  
  .nav-v2-logo img {
    height: 18px;
  }
  
  .nav-v2-actions .v2-btn-primary {
    display: none;
  }

  .nav-v2-actions {
    gap: 0.75rem;
  }

  .profile-trigger {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .user-name {
    display: none;
  }
  
  .profile-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.4rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  
  .profile-trigger svg:last-child {
    display: block;
    width: 12px;
    height: 12px;
    opacity: 0.7;
  }
}

.mobile-v2-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0b0e;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.mobile-v2-link {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.mobile-v2-auth {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-v2-auth .v2-btn-ghost {
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
}

/* Hide Prepy Widget when mobile menu is open */
body.mobile-menu-active #prepy-student-launcher,
body.mobile-menu-active #prepy-student-chat-panel,
body.mobile-menu-active #prepy-student-tooltip,
body.mobile-menu-active #prepy-sales-launcher,
body.mobile-menu-active #prepy-sales-chat-panel,
body.mobile-menu-active #prepy-sales-tooltip {
  display: none !important;
}

/* Mobile Profile in Menu */
@media (max-width: 640px) {
  .mobile-v2-menu {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .mobile-v2-profile {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .avatar-initial-large {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
  }
  
  .mobile-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .mobile-user-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .mobile-user-email {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .mobile-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.75rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
  }
  
  .mobile-profile-item {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mobile-profile-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-profile-item.logout {
    color: #f87171;
    background: rgba(248, 113, 113, 0.05);
  }
  
  .mobile-profile-item.logout:hover {
    background: rgba(248, 113, 113, 0.1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-v2-link-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.has-dropdown {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  opacity: 0.6;
}

/* Main Dropdown Menu */
.v2-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding-top: 10px;
  z-index: 1000;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-v2-link-container:hover .v2-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.v2-nav-dropdown-content {
  background: rgba(10, 11, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
}

.v2-nav-dropdown-item-wrapper {
  position: relative;
}

.v2-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.v2-nav-dropdown-item:hover, .v2-nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

.v2-nav-dropdown-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.v2-dropdown-icon {
  font-size: 1.1rem;
}

.v2-status-tag {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 0.5rem;
}

/* Secondary Dropdown (Exams breakdown) */
.v2-nav-secondary-dropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  min-width: 220px;
  background: rgba(15, 17, 22, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  animation: dropdownSlideRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dropdownSlideRight {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.v2-nav-secondary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.v2-nav-secondary-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fbbf24;
  transform: translateX(4px);
}

.v2-nav-secondary-item.disabled {
  opacity: 0.4;
}

/* Active Link Indicators */
.nav-v2-link {
  position: relative;
}

.nav-v2-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fbbf24;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* FooterV2.css - High-end Dark Design for Footer */

.v2-footer {
  background-color: #030712;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-v2-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.v2-tag {
  font-size: 10px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.v2-footer-glass {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-footer-gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v2-footer-link {
  color: #94a3b8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v2-footer-link:hover {
  color: #fbbf24;
  transform: translateX(4px);
}

.v2-footer-social-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.v2-footer-social-icon:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  transform: translateY(-2px);
}

.v2-footer-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.v2-footer-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
  outline: none;
}

.v2-footer-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: black;
  font-weight: 800;
  transition: all 0.3s ease;
}

.v2-footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.v2-footer-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.v2-footer-brand-logo {
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
}

@media (max-width: 1024px) {
  .v2-footer .max-w-7xl {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* blog-prose.css */
.prose.blog-prose p {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
  line-height: 1.7 !important;
}
.prose.blog-prose h1, .prose.blog-prose h2, .prose.blog-prose h3 {
  margin-top: 1.5em !important;
  margin-bottom: 0.5em !important;
  font-weight: 700 !important;
}
.prose.blog-prose blockquote {
  border-left: 4px solid #6366f1 !important;
  background: #f1f5f9 !important;
  padding: 1em 1.5em !important;
  margin: 1.5em 0 !important;
  font-style: italic !important;
  color: #334155 !important;
}
.prose.blog-prose ul, .prose.blog-prose ol {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
  padding-left: 2em !important;
}
.prose.blog-prose li {
  margin-bottom: 0.25em !important;
}
.prose.blog-prose img {
  margin: 2em 0 !important;
  border-radius: 1em !important;
  max-width: 100% !important;
}

/* Inline image positioning styles */
.prose.blog-prose .blog-inline-image {
  border-radius: 0.5em !important;
  margin: 1em 0 !important;
}

.prose.blog-prose .blog-image-center {
  display: block !important;
  margin: 1.5em auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

.prose.blog-prose .blog-image-left {
  float: left !important;
  margin: 0.5em 1.5em 0.5em 0 !important;
  max-width: 45% !important;
  clear: left !important;
}

.prose.blog-prose .blog-image-right {
  float: right !important;
  margin: 0.5em 0 0.5em 1.5em !important;
  max-width: 45% !important;
  clear: right !important;
}

.prose.blog-prose .blog-image-top {
  display: block !important;
  margin: 0 0 1em 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.prose.blog-prose .blog-image-bottom {
  display: block !important;
  margin: 1em 0 0 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Clear floats after positioned images */
.prose.blog-prose .blog-content-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* Ensure paragraphs flow correctly around floated images */
.prose.blog-prose p {
  overflow-wrap: break-word;
}

/* Responsive adjustments for floated images */
@media (max-width: 640px) {
  .prose.blog-prose .blog-image-left,
  .prose.blog-prose .blog-image-right {
    float: none !important;
    display: block !important;
    margin: 1em auto !important;
    max-width: 100% !important;
  }
}
.prose.blog-prose *:first-child {
  margin-top: 0 !important;
}
.prose.blog-prose *:last-child {
  margin-bottom: 0 !important;
}
.prose.blog-prose p:empty, .prose.blog-prose p:blank {
  display: none !important;
}

/* ReactQuill editor auto-expand styles */
.ql-container {
  overflow: visible !important;
  height: auto !important;
}

.ql-editor {
  overflow: visible !important;
  min-height: 200px !important;
  height: auto !important;
}

.ql-editor.ql-blank::before {
  min-height: 200px !important;
}

/* Dark mode styles for blog prose */
.dark .prose.blog-prose p {
  color: #e2e8f0 !important;
}

.dark .prose.blog-prose h1,
.dark .prose.blog-prose h2,
.dark .prose.blog-prose h3 {
  color: #f8fafc !important;
}

.dark .prose.blog-prose blockquote {
  background: rgba(30, 41, 59, 0.5) !important;
  border-left-color: #60a5fa !important;
  color: #e2e8f0 !important;
}

.dark .prose.blog-prose a {
  color: #60a5fa !important;
}

.dark .prose.blog-prose a:hover {
  color: #93c5fd !important;
}

.dark .prose.blog-prose code {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

.dark .prose.blog-prose pre {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

.dark .prose.blog-prose ul,
.dark .prose.blog-prose ol,
.dark .prose.blog-prose li {
  color: #e2e8f0 !important;
}

.dark .prose.blog-prose strong {
  color: #f8fafc !important;
} 
.trial-expired-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trial-expired-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 11, 16, 0.9) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.trial-expired-icon {
  width: 80px;
  height: 80px;
  background: rgba(234, 179, 8, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.trial-expired-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.trial-expired-text {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.trial-expired-benefits {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
}

.trial-expired-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upgrade-btn-v2 {
  width: 100%;
  padding: 1rem 2rem;
  background: #f59e0b;
  color: #000;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
}

.upgrade-btn-v2:hover {
  transform: translateY(-2px);
  background: #fbbf24;
  box-shadow: 0 15px 30px -10px rgba(245, 158, 11, 0.4);
}

.return-home-btn {
  background: transparent;
  color: #64748b;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
}

.return-home-btn:hover {
  color: #fff;
}

.premium-feature-overlay {
  position: fixed;
  inset: 0;
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.premium-glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.premium-gate-card {
  max-width: 540px;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
  border-radius: 32px;
}

.premium-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 99px;
  color: #f59e0b;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-gate-icon {
  margin-bottom: 2rem;
  display: inline-flex;
  padding: 1.5rem;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 24px;
}

.premium-gate-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.premium-gate-description {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.premium-gate-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: center;
}

.premium-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 1rem;
}

.premium-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.premium-primary-btn {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #1e293b;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.premium-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  filter: brightness(1.1);
}

.premium-secondary-btn {
  width: 100%;
  padding: 1rem;
  background: transparent;
  color: #94a3b8;
  font-weight: 500;
  border-radius: 16px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.premium-secondary-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .premium-gate-card {
    padding: 2.5rem 1.5rem;
  }
  
  .premium-gate-title {
    font-size: 1.75rem;
  }
  
  .premium-gate-description {
    font-size: 1rem;
  }
}

/* MicrolessonViewerV2.css - High-end V2 Design for Microlessons */

.microlesson-v2-container {
  color: #f8fafc;
  max-width: 1280px;
  margin: 0 auto;
}

.v2-back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  width: fit-content;
}

.v2-back-button:hover {
  color: #fbbf24;
  transform: translateX(-4px);
}

.lesson-v2-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lesson-v2-header {
  margin-bottom: 32px;
}

.lesson-v2-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.v2-badge {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.v2-difficulty-badge {
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.lesson-v2-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Content Styling */
.lesson-v2-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.prose-v2 {
  color: #cbd5e1;
}

.prose-v2 h1, .prose-v2 h2, .prose-v2 h3 {
  color: white;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.prose-v2 p {
  margin-top: 0;
  margin-bottom: 0.125rem;
}

.prose-v2 .ql-editor p {
  margin-top: 0 !important;
  margin-bottom: 0.125rem !important;
}

.prose-v2 strong {
  color: #fbbf24;
  font-weight: 700;
}

.prose-v2 ul, .prose-v2 ol {
  margin-top: 0;
  margin-bottom: 0.25rem;
  padding-left: 1.5rem;
}

.prose-v2 li {
  margin-top: 0;
  margin-bottom: 0.0625rem;
}

/* Quiz Section V2 */
.quiz-v2-container {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-v2-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-v2-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.quiz-v2-item:focus-within {
  border-color: rgba(251, 191, 36, 0.3);
}

.question-v2-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.option-v2-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
  gap: 12px;
}

.option-v2-btn {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-v2-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.option-v2-btn.selected {
  background: rgba(251, 191, 36, 0.1);
  border-color: #fbbf24;
  color: #fbbf24;
}

.option-v2-btn.correct {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #22c55e;
}

.option-v2-btn.wrong {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.v2-submit-btn {
  width: 100%;
  background: #fbbf24;
  color: black;
  font-weight: 900;
  padding: 18px;
  border-radius: 16px;
  margin-top: 24px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v2-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.v2-submit-btn:disabled {
  background: #1e293b;
  color: #475569;
  cursor: not-allowed;
}

/* Celebration Overlay V2 */
.celebration-v2-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.8);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.celebration-v2-card {
  text-align: center;
  max-width: 400px;
}

.v2-score-circle {
  width: 120px;
  height: 120px;
  background: rgba(251, 191, 36, 0.1);
  border: 4px solid #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.v2-score-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fbbf24;
}

