/* ===== FEATURE STYLES ===== */
/* Merged: auth.css + books.css + contact.css */
/* REMOVED: Duplicate exercise and split-screen styles that exist in style.css */

/* Font Awesome Base Styles - CORRECTED */
.fas, .far, .fab, .fa {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.far {
  font-weight: 400;
}

.fab {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
}

/* Premium Access Styles */
.premium-status {
  position: absolute;
  top: 5rem;
  right: 5rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.premium-status.active {
  background: var(--success);
}

/* ===== PREMIUM BUTTON - CLEAN GOLD VERSION ===== */
.premium-link {
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  color: #2C3E50 !important;
  border-radius: 30px;
  padding: 0.9rem 2.2rem;
  margin-left: 0rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  position: relative;
  top: 1px;
  overflow: hidden;
  z-index: 1;
  min-width: 160px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 193, 7, 0.2);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.25);
  line-height: 1.2;
  text-decoration: none !important;
}

/* CRITICAL: Remove the underline effect that comes from nav-links */
.premium-link::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Remove any default nav link hover effects */
.premium-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 152, 0, 0.4);
  background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%);
  color: #1A252F !important;
  text-decoration: none !important;
  border-color: rgba(255, 193, 7, 0.4);
}

/* Active state */
.premium-link:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
  transition: transform 0.1s ease;
}

/* Focus state - clean and accessible */
.premium-link:focus-visible {
  outline: 3px solid rgba(255, 152, 0, 0.5);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 152, 0, 0.15);
}

/* Add a subtle shine animation on hover */
.premium-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
  z-index: 1;
}

.premium-link:hover::after {
  left: 100%;
}

/* Subtle pulse animation for attention */
@keyframes premium-glow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.25);
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.35), 0 0 15px rgba(255, 152, 0, 0.15);
  }
}

.premium-link {
  animation: premium-glow 4s infinite ease-in-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .premium-link {
    padding: 0.8rem 2rem !important;
    min-width: 150px;
    margin-left: 1rem;
  }
}

@media (max-width: 992px) {
  .premium-link {
    padding: 0.7rem 1.8rem !important;
    min-width: 140px;
    margin-left: 0.8rem;
  }
}

@media (max-width: 768px) {
  .premium-link {
    width: auto !important;
    margin: 0.8rem 0.5rem 0.8rem auto !important;
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem;
    min-width: 170px;
    display: inline-flex !important;
  }
  
  /* When hamburger menu is open */
  .nav-links.active .premium-link {
    margin: 1rem auto !important;
    width: 85% !important;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .premium-link {
    padding: 0.8rem 1.8rem !important;
    min-width: 150px;
    font-size: 0.9rem;
    margin: 0.5rem auto !important;
    display: block !important;
  }
}

/* Dark Mode Support */
.dark-mode .premium-link {
  background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(255, 179, 0, 0.3);
  border-color: rgba(255, 179, 0, 0.3);
}

.dark-mode .premium-link:hover {
  background: linear-gradient(135deg, #FF8F00 0%, #FFB300 100%);
  box-shadow: 0 12px 35px rgba(255, 179, 0, 0.4);
  color: #fff !important;
}

@keyframes dark-premium-glow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 179, 0, 0.4), 0 0 15px rgba(255, 179, 0, 0.2);
  }
}

.dark-mode .premium-link {
  animation: dark-premium-glow 4s infinite ease-in-out;
}

/* Ensure no text decoration ever appears */
.premium-link,
.premium-link:hover,
.premium-link:focus,
.premium-link:active {
  text-decoration: none !important;
}

