/* Dashboard Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(99,102,241,0.12), transparent 28%), linear-gradient(180deg, #080814 0%, #07070f 100%);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(10,10,20,0.95));
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: white;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.sidebar-menu {
  flex: 1;
  padding: 1rem 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: rgba(99, 102, 241, 0.14);
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
}

.menu-item.active {
  background: rgba(99, 102, 241, 0.18);
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
}

.menu-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.menu-text {
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: var(--radius-md);
  color: var(--brand-danger);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  background: rgba(239,68,68,0.16);
  box-shadow: 0 12px 24px rgba(239,68,68,0.08);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
  margin-left: 0;
}

/* Top Header */
.top-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
}

.page-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* Page Content */
.page-content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 3rem;
}

.quick-actions h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-weight: 500;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn.primary {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.btn-icon {
  font-size: 1.2rem;
}

/* Sections */
.recent-activity,
.upcoming-tests {
  margin-bottom: 3rem;
}

.recent-activity h2,
.upcoming-tests h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.activity-list,
.test-list {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 1rem;
  }

  .page-content {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .user-name {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }
}

/* Exams Page Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.search-section {
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-section {
  display: flex;
  gap: 1rem;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.exam-categories,
.exams-section {
  margin-bottom: 3rem;
}

.exam-categories h2,
.exams-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-med);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
}

.category-content {
  flex: 1;
}

.category-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-content p {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.category-exams {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.category-card:hover .category-arrow {
  color: var(--brand-primary);
  transform: translateX(4px);
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.exam-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  cursor: pointer;
  transition: all var(--transition-med);
}

.exam-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.exam-icon {
  font-size: 2rem;
}

.exam-category {
  background: var(--grad-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exam-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exam-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.exam-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.exam-actions {
  display: flex;
  justify-content: flex-end;
}

/* Activity Items */
.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.activity-score {
  font-size: 0.8rem;
  color: var(--brand-success);
  font-weight: 600;
}

/* Exam Items */
.exam-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.exam-item:last-child {
  border-bottom: none;
}

.exam-content {
  flex: 1;
}

.exam-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.exam-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.exam-days {
  font-size: 0.8rem;
  color: var(--brand-warning);
  font-weight: 600;
}

/* Mock Tests Page Styles */
.exam-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.exam-info-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exam-info-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
}

.exam-info-details h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exam-info-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.test-categories {
  margin-bottom: 3rem;
}

.test-categories h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-med);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

.tier-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
}

.tier-content {
  flex: 1;
}

