:root {
  /* Primary Colors - Enhanced with better contrast */
  --primary-color: #2c8a5a;
  --primary-dark: #1e6341;
  --primary-light: #3aa6b9;
  --primary-50: rgba(44, 138, 90, 0.05);
  --primary-100: rgba(44, 138, 90, 0.1);
  --primary-200: rgba(44, 138, 90, 0.2);
  --primary-500: rgba(44, 138, 90, 0.5);
  
  /* Secondary Colors */
  --secondary-color: #d4af37;
  --secondary-dark: #b8972e;
  --secondary-light: #f0c44c;
  --secondary-50: rgba(212, 175, 55, 0.05);
  --secondary-100: rgba(212, 175, 55, 0.1);
  
  /* Neutral Colors - Modern grayscale */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Semantic Colors */
  --success-color: #10b981;
  --success-light: #d1fae5;
  --warning-color: #f59e0b;
  --warning-light: #fef3c7;
  --error-color: #ef4444;
  --error-light: #fee2e2;
  --info-color: #3b82f6;
  --info-light: #dbeafe;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-overlay: rgba(15, 23, 42, 0.5);
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;
  
  /* Legacy variables for compatibility */
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-radius: 12px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography Scale */
  --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-arabic: 'Amiri', 'KFGQPC Uthman Taha Naskh', serif;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Modern Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== SCREEN VISIBILITY CONTROL ========== */
/* Initially hide all screens except landing page */
#authScreen,
#dashboardScreen,
#teacherDashboard,
#adminDashboard,
#hifzApp {
  display: none !important;
}

/* Initially hide all modal elements */
#celebration,
#achievementNotification,
#rewardsStoreModal,
#uploadStatusModal,
#resetPasswordModal,
#studentProfileModal,
.upload-status-modal,
.rewards-store-modal,
.achievement-notification,
.celebration {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Landing page should be visible by default */
#landingPage {
  display: block;
}

/* Show screens when they have inline display style */
#authScreen[style*="display: block"],
#dashboardScreen[style*="display: block"],
#teacherDashboard[style*="display: block"],
#adminDashboard[style*="display: block"],
#hifzApp[style*="display: block"] {
  display: block !important;
}

/* Show modals only when they have the 'show' class or specific inline styles */
.modal.show,
.celebration.show,
.achievement-notification.show,
.rewards-store-modal.show,
#celebration[style*="opacity: 1"],
#achievementNotification[style*="opacity: 1"],
#rewardsStoreModal[style*="opacity: 1"],
#uploadStatusModal[style*="display: block"],
#resetPasswordModal[style*="display: flex"],
#studentProfileModal[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: var(--space-8);
  }
}

/* ========== QURAN AUDIO PLAYER STYLES ========== */
.quran-audio-player {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(44, 138, 90, 0.1);
  border: 2px solid rgba(44, 138, 90, 0.1);
  transition: all 0.3s ease;
}

.quran-audio-player:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 138, 90, 0.15);
}

.audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(44, 138, 90, 0.1);
}

.audio-header h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-header h4 i {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.audio-info {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  background: rgba(44, 138, 90, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.audio-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audio-controls > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}

.audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.play-btn {
  background: linear-gradient(45deg, #2c8a5a, #3aa6b9);
  color: white;
}

.play-btn:hover {
  background: linear-gradient(45deg, #3aa6b9, #64ccc5);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(44, 138, 90, 0.3);
}

.pause-btn {
  background: linear-gradient(45deg, #ffd600, #ff9800);
  color: #2c3e50;
}

.pause-btn:hover {
  background: linear-gradient(45deg, #ff9800, #f57c00);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.stop-btn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

.stop-btn:hover {
  background: linear-gradient(45deg, #c0392b, #a93226);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.audio-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
}

.audio-progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.audio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 4px;
  transition: width 0.1s ease;
  position: relative;
}

.audio-progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.volume-control i {
  color: var(--text-light);
  font-size: 1rem;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--primary-light);
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#quranAudio {
  display: none;
}

.audio-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(44, 138, 90, 0.05);
  border-radius: 8px;
  border: 1px dashed var(--primary-color);
}

.audio-loading i {
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

/* Audio Player Mobile Responsive */
@media (max-width: 768px) {
  .quran-audio-player {
    padding: 1rem;
    margin: 1rem 0;
  }

  .audio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .audio-info {
    align-self: stretch;
    text-align: center;
  }

  .audio-controls > div:first-child {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .audio-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .audio-progress-container {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .volume-control {
    justify-content: center;
    margin-top: 0.75rem;
  }

  .audio-time {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .quran-audio-player {
    padding: 0.75rem;
  }

  .audio-header h4 {
    font-size: 1.1rem;
  }

  .audio-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .audio-controls > div:first-child {
    gap: 0.5rem;
  }

  .audio-info {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Audio Player Animation States */
.quran-audio-player.playing .play-btn {
  animation: pulse-play 1.5s infinite;
}

.quran-audio-player.loading .audio-progress-fill {
  background: linear-gradient(90deg, #e9ecef, var(--primary-light), #e9ecef);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes pulse-play {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(44, 138, 90, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(44, 138, 90, 0.5);
    transform: scale(1.05);
  }
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Audio Error State */
.quran-audio-player.error {
  border-color: #e74c3c;
  background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%);
}

.quran-audio-player.error .audio-header h4 {
  color: #e74c3c;
}

.quran-audio-player.error .audio-loading {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

/* ========== ENHANCED BUTTON SYSTEM ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Button variants */
.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: var(--text-inverse);
  border-color: var(--success-color);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
  color: var(--text-inverse);
  border-color: var(--warning-color);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
  color: var(--text-inverse);
  border-color: var(--error-color);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: 1.25rem;
  font-weight: 600;
}

/* ========== MODERN CARD SYSTEM ========== */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.card h2,
.card h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card h2 {
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
}

.card h2 i,
.card h3 i {
  color: var(--secondary-color);
  font-size: 0.9em;
}

/* ========== ENHANCED QURAN DISPLAY ========== */
.display-box {
  background: linear-gradient(135deg, #fffbf0 0%, #fef7e0 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-6) 0;
  font-family: var(--font-family-arabic);
  font-size: 2rem;
  line-height: 1.8;
  text-align: right;
  direction: rtl;
  min-height: 300px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: color var(--transition-base), background-color var(--transition-base);
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Single verse - center alignment */
.display-box.single-verse {
  text-align: center;
  justify-content: center;
}

.display-box.single-verse #selectedText {
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Multiple verses - right alignment with proper text wrapping */
.display-box.multiple-verses {
  text-align: right;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: var(--space-6);
}

.display-box.multiple-verses #selectedText {
  text-align: right;
  width: 100%;
  display: block;
  line-height: 2.2;
}

.display-box.multiple-verses #selectedText .verse-line {
  display: block;
  margin-bottom: var(--space-4);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.display-box.multiple-verses #selectedText .verse-line:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Desktop and tablet responsive adjustments for verse display */
@media (min-width: 769px) {
  .display-box.single-verse #selectedText {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .display-box.multiple-verses #selectedText .verse-line {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Mobile responsive adjustments for verse display */
@media (max-width: 768px) {
  .display-box.single-verse #selectedText {
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .display-box.multiple-verses #selectedText .verse-line {
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    font-size: 1.6rem;
  }
  
  .display-box {
    font-size: 1.8rem;
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .display-box {
    font-size: 1.5rem;
    padding: var(--space-4);
    min-height: 200px;
  }
  
  .display-box.single-verse #selectedText,
  .display-box.multiple-verses #selectedText .verse-line {
    font-size: 1.4rem;
    line-height: 1.9;
  }
}

.display-box::before {
  content: '';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M12 2L13.09 8.26L20 9L13.09 9.74L12 16L10.91 9.74L4 9L10.91 8.26L12 2Z"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.3;
}

.display-box p {
  margin-bottom: var(--space-4);
  transition: color var(--transition-slow), background-color var(--transition-slow);
}

.display-box.blank-mode {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
}

.display-box.blank-mode .blank {
  background: var(--primary-color);
  color: transparent;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-1);
}

/* ========== ENHANCED FORM SYSTEM ========== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-100);
  background: var(--white);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--gray-400);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

/* Form validation states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ========== ENHANCED RECORDING INTERFACE ========== */
.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.buttons button {
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

.buttons button::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 var(--transition-slow);
}

.buttons button:hover::before {
  left: 100%;
}

#recordButton {
  background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

#recordButton:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#playButton {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

#playButton:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#sendButton {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

#sendButton:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #64ccc5 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#blankModeBtn,
#ioModeBtn {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

#blankModeBtn:hover,
#ioModeBtn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========== ENHANCED MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
  .container {
    padding: var(--space-3);
  }

  .card {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .card h2 {
    font-size: 1.25rem;
  }

  .card h3 {
    font-size: 1.125rem;
  }

  .buttons {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .buttons button {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    min-height: 48px;
  }

  .display-box {
    padding: var(--space-4);
    font-size: 1.5rem;
    min-height: 250px;
  }

  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: var(--space-3);
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--space-2);
  }

  .card {
    padding: var(--space-3);
  }

  .display-box {
    padding: var(--space-3);
    font-size: 1.25rem;
    min-height: 200px;
  }

  .buttons button {
    min-height: 44px;
    font-size: 0.8rem;
  }

  .card h2 {
    font-size: 1.125rem;
  }

  .card h3 {
    font-size: 1rem;
  }
}

/* ========== ADDITIONAL UI ENHANCEMENTS ========== */

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* Progress Bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-2) 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-pending {
  background: var(--warning-light);
  color: var(--warning-color);
}

.status-approved {
  background: var(--success-light);
  color: var(--success-color);
}

.status-rejected {
  background: var(--error-light);
  color: var(--error-color);
}

/* Notification Styles */
.notification-icon {
  position: relative;
  cursor: pointer;
}

.notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--error-color);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Counter Section Enhancement */
.counter-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.counter-section button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.counter-section button:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.counter-section span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
  text-align: center;
}

/* Repeat Progress Bar */
.repeat-progressbar-wrap {
  margin: var(--space-4) 0;
}

.repeat-progressbar {
  width: 100%;
  height: 12px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.repeat-progressbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b 0%, #ffa500 50%, var(--success-color) 100%);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
}

.repeat-progressbar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

/* ========== LANDING PAGE ENHANCEMENTS ========== */
.landing-page {
  position: relative;
  overflow: hidden;
}

.landing-content {
  animation: fadeInUp 0.8s ease-out;
}

.app-logo img {
  transition: transform var(--transition-base);
}

.app-logo:hover img {
  transform: scale(1.05) rotate(5deg);
}

/* Features Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
  padding: 0 var(--space-4);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: var(--space-6) 0;
  }
}

/* Feature cards animation */
.feature-card {
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  color: var(--primary-color);
  transition: all var(--transition-base);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Stats section enhancement */
.stats-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stat-item {
  transition: all var(--transition-base);
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* CTA Section Enhancement */
.cta-section {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

#startAppBtn,
#demoAudioBtn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

#startAppBtn::before,
#demoAudioBtn::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 var(--transition-slow);
}

#startAppBtn:hover::before,
#demoAudioBtn:hover::before {
  left: 100%;
}

#startAppBtn:hover,
#demoAudioBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 138, 90, 0.25);
}

/* Pulse animation for logo background */
@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.2;
  }
}

/* Verse section enhancement */
.verse-section {
  animation: fadeInUp 0.8s ease-out 0.1s both;
  position: relative;
  overflow: hidden;
}

.verse-section::before {
  content: '';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 30px;
  height: 30px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M12 2L13.09 8.26L20 9L13.09 9.74L12 16L10.91 9.74L4 9L10.91 8.26L12 2Z"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.2;
}

.arabic-verse {
  font-family: 'Amiri', serif !important;
  text-align: center;
  direction: rtl;
  line-height: 1.8;
}

/* Landing page responsive design */
@media (max-width: 768px) {
  .landing-header {
    padding-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  .landing-header h1 {
    font-size: 2.5rem !important;
  }
  
  .tagline {
    font-size: 1.2rem !important;
  }
  
  .feature-card {
    padding: var(--space-4);
  }
  
  .feature-card .feature-icon {
    font-size: 2rem;
  }
  
  .stats-section {
    gap: var(--space-3) !important;
  }
  
  .stat-item {
    padding: var(--space-3) var(--space-4) !important;
    min-width: 100px !important;
  }
}

@media (max-width: 480px) {
  .landing-content {
    padding: 0.5rem !important;
  }
  
  .landing-header h1 {
    font-size: 2rem !important;
  }
  
  .tagline {
    font-size: 1rem !important;
  }
  
  .app-logo img {
    width: 80px !important;
    height: 80px !important;
  }
  
  #startAppBtn,
  #demoAudioBtn {
    font-size: 0.9rem !important;
    padding: 0.8rem 1.5rem !important;
  }
}

/* ========== AUTH SCREEN STYLES ========== */
.auth-screen {
  display: none;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: var(--space-4);
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="50" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="90" cy="30" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  pointer-events: none;
}

.auth-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #667eea, #764ba2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-container h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-container h2 i {
  margin-right: var(--space-2);
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
  gap: var(--space-1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tab {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-600));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.tab.active::before {
  left: 100%;
}

.tab:hover:not(.active) {
  background: var(--gray-100);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab:hover::before {
  left: 100%;
}

/* Tab icons removed as requested */

.form {
  display: none;
  animation: fadeInUp 0.3s ease-out;
}

.form.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: var(--space-5);
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group label i {
  margin-right: var(--space-2);
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.form-group input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--white);
  position: relative;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.auth-screen .btn {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auth-screen .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.auth-screen .btn:hover {
  background: linear-gradient(135deg, #ff5252, #26c6da, #42a5f5);
  background-size: 200% 200%;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
  animation: gradientShift 2s ease infinite;
}

.auth-screen .btn:hover::before {
  left: 100%;
}

.auth-screen .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.error-message {
  display: none;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid #fecaca;
  margin-top: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.forgot-password {
  display: block;
  text-align: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.forgot-password:hover {
  color: var(--primary-600);
  background: rgba(99, 102, 241, 0.05);
  text-decoration: underline;
}

.back-btn {
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.back-btn:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: var(--space-6);
    margin: var(--space-4);
    max-width: 100%;
  }
  
  .auth-container h2 {
    font-size: 1.5rem;
  }
  
  .tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  
  .tab {
    font-size: 0.75rem;
    padding: var(--space-3) var(--space-1);
  }
  
  .form-group input {
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: var(--space-4);
    margin: var(--space-2);
  }
  
  .tabs {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
  }
  
  .tab {
    font-size: 0.7rem;
    padding: var(--space-2);
  }
}

/* ========== MODAL ENHANCEMENTS ========== */
.modal {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.6);
}

.modal-content {
  animation: modalSlideIn 0.3s ease-out;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
}

/* ========== CELEBRATION MODAL MODERN DESIGN ========== */
.celebration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
  background: var(--bg-overlay);
  z-index: 9999;
}

.celebration-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  padding: var(--space-8);
  text-align: center;
  max-width: 420px;
  width: 90vw;
}

.celebration-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.celebration-content h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.celebration-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.celebration-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-inverse);
  border: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-2);
}

.celebration-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* ========== UPLOAD STATUS MODAL MODERN DESIGN ========== */
.upload-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
  background: var(--bg-overlay);
  z-index: 9999;
}

.upload-modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  padding: var(--space-8);
  text-align: center;
  max-width: 400px;
  width: 90vw;
}

.upload-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--info-color), var(--primary-color));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.upload-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.upload-modal-title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--info-color);
  border-radius: var(--radius-full);
  animation: pulse 1.5s ease-in-out infinite;
}