.access-info {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Locked file styles */
.material-card.locked {
  position: relative;
  opacity: 0.9;
}

.file-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.locked-file {
  color: var(--accent);
  margin-right: 0.5rem;
}

.file-link.locked {
  pointer-events: none;
  opacity: 0.7;
  background-color: #6c757d;
}

.file-link.locked:hover {
  background-color: #6c757d;
  transform: none;
}

.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* BOG Payment System Styles */
.payment-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.payment-plan {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

.payment-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.payment-plan.popular {
  border-color: var(--accent);
  transform: scale(1.05);
}

.payment-plan.lifetime {
  border-color: var(--success);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.plan-header h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0;
}

.billing {
  font-size: 0.9rem;
  color: #666;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  padding: 0;
}

.plan-features li {
  padding: 0.5rem 0;
  color: #666;
  display: flex;
  align-items: center;
}

.plan-features i {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

.plan-features .fa-check {
  color: var(--success);
}

.plan-features .fa-times {
  color: var(--error);
}

.select-plan-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.select-plan-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.subscription-status {
  background: var(--success);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
}

.payment-security {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
}

.payment-security i {
  color: var(--success);
  margin-right: 0.5rem;
}

/* File Access States */
.file-link.locked {
  pointer-events: none;
  opacity: 0.6;
  background-color: #6c757d !important;
}

.file-link.locked:hover {
  transform: none !important;
  background-color: #6c757d !important;
}

.file-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.premium-badge.subscribed {
  background: var(--success);
}

/* Additional global styles */
body.user-logged-in {
  /* Additional styles when user is logged in if needed */
}

/* Print styles */
@media print {
  .back-to-top,
  .dark-mode-toggle,
  .auth-container,
  nav,
  .premium-status,
  .premium-link {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* NEW STYLES FOR ADDED FEATURES */

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  padding: 1rem;
  box-shadow: 0 -2px 10px var(--shadow-color);
  z-index: 10000;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-btn.primary {
  background: var(--accent);
  color: white;
}

.cookie-btn.secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

/* Floating Contact Button */
.floating-contact-btn {
  position: fixed;
  bottom: 8rem;
  left: 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
  z-index: 1000;
  font-weight: 600;
}

.floating-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  background: var(--primary);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  color: var(--primary);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--card-bg);
}

/* Legal Navigation */
.legal-nav {
  margin-left: auto;
}

.legal-nav a {
  color: #666;
  font-size: 0.9rem;
}

/* Footer Links */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: white;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Legal Modal Styles */
.legal-modal .modal-content {
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.legal-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.legal-text section {
  margin-bottom: 2rem;
}

.legal-text h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-text h4 {
  color: var(--secondary);
  margin: 1rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.legal-text ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.legal-text li {
  margin-bottom: 0.3rem;
}

.legal-update {
  font-style: italic;
  color: #666;
  text-align: right;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Cookie Table Styles */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.cookie-table th {
  background-color: var(--light);
  font-weight: 600;
  color: var(--primary);
}

.cookie-table tr:hover {
  background-color: #f5f5f5;
}

/* Delete Button Styles */
.delete-btn {
  background: var(--error);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.delete-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

/* Confirmation Modal */
.confirmation-modal {
  text-align: center;
}

.confirmation-modal .modal-content {
  max-width: 400px;
}

.confirmation-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.confirm-btn {
  background: var(--error);
  color: white;
}

.cancel-confirm-btn {
  background: #6c757d;
  color: white;
}

/* Contact Form in Modal */
#floatingContactForm .form-group {
  margin-bottom: 1.5rem;
}

/* Loading States */
.select-plan-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.select-plan-btn:disabled:hover {
  transform: none;
  background: var(--accent);
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Auth Container Styles */
.auth-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.auth-btn:hover::before {
  left: 100%;
}

.login-btn {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.login-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.signup-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c00 100%);
  color: white;
  border: 2px solid var(--accent);
}

.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
  background: linear-gradient(135deg, #ff8c00 0%, var(--accent) 100%);
}

/* Enhanced User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 15px;
  background: var(--card-bg);
  border-radius: 25px;
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: var(--transition);
}

.user-menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--shadow-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar:hover {
  transform: scale(1.05);
}

.user-name {
  font-weight: 600;
  color: var(--primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.user-name:hover {
  color: var(--accent);
}

.profile-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.profile-btn:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.logout-btn {
  background: none;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.logout-btn:hover {
  background-color: var(--error);
  color: white;
  transform: scale(1.05);
}

/* Books Section */
.books-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  transition: var(--transition);
  position: relative;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}


.download-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
  text-align: center;
}

.download-btn:hover {
  background-color: var(--primary);
}

/* Scroll buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.scroll-btn:hover {
  background: var(--primary);
  color: white;
}

.scroll-btn.left {
  left: -20px;
}

.scroll-btn.right {
  right: -20px;
}

/* Video Links Styles */
.video-links-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-category {
  margin-bottom: 2rem;
}

.video-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.video-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: var(--transition);
}

.video-link-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.video-link-title {
  flex: 1;
  font-weight: 500;
}

.watch-btn {
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.watch-btn:hover {
  background-color: var(--primary);
}

/* Contact Styles */
.contact-card {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: var(--transition);
  position: relative;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-color);
}

.contact-icon {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
  overflow: hidden;
}

.contact-icon.mariam {
  background: none;
}

.contact-icon.mariam img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-card h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card h3 a:hover {
  color: var(--accent);
}

.contact-card p {
  margin-bottom: 1rem;
  color: #666;
}

.contact-card a.contact-link {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--secondary);
}

.contact-card a.contact-link:hover {
  background-color: var(--secondary);
  color: white;
}
/* FOCUS MODE STYLES */
.focus-mode-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.focus-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.focus-mode-enabled .focus-mode-toggle {
  display: none;
}

.focus-mode-backdrop {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.focus-mode-active {
  box-shadow: 0 0 0 2px var(--accent) !important;
}



/* Mobile optimizations */
@media (max-width: 768px) {
  .focus-mode-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .close-focus-mode {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  
}

/* Accessibility */
.focus-mode-toggle:focus-visible,
.close-focus-mode:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .focus-mode-backdrop {
    background-color: rgba(0, 0, 0, 0.9) !important;
  }
  
  .focus-mode-active {
    box-shadow: 0 0 0 3px #fff !important;
  }
}
/* CV Modal */
.cv-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.cv-header h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.cv-header p {
  color: #666;
  margin-bottom: 0.5rem;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section h3 {
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cv-section ul {
  padding-left: 1.5rem;
}

.cv-section li {
  margin-bottom: 0.5rem;
}
/* ===========================================
   REVOLUTIONARY MODAL REDESIGN - $100M SaaS
   =========================================== */

/* === PREMIUM MODAL FOUNDATION === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 10000;
  overflow-y: auto;
  padding: 1rem;
  animation: modalBackdropIn 0.4s var(--elevate-bezier);
  opacity: 0;
}

.modal[aria-hidden="false"] {
  display: block;
  opacity: 1;
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px) saturate(180%);
  }
}

.modal-content {
  background: linear-gradient(165deg, var(--card-bg) 0%, color-mix(in srgb, var(--card-bg) 95%, white) 100%);
  margin: 4rem auto;
  padding: 0;
  border-radius: 24px;
  max-width: 500px;
  position: relative;
  box-shadow: 
    var(--depth-shadow-3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 40px 80px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.4s var(--elevate-bezier) forwards;
  transform-origin: top center;
  overflow: visible;
  border: 1px solid var(--glass-border);
  min-height: 300px;
  z-index: 10001;
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.96) rotateX(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

.close-modal {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff4757, #dc3545);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  box-shadow: 
    0 8px 24px rgba(220, 53, 69, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-modal:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 
    0 12px 32px rgba(220, 53, 69, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.3);
}

.close-modal:active {
  transform: scale(0.95);
}

/* === AUTH MODAL FULL REDESIGN === */
.auth-modal-content {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(165deg, 
    color-mix(in srgb, var(--card-bg) 98%, white) 0%,
    var(--card-bg) 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.auth-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #00c6ff, 
    #0072ff, 
    #00c6ff);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Premium Tabs */
.auth-tabs {
  display: flex;
  padding: 2rem 2rem 0;
  gap: 1px;
  background: linear-gradient(90deg, 
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--accent-rgb), 0.05) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
  flex: 1;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.2px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--elevate-bezier);
  border-radius: 12px 12px 0 0;
  opacity: 0.7;
}

.auth-tab:hover {
  opacity: 1;
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

.auth-tab.active {
  opacity: 1;
  color: var(--primary);
  background: linear-gradient(to bottom, 
    rgba(var(--primary-rgb), 0.1), 
    transparent);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent), 
    var(--primary));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
  animation: tabUnderline 0.6s var(--elevate-bezier);
}

@keyframes tabUnderline {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40%;
    opacity: 1;
  }
}

/* Premium Form Container */
.auth-form {
  padding: 2.5rem;
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.auth-form.active {
  display: block;
  animation: formReveal 0.5s var(--elevate-bezier) 0.1s forwards;
}

@keyframes formReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Heroic Headings */
.auth-form h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.1);
}

.auth-form > p {
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Neumorphic Inputs with Floating Labels */
.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  padding: 0 0.5rem;
  background: var(--card-bg);
  border-radius: 4px;
}

.form-group.focused label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:valid + label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--card-bg);
  padding: 0 0.5rem;
  transform: translateY(-50%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1rem;
  background: var(--bg-color);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.05),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.2),
    inset -3px -3px 6px rgba(255, 255, 255, 0.05);
}

