/**
 * QuranIslamic Platform - Premium Responsive Design
 * Modern, premium UI with enhanced responsiveness
 */

/* ============================================
   PREMIUM DESIGN SYSTEM
   ============================================ */

:root {
  /* Premium Color Palette */
  --premium-gold: #D4AF37;
  --premium-gold-light: #F4E4BC;
  --premium-emerald: #059669;
  --premium-emerald-dark: #047857;
  --premium-emerald-light: #10B981;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
  --gradient-dark: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  --gradient-hero: linear-gradient(135deg, rgba(5, 150, 105, 0.95) 0%, rgba(16, 185, 129, 0.9) 100%);

  /* Premium Shadows */
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  --shadow-button: 0 4px 15px rgba(5, 150, 105, 0.3);
  --shadow-float: 0 20px 60px -15px rgba(0, 0, 0, 0.2);

  /* Premium Transitions */
  --transition-premium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   GLOBAL PREMIUM STYLES
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Premium Selection */
::selection {
  background: var(--premium-emerald);
  color: white;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--premium-emerald) 0%, var(--premium-emerald-dark) 100%);
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--premium-emerald-dark);
}

/* ============================================
   PREMIUM HEADER
   ============================================ */

.header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-premium);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-premium);
}

.nav-brand .logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-premium);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-premium);
  z-index: -1;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link i {
  font-size: 1.1rem;
  transition: var(--transition-bounce);
}

.nav-link:hover i {
  transform: scale(1.2);
}

/* Premium Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-premium);
}

.nav-dropdown-btn:hover {
  background: var(--bg-tertiary);
  color: var(--premium-emerald);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-premium);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-premium);
}

.nav-dropdown-menu a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateX(5px);
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-premium);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: var(--gradient-gold);
  color: #1F2937;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--premium-emerald);
  color: var(--premium-emerald);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-button);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--premium-emerald);
}

/* ============================================
   PREMIUM CARDS
   ============================================ */

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: var(--transition-premium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: height 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-premium);
}

.feature-card:hover::after {
  height: 100%;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-button);
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Course Cards */
.course-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.course-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-image::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.course-image i {
  font-size: 4rem;
  color: white;
  position: relative;
  z-index: 1;
}

.course-content {
  padding: 1.75rem;
}

.course-level {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--premium-gold-light);
  color: #92702B;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.course-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.course-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.course-meta i {
  color: var(--premium-emerald);
}

/* ============================================
   PREMIUM HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.9) 0%, rgba(4, 120, 87, 0.95) 100%),
    url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 80px 0;
}

/* Moving Background Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: bgScroll 60s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes bgScroll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 500px 500px;
  }
}

/* Floating Decorations */
.floating-decorations {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.decoration {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  color: white;
  filter: blur(1px);
}

.dec-1 {
  top: 15%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.dec-2 {
  bottom: 20%;
  left: 15%;
  animation: float 10s ease-in-out infinite 1s;
}

.dec-3 {
  top: 25%;
  right: 12%;
  animation: float 12s ease-in-out infinite 2s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
}

/* Bismillah Badge */
.bismillah-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bismillah-text {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: #D4AF37;
  /* Gold */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
  display: block;
}

/* Button Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 850;
  color: white;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-text h1 span {
  background: linear-gradient(to right, #D4AF37, #F4E4BC, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-text p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Stats Styling */
.hero-stats-premium {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
}

.stat-item-premium {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  font-size: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.stat-item-premium:hover .stat-icon-wrapper {
  transform: translateY(-5px) rotate(5deg);
  background: rgba(212, 175, 55, 0.3);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  display: block;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Premium Glass Card */
.premium-glass-card {
  position: relative;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 32px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.daily-verse-card-premium {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 2.5rem;
  color: #1a1a1a;
  position: relative;
}

.verse-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #059669;
}

.text-gold {
  color: #D4AF37;
}

.btn-refresh-premium {
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666;
}

.btn-refresh-premium:hover {
  background: #059669;
  color: white;
  transform: rotate(180deg);
}

.verse-content-premium {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-footer-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #059669, #D4AF37, #059669);
}

.hero-visual {
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}


/* ============================================
   PREMIUM SECTIONS
   ============================================ */

.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   PREMIUM GRID LAYOUTS
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* ============================================
   PREMIUM FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition-premium);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--premium-emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

/* Premium Input with Icon */
.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  transition: var(--transition-premium);
}

.input-group .form-control {
  padding-left: 3rem;
}

.input-group:focus-within i {
  color: var(--premium-emerald);
}

/* ============================================
   PREMIUM MODALS
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-premium);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-premium);
  box-shadow: var(--shadow-premium);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-premium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--error-bg);
  color: var(--error);
}

/* ============================================
   PREMIUM FOOTER
   ============================================ */

.footer {
  background: var(--gradient-dark) !important;
  color: white !important;
  padding: 4rem 2rem 2rem !important;
  margin-top: 0 !important;
}

.footer .container {
  max-width: 100%;
  padding: 0;
}

.footer-content {
  max-width: 1400px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 3rem !important;
  text-align: left !important;
}

.footer-content>div:first-child {
  padding-right: 2rem;
}

.footer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  justify-content: flex-start !important;
  color: white !important;
}

.footer-brand .logo-icon {
  color: var(--premium-emerald-light) !important;
  font-size: 1.75rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.7 !important;
  margin-bottom: 1.5rem !important;
  max-width: none !important;
  text-align: left !important;
}

.footer-links {
  display: block !important;
  text-align: left !important;
}

.footer-links h4 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  color: white !important;
  text-align: left !important;
}

