/* ========================================
   DARK THEME COMPONENTS
   Application-specific components with unified dark theme
======================================== */

/* ========================================
   BOOK COMPONENTS
======================================== */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  padding: var(--space-4) 0;
}

.book-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 420px;
  position: relative;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 1;
}

.book-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.book-card:hover::before {
  opacity: 1;
}

.book-cover {
  width: 100%;
  height: 200px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
  z-index: 2;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-4);
  height: 100%;
}

.book-cover-placeholder i {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-3);
  color: var(--accent-primary);
  opacity: 0.7;
}

.book-info {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.book-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-medium);
}

.book-category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}

/* ========================================
   LIBRARY COMPONENTS
======================================== */

.library-book-card {
  position: relative;
}

.library-remove-btn {
  background-color: transparent;
  color: var(--error);
  border: 1px solid var(--error);
}

.library-remove-btn:hover {
  background-color: var(--error);
  color: white;
  border-color: var(--error);
  transform: translateY(-1px);
}

.added-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
}

/* ========================================
   RESUME BUILDER COMPONENTS
======================================== */

.resume-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border-default);
  position: relative;
}

.resume-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--accent-primary);
}

.document-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.document-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.document-card:hover::before {
  opacity: 1;
}

.document-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: var(--success-subtle);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   ROADMAP COMPONENTS
======================================== */

.roadmap-path-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.roadmap-path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.roadmap-path-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.roadmap-path-card:hover::before {
  opacity: 1;
}

.path-icon {
  width: 64px;
  height: 64px;
  background-color: var(--accent-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all var(--transition-normal);
}

.roadmap-path-card:hover .path-icon {
  background-color: var(--accent-primary);
  transform: scale(1.1);
}

.roadmap-path-card:hover .path-icon i {
  color: white;
}

.path-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
  transition: width var(--transition-normal);
}

/* ========================================
   FORM COMPONENTS - DARK THEME
======================================== */

.auth-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.form-error {
  color: var(--error);
  font-size: var(--font-size-xs);
  margin-top: var(--space-1);
}

.form-help {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: var(--space-1);
}

/* ========================================
   NAVIGATION ENHANCEMENTS
======================================== */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.mobile-menu-toggle:hover .hamburger-line {
  background-color: var(--text-primary);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   CATEGORY NAVIGATION
======================================== */

.category-navigation {
  margin-bottom: var(--space-8);
}

.category-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-2) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.category-chip.active {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* ========================================
   EMPTY STATES
======================================== */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.empty-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: pulse 2s ease-in-out infinite;
}

.empty-icon i {
  font-size: var(--font-size-2xl);
  color: var(--accent-primary);
}

/* ========================================
   FEATURE CARDS
======================================== */

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background-color: var(--accent-primary);
  transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
  color: white;
}

/* ========================================
   STATS COMPONENTS
======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   MODAL COMPONENTS
======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
  .navbar-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  
  .navbar-nav.mobile-menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav li {
    width: 100%;
  }
  
  .nav-link {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: var(--space-2);
  }
  
  .nav-link.active {
    background-color: var(--accent-primary);
    color: white;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
  }
  
  .book-card {
    height: 380px;
  }
  
  .book-cover {
    height: 180px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .path-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
  
  .book-card {
    height: 360px;
  }
  
  .book-cover {
    height: 160px;
  }
  
  .book-actions {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .modal-content {
    width: 95%;
    padding: var(--space-6);
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* ========================================
   BOOK SINGLE PAGE COMPONENTS
======================================== */

.book-detail {
  padding: var(--space-8) 0;
}

.book-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
}

.book-cover-large {
  width: 300px;
  height: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

.book-cover-large img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.book-cover-large:hover img {
  transform: scale(1.02);
}

.book-cover-large-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-6);
}

.book-cover-large-placeholder i {
  font-size: var(--font-size-4xl);
  opacity: 0.7;
  color: var(--accent-primary);
}

.book-cover-large-placeholder .placeholder-text {
  font-size: var(--font-size-sm);
  font-weight: 600;
  opacity: 0.9;
  color: var(--text-secondary);
}