.form-group input:hover,
.form-group select:hover {
  box-shadow: 
    inset 2px 2px 6px rgba(0, 0, 0, 0.08),
    inset -2px -2px 6px rgba(255, 255, 255, 0.15),
    0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.05),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(var(--primary-rgb), 0.15),
    0 0 20px rgba(var(--primary-rgb), 0.1);
  transform: translateY(-1px);
}

/* Premium Buttons with Ripple Effect */
.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--elevate-bezier);
  box-shadow: 
    0 8px 24px rgba(var(--primary-rgb), 0.3),
    0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 32px rgba(var(--primary-rgb), 0.4),
    0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(var(--primary-rgb), 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn:active::before {
  width: 300px;
  height: 300px;
}

.submit-btn.loading {
  pointer-events: none;
  color: transparent;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

/* Enhanced Messages */
.auth-message {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-weight: 500;
  animation: messageSlideIn 0.4s var(--elevate-bezier);
  display: none;
  border-left: 4px solid;
  background: rgba(255, 255, 255, 0.05);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-message.success {
  display: block;
  border-left-color: var(--success);
  background: rgba(var(--success-rgb), 0.1);
  color: color-mix(in srgb, var(--success) 90%, white);
}

.auth-message.error {
  display: block;
  border-left-color: var(--error);
  background: rgba(220, 53, 69, 0.1);
  color: color-mix(in srgb, var(--error) 90%, white);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.auth-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.auth-footer a:hover::after {
  width: 100%;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 0.5rem;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.password-strength::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--error);
  transition: width 0.5s ease, background 0.5s ease;
}

.password-strength.weak::before {
  width: 33%;
  background: var(--error);
}

.password-strength.medium::before {
  width: 66%;
  background: var(--warning);
}

.password-strength.strong::before {
  width: 100%;
  background: var(--success);
  animation: pulseStrength 2s infinite;
}

@keyframes pulseStrength {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === PAYMENT MODAL REDESIGN === */
.payment-modal .modal-content {
  max-width: 1200px;
  min-height: 600px;
  overflow: visible;
}

.payment-modal .modal-header {
  text-align: center;
  padding: 3rem 3rem 2rem;
}

.payment-modal .modal-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), #0072ff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.payment-modal .modal-header p {
  font-size: 1.2rem;
  color: color-mix(in srgb, var(--text-color) 70%, transparent);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Holographic Payment Plans */
.payment-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 2rem 2rem;
  max-height: none;
  overflow: visible;
}

.payment-plan {
  background: linear-gradient(145deg, 
    color-mix(in srgb, var(--card-bg) 95%, white) 0%,
    var(--card-bg) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.4s var(--elevate-bezier);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--depth-shadow-2);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.payment-plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.7s ease;
}

.payment-plan:hover::before {
  left: 100%;
}

.payment-plan:hover {
  transform: translateY(-8px);
  box-shadow: 
    var(--depth-shadow-3),
    0 0 40px rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.payment-plan.popular {
  transform: scale(1.05);
  border: 2px solid var(--accent);
  box-shadow: 
    var(--depth-shadow-3),
    0 0 30px rgba(var(--accent-rgb), 0.2),
    0 0 60px rgba(var(--accent-rgb), 0.1);
  animation: popularPulse 3s infinite;
}

@keyframes popularPulse {
  0%, 100% { 
    box-shadow: 
      var(--depth-shadow-3),
      0 0 30px rgba(var(--accent-rgb), 0.2),
      0 0 60px rgba(var(--accent-rgb), 0.1);
  }
  50% { 
    box-shadow: 
      var(--depth-shadow-3),
      0 0 40px rgba(var(--accent-rgb), 0.3),
      0 0 80px rgba(var(--accent-rgb), 0.15);
  }
}

.payment-plan.lifetime {
  border: 2px solid var(--success);
  position: relative;
  overflow: hidden;
}

.payment-plan.lifetime::after {
  content: 'LIMITED';
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(135deg, var(--success), #20c997);
  color: white;
  padding: 0.5rem 3rem;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(var(--success-rgb), 0.3);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #ff8c00);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
  z-index: 1;
}

.plan-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0;
  position: relative;
  display: inline-block;
}

.price::before {
  content: '$';
  font-size: 1.5rem;
  position: absolute;
  top: 0.5rem;
  left: -1rem;
  opacity: 0.8;
}

.billing {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  padding: 0;
  flex-grow: 1;
}

.plan-features li {
  padding: 0.8rem 0;
  color: var(--text-color);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features i {
  margin-right: 1rem;
  width: 24px;
  height: 24px;
  background: rgba(var(--success-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-features .fa-check {
  color: var(--success);
  font-size: 0.9rem;
}

.plan-features .fa-times {
  color: var(--error);
  background: rgba(220, 53, 69, 0.1);
}

.select-plan-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s var(--elevate-bezier);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.select-plan-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.payment-security {
  text-align: center;
  margin: 2rem 2rem 0;
  padding: 1.5rem;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 16px;
  color: var(--text-color);
  font-size: 0.95rem;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.payment-security i {
  color: var(--success);
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

/* === PROFILE MODAL REDESIGN === */
#profileModal .modal-content {
  max-width: 600px;
  min-height: 700px;
  overflow: visible;
  z-index: 10002;
  height: auto;
}

#profileModal .modal-header {
  text-align: center;
  padding: 3rem 3rem 1rem;
}

#profileModal .modal-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

#profileModal .modal-header p {
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Avatar Upload Zone */
.avatar-upload {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, 
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--accent-rgb), 0.05) 100%);
  border-radius: 20px;
  border: 2px dashed rgba(var(--primary-rgb), 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.avatar-upload:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, 
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--accent-rgb), 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
}

.avatar-upload.drag-over {
  border-color: var(--success);
  background: rgba(var(--success-rgb), 0.05);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--success-rgb), 0.2); }
  50% { box-shadow: 0 0 30px rgba(var(--success-rgb), 0.4); }
}

.avatar-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
  border: 4px solid var(--card-bg);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-label {
  display: block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.avatar-upload input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

/* Editable Fields Grid */
.profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 2rem;
}

.profile-fields-grid .form-group {
  margin-bottom: 1.5rem;
}

.profile-fields-grid .form-group:nth-child(1),
.profile-fields-grid .form-group:nth-child(2) {
  grid-column: span 2;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 1rem;
  margin: 3rem 2rem 2rem;
}

.profile-actions .submit-btn {
  flex: 2;
}

.profile-actions .cancel-btn {
  flex: 1;
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-color);
  border: 2px solid rgba(108, 117, 125, 0.3);
  transition: all 0.3s ease;
}