.upload-modal-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-color);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-4);
}

.upload-modal-progressbar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.upload-modal-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  position: relative;
}

.upload-modal-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: move 1s linear infinite;
}

.upload-modal-percent {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-2);
}

.upload-modal-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes move {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

/* ========== ACHIEVEMENT NOTIFICATION ENHANCEMENTS ========== */
.achievement-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.8);
  z-index: 9999;
}

.achievement-content {
  animation: achievementPop 0.5s ease-out;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.achievement-icon {
  animation: achievementIconSpin 0.8s ease-out;
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

/* ========== REWARDS STORE ENHANCEMENTS ========== */
.rewards-store-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.6);
  z-index: 9999;
}

.store-content {
  animation: storeSlideUp 0.4s ease-out;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  background: var(--white);
}

.store-item {
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  background: var(--white);
}

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

.store-item.owned {
  background: var(--success-light);
  border-color: var(--success-color);
}

.store-item.insufficient-coins {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Removed celebrationBounce - no longer needed */

@keyframes achievementPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  80% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes achievementIconSpin {
  0% {
    transform: rotate(-180deg) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: rotate(0deg) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes storeSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .status-badge {
    border: 1px solid currentColor;
  }
}

/* ========== VERSE CLICK-TO-PLAY FUNCTIONALITY ========== */

/* Verse Audio Instructions */
.verse-audio-instructions {
  background: linear-gradient(135deg, rgba(44, 138, 90, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
  border: 1px solid rgba(44, 138, 90, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

.instruction-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

/* Enhanced clickable verse styling for multiple verses */
.display-box.multiple-verses #selectedText .verse-line {
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
  border-radius: 8px;
  position: relative;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(44, 138, 90, 0.1);
}

.display-box.multiple-verses #selectedText .verse-line:hover {
  background: rgba(44, 138, 90, 0.05);
  transform: translateX(-4px);
  box-shadow: 0 2px 12px rgba(44, 138, 90, 0.15);
  border-left: 4px solid var(--primary-color);
}

.display-box.multiple-verses #selectedText .verse-line.playing {
  background: linear-gradient(135deg, rgba(44, 138, 90, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-left: 4px solid var(--primary-color);
  animation: pulse-verse 2s infinite;
  box-shadow: 0 4px 16px rgba(44, 138, 90, 0.2);
}

.display-box.multiple-verses #selectedText .verse-line.loading {
  background: rgba(44, 138, 90, 0.05);
  position: relative;
  overflow: hidden;
  cursor: wait;
}

.display-box.multiple-verses #selectedText .verse-line.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(44, 138, 90, 0.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

/* Enhanced clickable verse styling for single verse */
.display-box.single-verse #selectedText {
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
}

.display-box.single-verse #selectedText:hover {
  background: rgba(44, 138, 90, 0.05);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(44, 138, 90, 0.15);
  border: 2px solid rgba(44, 138, 90, 0.3);
}

.display-box.single-verse #selectedText.playing {
  background: linear-gradient(135deg, rgba(44, 138, 90, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
  border: 3px solid var(--primary-color);
  animation: pulse-verse 2s infinite;
  box-shadow: 0 8px 24px rgba(44, 138, 90, 0.25);
}

.display-box.single-verse #selectedText.loading {
  background: rgba(44, 138, 90, 0.05);
  position: relative;
  overflow: hidden;
  cursor: wait;
}

.display-box.single-verse #selectedText.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(44, 138, 90, 0.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

/* Audio playing indicator */
.verse-line.playing::before,
.display-box.single-verse #selectedText.playing::before {
  content: '🔊';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 1.2rem;
  animation: bounce 1s infinite;
  z-index: 1;
}

/* Animations for verse interactions */
@keyframes pulse-verse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(44, 138, 90, 0.2);
  }
  50% {
    box-shadow: 0 6px 24px rgba(44, 138, 90, 0.35);
    transform: translateX(-2px);
  }
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Mobile responsive adjustments for clickable verses */
@media (max-width: 768px) {
  .display-box.multiple-verses #selectedText .verse-line {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .display-box.single-verse #selectedText {
    padding: 1rem;
  }
  
  .verse-audio-instructions {
    padding: var(--space-3);
    margin: var(--space-3) 0;
  }
  
  .instruction-content {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .display-box.multiple-verses #selectedText .verse-line {
    padding: 0.4rem;
    margin-bottom: 0.5rem;
  }
  
  .display-box.single-verse #selectedText {
    padding: 0.75rem;
  }
  
  .verse-line.playing::before,
  .display-box.single-verse #selectedText.playing::before {
    font-size: 1rem;
    top: 0.25rem;
    left: 0.25rem;
  }
}

/* Error state for verses */
.verse-line.error,
.display-box.single-verse #selectedText.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
  cursor: not-allowed;
}

.verse-line.error::before,
.display-box.single-verse #selectedText.error::before {
  content: '⚠️';
  animation: none;
}

/* ========== PRINT STYLES ========== */
@media print {
  .btn,
  .notification-icon,
  .audio-controls,
  .buttons,
  .verse-audio-instructions {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .display-box {
    background: white !important;
    color: black !important;
    border: 2px solid #000;
  }
  
  .verse-line,
  #selectedText {
    cursor: default !important;
    background: white !important;
    border: none !important;
    box-shadow: none !important;
  }
}

.blurred {
  filter: blur(4px) !important;
  opacity: 0.6 !important;
  transition: filter 0.3s, opacity 0.3s;
}

.floating-controls {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(255,255,255,0.75);
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(44,138,90,0.08);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  border-top: 1px solid #e0e0e0;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  min-height: 64px;
  max-height: 110px;
}
.floating-controls.hide-controls {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  min-height: 64px !important;
  max-height: 110px !important;
}
.floating-controls-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 4px;
  padding: 6px 0 4px 0;
}
.floating-controls .repeat-progressbar-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 2px auto;
}
.floating-controls .counter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .floating-controls {
    min-height: 56px;
    max-height: 100px;
  }
  .floating-controls-inner {
    gap: 2px;
    padding: 4px 0 2px 0;
  }
}
.main-content {
  padding-bottom: 150px !important;
}

.mascot {
  font-size: 2.8rem;
  animation: pulse 2s infinite, wiggle 3s infinite;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}