.tier-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tier-content p {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tier-stats {
  display: flex;
  gap: 1rem;
}

.tier-stats .stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tier-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.tier-card:hover .tier-arrow {
  color: var(--brand-primary);
  transform: translateX(4px);
}

.available-tests {
  margin-bottom: 3rem;
}

.tests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.tests-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tests-filters {
  display: flex;
  gap: 1rem;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--transition-med);
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.test-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-easy {
  background: var(--brand-success);
  color: white;
}

.difficulty-medium {
  background: var(--brand-warning);
  color: white;
}

.difficulty-hard {
  background: var(--brand-danger);
  color: white;
}

.test-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.test-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.test-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.test-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.test-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-content {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.test-instructions h4 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.instructions-list {
  margin-bottom: 2rem;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.instruction-icon {
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  color: white;
}

.test-rules {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.test-rules h5 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.test-rules ul {
  margin: 0;
  padding-left: 1.5rem;
}

.test-rules li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Analytics Page Styles */
.analytics-overview {
  margin-bottom: 3rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.overview-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
}

.overview-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.overview-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.chart-container h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recent-tests {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tests-table th,
.tests-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tests-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
}

.tests-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.breadcrumb span {
  color: var(--text-secondary);
}

.modal-body,
.modal-content {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
  min-width: 120px;

.table-cell {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.score {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
}

.score-excellent {
  background: var(--brand-success);
  color: white;
}

.score-good {
  background: #22c55e;
  color: white;
}

.score-average {
  background: var(--brand-warning);
  color: white;
}

.score-poor {
  background: var(--brand-danger);
  color: white;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0;
}

.btn-link:hover {
  color: var(--brand-primary-dark);
}

.weak-areas {
  margin-bottom: 3rem;
}

.weak-areas h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.weak-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.weak-area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.weak-area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.weak-area-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weak-score {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-danger);
}

.weak-area-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.weak-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.weak-stats .stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weak-area-actions {
  display: flex;
  justify-content: flex-end;
}

.recommendations {
  margin-bottom: 3rem;
}

.recommendations h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.recommendations-list {
  display: grid;
  gap: 1rem;
}

.recommendation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recommendation-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
}

.recommendation-content {
  flex: 1;
}

.recommendation-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recommendation-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.recommendation-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.priority {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority.high {
  background: var(--brand-danger);
  color: white;
}

.priority.medium {
  background: var(--brand-warning);
  color: white;
}

.priority.low {
  background: #6b7280;
  color: white;
}

.time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.recommendation-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Community Page Styles */
.community-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.tab-btn:hover {
  color: var(--brand-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.discussions-header,
.doubts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.discussions-list,
.doubts-list {
  display: grid;
  gap: 1.5rem;
}

.discussion-card,
.doubt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-med);
}

.discussion-card:hover,
.doubt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.discussion-header,
.doubt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.discussion-meta,
.doubt-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.discussion-author,
.doubt-author {
  font-weight: 600;
  color: var(--text-primary);
}

.discussion-time,
.doubt-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.discussion-category,
.doubt-subject {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discussion-category.general {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.discussion-category.study-tips {
  background: var(--brand-success);
  color: white;
}

.discussion-category.exam-prep {
  background: var(--brand-primary);
  color: white;
}

.discussion-category.career {
  background: var(--brand-warning);
  color: white;
}

.discussion-category.motivation {
  background: #ec4899;
  color: white;
}

.doubt-subject.mathematics {
  background: #3b82f6;
  color: white;
}

.doubt-subject.english {
  background: #10b981;
  color: white;
}

.doubt-subject.reasoning {
  background: #f59e0b;
  color: white;
}

.doubt-subject.gk {
  background: #8b5cf6;
  color: white;
}

.doubt-subject.computer {
  background: #ef4444;
  color: white;
}

.doubt-subject.other {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.discussion-content h3,
.doubt-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.discussion-content p,
.doubt-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.discussion-footer,
.doubt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.discussion-stats,
.doubt-stats {
  display: flex;
  gap: 1rem;
}

.discussion-stats .stat,
.doubt-stats .stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.doubt-status {
  display: flex;
  align-items: center;
}

.status {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status.answered {
  background: var(--brand-success);
  color: white;
}

.status.unanswered {
  background: var(--brand-warning);
  color: white;
}

.experts-header {
  text-align: center;
  margin-bottom: 3rem;
}

.experts-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.experts-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-med);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.expert-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.expert-avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  font-size: 2rem;
  font-weight: 600;
  color: white;
}

.expert-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.expert-title {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.expert-content {
  margin-bottom: 1.5rem;
}

.expert-bio {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.expert-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.specialty-tag {
  padding: 0.25rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.expert-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.expert-stats .stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.expert-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Notes Page Styles */
.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.notes-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-med);
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.note-subject {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.note-subject.mathematics {
  background: #3b82f6;
  color: white;
}

.note-subject.english {
  background: #10b981;
  color: white;
}

.note-subject.reasoning {
  background: #f59e0b;
  color: white;
}

.note-subject.gk {
  background: #8b5cf6;
  color: white;
}

.note-subject.computer {
  background: #ef4444;
  color: white;
}

.note-subject.other {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.note-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.note-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.note-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.note-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.2rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  color: var(--text-primary);
}

.note-actions {
  display: flex;
  gap: 1rem;
}

.modal.large {
  max-width: 800px;
  width: 90%;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.note-content {
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* Flashcards Page Styles */
.flashcard-modes {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mode-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.mode-btn:hover {
  color: var(--brand-primary);
}

.mode-content {
  display: none;
}

.mode-content.active {
  display: block;
}

.study-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.subject-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subject-selector label {
  font-weight: 500;
  color: var(--text-primary);
}

.progress-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.flashcard-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.flashcard {
  width: 100%;
  max-width: 500px;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
}

.card-front {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: white;
}

.card-back {
  transform: rotateY(180deg);
  background: var(--bg-card);
  color: var(--text-primary);
}

.card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 1rem;
}

.flip-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.flip-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-difficulty {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-difficulty:nth-child(1) {
  background: var(--brand-danger);
  color: white;
}

.btn-difficulty:nth-child(2) {
  background: var(--brand-warning);
  color: white;
}

.btn-difficulty:nth-child(3) {
  background: var(--brand-success);
  color: white;
}

.btn-difficulty:nth-child(4) {
  background: #10b981;
  color: white;
}

.btn-difficulty:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.review-header,
.create-header {
  text-align: center;
  margin-bottom: 2rem;
}

.review-header h3,
.create-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.review-header p,
.create-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.flashcard-sets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.flashcard-set-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-med);
}

.flashcard-set-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.set-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.set-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.set-subject {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.set-subject.mathematics {
  background: #3b82f6;
  color: white;
}

.set-subject.english {
  background: #10b981;
  color: white;
}

.set-subject.reasoning {
  background: #f59e0b;
  color: white;
}

.set-subject.gk {
  background: #8b5cf6;
  color: white;
}

.set-subject.computer {
  background: #ef4444;
  color: white;
}

.set-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.set-stats .stat {
  text-align: center;
}

.set-stats .stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.set-stats .stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.set-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.create-form {
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.bulk-actions {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.bulk-actions h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bulk-actions p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
}

.import-instructions {
  margin-bottom: 2rem;
}

.import-instructions h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.import-instructions pre {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  overflow-x: auto;
  margin: 1rem 0;
}

/* Interview Page Styles */
.interview-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.interview-category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.interview-category-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.interview-category-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.interview-filters {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.questions-list {
  display: grid;
  gap: 1rem;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-med);
}

.question-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.question-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-difficulty.easy {
  background: var(--brand-success);
  color: white;
}

.question-difficulty.medium {
  background: var(--brand-warning);
  color: white;
}

.question-difficulty.hard {
  background: var(--brand-danger);
  color: white;
}

.question-topic {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
}

.question-content p {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.question-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.question-content {
  margin-bottom: 1rem;
}

.question-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.difficulty {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
}

.category {
  padding: 0.25rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.answer-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.answer-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.answer-content {
  color: var(--text-primary);
  line-height: 1.6;
}

.question-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.mock-interview-setup {
  margin-bottom: 3rem;
}

.setup-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.setup-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.setup-card p {
  margin: 0 0 2rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.setup-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.feature-icon {
  font-size: 1.2rem;
}

.previous-interviews {
  margin-bottom: 3rem;
}

.previous-interviews h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.interviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.interview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.interview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.interview-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.interview-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.interview-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.interview-stats .stat {
  text-align: center;
}

.interview-stats .stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.interview-stats .stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.interview-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.interview-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.setup-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setup-section label {
  font-weight: 500;
  color: var(--text-primary);
}

.setup-section select {
  padding: 0.75rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
}

.interview-instructions {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.interview-instructions h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.interview-instructions ul {
  margin: 0;
  padding-left: 1.5rem;
}

.interview-instructions li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Rewards Page Styles */
.stars-balance {
  margin-bottom: 3rem;
}

.balance-card {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.balance-icon {
  font-size: 3rem;
  opacity: 0.9;
}

.balance-info {
  flex: 1;
}

.balance-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.balance-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.balance-progress {
  flex: 1;
  max-width: 300px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  height: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  background: white;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-med);
}

.progress-text {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

.rewards-categories {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.category-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--brand-primary);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.reward-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-med);
}

.reward-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.reward-card.unavailable {
  opacity: 0.6;
  pointer-events: none;
}

.reward-icon {
  font-size: 2rem;
  color: var(--brand-primary);
  text-align: center;
}

.reward-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reward-info p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.reward-cost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand-warning);
  font-size: 1.1rem;
}

.reward-actions {
  margin-top: auto;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.achievement-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-med);
}

.achievement-card.unlocked {
  border-color: var(--brand-success);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.achievement-card.locked {
  opacity: 0.7;
}

.achievement-icon {
  font-size: 2rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}

.achievement-card.unlocked .achievement-icon {
  color: var(--brand-success);
}

.achievement-info {
  flex: 1;
}

.achievement-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.achievement-info p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.achievement-reward {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand-warning);
  font-size: 0.9rem;
}

.achievement-status {
  text-align: right;
}

.unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--brand-success);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--text-muted);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.achievement-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-icon {
  font-size: 2rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.stat-info .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-info .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.leaderboard-container {
  max-width: 600px;
  margin: 0 auto;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.leaderboard-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-header p {
  margin: 0;
  color: var(--text-secondary);
}

.leaderboard-list {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-item.top-three {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.leaderboard-item.current-user {
  background: var(--brand-primary);
  color: white;
}

.rank {
  width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.rank .fa-medal.gold {
  color: #ffd700;
}

.rank .fa-medal.silver {
  color: #c0c0c0;
}

.rank .fa-medal.bronze {
  color: #cd7f32;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.leaderboard-item.current-user .user-avatar {
  background: white;
  color: var(--brand-primary);
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.leaderboard-item.current-user .user-stars {
  opacity: 1;
}

.leaderboard-divider {
  padding: 1rem;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.leaderboard-divider span {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.leaderboard-actions {
  text-align: center;
}

.redemption-history {
  margin-top: 3rem;
}

.redemption-history h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.history-icon {
  font-size: 1.5rem;
  color: var(--brand-success);
}

.history-info {
  flex: 1;
}

.history-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-cost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand-warning);
}

.redemption-details {
  text-align: center;
}

.reward-preview {
  margin-bottom: 2rem;
}

.reward-preview h4 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.reward-preview p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
}

.cost-breakdown {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item.remaining {
  font-weight: 600;
  color: var(--brand-primary);
}

.insufficient-funds {
  background: var(--brand-danger);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  margin-bottom: 1rem;
}

.confirmation-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.achievement-celebration {
  text-align: center;
  padding: 2rem;
}

.celebration-icon {
  font-size: 4rem;
  color: var(--brand-warning);
  margin-bottom: 1rem;
}

.celebration-icon i {
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Chat Page Styles */
.chat-container {
  display: flex;
  height: calc(100vh - 200px);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chat-sidebar {
  width: 350px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.chat-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.conversation-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.conversation-item.unread {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--brand-primary);
}

.conversation-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 1rem;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-meta {
  text-align: right;
  min-width: 60px;
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.unread-badge {
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: auto;
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--bg-primary);
}

.chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.placeholder-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.placeholder-desc {
  font-size: 0.9rem;
  max-width: 300px;
}

.message {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.message.sent {
  align-items: flex-end;
}

.message.received {
  align-items: flex-start;
}

.message-content {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  word-wrap: break-word;
  position: relative;
}

.message.sent .message-content {
  background: var(--brand-primary);
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.message.received .message-content {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 0.25rem;
}

.message-attachment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.message-attachment a {
  color: inherit;
  text-decoration: underline;
}

.message.sent .message-attachment {
  background: rgba(255, 255, 255, 0.2);
}

.message.sent .message-attachment a {
  color: white;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.chat-input-area {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.chat-input-container {
  padding: 1rem 1.5rem;
}

.message-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  transition: border-color var(--transition-fast);
}

.message-input-wrapper:focus-within {
  border-color: var(--brand-primary);
}

#message-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  resize: none;
  min-height: 20px;
  max-height: 120px;
  outline: none;
}

#message-input::placeholder {
  color: var(--text-muted);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#send-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.user-search {
  padding: 1rem 0;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

#user-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

#user-search-input:focus {
  border-color: var(--brand-primary);
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-secondary);
}

.search-result-item .user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 1rem;
}

.search-result-item .user-info {
  flex: 1;
}

.search-result-item .user-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.search-result-item .user-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--brand-success);
}

.status-dot.offline {
  background: var(--text-muted);
}

.no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Profile Page Styles */
.profile-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-avatar-section {
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1rem auto;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-med);
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.profile-avatar i {
  opacity: 0.7;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-info p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
}

.profile-stats .stat {
  text-align: center;
}

.profile-stats .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.profile-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item span {
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.account-info h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: var(--brand-success);
  color: white;
}

.status-badge.premium {
  background: var(--brand-warning);
  color: white;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.notification-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.notification-category h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.security-options {
  margin-bottom: 3rem;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.security-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.security-info p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-text.disabled {
  color: var(--text-muted);
}

.danger-zone {
  border: 2px solid var(--brand-danger);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: rgba(239, 68, 68, 0.05);
}

.danger-zone h4 {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-danger);
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.danger-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.danger-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.btn-danger {
  background: var(--brand-danger);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--brand-success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}