.profile-actions .cancel-btn:hover {
  background: rgba(108, 117, 125, 0.2);
  border-color: rgba(108, 117, 125, 0.5);
  transform: translateY(-2px);
}

#deleteProfile {
  width: 100%;
  margin: 1rem 2rem 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.2));
  color: var(--error);
  border: 2px solid rgba(220, 53, 69, 0.3);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#deleteProfile:hover {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.3));
  border-color: var(--error);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.2);
}

/* === SIMPLE FIX - Remove right-side glow === */
.premium-link::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  /* CHANGED: Equal padding on all sides */
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #ff6b00, #ff8c00, #ff6b00, #ff8c00);
  border-radius: 32px;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* CHANGED: Reduced blur and added spread evenly */
  filter: blur(4px);
  /* ADDED: Equal glow on all sides */
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.premium-link:hover::after {
  opacity: 0.4; /* CHANGED: Reduced opacity for more balanced glow */
}

/* Fix the particleBurst animation to be centered */
@keyframes particleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}
/* === AVATAR UPLOAD FUNCTIONALITY === */
.avatar-section {
  padding: 0 2rem;
  margin: 1rem 0 2rem;
}

.avatar-upload {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, 
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--accent-rgb), 0.05) 100%);
  border-radius: 20px;
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  transition: all 0.3s ease;
}