.bubble-post {
  border-radius: 30px 30px 30px 10px;
  background: linear-gradient(120deg, #fceabb 0%, #f8b500 100%);
  box-shadow: 0 4px 24px rgba(250, 200, 100, 0.15);
  border: 2px solid #ffe082;
  margin-bottom: 2rem;
  padding: 1.5rem;
  position: relative;
}
.user-badge {
  background: linear-gradient(90deg, #ffd600, #ff6f00);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 12px;
  padding: 2px 10px;
  margin-left: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 214, 0, 0.15);
}
.report-btn {
  background: #ffeaea;
  color: #e53935;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.1rem;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.report-btn:hover { background: #ffcdd2; }
.emoji-picker {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}
.emoji-picker span {
  font-size: 1.4rem;
  margin: 0 4px;
  cursor: pointer;
  transition: transform 0.2s;
}
.emoji-picker span:hover { transform: scale(1.3) rotate(-10deg);}
.fab-post {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 6px 24px rgba(79, 172, 254, 0.25);
  border: none;
  z-index: 2000;
  display: none;
}
@media (max-width: 600px) {
  .fab-post { display: block; }
}

.floating-controls,
.floating-controls-inner,
.counter-section,
#ulangButton {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Subscription Page Styles */
.subscription-page {
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
  min-height: 100vh;
}

.subscription-package {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subscription-package:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #2c8a5a;
}

.subscription-package.featured {
  border-color: #d4af37;
  background: linear-gradient(135deg, #fff 0%, #fffbe7 100%);
}

.subscription-package.featured::before {
  content: "TERPOPULAR";
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #d4af37 0%, #f0c44c 100%);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 0 12px 0 8px;
}

.package-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.package-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c8a5a;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e6b3d;
  margin-bottom: 0.5rem;
}

.package-price .currency {
  font-size: 1.2rem;
  color: #666;
}

.package-duration {
  color: #666;
  font-size: 0.9rem;
}

.package-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.package-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.package-features li {
  padding: 0.5rem 0;
  color: #555;
  display: flex;
  align-items: center;
}

.package-features li::before {
  content: "✓";
  color: #2c8a5a;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.package-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.package-button.primary {
  background: linear-gradient(135deg, #2c8a5a 0%, #1e6b3d 100%);
  color: white;
}

.package-button.primary:hover {
  background: linear-gradient(135deg, #1e6b3d 0%, #155724 100%);
  transform: translateY(-1px);
}

.package-button.secondary {
  background: #f8f9fa;
  color: #2c8a5a;
  border: 2px solid #2c8a5a;
}

.package-button.secondary:hover {
  background: #2c8a5a;
  color: white;
}

/* Payment Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 12px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #2c8a5a;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #2c8a5a;
}

.modal-body {
  padding: 1.5rem;
}

/* Payment Status Styles */
.payment-status {
  text-align: center;
  padding: 2rem;
}

.payment-status.success {
  color: #155724;
  background: #d4edda;
  border-radius: 8px;
  margin: 1rem 0;
}

.payment-status.pending {
  color: #856404;
  background: #fff3cd;
  border-radius: 8px;
  margin: 1rem 0;
}

.payment-status.error {
  color: #721c24;
  background: #f8d7da;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Subscription Status Styles */
.subscription-status {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.subscription-status.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.subscription-status.expired {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.subscription-status.trial {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Payment History Styles */
.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.3s ease;
}

.payment-item:hover {
  background-color: #f8f9fa;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-info {
  flex: 1;
}

.payment-amount {
  font-weight: bold;
  color: #2c8a5a;
}

.payment-date {
  font-size: 0.9rem;
  color: #666;
}

.payment-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.payment-status-badge.success {
  background: #d4edda;
  color: #155724;
}

.payment-status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.payment-status-badge.failed {
  background: #f8d7da;
  color: #721c24;
}

/* Admin Subscription Management Styles */
.subscription-package-admin {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.subscription-package-admin:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.package-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.package-admin-name {
  font-weight: bold;
  color: #2c8a5a;
  font-size: 1.1rem;
}

.package-admin-price {
  font-weight: bold;
  color: #1e6b3d;
}

.package-admin-actions {
  display: flex;
  gap: 0.5rem;
}

.package-admin-actions button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.package-admin-actions .edit-btn {
  background: #17a2b8;
  color: white;
}

.package-admin-actions .edit-btn:hover {
  background: #138496;
}

.package-admin-actions .delete-btn {
  background: #dc3545;
  color: white;
}

.package-admin-actions .delete-btn:hover {
  background: #c82333;
}

.package-admin-actions .toggle-btn {
  background: #28a745;
  color: white;
}

.package-admin-actions .toggle-btn.inactive {
  background: #6c757d;
}

.package-admin-actions .toggle-btn:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .subscription-packages {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 90%;
  }
  
  .package-admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .package-admin-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.subscription-summary {
  background: #e8f5e8;
  border: 1px solid #b2dfdb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #155724;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(44, 138, 90, 0.07);
}

/* ========== STUDENT DASHBOARD HEADER CARD MODERN ========== */

/* Student Header Card */
.student-header-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.student-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  z-index: 1;
}

/* Background Shapes */
.student-header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.header-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header-shape-1,
.header-shape-2,
.header-shape-3 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatHeader 20s infinite ease-in-out;
}

.header-shape-1 {
  width: 120px;
  height: 120px;
  top: -60px;
  right: -60px;
  animation-delay: 0s;
}

.header-shape-2 {
  width: 80px;
  height: 80px;
  bottom: -40px;
  left: -40px;
  animation-delay: -7s;
}

.header-shape-3 {
  width: 60px;
  height: 60px;
  top: 50%;
  right: 20%;
  animation-delay: -14s;
}

@keyframes floatHeader {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  33% { transform: translateY(-15px) rotate(120deg) scale(1.1); }
  66% { transform: translateY(10px) rotate(240deg) scale(0.9); }
}

/* Header Content */
.student-header-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  padding-right: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Welcome Section */
.welcome-section-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.welcome-icon-modern {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.welcome-text-modern {
  flex: 1;
}

.dashboard-title-modern {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.welcome-message-modern {
  font-size: 1rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 500;
}

.student-name-modern {
  font-weight: 700;
  color: #1e3a8a;
}

.student-credit-modern {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Header Actions */
.header-actions-modern {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

.action-buttons-modern {
  display: flex;
  gap: 0.8rem;
  margin-right: 1rem;
}

/* Modern Buttons */
.btn-modern {
  position: relative;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.btn-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-highlight {
  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 ease;
}

.btn-modern:hover .btn-highlight {
  left: 100%;
}

/* Button Themes */
.btn-community {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.btn-community:hover {
  background: rgba(40, 167, 69, 1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-game {
  background: rgba(255, 193, 7, 0.9);
  color: #2c3e50;
}

.btn-game:hover {
  background: rgba(255, 193, 7, 1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-logout {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}

.btn-logout:hover {
  background: rgba(220, 53, 69, 1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Notification Section */
.notification-section-modern {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

.notification-bell-modern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(15px);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.notification-bell-modern:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.2));
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.bell-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bell-animation-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: bellRing 2s infinite ease-in-out;
}

@keyframes bellRing {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.notification-badge-modern {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .student-header-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 4rem 1.5rem 1.5rem 1.5rem;
    align-items: center;
  }
  
  .welcome-section-modern {
    width: 100%;
    justify-content: center;
    text-align: center;
    order: 1;
  }
  
  .header-actions-modern {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    position: static;
    order: 2;
  }
  
  .action-buttons-modern {
    width: 100%;
    justify-content: center;
  flex-wrap: wrap;
  }
  
  .btn-modern {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .notification-section-modern {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
  }
}

@media (max-width: 480px) {
  .student-header-content {
    padding: 3.5rem 1.2rem 1.2rem 1.2rem;
    align-items: center;
  }
  
  .welcome-section-modern {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
    order: 1;
    align-items: center;
    justify-content: center;
  }
  
  .welcome-icon-modern {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin: 0 auto;
  }
  
  .dashboard-title-modern {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .welcome-message-modern {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
  }
  
  .header-actions-modern {
    order: 2;
    width: 100%;
  }
  
  .action-buttons-modern {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }
  
  .btn-modern {
    width: 100%;
    padding: 1rem;
    min-width: unset;
  }
  
  .btn-text {
    font-size: 0.9rem;
  }
  
  .student-credit-modern {
    margin-left: 0;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
  }
  
  .notification-section-modern {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 10;
  }
}

/* ========== NOTIFICATION DROPDOWN STYLES ========== */

.notification-dropdown {
  position: absolute;
  top: 70px;
  right: 0;
  width: 350px;
  max-height: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  z-index: 1000;
  animation: fadeInUp 0.3s ease-out;
}

.notification-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  z-index: 1;
}

.notification-dropdown > * {
  position: relative;
  z-index: 2;
}

/* Notification Items */
.notification-item {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.notification-item::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 ease;
}

.notification-item:hover::before {
  left: 100%;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-left: 4px solid #ffd700;
}

/* Notification Content */
.notification-item div[style*="flex"] {
  position: relative;
  z-index: 2;
}

.notification-item i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notification-item small {
  font-weight: 500;
  opacity: 0.8;
}

/* Status Badge Enhancement */
.notification-item .status-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

/* Empty State */
.notification-item[style*="text-align: center"] {
  padding: 2rem 1.2rem;
  color: rgba(44, 62, 80, 0.6);
  font-weight: 500;
}

.notification-item[style*="text-align: center"] i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.3;
}

/* Error State */
.notification-item[style*="color: #e74c3c"] {
  background: rgba(231, 76, 60, 0.1);
  border-left: 4px solid #e74c3c;
}

/* Animation for fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive for Notification Dropdown */
@media (max-width: 480px) {
  .notification-dropdown {
    width: 300px;
    right: -50px;
    max-height: 350px;
  }
  
  .notification-item {
    padding: 0.8rem 1rem;
  }
  
  .notification-item div[style*="flex"] {
    gap: 8px !important;
  }
}

/* ========== LATEST NOTIFICATION CARD STYLES ========== */

.latest-notification-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.latest-notification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  z-index: 1;
}

.notification-preview-content {
  padding: 1.5rem;
}

.notification-preview-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.notification-preview-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.notification-preview-item:hover::before {
  left: 100%;
}

.notification-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Notification Preview Content */
.notification-preview-flex {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.notification-preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
    justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-preview-icon.review {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-preview-icon.reminder {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.notification-preview-icon.progress {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.notification-preview-icon.default {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.notification-preview-text {
  flex: 1;
}

.notification-preview-message {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.notification-preview-time {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

.notification-preview-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}



/* Empty Notification State */
.empty-notification-state {
  padding: 2rem 1.5rem;
  text-align: center;
}

.empty-notification-icon {
  font-size: 3rem;
  color: rgba(108, 117, 125, 0.3);
  margin-bottom: 1rem;
}

.empty-notification-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d;
  margin: 0 0 0.5rem 0;
}

.empty-notification-text p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-preview-content {
    padding: 1.2rem;
  }
  
  .notification-preview-item {
    padding: 1rem;
  }
  
  .notification-preview-flex {
    gap: 0.8rem;
  }
  
  .notification-preview-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .notification-preview-message {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .notification-preview-content {
    padding: 1rem;
  }
  
  .notification-preview-item {
    padding: 0.8rem;
  }
  
  .notification-preview-flex {
    gap: 0.6rem;
  }
  
  .notification-preview-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .notification-preview-message {
    font-size: 0.9rem;
  }
  
  .notification-preview-time {
    font-size: 0.8rem;
  }
  

}

/* HifzApp Setting Popup */
.hifz-setting-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.hifz-setting-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(44,138,90,0.15);
  padding: 2rem 1.5rem;
  min-width: 270px;
  max-width: 95vw;
  text-align: left;
  animation: popIn 0.25s cubic-bezier(.4,2,.6,1);
}
.setting-group {
  margin-bottom: 1.2rem;
}
.setting-group label {
  font-weight: 600;
  margin-right: 1.2rem;
  color: #2d3748;
}
.setting-group input[type="radio"] {
  margin-right: 0.3rem;
}

/* Font size for Quran ayat */
.font-small #selectedText {
  font-size: 1.2rem !important;
}
.font-medium #selectedText {
  font-size: 2rem !important;
}
.font-large #selectedText {
  font-size: 2.7rem !important;
}

/* Dark mode for HifzApp */
.hifz-app.dark-mode, .hifz-app.dark-mode .container {
  background: #181c1f !important;
  color: #e0e0e0 !important;
}
.hifz-app.dark-mode .card,
.hifz-app.dark-mode .form-group,
.hifz-app.dark-mode .display-box {
  background: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
}
.hifz-app.dark-mode .btn {
  background: #2c8a5a !important;
  color: #fff !important;
}
.hifz-app.dark-mode .btn-secondary {
  background: #444 !important;
  color: #fff !important;
}
.hifz-app.dark-mode .hifz-setting-content {
  background: #23272b !important;
  color: #e0e0e0 !important;
}
.hifz-app.dark-mode input,
.hifz-app.dark-mode select,
.hifz-app.dark-mode textarea {
  background: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}

/* Responsive for setting popup */
@media (max-width: 600px) {
  .hifz-setting-content {
    min-width: 90vw;
    padding: 1.2rem 0.5rem;
  }
} 

@media (max-width: 600px) {
  .hifz-setting-content {
    width: 95vw;
    padding: 1.5rem;
  }
}

/* ========== DASHBOARD TAB STYLES ========== */

.dashboard-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-6);
  background-color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 var(--space-4);
  box-shadow: var(--shadow-sm);
}

.tab-link {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.tab-link:hover {
  color: var(--primary-color);
}

.tab-link.active {
  color: var(--primary-color);
}

.tab-link.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-content.active {
  display: block;
}

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

@media (max-width: 768px) {
  .dashboard-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .tab-link {
    padding: var(--space-4);
    font-size: 0.9rem;
  }
}

/* HIFZ APP SETTINGS STYLES */
.hifz-app.dark-mode {
  background: #1a202c;
  color: #e2e8f0;
}

.hifz-app.dark-mode .card,
.hifz-app.dark-mode .form-group select,
.hifz-app.dark-mode .form-group input {
  background: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

.hifz-app.dark-mode .card h1,
.hifz-app.dark-mode .card h3 {
  color: #a0aec0;
}

.hifz-app.dark-mode .btn {
  background: #4a5568;
  color: #e2e8f0;
}

.hifz-app.dark-mode .btn:hover {
  background: #718096;
}

.hifz-app.dark-mode .display-box {
    color: #e2e8f0;
    border-color: #4a5568;
}

/* Font size settings - target the actual text elements */
.hifz-app #selectedText.font-small {
  font-size: 1.8rem !important;
  line-height: 1.8;
}

.hifz-app #selectedText.font-medium {
  font-size: 2.2rem !important;
  line-height: 1.9;
}

.hifz-app #selectedText.font-large {
  font-size: 2.8rem !important;
  line-height: 2.0;
}

/* Also target verse-line elements for multiple verses */
.hifz-app .verse-line.font-small {
  font-size: 1.8rem !important;
  line-height: 1.8;
}

.hifz-app .verse-line.font-medium {
  font-size: 2.2rem !important;
  line-height: 1.9;
}

.hifz-app .verse-line.font-large {
  font-size: 2.8rem !important;
  line-height: 2.0;
}

/* Specific styles for Admin Dashboard tabs to ensure consistency */
#adminDashboard .dashboard-tabs {
  background-color: var(--gray-100);
  border-bottom: 2px solid var(--gray-300);
}

#adminDashboard .tab-link {
  color: var(--text-secondary);
  font-weight: 500;
}

#adminDashboard .tab-link:hover {
  color: var(--primary-dark);
}

#adminDashboard .tab-link.active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -2px; /* Align with the bottom border */
}

#adminDashboard .tab-link i {
  margin-right: 8px;
}


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

/* Student Tabs Styling */
.student-tabs {
  display: flex;
  background-color: var(--gray-100);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--gray-300);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.student-tab-link {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
  position: relative;
}

.student-tab-link:hover {
  color: var(--primary-dark);
  background-color: rgba(52, 152, 219, 0.1);
}

.student-tab-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background-color: rgba(52, 152, 219, 0.15);
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -2px;
}

.student-tab-link i {
  margin-right: 8px;
  font-size: 0.9em;
}

.student-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.student-tab-content.active {
  display: block;
}

/* Mobile responsive for student tabs */
@media (max-width: 768px) {
  .student-tabs {
    flex-direction: column;
  }
  
  .student-tab-link {
    border-radius: 0;
    border-bottom: 1px solid var(--gray-300);
  }
  
  .student-tab-link:last-child {
    border-bottom: none;
  }
  
  .student-tab-link.active {
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 0;
  }
}

/* WhatsApp Broadcast Styles */
#adminBroadcastTab .form-group {
  margin-bottom: 20px;
}

#adminBroadcastTab .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

#adminBroadcastTab input[type="tel"],
#adminBroadcastTab select,
#adminBroadcastTab textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

#adminBroadcastTab input[type="tel"]:focus,
#adminBroadcastTab select:focus,
#adminBroadcastTab textarea:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

#generateBroadcastBtn {
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#generateBroadcastBtn:hover {
  background: #1da851 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

#generateBroadcastBtn:active {
  transform: translateY(0);
}

/* Media Upload Styles */
#broadcastMedia {
  width: 100%;
  padding: 10px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

#broadcastMedia:hover {
  border-color: #25D366;
  background: #f0f8f0;
}

#broadcastMedia:focus {
  outline: none;
  border-color: #25D366;
  background: #f0f8f0;
}

#mediaPreview {
  animation: slideDown 0.3s ease-in;
}

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

/* Media indicator styles */
.media-indicator {
  background: #e3f2fd !important;
  color: #1976d2 !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 0.8em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

#broadcastLinksCard {
  margin-top: 20px;
  animation: fadeIn 0.3s ease-in;
}

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

/* WhatsApp Chat Button Styles */
.whatsapp-chat-btn {
  background: #25D366 !important;
  color: white !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 12px !important;
  border-radius: 5px !important;
  font-size: 0.9em !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.whatsapp-chat-btn:hover {
  background: #1da851 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-chat-btn:active {
  transform: translateY(0) !important;
}

/* Sent Status Styles */
.chat-sent-status {
  color: #28a745 !important;
  font-size: 0.9em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 12px !important;
  background: #d4edda !important;
  border: 1px solid #c3e6cb !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
}

/* Responsive adjustments for broadcast */
@media (max-width: 768px) {
  #adminBroadcastTab .form-group {
    margin-bottom: 15px;
  }
  
  #generateBroadcastBtn {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
  
  .whatsapp-chat-btn {
    font-size: 0.8em !important;
    padding: 6px 10px !important;
  }
}

/* ========== STAR RATING SYSTEM STYLES ========== */

.star-rating-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
  border: 1px solid #ffeaa7;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.1);
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.star-btn {
  transition: all 0.2s ease !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.star-btn:hover {
  transform: scale(1.2) !important;
  color: #ffb400 !important;
  filter: drop-shadow(0 2px 4px rgba(255, 180, 0, 0.3));
}

.star-rating-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  border: 1px solid #bbdefb;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.rating-category {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.rating-category:last-child {
  border-bottom: none;
}

.rating-category label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive star ratings */
@media (max-width: 768px) {
  .star-rating-display > div {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
  
  .star-btn {
    font-size: 1.3rem !important;
  }
  
  .star-rating {
    justify-content: center;
  }
  
  .rating-category {
    text-align: center;
    padding: 0.8rem 0;
  }
}

/* ========== HAFAZAN LIST STYLES ========== */

.hafazan-stats {
  margin-bottom: 1.5rem;
}

.stat-card {
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hafazan-item {
  transition: all 0.2s ease;
  cursor: default;
}

.hafazan-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #007bff !important;
}

.hafazan-grid {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.hafazan-grid::-webkit-scrollbar {
  width: 6px;
}

.hafazan-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.hafazan-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.hafazan-grid::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Search and filter styling */
#hafazanSearch, #hafazanFilter {
  transition: all 0.2s ease;
}

#hafazanSearch:focus, #hafazanFilter:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Empty states */
.empty-state, .empty-search, .error-state, .loading-state {
  animation: fadeIn 0.3s ease-in;
}

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

/* Responsive hafazan */
@media (max-width: 768px) {
  .hafazan-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
  }
  
  .hafazan-item {
    padding: 0.8rem !important;
  }
  
  .hafazan-item h4 {
    font-size: 1rem !important;
  }
  
  .hafazan-grid {
    max-height: 50vh;
  }
  
  #hafazanTab .form-group {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  #hafazanSearch, #hafazanFilter {
    width: 100% !important;
  }
}

/* ========== HAFAZAN DETAIL MODAL STYLES ========== */

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.9);
  }
  to { 
    opacity: 1; 
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from { 
    opacity: 1; 
    transform: scale(1);
  }
  to { 
    opacity: 0; 
    transform: scale(0.9);
  }
}