.book-meta-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.book-title-large {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.book-author-large {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  font-weight: 500;
}

.book-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

.metadata-item .metadata-label {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.metadata-item .metadata-value a {
  color: var(--accent-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.metadata-item .metadata-value span {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 600;
}

.reviews-section {
  margin-top: var(--space-12);
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: all var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-emphasis);
}

.add-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.add-review-card .card-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.add-review-card .card-body {
  padding: var(--space-5);
}

.signin-prompt {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.signin-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.signin-icon i {
  font-size: var(--font-size-lg);
  color: var(--accent-primary);
}

/* Book single page responsive design */
@media (max-width: 1024px) {
  .book-header {
    grid-template-columns: 280px 1fr !important;
    gap: var(--space-8) !important;
  }
  
  .book-cover-large {
    width: 280px !important;
    height: 380px !important;
  }
}

@media (max-width: 768px) {
  .book-header {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: var(--space-6) !important;
  }
  
  .book-cover-large {
    width: 240px !important;
    height: 320px !important;
    margin: 0 auto !important;
  }
  
  .book-actions {
    justify-content: center !important;
  }
  
  .book-metadata-grid {
    grid-template-columns: 1fr !important;
  }
  
  .nav-actions {
    flex-direction: column !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .book-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .book-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

.floating-icon i {
  font-size: var(--font-size-3xl);
  color: var(--accent-primary);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
}

.mission-card,
.vision-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-md);
}

.card-icon i {
  font-size: var(--font-size-2xl);
  color: white;
}

.focus-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.focus-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.focus-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.focus-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.focus-icon i {
  font-size: var(--font-size-xl);
  color: var(--accent-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
}

.feature-list-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.feature-list-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list-card li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-default);
}

.feature-list-card li:last-child {
  border-bottom: none;
}

.feature-list-card .feature-item-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-list-card .feature-item-icon i {
  color: var(--accent-primary);
}

.tech-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.tech-item i {
  font-size: var(--font-size-2xl);
  color: var(--accent-primary);
}

.tech-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* About page animations */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsive design for About page */
@media (max-width: 768px) {
  .header-icon-group {
    display: none !important;
  }
  
  .mission-vision-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  
  .focus-areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr !important;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Staggered animations */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
======================================== */

.focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-default: #ffffff;
    --border-emphasis: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: #cccccc;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .book-card:hover,
  .feature-card:hover,
  .stat-card:hover,
  .roadmap-path-card:hover {
    transform: none;
  }
  
  .book-cover img,
  .feature-icon,
  .path-icon {
    transition: none;
  }
}

/* Access Control Status Indicators */
.access-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
  margin-right: 0.5rem;
}

.access-status.admin {
  background-color: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.access-status.approved {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.access-status.pending {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.access-status.rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.access-status.unknown {
  background-color: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.3);
}

/* Access Control Messages */
.access-message {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.access-message.denied {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.3);
}

.access-message.approved {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border-color: rgba(34, 197, 94, 0.3);
}

.access-message h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.access-message p {
  margin: 0;
  color: var(--text-secondary);
}

/* Request Access Button */
.btn-request-access {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-request-access:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
  color: white;
  text-decoration: none;
}

.btn-request-access:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Disabled Content Overlay */
.content-disabled {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.content-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  z-index: 1;
}

/* Access Required Badge */
.access-required-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}
/* Active state for navbar buttons */
.btn.active {
  background-color: var(--accent-primary) !important;
  color: white !important;
  border-color: var(--accent-primary) !important;
}

.btn-ghost.active {
  background-color: rgba(74, 158, 255, 0.1) !important;
  color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
}

/* Ensure active state is visible */
.navbar-auth .btn.active {
  font-weight: 600;
}
/* Disabled Actions Group Styling */
.disabled-actions-group {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
}

.disabled-actions-group .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--bg-secondary);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

.disabled-actions-group .btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Ensure consistent button sizing in action groups */
.book-actions .btn,
.disabled-actions-group .btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Access message improvements */
.access-message {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid;
}

.access-message.denied {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.03));
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--text-primary);
}

.access-message h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.access-message p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Button consistency improvements */
.btn-request-access {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-request-access:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
  color: white;
  text-decoration: none;
}

.btn-request-access:active {
  transform: translateY(0);
}

/* Responsive button adjustments */
@media (max-width: 768px) {
  .book-actions,
  .disabled-actions-group {
    flex-direction: column;
  }
  
  .book-actions .btn,
  .disabled-actions-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   SECTION SPACING IMPROVEMENTS
======================================== */

/* Ensure proper section spacing on all screen sizes */
.section-spacing-fix {
  margin-top: var(--space-20);
  margin-bottom: var(--space-20);
}

/* Responsive spacing adjustments */
@media (max-width: 1024px) {
  .section-spacing-fix {
    margin-top: var(--space-16);
    margin-bottom: var(--space-16);
  }
}

@media (max-width: 768px) {
  .section-spacing-fix {
    margin-top: var(--space-12);
    margin-bottom: var(--space-12);
  }
  
  /* Reduce container padding on mobile */
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

@media (max-width: 480px) {
  .section-spacing-fix {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
  }
  
  /* Further reduce spacing on very small screens */
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

/* Specific spacing for call-to-action section */
.cta-spacing {
  margin-top: var(--space-24);
}

@media (max-width: 768px) {
  .cta-spacing {
    margin-top: var(--space-16);
  }
}

@media (max-width: 480px) {
  .cta-spacing {
    margin-top: var(--space-12);
  }
}
/* ========================================
   ENHANCED REQUEST ACCESS BUTTON
======================================== */

.btn-request-access {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid #3b82f6;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease-out;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  outline: none;
  font-family: inherit;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-request-access:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.25), 0 10px 10px -5px rgba(59, 130, 246, 0.1), 0 0 30px rgba(59, 130, 246, 0.4);
  border-color: #60a5fa;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  animation: none;
  text-decoration: none;
}

.btn-request-access:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.25), 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.btn-request-access:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-request-access:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25), 0 2px 4px -1px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25), 0 2px 4px -1px rgba(59, 130, 246, 0.1), 0 0 30px rgba(59, 130, 246, 0.5);
  }
}