.avatar-upload.drag-over {
  border-color: var(--primary);
  background: linear-gradient(135deg, 
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--accent-rgb), 0.1) 100%);
  animation: pulseGlow 1.5s infinite;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
  border: 4px solid var(--card-bg);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-preview #avatarInitial {
  font-size: 2.5rem;
  font-weight: 700;
}

.avatar-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.avatar-upload-btn {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.avatar-remove-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-color);
  border: 1px solid rgba(108, 117, 125, 0.3);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-remove-btn:hover {
  background: rgba(108, 117, 125, 0.2);
  transform: translateY(-2px);
}

.avatar-hint {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  margin-top: 0.5rem;
}

/* Profile Danger Zone */
.profile-danger-zone {
  margin: 3rem 2rem 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, 
    rgba(220, 53, 69, 0.05) 0%,
    rgba(220, 53, 69, 0.1) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--error);
}

.profile-danger-zone h4 {
  color: var(--error);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.danger-note {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--error) 60%, transparent);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Form Group Focus State */
.form-group.focused label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--card-bg);
  padding: 0 0.5rem;
  transform: translateY(-50%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}
/*------------------------------------------------------ MATERIAL CARDS - START -------------------------------------------- */

.material-card {
  flex: 0 0 auto;
  width: clamp(210px, 20vw, 260px);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .material-card {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  border-color: rgba(255, 255, 255, 0.05);
}

.material-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.material-card:hover::before {
  opacity: 1;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.15);
}