#hafazanDetailModal {
  animation: fadeIn 0.3s ease !important;
}

#hafazanDetailModal.closing {
  animation: fadeOut 0.3s ease !important;
}

/* Responsive modal */
@media (max-width: 768px) {
  #hafazanDetailModal > div {
    width: 98% !important;
    max-height: 95% !important;
    margin: 1rem !important;
  }
  
  #hafazanDetailModal .stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  
  #hafazanDetailModal .rating-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
}

/* ========== MODERN FEEDBACK UI STYLES ========== */

.feedback-card-modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feedback-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.feedback-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

/* Header Section */
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.feedback-title-section {
  flex: 1;
}

.feedback-surah-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.feedback-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feedback-meta i {
  color: #007bff;
  font-size: 0.85rem;
}

/* Status Badge Modern */
.status-badge-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.status-badge-modern.status-approved {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.status-badge-modern.status-pending {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

.status-badge-modern.status-rejected {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
}

/* Teacher Info */
.feedback-teacher-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-left: 4px solid #007bff;
}

.feedback-teacher-info.pending {
  border-left-color: #ffc107;
  background: #fff8e1;
}

.feedback-teacher-info i {
  color: #007bff;
  font-size: 1rem;
}

.feedback-teacher-info.pending i {
  color: #ffc107;
}

.feedback-date {
  margin-left: auto;
  color: #6c757d;
  font-size: 0.85rem;
}

/* Audio Section */
.feedback-audio-section {
  background: #e3f2fd;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #2196f3;
}

.audio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #1976d2;
  font-size: 0.95rem;
}

.audio-label i {
  color: #2196f3;
}

.feedback-audio-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  outline: none;
}

/* Comment Section */
.feedback-comment-section {
  background: #f0f4f8;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #6c5ce7;
}

.comment-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #5a67d8;
  font-size: 0.95rem;
}

.comment-label i {
  color: #6c5ce7;
}

.comment-content {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
  line-height: 1.5;
  color: #4a5568;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.comment-content::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 2rem;
  color: #6c5ce7;
  opacity: 0.3;
}