.footer-links a {
  display: block !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 0.5rem 0 !important;
  transition: var(--transition-premium) !important;
  text-align: left !important;
}

.footer-links a:hover {
  color: var(--premium-emerald-light) !important;
  transform: translateX(5px) !important;
}

.footer-links a i {
  margin-right: 0.5rem;
  width: 16px;
}

.footer-bottom {
  max-width: 1400px !important;
  margin: 3rem auto 0 !important;
  padding: 2rem 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.footer-bottom p {
  text-align: center !important;
  margin-bottom: 0.5rem !important;
}

.footer-bottom a {
  color: var(--premium-emerald-light) !important;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.api-credit {
  font-size: 0.875rem;
  margin-top: 0.5rem !important;
}

/* ============================================
   PREMIUM ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-scale {
  animation: scaleIn 0.5s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered Animations */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
  .navbar {
    padding: 0 3rem;
  }

  .hero-text h1 {
    font-size: 4rem;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .hero-content {
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-content>div:first-child {
    grid-column: 1 / -1;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 1.5rem;
  }

  .nav-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 2rem !important;
  }

  .footer-content>div:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-brand {
    justify-content: center !important;
  }

  .footer p {
    text-align: center !important;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-premium);
    z-index: 50;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
  }

  .auth-nav-links {
    flex-direction: column;
    width: 100%;
  }

  .auth-nav-links .btn {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .footer-content>div:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-brand {
    justify-content: center !important;
  }

  .footer p {
    text-align: center !important;
  }

  .footer-links {
    text-align: center !important;
  }

  .footer-links h4 {
    text-align: center !important;
  }

  .footer-links a {
    text-align: center !important;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Mobile Landscape */
@media (max-width: 576px) {
  .navbar {
    height: 60px;
  }

  .nav-brand .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    font-size: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .footer {
    padding: 3rem 1rem 1.5rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 2rem !important;
  }

  .footer-content>div:first-child {
    grid-column: 1;
    padding-right: 0;
  }

  .footer-brand {
    justify-content: center !important;
  }

  .footer p {
    text-align: center !important;
  }

  .footer-links {
    text-align: center !important;
  }

  .footer-links h4 {
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  .footer-links a {
    text-align: center !important;
    padding: 0.4rem 0 !important;
  }

  .footer-links a:hover {
    transform: none !important;
  }

  .footer-bottom {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }
}

/* Mobile Portrait */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .course-image {
    height: 150px;
  }

  .course-content {
    padding: 1.25rem;
  }
}

/* ============================================
   MOBILE NAVIGATION TOGGLE
   ============================================ */

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 100;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px auto;
  transition: var(--transition-premium);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.rounded {
  border-radius: var(--border-radius);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.rounded-full {
  border-radius: 9999px;
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-premium {
  box-shadow: var(--shadow-premium);
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-image {
  height: 200px;
  margin-bottom: 1rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  min-width: 300px;
  max-width: 400px;
  animation: fadeInRight 0.3s ease;
  border-left: 4px solid var(--premium-emerald);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--info);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--error);
}

.toast.warning .toast-icon {
  color: var(--warning);
}

.toast.info .toast-icon {
  color: var(--info);
}

.toast-message {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

@media (max-width: 576px) {
  #toast-container {
    left: 10px;
    right: 10px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* ============================================
   DONATION MODAL & PAGES
   ============================================ */

.donation-modal-content {
  max-width: 800px;
  padding: 0;
  overflow: hidden;
}

.donation-header {
  background: var(--gradient-primary);
  padding: 2rem;
  text-align: center;
  color: white;
}

.donation-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.donation-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.donation-header p {
  opacity: 0.9;
  max-width: 400px;
  margin: 0 auto;
}

.donation-content {
  padding: 2rem;
}

.donation-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.donation-left h3,
.donation-right h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.currency-amount-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.currency-selector select,
.custom-amount input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: var(--transition-premium);
}

.currency-selector select:focus,
.custom-amount input:focus {
  border-color: var(--premium-emerald);
  outline: none;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-premium);
}

.amount-btn:hover {
  border-color: var(--premium-emerald);
  background: rgba(5, 150, 105, 0.05);
}

.amount-btn.active {
  border-color: var(--premium-emerald);
  background: var(--premium-emerald);
  color: white;
}

.donation-frequency {
  display: flex;
  gap: 1rem;
}

.donation-frequency label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-premium);
}

.donation-frequency label:has(input:checked) {
  border-color: var(--premium-emerald);
  background: rgba(5, 150, 105, 0.1);
}

.donation-frequency input {
  accent-color: var(--premium-emerald);
}

.donation-summary {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.donation-summary h4 {
  margin-bottom: 1rem;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.summary-item.total {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.donation-impact-compact h4 {
  margin-bottom: 1rem;
}

.impact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.impact-item-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 10px;
  font-size: 0.9rem;
}

.impact-icon {
  font-size: 1.25rem;
}

.donation-methods {
  margin-bottom: 1.5rem;
}

.donation-methods h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: var(--transition-premium);
}

.payment-method-btn i {
  font-size: 1.5rem;
  color: var(--premium-emerald);
}

.payment-method-btn:hover {
  border-color: var(--premium-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

.payment-method-btn span {
  font-size: 0.85rem;
  font-weight: 500;
}

.donation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.donation-actions .btn {
  min-width: 180px;
}

/* Donation History Page */
.donation-history-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.donation-history-container .page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.donation-history-container .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.donation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.donation-stats .stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.donation-stats .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.donation-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.donation-actions-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.donation-list {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.donation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-premium);
}

.donation-item:last-child {
  border-bottom: none;
}

.donation-item:hover {
  background: var(--bg-tertiary);
}

.donation-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.donation-item-icon {
  width: 48px;
  height: 48px;
  background: var(--premium-gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--premium-emerald);
  font-size: 1.25rem;
}

.donation-item-details h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.donation-item-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.donation-item-amount {
  text-align: right;
}

.donation-item-amount .amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--premium-emerald);
}

.donation-item-amount .status {
  font-size: 0.8rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Responsive Donation */
@media (max-width: 768px) {
  .donation-modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .donation-main {
    grid-template-columns: 1fr;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .donation-actions {
    flex-direction: column;
  }

  .donation-actions .btn {
    width: 100%;
  }

  .donation-history-container {
    padding: 1rem;
  }

  .donation-stats {
    grid-template-columns: 1fr;
  }

  .donation-actions-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .donation-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .donation-item-amount {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   CONTACT & ABOUT PAGES
   ============================================ */

.contact-section,
.about-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-premium);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-secondary);
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto;
  }
}

/* ============================================
   COURSES PAGE
   ============================================ */

.courses-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.courses-header {
  text-align: center;
  margin-bottom: 3rem;
}

.courses-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.courses-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .courses-section {
    padding: 2rem 1rem;
  }

  .courses-header h1 {
    font-size: 1.75rem;
  }
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.dashboard-section {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.dashboard-card h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.dashboard-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--premium-emerald);
}

@media (max-width: 768px) {
  .dashboard-section {
    padding: 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   BOOKMARKS PAGE
   ============================================ */

.bookmarks-section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.bookmarks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition-premium);
}

.bookmark-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.bookmark-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bookmark-verse {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.bookmark-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.bookmark-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .bookmarks-section {
    padding: 1rem;
  }

  .bookmark-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--premium-emerald);
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: var(--text-secondary);
}

.profile-form {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.profile-form h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .profile-section {
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   ABOUT PAGE PREMIUM STYLES
   ============================================ */

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.about-container .page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-container .page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-container .page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.about-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

.about-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.about-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.about-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--premium-emerald);
  font-weight: bold;
}

@media (max-width: 768px) {
  .about-container {
    padding: 1rem;
  }

  .about-container .page-header h1 {
    font-size: 1.75rem;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .about-icon {
    margin: 0 auto;
  }

  .about-text li {
    text-align: left;
  }
}

/* ============================================
   CONTACT PAGE PREMIUM STYLES
   ============================================ */

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-container .page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-container .page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-container .contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-premium);
}

.contact-card .contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-description {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 968px) {
  .contact-container .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 1rem;
  }

  .contact-container .page-header h1 {
    font-size: 1.75rem;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-card .contact-icon {
    margin: 0 auto;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ============================================
   PAGE HEADERS (UNIVERSAL)
   ============================================ */

.page-header {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  margin-bottom: 2rem;
  color: white;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 1rem;
    border-radius: 16px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header p {
    font-size: 1rem;
  }
}

/* ============================================
   STUDY MATERIALS PAGE
   ============================================ */

.study-materials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.study-header {
  text-align: center;
  margin-bottom: 2rem;
}

.study-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.study-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: white;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-premium);
}

.tab-btn:hover {
  border-color: var(--premium-emerald);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.material-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

@media (max-width: 768px) {
  .study-materials-container {
    padding: 1rem;
  }

  .study-tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   ACHIEVEMENTS PAGE
   ============================================ */

.achievements-section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-premium);
}

.achievement-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-premium);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.achievement-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.achievement-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.achievement-date {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================
   FAQ PAGE
   ============================================ */

.faq-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-premium);
}

.faq-question:hover {
  background: var(--bg-tertiary);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}