/* ========================================
   MODERN AUTHENTICATION ANIMATIONS
======================================== */

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes animate-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

.animate-float {
  animation: animate-float 6s ease-in-out infinite;
}

/* Scale in animation */
@keyframes animate-scale-in {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-in {
  animation: animate-scale-in 0.5s ease-out;
}

/* Blur effects for background elements */
.blur-3xl {
  filter: blur(64px);
}

/* Gradient backgrounds */
.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--from-color), var(--to-color));
}

.bg-gradient-to-tr {
  background: linear-gradient(to top right, var(--from-color), var(--to-color));
}

/* Utility classes for positioning */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.pointer-events-none {
  pointer-events: none;
}

.z-10 {
  z-index: 10;
}

/* Responsive utilities */
.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-3 {
  gap: var(--space-3);
}

.gap-6 {
  gap: var(--space-6);
}

/* Spacing utilities */
.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

/* Border radius utilities */
.rounded-full {
  border-radius: 9999px;
}

/* Overflow utilities */
.overflow-hidden {
  overflow: hidden;
}

/* Opacity utilities */
.opacity-40 {
  opacity: 0.4;
}

.opacity-30 {
  opacity: 0.3;
}

/* Typography utilities */
.text-3xl {
  font-size: var(--text-3xl);
}

.font-bold {
  font-weight: var(--font-bold);
}

/* Size utilities */
.w-20 {
  width: 5rem;
}

.h-20 {
  height: 5rem;
}

.w-96 {
  width: 24rem;
}

.h-96 {
  height: 24rem;
}

.w-80 {
  width: 20rem;
}

.h-80 {
  height: 20rem;
}

/* Position utilities */
.top-1\/4 {
  top: 25%;
}

.right-1\/4 {
  right: 25%;
}

.bottom-1\/4 {
  bottom: 25%;
}

.left-1\/4 {
  left: 25%;
}


/* ========================================
   ENHANCED LIBRARY TOGGLE BUTTONS
======================================== */

.library-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-out;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  color: white;
}

.library-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: white;
  text-decoration: none;
}

.library-toggle-btn:active {
  transform: translateY(0);
}

.library-toggle-btn.in-library {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.library-toggle-btn.in-library:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: none;
}

.library-toggle-btn.in-library:hover i::before {
  content: "\f057"; /* fa-times-circle */
}

.library-toggle-btn.in-library:hover span {
  display: none;
}

.library-toggle-btn.in-library:hover::after {
  content: "Remove";
}

.library-toggle-btn.disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  cursor: not-allowed;
  opacity: 0.7;
}

.library-toggle-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.library-toggle-btn.signin-btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.library-toggle-btn.signin-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.library-toggle-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.library-toggle-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success/Error feedback states */
.library-toggle-btn.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.library-toggle-btn.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ========================================
   USER PROFILE DROPDOWN
======================================== */

.user-profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease-out;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.profile-trigger:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
}

.profile-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-initials {
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
}

.profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s ease-out;
}

.profile-trigger[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

/* Profile Dropdown Panel */
.profile-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.15s ease-out;
  z-index: 9999;
  overflow: hidden;
}

.profile-dropdown-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Profile Header Section */
.profile-header-section {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
}

.profile-avatar-large {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.avatar-initials-large {
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: uppercase;
}

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

.profile-username {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Profile Status Section */
.profile-status-section {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
}

.status-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.status-badge.admin {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #f59e0b;
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-badge.unknown {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.status-badge i {
  font-size: var(--font-size-sm);
}

/* Profile Actions Section */
.profile-actions-section {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-default);
}

.profile-action-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all 0.15s ease-out;
}

.profile-action-item:hover {
  background: var(--bg-elevated);
  color: var(--accent-primary);
  text-decoration: none;
}

.profile-action-item i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.15s ease-out;
}

.profile-action-item:hover i {
  color: var(--accent-primary);
}

/* Sign Out Section */
.profile-signout-section {
  padding: var(--space-3) var(--space-5);
}

.signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.signout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
  text-decoration: none;
}

.signout-btn i {
  font-size: var(--font-size-sm);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .profile-name {
    display: none;
  }
  
  .profile-trigger {
    padding: var(--space-2);
  }
  
  .profile-chevron {
    display: none;
  }
  
  .profile-dropdown-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .profile-dropdown-panel.show {
    transform: translateY(0);
  }
}