/* Ratings Section */
.feedback-ratings-section {
  background: linear-gradient(135deg, #fff3cd 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #ffeaa7;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.ratings-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #b8860b;
  font-size: 1rem;
}

.ratings-header i {
  color: #ffd700;
  font-size: 1.1rem;
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.rating-item {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
}

.rating-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rating-category {
  font-weight: 700;
  color: #495057;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-stars {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.3));
}

.rating-score {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Loading and Empty States */
.feedback-loading, .feedback-empty, .feedback-error {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.feedback-loading .loading-content,
.feedback-empty .empty-state,
.feedback-error .error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.feedback-loading i {
  font-size: 2.5rem;
  color: #007bff;
}

.feedback-empty i {
  font-size: 3rem;
  color: #dee2e6;
}

.feedback-error i {
  font-size: 2.5rem;
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
  .feedback-card-modern {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
  }
  
  .feedback-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feedback-surah-name {
    font-size: 1.2rem;
  }
  
  .feedback-meta {
    gap: 0.8rem;
    font-size: 0.85rem;
  }
  
  .status-badge-modern {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  
  .ratings-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .rating-item {
    padding: 0.8rem;
  }
  
  .feedback-teacher-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .feedback-date {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .feedback-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .ratings-grid {
    gap: 0.6rem;
  }
  
  .feedback-card-modern {
    padding: 1rem;
  }
}

/* ========== MODERN MAIN DASHBOARD STYLES ========== */

/* Modern Card Base */
.card-modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

/* Modern Card Header */
.card-header-modern {
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.card-header-modern h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.card-header-modern h3 i {
  color: #667eea;
  font-size: 1.3rem;
}

.header-accent {
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, transparent 100%);
}

/* Progress Overview Card Styles */
.progress-overview-card::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
}

.main-progress-section {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.progress-circle-container {
  flex-shrink: 0;
}

.progress-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#28a745 0deg, #20c997 60deg, #e9ecef 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.progress-circle-inner {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.progress-percentage {
  font-size: 1.6rem;
  font-weight: 800;
  color: #28a745;
  line-height: 1;
}

.progress-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.progress-stats {
  flex: 1;
}

.progress-text-modern {
  margin-bottom: 1rem;
}

.progress-numbers {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.current-number {
  color: #28a745;
}

.separator {
  color: #6c757d;
  font-size: 1.5rem;
}

.target-number {
  color: #17a2b8;
}

.progress-unit {
  display: block;
  font-size: 1rem;
  color: #6c757d;
  margin-top: 0.5rem;
  font-weight: 500;
}

.progress-bar-modern {
  width: 100%;
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill-modern {
  height: 100%;
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
  border-radius: 6px;
  transition: width 0.6s ease;
  position: relative;
}

.progress-bar-fill-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Stats Grid */
.stats-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 2rem 2rem 2rem;
}

.stat-item-modern {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-item-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.3rem;
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Target Setting Card */
.target-setting-card::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 50%, #dc3545 100%);
}

.target-form-modern {
  padding: 2rem;
}

.form-group-modern {
  margin-bottom: 1.5rem;
}

.form-label-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.form-label-modern i {
  color: #ffc107;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-modern {
  flex: 1;
  padding: 1rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input-modern:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
  transform: translateY(-1px);
}

.input-suffix {
  position: absolute;
  right: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-help-text {
  display: block;
  margin-top: 0.5rem;
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.4;
}

.btn-modern {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center;
}

.btn-modern.btn-primary {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-modern.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
  background: linear-gradient(135deg, #ffcd39, #fd8c3c);
}

/* Quick Actions Card */
.quick-actions-card::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.quick-actions-grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.action-btn-modern {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  text-decoration: none;
  color: #000000 !important;
}

.action-btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-btn-modern.primary {
  border-color: #28a745;
}

.action-btn-modern.primary:hover {
  border-color: #20c997;
  background: linear-gradient(135deg, #f8fff9, #e8f8f0);
}

.action-btn-modern.secondary {
  border-color: #17a2b8;
}

.action-btn-modern.secondary:hover {
  border-color: #138496;
  background: linear-gradient(135deg, #f0fbff, #e3f7fd);
}

.action-btn-modern.tertiary {
  border-color: #6f42c1;
}

.action-btn-modern.tertiary:hover {
  border-color: #5a32a3;
  background: linear-gradient(135deg, #f8f4ff, #f0e7ff);
}

.action-btn-modern.quaternary {
  border-color: #fd7e14;
}

.action-btn-modern.quaternary:hover {
  border-color: #e86800;
  background: linear-gradient(135deg, #fff8f0, #fff0e6);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.action-btn-modern.primary .action-icon {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.action-btn-modern.secondary .action-icon {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
}

.action-btn-modern.tertiary .action-icon {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  color: white;
}

.action-btn-modern.quaternary .action-icon {
  background: linear-gradient(135deg, #fd7e14, #e86800);
  color: white;
}

.action-content {
  flex: 1;
}

.action-title {
  display: block;
  font-weight: 700;
  color: #000000 !important;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.action-desc {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
}

/* Responsive Design for Main Dashboard */
@media (max-width: 768px) {
  .card-modern {
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  
  .card-header-modern {
    padding: 1.2rem 1.5rem 0.8rem 1.5rem;
  }
  
  .card-header-modern h3 {
    font-size: 1.2rem;
  }
  
  .main-progress-section {
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
    gap: 1.5rem;
  }
  
  .progress-circle {
    width: 100px;
    height: 100px;
  }
  
  .progress-circle-inner {
    width: 75px;
    height: 75px;
  }
  
  .progress-percentage {
    font-size: 1.3rem;
  }
  
  .progress-numbers {
    font-size: 1.5rem;
    justify-content: center;
  }
  
  .stats-grid-modern {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .target-form-modern {
    padding: 1.5rem;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .action-btn-modern {
    padding: 1.2rem;
  }
  
  .header-accent {
    left: 1.5rem;
    right: 1.5rem;
  }
}

/* ========== ANIMASI BREATH UNTUK BUTANG RAKAMAN, MAINKAN, DAN HANTAR ========== */
/* Version: v=109 - Added breath animation for recording buttons when active */

/* Keyframes untuk butang rakaman aktif */
@keyframes recordBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
  }
}

@keyframes recordBreathGlow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(239, 68, 68, 0.3),
      0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(239, 68, 68, 0.5),
      0 0 0 10px rgba(239, 68, 68, 0);
  }
}

@keyframes recordPulse {
  0%, 100% {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: scale(1.1);
  }
}

/* Keyframes untuk butang mainkan aktif */
@keyframes playBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
  }
}

@keyframes playBreathGlow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(16, 185, 129, 0.3),
      0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(16, 185, 129, 0.5),
      0 0 0 10px rgba(16, 185, 129, 0);
  }
}

@keyframes playPulse {
  0%, 100% {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: scale(1.1);
  }
}

/* Keyframes untuk butang hantar aktif */
@keyframes sendBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(44, 138, 90, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(44, 138, 90, 0.5);
  }
}

@keyframes sendBreathGlow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(44, 138, 90, 0.3),
      0 0 0 0 rgba(44, 138, 90, 0.7);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(44, 138, 90, 0.5),
      0 0 0 10px rgba(44, 138, 90, 0);
  }
}

@keyframes sendPulse {
  0%, 100% {
    background: linear-gradient(135deg, #2c8a5a, #3aa6b9);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, #3aa6b9, #2c8a5a);
    transform: scale(1.1);
  }
}

/* Styling untuk butang rakaman aktif */
#recordButton.recording {
  animation: recordBreath 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#recordButton.recording::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  animation: shimmer 2s ease-in-out infinite;
}

#recordButton.recording:hover {
  animation: recordBreathGlow 1.5s ease-in-out infinite;
  transform: translateY(-3px) scale(1.02);
}

#recordButton.recording:active {
  animation: none;
  transform: translateY(-1px) scale(0.98);
}

/* Styling untuk butang mainkan aktif */
#playButton.playing {
  animation: playBreath 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#playButton.playing::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  animation: shimmer 2s ease-in-out infinite;
}

#playButton.playing:hover {
  animation: playBreathGlow 1.5s ease-in-out infinite;
  transform: translateY(-3px) scale(1.02);
}

#playButton.playing:active {
  animation: none;
  transform: translateY(-1px) scale(0.98);
}

/* Styling untuk butang hantar aktif */
#sendButton.sending {
  animation: sendBreath 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sendButton.sending::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  animation: shimmer 2s ease-in-out infinite;
}

#sendButton.sending:hover {
  animation: sendBreathGlow 1.5s ease-in-out infinite;
  transform: translateY(-3px) scale(1.02);
}

#sendButton.sending:active {
  animation: none;
  transform: translateY(-1px) scale(0.98);
}

/* Shimmer animation untuk semua butang aktif */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive untuk animasi butang aktif */
@media (max-width: 768px) {
  #recordButton.recording,
  #playButton.playing,
  #sendButton.sending {
    animation: recordBreath 3s ease-in-out infinite;
  }
  
  #recordButton.recording:hover,
  #playButton.playing:hover,
  #sendButton.sending:hover {
    animation: recordBreathGlow 2s ease-in-out infinite;
  }
}

@media (max-width: 480px) {
  #recordButton.recording,
  #playButton.playing,
  #sendButton.sending {
    animation: recordBreath 4s ease-in-out infinite;
  }
  
  #recordButton.recording:hover,
  #playButton.playing:hover,
  #sendButton.sending:hover {
    animation: recordBreathGlow 3s ease-in-out infinite;
  }
}

/* Disable animation untuk user yang prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #recordButton.recording,
  #playButton.playing,
  #sendButton.sending {
    animation: none;
  }
  
  #recordButton.recording:hover,
  #playButton.playing:hover,
  #sendButton.sending:hover {
    animation: none;
    transform: translateY(-2px);
  }
}

/* ========== ANIMASI BREATH UNTUK BUTANG MULAKAN HAFAZAN ========== */
/* Version: v=108 - Added breath animation for start buttons */
@keyframes breath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5);
  }
}

@keyframes breathGlow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(40, 167, 69, 0.3),
      0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(40, 167, 69, 0.5),
      0 0 0 10px rgba(40, 167, 69, 0);
  }
}

@keyframes breathPulse {
  0%, 100% {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: scale(1.1);
  }
}

@keyframes breathText {
  0%, 100% {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
}

/* Styling khusus untuk butang Mulakan Hafazan */
#startHifzBtn,
#startHifzBtnMain {
  animation: breath 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#startHifzBtn::before,
#startHifzBtnMain::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;
}

#startHifzBtn:hover::before,
#startHifzBtnMain:hover::before {
  left: 100%;
}

#startHifzBtn:hover,
#startHifzBtnMain:hover {
  animation: breathGlow 2s ease-in-out infinite;
  transform: translateY(-5px) scale(1.02);
}

#startHifzBtn:active,
#startHifzBtnMain:active {
  animation: none;
  transform: translateY(-2px) scale(0.98);
}

/* Khusus untuk action-btn-modern primary (butang quick action) */
#startHifzBtn.action-btn-modern.primary {
  animation: breath 3s ease-in-out infinite;
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9, #e8f8f0);
  position: relative;
  overflow: hidden;
  color: #000000 !important;
}

#startHifzBtn.action-btn-modern.primary .action-icon {
  animation: breathPulse 3s ease-in-out infinite;
}

#startHifzBtn.action-btn-modern.primary .action-title {
  animation: breathText 3s ease-in-out infinite;
}

#startHifzBtn.action-btn-modern.primary:hover {
  animation: breathGlow 2s ease-in-out infinite;
  border-color: #20c997;
  background: linear-gradient(135deg, #e8f8f0, #f8fff9);
  transform: translateY(-5px) scale(1.02);
  color: #000000 !important;
}

/* Khusus untuk btn (butang main) */
#startHifzBtnMain.btn {
  animation: breath 3s ease-in-out infinite;
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#startHifzBtnMain.btn:hover {
  animation: breathGlow 2s ease-in-out infinite;
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5);
}

#startHifzBtnMain.btn:active {
  animation: none;
  transform: translateY(-2px) scale(0.98);
}

/* Responsive untuk animasi breath */
@media (max-width: 768px) {
  #startHifzBtn,
  #startHifzBtnMain {
    animation: breath 4s ease-in-out infinite;
  }
  
  #startHifzBtn:hover,
  #startHifzBtnMain:hover {
    animation: breathGlow 3s ease-in-out infinite;
  }
}

@media (max-width: 480px) {
  #startHifzBtn,
  #startHifzBtnMain {
    animation: breath 5s ease-in-out infinite;
  }
  
  #startHifzBtn:hover,
  #startHifzBtnMain:hover {
    animation: breathGlow 4s ease-in-out infinite;
  }
}