.material-card.locked {
  opacity: 0.85;
  filter: saturate(0.85);
}

.material-thumb {
  height: clamp(120px, 14vw, 140px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.material-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.15) 100%);
}

.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.material-card:hover .material-thumb img {
  transform: scale(1.06);
}

.file-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  z-index: 2;
}

.locked-file {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.material-details {
  padding: clamp(0.75rem, 1.2vw, 1rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.material-details h3 {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.4;
  color: var(--primary);
  margin: 0;
  flex: 1;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* UPDATED: Interactive Exercises Button */
.material-details .interactive-exercise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: clamp(0.5rem, 0.9vw, 0.65rem) clamp(0.8rem, 1.3vw, 1rem);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Blue to Purple */
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 38px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Dark mode: Sky blue to Orange */
.dark-mode .material-details .interactive-exercise-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #f97316 100%);
}

/* UPDATED: Download/Locked Button - Same gradient as exercise button */
.material-details .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: clamp(0.5rem, 0.9vw, 0.65rem) clamp(0.8rem, 1.3vw, 1rem);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Blue to Purple */
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 38px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Dark mode for download button: Sky blue to Orange */
.dark-mode .material-details .download-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #f97316 100%);
}

/* Locked state for download button - Keep same gradient but with lock icon */
.material-details .download-btn.locked {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  opacity: 0.9;
  cursor: not-allowed;
  position: relative;
}

.dark-mode .material-details .download-btn.locked {
  background: linear-gradient(135deg, #0ea5e9 0%, #f97316 100%);
}

/* Show lock icon for locked download buttons */
.material-details .download-btn.locked i {
  display: inline-block !important; /* Force show the lock icon */
  font-size: 0.9em;
  margin-right: 0.3rem;
}

/* Remove the ::after content that was overwriting with "Premium" text */
.material-details .download-btn.locked::after {
  content: none !important;
}

/* Hover effects for both buttons */
.material-details .interactive-exercise-btn::before,
.material-details .download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.material-details .interactive-exercise-btn:hover::before,
.material-details .download-btn:hover::before {
  left: 100%;
}

.material-details .interactive-exercise-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.dark-mode .material-details .interactive-exercise-btn:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

.material-details .download-btn:hover:not(.locked) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.dark-mode .material-details .download-btn:hover:not(.locked) {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

/* No hover effect for locked buttons */
.material-details .download-btn.locked:hover {
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* UPDATED: Premium Badge - Now same gradient as buttons */
.premium-badge {
  position: absolute;
  top: clamp(0.5rem, 0.8vw, 0.7rem);
  right: clamp(0.5rem, 0.8vw, 0.7rem);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Blue to Purple */
  color: white;
  padding: clamp(0.15rem, 0.3vw, 0.2rem) clamp(0.4rem, 0.7vw, 0.6rem);
  border-radius: 10px;
  font-size: clamp(0.6rem, 0.75vw, 0.7rem);
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  letter-spacing: 0.3px;
}

/* Dark mode for premium badge: Sky blue to Orange */
.dark-mode .premium-badge {
  background: linear-gradient(135deg, #0ea5e9 0%, #f97316 100%);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Status Indicator */
.card-status {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  z-index: 3;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.dark-mode .card-status {
  box-shadow: 0 0 0 2px rgba(26, 32, 44, 0.8);
}

.material-card.locked .card-status {
  background: #ef4444;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .material-card {
    width: clamp(190px, 24vw, 230px);
    min-height: 285px;
  }
  
  .material-thumb {
    height: clamp(110px, 16vw, 130px);
  }
  
  .material-details {
    padding: clamp(0.65rem, 1vw, 0.85rem);
  }
  
  .material-details h3 {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
  }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
  .material-card {
    width: clamp(180px, 38vw, 210px);
    min-height: 280px;
    border-radius: 10px;
  }
  
  .material-thumb {
    height: clamp(100px, 20vw, 120px);
  }
  
  .material-details {
    padding: clamp(0.6rem, 0.9vw, 0.75rem);
    gap: 0.5rem;
  }
  
  .material-details h3 {
    font-size: clamp(0.78rem, 0.95vw, 0.85rem);
  }
  
  .material-details .interactive-exercise-btn,
  .material-details .download-btn {
    padding: clamp(0.45rem, 0.8vw, 0.6rem) clamp(0.7rem, 1.1vw, 0.9rem);
    font-size: clamp(0.7rem, 0.85vw, 0.8rem);
    min-height: 36px;
  }
  
  .materials-scroll {
    gap: clamp(0.7rem, 1.2vw, 0.9rem);
    padding: 0.7rem;
  }
}

/* Small mobile (below 480px) */
@media (max-width: 480px) {
  .material-card {
    width: clamp(160px, 75vw, 190px);
    min-height: 270px;
  }
  
  .material-thumb {
    height: clamp(90px, 25vw, 110px);
  }
  
  .material-details {
    padding: clamp(0.55rem, 0.8vw, 0.7rem);
    gap: 0.4rem;
  }
  
  .premium-badge {
    font-size: clamp(0.55rem, 0.7vw, 0.65rem);
    padding: clamp(0.12rem, 0.25vw, 0.18rem) clamp(0.35rem, 0.6vw, 0.5rem);
  }
  
  .card-status {
    width: 5px;
    height: 5px;
    top: 8px;
    left: 8px;
  }
}

/* Scroll Container */
.materials-scroll-container {
  position: relative;
  margin: 1.2rem 0;
}

.materials-scroll {
  display: flex;
  overflow-x: auto;
  gap: clamp(0.8rem, 1.3vw, 1rem);
  padding: 0.6rem 0.9rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 0, 0, 0.04);
}

.materials-scroll::-webkit-scrollbar {
  height: 5px;
}

.materials-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

.materials-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 8px;
}

.dark-mode .materials-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #0ea5e9, #f97316);
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(28px, 3vw, 32px);
  height: clamp(28px, 3vw, 32px);
  background: white;
  border: 1.5px solid #4f46e5;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0, 0.08);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  transition: all 0.25s ease;
  opacity: 0;
}

.dark-mode .scroll-btn {
  background: #2d3748;
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.materials-scroll-container:hover .scroll-btn {
  opacity: 1;
}

.scroll-btn:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-50%) scale(1.08);
}

.dark-mode .scroll-btn:hover {
  background: #0ea5e9;
  color: white;
}

.scroll-btn.left {
  left: -clamp(14px, 1.6vw, 16px);
}

.scroll-btn.right {
  right: -clamp(14px, 1.6vw, 16px);
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .material-card:hover {
    transform: none;
  }
  
  .scroll-btn {
    opacity: 0.7;
    background: #4f46e5;
    color: white;
  }
  
  .dark-mode .scroll-btn {
    background: #0ea5e9;
    color: white;
  }
  
  .material-details .interactive-exercise-btn:hover,
  .material-details .download-btn:hover {
    transform: none;
  }
}

/* Accessibility Focus States */
.material-card:focus-within {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.dark-mode .material-card:focus-within {
  outline-color: #0ea5e9;
}

.material-details .interactive-exercise-btn:focus,
.material-details .download-btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .material-card,
  .material-card:hover,
  .material-thumb img,
  .material-details .interactive-exercise-btn,
  .material-details .download-btn,
  .scroll-btn {
    transition: none;
    transform: none;
  }
  
  .material-card:hover .material-thumb img {
    transform: none;
  }
  
  .material-details .interactive-exercise-btn::before,
  .material-details .download-btn::before {
    display: none;
  }
}
/*------------------------------------------------------ MATERIAL CARDS - END -------------------------------------------- */