/* Disable animation untuk user yang prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #startHifzBtn,
  #startHifzBtnMain,
  #startHifzBtn .action-icon,
  #startHifzBtn .action-title {
    animation: none;
  }
  
  #startHifzBtn:hover,
  #startHifzBtnMain:hover {
    animation: none;
    transform: translateY(-3px);
  }
}

@media (max-width: 480px) {
  .card-header-modern {
    padding: 1rem 1.2rem 0.6rem 1.2rem;
  }
  
  .main-progress-section {
    padding: 1.2rem;
  }
  
  .target-form-modern,
  .quick-actions-grid {
    padding: 1.2rem;
  }
  
  .header-accent {
    left: 1.2rem;
    right: 1.2rem;
  }
  
  .action-btn-modern {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .action-content {
    text-align: center;
  }
}

/* ========== MODERN PROFILE TAB STYLES ========== */

/* Profile Overview Card */
.profile-overview-card::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.profile-main-section {
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Avatar Section */
.profile-avatar-section {
  flex-shrink: 0;
  text-align: center;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.avatar-display-modern {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.avatar-display-modern:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.avatar-display-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.avatar-container:hover .avatar-overlay {
  opacity: 1;
}

.avatar-overlay i {
  color: white;
  font-size: 1.5rem;
}

.avatar-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.btn-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-avatar:hover {
  background: linear-gradient(135deg, #5a6fd8, #6a42a0);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.file-name-display {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
  margin-top: 0.5rem;
  max-width: 120px;
  word-wrap: break-word;
}

/* Profile Info Section */
.profile-info-section {
  flex: 1;
}

.user-welcome {
  margin-bottom: 2rem;
}

.user-welcome h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.profile-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

.coin-balance-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.coin-display {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.coin-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.coin-content {
  flex: 1;
}

.coin-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.coin-label {
  display: block;
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

.theme-selector-modern {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.theme-selector-modern:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.theme-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.theme-label i {
  color: #667eea;
}

.theme-display-modern {
  min-height: 40px;
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Achievements Card */
.achievements-card::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 50%, #dc3545 100%);
}

.achievements-content {
  padding: 2rem;
}

.achievements-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.achievement-stat {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.achievement-stat:hover {
  border-color: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.achievement-stat .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffc107;
  line-height: 1;
}

.achievement-stat .stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.achievements-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  min-height: 150px;
}

.loading-achievements {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  padding: 2rem;
}

.loading-achievements i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffc107;
}

/* Rewards Card */
.rewards-card::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
}

.rewards-content {
  padding: 2rem;
}

.rewards-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.reward-stat {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.reward-stat:hover {
  border-color: #28a745;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.reward-stat .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #28a745;
  line-height: 1;
}

.reward-stat .stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.owned-items-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  min-height: 120px;
}

.loading-items {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  padding: 2rem;
}

.loading-items i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #28a745;
}

/* Override achievements-grid and owned-items-grid for modern profile */
.profile-overview-card .achievements-grid,
.achievements-card .achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  padding: 2rem;
  min-height: 150px;
}

.rewards-card .owned-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  padding: 2rem;
  min-height: 120px;
}

/* Responsive adjustments for profile grids */
@media (max-width: 768px) {
  .achievements-card .achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    padding: 1.5rem;
  }
  
  .rewards-card .owned-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .achievements-card .achievements-grid,
  .rewards-card .owned-items-grid {
    padding: 1.2rem;
  }
}

/* ========== MODERN LEADERBOARD STYLES ========== */

/* Leaderboard Header Card */
.leaderboard-header-card::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 50%, #dc3545 100%);
}

.leaderboard-intro {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.intro-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
}

.intro-text h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.intro-text p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.btn-leaderboard {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  flex-shrink: 0;
}

.btn-leaderboard:hover {
  background: linear-gradient(135deg, #ffcd39, #fd8c3c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

/* Leaderboard Content Card */
.leaderboard-content-card::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.leaderboard-content {
  padding: 2rem;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
}

.section-title i {
  color: #667eea;
}

/* My Position Section */
.my-position-section {
  margin-bottom: 3rem;
}

.position-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.my-position {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea10, #764ba210);
}

.position-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.position-rank {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.position-info {
  flex: 1;
}

.position-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

.position-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.position-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.position-stat i {
  color: #667eea;
}

/* Top Performers Section */
.top-performers-section {
  margin-bottom: 3rem;
}

.top-three-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.top-performer-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.top-performer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.top-performer-card.rank-1::before {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.top-performer-card.rank-2::before {
  background: linear-gradient(90deg, #c0c0c0, #e8e8e8);
}

.top-performer-card.rank-3::before {
  background: linear-gradient(90deg, #cd7f32, #daa520);
}

.top-performer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.performer-rank {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 1rem auto;
}

.rank-1 .performer-rank {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.rank-2 .performer-rank {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.rank-3 .performer-rank {
  background: linear-gradient(135deg, #cd7f32, #daa520);
}

.performer-name {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.performer-score {
  font-size: 0.9rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Full Leaderboard Section */
.full-leaderboard-section {
  margin-bottom: 2rem;
}

.leaderboard-modern {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
}

.leaderboard-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
}

.leaderboard-item-modern:last-child {
  border-bottom: none;
}

.leaderboard-item-modern:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.leaderboard-item-modern.current-user {
  background: linear-gradient(135deg, #667eea10, #764ba210);
  border-left: 4px solid #667eea;
}

.item-rank {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.item-rank.top-rank {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.2rem;
}

.item-details {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  gap: 1rem;
}

.item-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #28a745;
  flex-shrink: 0;
}

/* Loading and Empty States */
.leaderboard-loading,
.leaderboard-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.leaderboard-loading i,
.leaderboard-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.leaderboard-loading i {
  color: #667eea;
}

.leaderboard-empty i {
  color: #ffc107;
}

.leaderboard-loading p,
.leaderboard-empty p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
}

.leaderboard-empty small {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Design for Leaderboard */
@media (max-width: 768px) {
  .leaderboard-intro {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .intro-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .intro-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .intro-text h4 {
    font-size: 1.3rem;
  }
  
  .top-three-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .position-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .position-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .leaderboard-content {
    padding: 1.5rem;
  }
  
  .leaderboard-item-modern {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .item-details {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .leaderboard-intro {
    padding: 1.2rem;
  }
  
  .leaderboard-content {
    padding: 1.2rem;
  }
  
  .section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .position-card,
  .leaderboard-item-modern {
    padding: 0.8rem;
  }
  
  .intro-text h4 {
    font-size: 1.1rem;
  }
  
  .intro-text p {
    font-size: 0.9rem;
  }
}

/* ========== MODERN STUDENT DASHBOARD CARDS ========== */

/* Feedback Card */
.feedback-card::before {
  background: linear-gradient(90deg, #6f42c1 0%, #5a32a3 50%, #4c2a85 100%);
}

.feedback-content {
  padding: 2rem;
}

/* Hafazan Card */
.hafazan-card::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
}

.hafazan-content {
  padding: 2rem;
}

/* Hafazan Controls */
.hafazan-controls {
  margin-bottom: 2rem;
}

.search-filter-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-container {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 0.9rem;
}

.search-input-modern {
  width: 100%;
  padding: 1rem 1rem 1rem 2.8rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input-modern:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
  transform: translateY(-1px);
}

.filter-select-modern {
  padding: 1rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.filter-select-modern:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Modern Statistics */
.hafazan-stats-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card-modern {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card-modern.stat-success::before {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-card-modern.stat-warning::before {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stat-card-modern.stat-info::before {
  background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.stat-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #28a745;
}

.stat-card-modern .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.stat-success .stat-icon {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-warning .stat-icon {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-info .stat-icon {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.stat-card-modern .stat-content {
  flex: 1;
}

.stat-card-modern .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card-modern .stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Modern Hafazan List */
.hafazan-list-modern {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
}

.loading-state-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: #6c757d;
  text-align: center;
}

.loading-state-modern i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #28a745;
  opacity: 0.7;
}

.loading-state-modern p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* Enhanced Hafazan Items (if needed) */
.hafazan-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
}

.hafazan-item-modern:last-child {
  border-bottom: none;
}

.hafazan-item-modern:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.hafazan-item-modern.status-approved {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #28a74510, #20c99710);
}

.hafazan-item-modern.status-pending {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #ffc10710, #fd7e1410);
}

.hafazan-item-modern.status-rejected {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #dc354510, #c8254510);
}

/* Responsive Design for Student Cards */
@media (max-width: 768px) {
  .feedback-content,
  .hafazan-content {
    padding: 1.5rem;
  }
  
  .search-filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .search-input-container {
    min-width: auto;
  }
  
  .filter-select-modern {
    min-width: auto;
    width: 100%;
  }
  
  .hafazan-stats-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-card-modern {
    padding: 1.2rem;
  }
  
  .stat-card-modern .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .feedback-content,
  .hafazan-content {
    padding: 1.2rem;
  }
  
  .hafazan-controls {
    margin-bottom: 1.5rem;
  }
  
  .search-input-modern,
  .filter-select-modern {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .search-input-modern {
    padding-left: 2.5rem;
  }
  
  .stat-card-modern {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .stat-card-modern .stat-number {
    font-size: 1.4rem;
  }
}

/* ========== MODERN TEACHER DASHBOARD STYLES ========== */

/* Teacher Header Card */
.teacher-header-card::before {
  background: linear-gradient(90deg, #17a2b8 0%, #6f42c1 50%, #e83e8c 100%);
}

.teacher-header-content {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.teacher-profile-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.teacher-avatar-container {
  position: relative;
  display: inline-block;
}

.teacher-info {
  flex: 1;
}

.welcome-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.3rem 0;
}

.welcome-text p {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0 0 1rem 0;
}

.avatar-upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.teacher-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-upload {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  color: white;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-upload:hover {
  background: linear-gradient(135deg, #138496, #5a32a3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #3d4147);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

/* Teacher Statistics Card */
.teacher-stats-card::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 50%, #dc3545 100%);
}

.teacher-stats-content {
  padding: 2rem;
}

.stats-grid-teacher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card-teacher {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-teacher::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card-teacher.pending::before {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stat-card-teacher.approved::before {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-card-teacher.rejected::before {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.stat-card-teacher:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card-teacher.pending:hover {
  border-color: #ffc107;
}

.stat-card-teacher.approved:hover {
  border-color: #28a745;
}

.stat-card-teacher.rejected:hover {
  border-color: #dc3545;
}

.stat-icon-teacher {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-card-teacher.pending .stat-icon-teacher {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card-teacher.approved .stat-icon-teacher {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card-teacher.rejected .stat-icon-teacher {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.stat-content-teacher {
  flex: 1;
}

.stat-number-teacher {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label-teacher {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

/* Teacher Recordings Card */
.teacher-recordings-card::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
}

.teacher-recordings-content {
  padding: 2rem;
}

.recordings-controls {
  margin-bottom: 2rem;
}

.filter-group-teacher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.filter-label i {
  color: #28a745;
}

.filter-select-teacher {
  padding: 1rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select-teacher:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.search-input-container-teacher {
  position: relative;
}

.search-input-teacher {
  width: 100%;
  padding: 1rem 1.2rem 1rem 2.8rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input-teacher:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
  transform: translateY(-1px);
}

.search-icon-teacher {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 0.9rem;
}

.recordings-list-container {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
}

.recording-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.recording-list-modern .recording-item {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* Legacy recording item styles - kept for compatibility */
.recording-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
}

.recording-item-modern:last-child {
  border-bottom: none;
}

.recording-item-modern:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.recording-item-modern.status-pending {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #ffc10710, #fd7e1410);
}

.recording-item-modern.status-approved {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #28a74510, #20c99710);
}

.recording-item-modern.status-rejected {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #dc354510, #c8254510);
}

/* Responsive Design for Teacher Dashboard */
@media (max-width: 768px) {
  .teacher-header-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .teacher-profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .teacher-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .stats-grid-teacher {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-group-teacher {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .teacher-stats-content,
  .teacher-recordings-content {
    padding: 1.5rem;
  }
  
  .stat-card-teacher {
    padding: 1.2rem;
  }
  
  .stat-number-teacher {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .teacher-header-content,
  .teacher-stats-content,
  .teacher-recordings-content {
    padding: 1.2rem;
  }
  
  .welcome-text h3 {
    font-size: 1.3rem;
  }
  
  .welcome-text p {
    font-size: 1rem;
  }
  
  .teacher-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .stat-card-teacher {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .stat-number-teacher {
    font-size: 1.6rem;
  }
  
  .recordings-controls {
    margin-bottom: 1.5rem;
  }
}

/* ========== MOBILE-FIRST RECORDING LIST STYLES ========== */

/* Recording Card Mobile */
.recording-card-mobile {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.recording-card-mobile:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Header Section */
.recording-header-mobile {
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.student-info-mobile {
  flex: 1;
  min-width: 0;
}

.student-name-mobile {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  word-wrap: break-word;
}

.student-meta-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.student-id-mobile {
  font-size: 0.85rem;
  color: #6c757d;
  font-family: monospace;
}

.account-badge-mobile {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.account-badge-mobile.status-approved {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.account-badge-mobile.status-pending {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  border: 1px solid #ffeaa7;
}

.account-badge-mobile.status-rejected {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-section-mobile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.status-badge-mobile {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  min-width: 80px;
}

.status-badge-mobile.status-pending {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

.status-badge-mobile.status-approved {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.status-badge-mobile.status-rejected {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.delete-section-mobile {
  margin-top: 0.5rem;
}

.delete-section-mobile .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* Details Section */
.recording-details-mobile {
  padding: 1rem;
}

.detail-grid-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.detail-item-mobile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #28a745;
}

.detail-icon-mobile {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.detail-content-mobile {
  flex: 1;
  min-width: 0;
}

.detail-label-mobile {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.1rem;
}

.detail-value-mobile {
  display: block;
  font-size: 0.9rem;
  color: #2c3e50;
  font-weight: 600;
  word-wrap: break-word;
}

/* Audio Section */
.audio-section-mobile {
  margin: 1rem;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #90caf9;
}

.audio-header-mobile {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.audio-icon-mobile {
  font-size: 1.1rem;
}

.audio-title-mobile {
  font-weight: 600;
  font-size: 0.95rem;
}

.audio-player-mobile {
  padding: 1rem;
}

.audio-controls-mobile {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  outline: none;
}

.audio-controls-mobile::-webkit-media-controls-panel {
  background-color: white;
  border-radius: 8px;
}

/* Review Form Mobile */
.review-form-mobile {
  margin: 1rem;
}

.comment-section-mobile {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  margin-bottom: 1rem;
}

.comment-header-mobile {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comment-icon-mobile {
  font-size: 1.1rem;
}

.comment-title-mobile {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-textarea-mobile {
  width: 100%;
  padding: 1rem;
  border: none;
  background: white;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.comment-textarea-mobile:focus {
  outline: none;
  background: #fafafa;
}

/* Audio Feedback Section Mobile */
.audio-feedback-section-mobile {
  margin: 1rem;
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #4caf50;
}

.audio-feedback-header-mobile {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.audio-feedback-icon-mobile {
  font-size: 1.1rem;
}

.audio-feedback-title-mobile {
  font-weight: 600;
  font-size: 0.95rem;
}

.audio-feedback-controls-mobile {
  padding: 1rem;
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.btn-record-mobile {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  box-shadow: 0 3px 12px rgba(23, 162, 184, 0.3);
}

.btn-record-mobile:hover:not(:disabled) {
  background: linear-gradient(135deg, #138496, #117a8b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn-preview-mobile {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.btn-preview-mobile:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-preview-mobile:disabled {
  background: #6c757d;
  color: #ffffff;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.audio-feedback-player-mobile {
  width: 100%;
  height: 40px;
  margin: 1rem;
  border-radius: 8px;
  outline: none;
}

/* Rating Section Mobile */
.rating-section-mobile {
  margin: 1rem;
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffcc02;
}

.rating-header-mobile {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rating-icon-mobile {
  font-size: 1.1rem;
}

.rating-title-mobile {
  font-weight: 600;
  font-size: 0.95rem;
}

.rating-categories-mobile {
  padding: 1rem;
  background: white;
}

.rating-category-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.rating-category-mobile:last-child {
  border-bottom: none;
}

.rating-label-mobile {
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

.star-rating-mobile {
  display: flex;
  gap: 0.3rem;
}

/* Action Buttons Mobile */
.actions-section-mobile {
  margin: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.btn-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 48px;
}

.btn-approve-mobile {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.btn-approve-mobile:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-reject-mobile {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3);
}

.btn-reject-mobile:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-mobile i {
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .recording-header-mobile {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  
  .status-section-mobile {
    align-items: stretch;
  }
  
  .status-badge-mobile {
    text-align: center;
    min-width: auto;
  }
  
  .detail-grid-mobile {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .student-meta-mobile {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .actions-section-mobile {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .rating-category-mobile {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .recording-card-mobile {
    margin-bottom: 0.8rem;
  }
  
  .recording-header-mobile,
  .recording-details-mobile,
  .audio-section-mobile,
  .review-form-mobile,
  .rating-section-mobile,
  .actions-section-mobile {
    margin: 0.8rem;
  }
  
  .audio-player-mobile,
  .rating-categories-mobile {
    padding: 0.8rem;
  }
  
  .student-name-mobile {
    font-size: 1rem;
  }
  
  .btn-mobile {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  .recording-card-mobile {
    border-radius: 20px;
    margin-bottom: 1.5rem;
  }
  
  .recording-header-mobile {
    padding: 1.5rem;
  }
  
  .recording-details-mobile {
    padding: 1.5rem;
  }
  
  .detail-grid-mobile {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .actions-section-mobile {
    margin: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .student-name-mobile {
    font-size: 1.2rem;
  }
}

/* ========== MODERN LOGIN PAGE STYLES ========== */

/* Auth Screen Modern */
.auth-screen-modern {
  display: none;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.auth-background-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  z-index: 1;
}

.auth-shapes-modern {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-shapes-modern .shape-1,
.auth-shapes-modern .shape-2,
.auth-shapes-modern .shape-3 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 20s infinite ease-in-out;
}

.auth-shapes-modern .shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

.auth-shapes-modern .shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.auth-shapes-modern .shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: -75px;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(15px) rotate(240deg); }
}

/* Auth Container Modern */
.auth-container-modern {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  margin: 2rem auto;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.auth-container-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* Auth Header Modern */
.auth-header-modern {
  padding: 2rem 2rem 1rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.auth-logo-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon-modern {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  margin-bottom: 0.5rem;
}

.auth-title-modern {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle-modern {
  font-size: 0.95rem;
  color: #6c757d;
  margin: 0;
  font-weight: 500;
}

/* Auth Tabs Modern */
.auth-tabs-modern {
  padding: 0 2rem 1rem 2rem;
}

.tabs-container-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8f9fa;
  border-radius: 16px;
  padding: 0.5rem;
  gap: 0.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tab-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.75rem;
  color: #6c757d;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.tab-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.tab-modern:hover::before {
  left: 100%;
}

.tab-modern.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.tab-icon-modern {
  font-size: 1.2rem;
}

.tab-text-modern {
  line-height: 1;
}

/* Auth Forms Modern */
.auth-forms-modern {
  padding: 1rem 2rem 2rem 2rem;
}

.form-modern {
  display: none;
}

.form-modern.active {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Header Modern */
.form-header-modern {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.form-subtitle-modern {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* Form Body Modern */
.form-body-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-modern {
  position: relative;
}

.input-container-modern {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-modern {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
  z-index: 2;
  transition: color 0.3s ease;
}

.input-modern {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-modern:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.input-modern:focus + .input-label-modern,
.input-modern:not(:placeholder-shown) + .input-label-modern {
  transform: translateY(-2.5rem) scale(0.85);
  color: #667eea;
  font-weight: 600;
}

.input-modern:focus ~ .input-icon-modern {
  color: #667eea;
}

.input-label-modern {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  background: white;
  padding: 0 0.5rem;
  z-index: 1;
}

.password-toggle-modern {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 2;
}

.password-toggle-modern:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* Login Button Modern */
.btn-login-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.btn-login-modern::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 ease;
}

.btn-login-modern:hover::before {
  left: 100%;
}

.btn-login-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-login-modern:active {
  transform: translateY(0);
}

.btn-student {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-student:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-teacher {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  color: white;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-teacher:hover {
  background: linear-gradient(135deg, #138496, #5a32a3);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.btn-head-teacher {
  background: linear-gradient(135deg, #fd7e14, #e83e8c);
  color: white;
  box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

.btn-head-teacher:hover {
  background: linear-gradient(135deg, #e55a00, #d91a72);
  box-shadow: 0 8px 25px rgba(253, 126, 20, 0.4);
}

.btn-admin {
  background: linear-gradient(135deg, #dc3545, #6f42c1);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-admin:hover {
  background: linear-gradient(135deg, #c82333, #5a32a3);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-text-modern {
  flex: 1;
  text-align: left;
}

.btn-icon-modern {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-login-modern:hover .btn-icon-modern {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* Error Message Modern */
.error-message-modern {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid #f5c6cb;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.error-message-modern:not(:empty) {
  display: block;
}

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

/* Form Footer Modern */
.form-footer-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.forgot-password-modern {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forgot-password-modern:hover {
  color: #5a52d5;
  background: rgba(102, 126, 234, 0.1);
}

.back-btn-modern {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn-modern:hover {
  color: #495057;
  background: rgba(108, 117, 125, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container-modern {
    margin: 1rem auto;
    width: 95%;
    max-width: none;
  }
  
  .auth-header-modern {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }
  
  .auth-tabs-modern {
    padding: 0 1.5rem 1rem 1.5rem;
  }
  
  .auth-forms-modern {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .logo-icon-modern {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .auth-title-modern {
    font-size: 1.6rem;
  }
  
  .tabs-container-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .tab-modern {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .form-title-modern {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .auth-container-modern {
    margin: 0.5rem auto;
    border-radius: 20px;
  }
  
  .auth-header-modern,
  .auth-tabs-modern,
  .auth-forms-modern {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  
  .logo-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .auth-title-modern {
    font-size: 1.4rem;
  }
  
  .tabs-container-modern {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
  }
  
  .tab-modern {
    padding: 0.8rem 0.3rem;
    font-size: 0.75rem;
  }
  
  .tab-icon-modern {
    font-size: 1rem;
  }
  
  .input-modern {
    padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    font-size: 0.95rem;
  }
  
  .input-label-modern {
    left: 2.8rem;
    font-size: 0.95rem;
  }
  
  .btn-login-modern {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .form-footer-modern {
    gap: 0.8rem;
  }
}

@media (max-width: 360px) {
  .auth-container-modern {
    width: 98%;
    margin: 0.25rem auto;
  }
  
  .tabs-container-modern {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .tab-modern {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
  }
}

/* ========== MODERN LANDING PAGE STYLES ========== */

/* Landing Page Modern */
.landing-page-modern {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Background Elements */
.landing-background-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.bg-shapes-modern {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-shape-1,
.bg-shape-2,
.bg-shape-3,
.bg-shape-4 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: floatLanding 25s infinite ease-in-out;
}

.bg-shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
  animation-delay: -8s;
}

.bg-shape-3 {
  width: 200px;
  height: 200px;
  top: 30%;
  left: -100px;
  animation-delay: -16s;
}

.bg-shape-4 {
  width: 250px;
  height: 250px;
  top: 60%;
  right: -125px;
  animation-delay: -12s;
}

@keyframes floatLanding {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  25% { transform: translateY(-40px) rotate(90deg) scale(1.1); }
  50% { transform: translateY(20px) rotate(180deg) scale(0.9); }
  75% { transform: translateY(-20px) rotate(270deg) scale(1.05); }
}

.bg-pattern-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
              radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
}



/* Landing Container */
.landing-container-modern {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 2rem;
}

/* Hero Section */
.hero-section-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

.hero-content-modern {
  max-width: 800px;
  width: 100%;
}

.hero-logo-modern {
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
}

.logo-glow-modern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border-radius: 50%;
  animation: pulse 3s infinite;
  filter: blur(20px);
}

.hero-logo-img-modern {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: white;
  border: 6px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.hero-logo-img-modern:hover {
  transform: scale(1.05) rotate(5deg);
}

.hero-text-modern {
  margin-bottom: 3rem;
}

.hero-title-modern {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.title-main-modern {
  display: block;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.title-accent-modern {
  display: block;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.8em;
  margin-top: 0.5rem;
}

.hero-subtitle-modern {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Verse Card */
.verse-card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.verse-content-modern {
  text-align: center;
}

.arabic-verse-modern {
  font-family: 'Amiri', serif;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-weight: 600;
}

.verse-translation-modern {
  font-size: 1.1rem;
  color: #667eea;
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.verse-reference-modern {
  font-size: 0.95rem;
  color: #764ba2;
  font-weight: 600;
}

/* Hero CTA */
.hero-cta-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
}

.btn-hero-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  border-radius: 20px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-width: 280px;
  backdrop-filter: blur(10px);
}

.btn-hero-modern::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 ease;
}

.btn-hero-modern:hover::before {
  left: 100%;
}

.btn-hero-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-primary-modern {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-secondary-modern {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  color: white;
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.btn-tertiary-modern {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-icon-modern {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.btn-content-modern {
  flex: 1;
  text-align: left;
}

.btn-text-modern {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.btn-subtext-modern {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 500;
}

/* iOS Hint */
.ios-hint-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
}

.ios-hint-icon-modern {
  font-size: 1.5rem;
  color: #007aff;
}

.ios-hint-content-modern {
  font-size: 0.9rem;
  color: #2c3e50;
  line-height: 1.4;
}

/* Section Header */
.section-header-modern {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title-modern {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle-modern {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Features Section */
.features-section-modern {
  padding: 6rem 0;
  position: relative;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-icon-modern {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-audio-modern .feature-icon-modern {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.feature-teacher-modern .feature-icon-modern {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.feature-progress-modern .feature-icon-modern {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.feature-gamification-modern .feature-icon-modern {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.feature-community-modern .feature-icon-modern {
  background: linear-gradient(135deg, #e83e8c, #dc3545);
}

.feature-mobile-modern .feature-icon-modern {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.feature-card-modern:hover .feature-icon-modern {
  transform: scale(1.1) rotate(5deg);
}

.feature-content-modern {
  text-align: left;
}

.feature-title-modern {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.8rem;
}

.feature-desc-modern {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.feature-benefits-modern {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.benefit-item-modern {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 600;
  background: rgba(40, 167, 69, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.benefit-item-modern i {
  font-size: 0.75rem;
}

/* Achievements Section */
.achievements-section-modern {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin: 4rem 0;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.achievements-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  z-index: 1;
}

.achievements-container-modern {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Achievements Header */
.achievements-header-modern {
  text-align: center;
  margin-bottom: 4rem;
}

.header-decoration-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.decoration-line-modern {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.decoration-icon-modern {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

.achievements-title-modern {
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.achievements-subtitle-modern {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Main Stats Showcase */
.main-stats-showcase-modern {
  margin-bottom: 4rem;
}

.showcase-card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.showcase-background-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-elements-modern {
  position: absolute;
  width: 100%;
  height: 100%;
}

.float-element-1,
.float-element-2,
.float-element-3 {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  animation: floatShowcase 15s infinite ease-in-out;
}

.float-element-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.float-element-2 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 15%;
  animation-delay: -5s;
}

.float-element-3 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes floatShowcase {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

.showcase-content-modern {
  position: relative;
  z-index: 2;
}

.showcase-icon-modern {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto 2rem auto;
  box-shadow: 0 15px 30px rgba(40, 167, 69, 0.4);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.showcase-number-modern {
  font-size: 4rem;
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-label-modern {
  font-size: 1.8rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 1rem;
}

.showcase-desc-modern {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-highlight-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Supporting Stats Grid */
.supporting-stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.support-stat-card-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.support-stat-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: transform 0.3s ease;
  transform: scaleX(0);
}

.support-stat-card-modern.teachers-card::before {
  background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.support-stat-card-modern.verses-card::before {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.support-stat-card-modern.success-card::before {
  background: linear-gradient(90deg, #e83e8c, #dc3545);
}

.support-stat-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.support-stat-card-modern:hover::before {
  transform: scaleX(1);
}

.support-stat-icon-modern {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.teachers-card .support-stat-icon-modern {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.verses-card .support-stat-icon-modern {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.success-card .support-stat-icon-modern {
  background: linear-gradient(135deg, #e83e8c, #dc3545);
}

.support-stat-card-modern:hover .support-stat-icon-modern {
  transform: scale(1.1) rotate(5deg);
}

.support-stat-content-modern {
  text-align: left;
}

.support-stat-number-modern {
  font-size: 2.5rem;
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.support-stat-label-modern {
  font-size: 1.2rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 1rem;
}

.support-stat-features-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-tag-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 600;
  background: rgba(40, 167, 69, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  width: fit-content;
}

.feature-tag-modern i {
  font-size: 0.75rem;
}

/* Achievement Highlights */
.achievement-highlights-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.highlight-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.highlight-item-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.highlight-icon-modern {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.highlight-content-modern h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.3rem 0;
}

.highlight-content-modern p {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* Achievements CTA */
.achievements-cta-modern {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-content-modern h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.cta-content-modern p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-achievement-modern {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  justify-content: center;
}

.btn-primary-achievement {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-secondary-achievement {
  background: rgba(255, 255, 255, 0.8);
  color: #2c3e50;
  border: 2px solid rgba(40, 167, 69, 0.3);
  backdrop-filter: blur(10px);
}

.btn-achievement-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Footer CTA */
.footer-cta-modern {
  padding: 6rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  margin: 4rem 0 2rem 0;
}

.footer-cta-content-modern {
  max-width: 600px;
  margin: 0 auto;
}

.footer-cta-title-modern {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-cta-subtitle-modern {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.footer-cta-buttons-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-footer-modern {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 180px;
  justify-content: center;
}

.btn-footer-modern.btn-primary-modern {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-footer-modern.btn-outline-modern {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-footer-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .landing-container-modern {
    padding: 0 1.5rem;
    padding-top: 1.5rem;
  }
  
  .achievements-container-modern {
    padding: 0 1.5rem;
  }
  
  .achievements-title-modern {
    font-size: 2.2rem;
  }
  
  .achievements-subtitle-modern {
    font-size: 1rem;
  }
  
  .showcase-card-modern {
    padding: 2rem 1.5rem;
  }
  
  .showcase-number-modern {
    font-size: 3rem;
  }
  
  .showcase-label-modern {
    font-size: 1.5rem;
  }
  
  .supporting-stats-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .achievement-highlights-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cta-buttons-modern {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title-modern {
    font-size: 2.8rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1.1rem;
  }
  
  .hero-logo-img-modern {
    width: 100px;
    height: 100px;
  }
  
  .logo-glow-modern {
    width: 160px;
    height: 160px;
  }
  
  .arabic-verse-modern {
    font-size: 1.8rem;
  }
  
  .verse-card-modern {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .btn-hero-modern {
    min-width: 260px;
    padding: 1rem 1.5rem;
  }
  
  .section-title-modern {
    font-size: 2rem;
  }
  
  .section-subtitle-modern {
    font-size: 1rem;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card-modern {
    padding: 1.5rem;
  }
  
  .stats-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-cta-title-modern {
    font-size: 1.8rem;
  }
  
  .footer-cta-buttons-modern {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .landing-container-modern {
    padding: 0 1rem;
    padding-top: 1rem;
  }
  
  .achievements-container-modern {
    padding: 0 1rem;
  }
  
  .achievements-title-modern {
    font-size: 1.8rem;
  }
  
  .achievements-subtitle-modern {
    font-size: 0.95rem;
  }
  
  .showcase-card-modern {
    padding: 1.5rem 1rem;
  }
  
  .showcase-icon-modern {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .showcase-number-modern {
    font-size: 2.5rem;
  }
  
  .showcase-label-modern {
    font-size: 1.3rem;
  }
  
  .support-stat-card-modern {
    padding: 1.5rem;
  }
  
  .support-stat-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .achievements-cta-modern {
    padding: 2rem 1.5rem;
  }
  
  .cta-content-modern h3 {
    font-size: 1.5rem;
  }
  
  .btn-achievement-modern {
    min-width: 160px;
    padding: 0.9rem 1.5rem;
  }
  
  .hero-title-modern {
    font-size: 2.2rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1rem;
  }
  
  .hero-logo-img-modern {
    width: 80px;
    height: 80px;
  }
  
  .logo-glow-modern {
    width: 140px;
    height: 140px;
  }
  
  .arabic-verse-modern {
    font-size: 1.5rem;
  }
  
  .verse-card-modern {
    padding: 1.2rem;
    margin: 1.5rem 0;
  }
  
  .btn-hero-modern {
    min-width: 240px;
    padding: 0.9rem 1.2rem;
  }
  
  .btn-text-modern {
    font-size: 1rem;
  }
  
  .section-title-modern {
    font-size: 1.6rem;
  }
  
  .section-subtitle-modern {
    font-size: 0.95rem;
  }
  
  .features-grid-modern {
    gap: 1.2rem;
  }
  
  .feature-card-modern {
    padding: 1.2rem;
  }
  
  .feature-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .stats-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .stat-card-modern {
    padding: 1.5rem;
  }
  
  .footer-cta-title-modern {
    font-size: 1.5rem;
  }
  
  .footer-cta-subtitle-modern {
    font-size: 1rem;
  }
  
  .btn-footer-modern {
    min-width: 160px;
    padding: 0.9rem 1.5rem;
  }
}

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

.btn-store {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  width: 100%;
}

.btn-store:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}



/* Responsive Design for Profile Tab */
@media (max-width: 768px) {
  .profile-main-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .avatar-display-modern {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .user-welcome h4 {
    font-size: 1.5rem;
  }
  
  .coin-display {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .coin-amount {
    font-size: 1.8rem;
  }
  
  .achievements-summary,
  .rewards-summary {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .achievements-content,
  .rewards-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .profile-main-section {
    padding: 1.2rem;
  }
  
  .achievements-content,
  .rewards-content {
    padding: 1.2rem;
  }
  
  .coin-balance-modern {
    gap: 1rem;
  }
  
  .achievements-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .owned-items-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}
