/**
 * RAMDAN - Global Styles & Design System
 * Complete CSS with variables, animations, and responsive design
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* CSS Variables - Design System */
:root {
  --bg-primary: #071a12;
  --bg-secondary: #0d2b1a;
  --bg-card: rgba(16, 46, 30, 0.85);
  --text-primary: #f0f0f0;
  --text-muted: #a8c5b5;
  --gold: #d4a843;
  --gold-light: #f0c96b;
  --gold-glow: rgba(212, 168, 67, 0.3);
  --iftar-color: #e8a020;
  --sahri-color: #b8d4f0;
  --card-border: rgba(212, 168, 67, 0.2);
  --blur: blur(12px);
  --radius: 16px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Safe Area Insets */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  line-height: 1.3;
}

.arabic {
  font-family: 'Amiri', serif;
  font-weight: 400;
}

.rajdhani {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.poppins {
  font-family: 'Poppins', sans-serif;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ==================== SPLASH SCREEN ==================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  z-index: 2;
}

.splash-moon {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.splash-moon svg {
  width: 100%;
  height: 100%;
}

.crescent-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: crescentDraw 2s ease-out forwards;
}

@keyframes crescentDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.splash-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

.splash-subtitle {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-page.visible {
  display: flex;
}

.mosque-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 30vh;
  opacity: 0.15;
  z-index: 0;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.bismillah {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.login-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.name-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

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

.name-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.submit-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);
  animation: shimmer 2s infinite;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

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

@keyframes shimmer {
  to {
    left: 100%;
  }
}

/* ==================== MAIN APP ==================== */
.app-container {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

.app-container.visible {
  display: flex;
}

/* Header — Compact 2-row */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(7, 26, 18, 0.97) 100%);
  padding: 0.6rem 1rem 0.5rem;
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  border-bottom: 1px solid var(--card-border);
}

/* Row 1: Arabic + lang */
.header-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.header-row-1 .arabic-small {
  font-family: 'Amiri', serif;
  font-size: 0.82rem;
  color: var(--gold);
}

.lang-bar-inline {
  display: flex;
  gap: 4px;
}

.lang-btn-sm {
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.lang-btn-sm.active {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* Row 2: Name + Location/Time + Hijri */
.header-row-2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.header-left .welcome-text {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-left .user-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-location {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hijri-date-value {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.offline-indicator {
  font-size: 0.65rem;
  color: #ff6b6b;
  display: none;
  text-align: center;
  margin-top: 2px;
}

.offline-indicator.visible {
  display: block;
}

/* Tab Content */
.tab-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.5rem 100px;
}

.tab-pane {
  display: none;
  animation: fadeInUp 0.4s ease-out;
}

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

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  min-width: 64px;
  min-height: 48px;
}

.nav-icon {
  font-size: 1.4rem;
  transition: var(--transition);
}

.nav-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item.active .nav-icon,
.nav-item.active .nav-label {
  color: var(--gold);
}

.nav-indicator {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 2px;
  opacity: 0;
  transition: var(--transition);
}

.nav-item.active .nav-indicator {
  opacity: 1;
}

/* ==================== HOME TAB ==================== */
.progress-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.progress-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-pill);
  animation: shimmerProgress 2s infinite linear;
  transition: width 0.5s ease-out;
}

@keyframes shimmerProgress {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.progress-remaining {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.progress-remaining .highlight {
  color: var(--gold);
  font-weight: 600;
}

.eid-countdown-pulse {
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.5rem;
  animation: pulse 1.5s infinite;
}

/* Countdown Section */
.countdown-section {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-section.iftar-mode {
  background: radial-gradient(ellipse at center, rgba(232, 160, 32, 0.15) 0%, var(--bg-card) 70%);
}

.countdown-section.sahri-mode {
  background: radial-gradient(ellipse at center, rgba(184, 212, 240, 0.15) 0%, var(--bg-card) 70%);
}

.countdown-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulseGlow 2s infinite;
}

.iftar-mode .countdown-glow {
  background: var(--iftar-color);
}

.sahri-mode .countdown-glow {
  background: var(--sahri-color);
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
}

.countdown-label {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.countdown-label.iftar {
  color: var(--iftar-color);
}

.countdown-label.sahri {
  color: var(--sahri-color);
}

.countdown-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.countdown-digit-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 0.8rem;
  min-width: 70px;
  animation: pulse 2s infinite;
}

.countdown-separator {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

.countdown-digit {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1;
}

.countdown-label-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-time-info {
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.countdown-time-info .time {
  color: var(--gold);
  font-weight: 600;
}

/* Timing Cards */
.timing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timing-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.timing-card.sahri {
  border-color: rgba(184, 212, 240, 0.3);
  background: linear-gradient(135deg, rgba(184, 212, 240, 0.1) 0%, var(--bg-card) 100%);
}

.timing-card.iftar {
  border-color: rgba(232, 160, 32, 0.3);
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.1) 0%, var(--bg-card) 100%);
}

.timing-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.timing-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timing-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.timing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Schedule Table */
.schedule-section {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.schedule-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
}

.schedule-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}

.schedule-table td {
  padding: 0.8rem 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-table .day-num {
  font-weight: 600;
  color: var(--gold);
}

.schedule-table .date-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.schedule-table tr.past {
  opacity: 0.5;
}

.schedule-table tr.today {
  background: rgba(212, 168, 67, 0.1);
  border-left: 3px solid var(--gold);
}

.schedule-table tr.today .day-num {
  color: var(--gold-light);
}

.today-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.eid-footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--gold);
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  border-top: 1px solid var(--card-border);
}

/* Pre-Ramadan & Post-Eid States */
.pre-ramadan-message,
.post-eid-message {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.pre-ramadan-message h2,
.post-eid-message h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ==================== INFO TAB ==================== */
.info-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.5rem;
}

.info-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.info-divider svg {
  width: 200px;
  height: 40px;
}

.accordion-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: rgba(212, 168, 67, 0.05);
}

.accordion-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: var(--transition);
}

.accordion-card.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-card.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hadith-card {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.1) 0%, rgba(16, 46, 30, 0.9) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
}

.hadith-card::before,
.hadith-card::after {
  content: '"';
  font-family: 'Amiri', serif;
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  opacity: 0.3;
}

.hadith-card::before {
  top: 0;
  left: 1rem;
}

.hadith-card::after {
  bottom: -1rem;
  right: 1rem;
}

.hadith-text {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.hadith-source {
  font-size: 0.9rem;
  color: var(--gold);
  text-align: right;
}

.info-footer {
  text-align: center;
  margin-top: 2rem;
  opacity: 0.5;
}

.info-footer svg {
  width: 80px;
  height: auto;
}

/* ==================== PROFILE TAB ==================== */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar svg {
  width: 60px;
  height: 60px;
}

.profile-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.profile-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.settings-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.settings-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-value button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem;
  transition: var(--transition);
}

.settings-value button:hover {
  transform: scale(1.1);
}

.name-edit-input {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--text-primary);
  width: 150px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(24px);
  background: var(--bg-primary);
}

.settings-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-info p {
  margin-bottom: 0.3rem;
}

.profile-footer {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(212, 168, 67, 0.7);
  padding: 20px 16px 32px;
  letter-spacing: 0.03em;
}

.profile-footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4a843, transparent);
  margin: 0 auto 16px;
}

/* ==================== EID SCREEN ==================== */
.eid-screen {
  display: none;
  min-height: 100vh;
  background: radial-gradient(ellipse at center top, #2a1f0a 0%, var(--bg-primary) 60%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.eid-screen.visible {
  display: flex;
}

.eid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.eid-content {
  position: relative;
  z-index: 1;
}

.eid-moon {
  width: 150px;
  height: 150px;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.eid-arabic {
  font-family: 'Amiri', serif;
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--gold-glow);
}

.eid-english {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.eid-message {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.eid-progress {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.eid-progress-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.eid-mosque {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 20vh;
  opacity: 0.3;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes countdownTick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
  .login-card {
    padding: 3rem;
  }

  .countdown-digit {
    font-size: 4rem;
  }

  .countdown-digit-box {
    min-width: 90px;
    padding: 1.2rem 1rem;
  }

  .timing-cards {
    gap: 1.5rem;
  }

  .timing-time {
    font-size: 2.5rem;
  }
}

@media (max-width: 380px) {
  .splash-title {
    font-size: 2rem;
    letter-spacing: 0.2em;
  }

  .countdown-digit {
    font-size: 2.5rem;
  }

  .countdown-digit-box {
    min-width: 55px;
    padding: 0.8rem 0.5rem;
  }

  .timing-cards {
    grid-template-columns: 1fr;
  }
}

/* ==================== LANGUAGE SWITCHER ==================== */
.language-bar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  padding: 0.5rem;
  padding-top: calc(0.5rem + env(safe-area-inset-top));
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--gold);
}

.lang-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lang-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.lang-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 301;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.lang-sheet.visible {
  transform: translateY(0);
}

.lang-sheet-header {
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.1rem;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lang-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.lang-option:hover {
  background: rgba(212, 168, 67, 0.1);
  border-color: var(--gold);
}

.lang-option.active {
  background: rgba(212, 168, 67, 0.15);
  border-color: var(--gold);
}

.lang-name {
  font-size: 1rem;
  color: var(--text-primary);
}

.lang-check {
  color: var(--gold);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==================== SUHUR COUNTDOWN SECTION ==================== */
.countdown-section.suhur-mode {
  background: radial-gradient(ellipse at center, rgba(184, 212, 240, 0.15) 0%, var(--bg-card) 70%);
}

.countdown-section.suhur-mode .countdown-glow.suhur-glow {
  background: var(--sahri-color);
}

.countdown-section.suhur-mode .countdown-label.suhur {
  color: var(--sahri-color);
}

/* ==================== DUA CARDS ==================== */
.dua-card {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.dua-decor {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 0.5rem;
}

.dua-decor svg {
  width: 30px;
  height: 15px;
}

.dua-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.dua-row {
  margin-bottom: 1rem;
}

.dua-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: rgba(212, 168, 67, 0.2);
  color: var(--gold-light);
}

.dua-label-gold {
  background: var(--gold);
  color: var(--bg-primary);
}

.dua-label-muted {
  background: rgba(168, 197, 181, 0.2);
  color: var(--text-muted);
}

.dua-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--gold);
  text-align: center;
  direction: rtl;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius);
  line-height: 1.8;
}

.dua-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
  padding: 0.5rem 0;
}

.dua-italic {
  font-style: italic;
  color: var(--text-muted);
}

.copy-dua-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-dua-btn:hover {
  background: rgba(212, 168, 67, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

/* ── Language Bar ── */
.lang-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 168, 67, 0.08);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.lang-btn {
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  min-height: 34px;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg-primary);
  font-weight: 700;
  border-color: var(--gold);
}

/* ── Bottom Nav - 4 tabs ── */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: 8px 4px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 12px;
  min-width: 64px;
}

.nav-btn.active {
  color: var(--gold);
}

.nav-icon {
  font-size: 1.3rem;
}

.nav-label {
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
}

.nav-btn.active .nav-label {
  font-weight: 600;
}

/* ── Tab Panel ── */
.tab-panel {
  padding-bottom: 80px;
}

.tab-content-inner {
  padding: 16px;
}

/* ── Hijri date in header ── */
.hijri-date-row {
  margin-top: 2px;
  margin-bottom: 4px;
}

.hijri-date-value {
  font-size: 0.8rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  opacity: 0.85;
}

/* ── Hijri card in prayer tab ── */
.hijri-card {
  text-align: center;
  padding: 14px;
}

.hijri-card-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hijri-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Poppins', sans-serif;
}

.hijri-value {
  font-size: 1.1rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

/* ── Next prayer banner ── */
.next-prayer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.35);
}

.next-prayer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.next-prayer-name {
  font-size: 1rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.next-prayer-time {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

/* ── Prayer times card ── */
.prayer-times-card {
  padding: 16px;
}

.prayer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prayer-card-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin: 0;
}

.city-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
}

/* ── Prayer rows ── */
.prayer-row {
  display: flex;
  align-items: center;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: var(--transition);
  gap: 10px;
}

.prayer-row:last-of-type {
  border-bottom: none;
}

.prayer-icon {
  width: 26px;
  font-size: 1rem;
  flex-shrink: 0;
}

.prayer-name {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.prayer-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Maghrib row (Iftar) ── */
.maghrib-row {
  background: rgba(212, 168, 67, 0.07);
  border: 1px solid rgba(212, 168, 67, 0.2) !important;
  margin: 3px 0;
}

.maghrib-row .prayer-name,
.maghrib-row .prayer-time {
  color: var(--gold);
  font-weight: 700;
}

/* ── Next prayer row ── */
.next-prayer-row {
  background: rgba(46, 204, 113, 0.07);
  border: 1px solid rgba(46, 204, 113, 0.2) !important;
  margin: 3px 0;
}

.next-badge {
  font-size: 0.65rem;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Note and cache ── */
.prayer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 16px 16px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

.cache-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  padding: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Poppins', sans-serif;
}

/* ── Loading state ── */
.prayer-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(212, 168, 67, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

/* ── No data state ── */
.prayer-no-data {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   SPLASH ADDITIONS
═══════════════════════════════════════ */
.splash-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  margin: 0;
}

.splash-loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.splash-loading-dots span {
  width: 6px;
  height: 6px;
  background: #d4a843;
  border-radius: 50%;
  animation: dotPulse 1.2s ease-in-out infinite;
}

.splash-loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.splash-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ═══════════════════════════════════════════════════
   TASBEEH COUNTER — Complete Styles
═══════════════════════════════════════════════════ */

/* ── Home Launch Card ── */
.tasbeeh-launch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(212, 168, 67, 0.04));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.tasbeeh-launch-card:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.08));
}

.tasbeeh-launch-icon {
  font-size: 2rem;
}

.tasbeeh-launch-text {
  flex: 1;
}

.tasbeeh-launch-text h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: #d4a843;
  letter-spacing: 0.05em;
}

.tasbeeh-launch-text p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.tasbeeh-launch-arrow {
  font-size: 1.5rem;
  color: #d4a843;
  opacity: 0.6;
}

/* ── Welcome Screen ── */
.tasbeeh-welcome {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 80vh;
}

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

.tasbeeh-beads-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.tasbeeh-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: #d4a843;
  margin: 0 0 8px;
  letter-spacing: 0.1em;
}

.tasbeeh-hadith {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  max-width: 280px;
  line-height: 1.5;
  margin: 0;
}

.tasbeeh-hadith-ref {
  font-size: 0.72rem;
  color: rgba(212, 168, 67, 0.6);
  margin: 4px 0 0;
}

/* Stats Row */
.tasbeeh-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 24px;
  width: 100%;
  max-width: 280px;
}

.tasbeeh-stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tasbeeh-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #d4a843;
  line-height: 1;
}

.tasbeeh-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tasbeeh-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 16px;
}

/* Sequence Preview */
.tasbeeh-sequence-preview {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tasbeeh-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-arabic {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.preview-count {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: rgba(212, 168, 67, 0.7);
}

/* Start Button */
.tasbeeh-start-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #d4a843, #b8922e);
  border: none;
  border-radius: 50px;
  padding: 18px 48px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.tasbeeh-start-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.2);
}

.start-btn-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.start-btn-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #071a12;
  letter-spacing: 0.05em;
}

/* ── Bismillah Screen ── */
.tasbeeh-bismillah-screen {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bismillah-content {
  text-align: center;
  position: relative;
}

.bismillah-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.bismillah-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: #f0c96b;
  line-height: 1.6;
  direction: rtl;
  margin: 0 0 12px;
  text-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
}

.bismillah-translation {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin: 0 0 24px;
}

.bismillah-guide {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 32px;
}

.bismillah-btn {
  background: linear-gradient(135deg, #d4a843, #b8922e);
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #071a12;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bismillah-btn:active {
  transform: scale(0.97);
}

/* ── Counting Screen ── */
.tasbeeh-counting {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(180deg, #071a12 0%, #030e08 100%);
}

.tasbeeh-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 16px 8px;
}

.tasbeeh-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.dhikr-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dhikr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.dhikr-dot.active {
  width: 28px;
  border-radius: 5px;
}

.dhikr-dot.done {
  background: rgba(46, 204, 113, 0.5);
}

.dhikr-text-card {
  text-align: center;
  padding: 20px 24px 10px;
  width: 100%;
}

.dhikr-arabic-main {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: #fff;
  direction: rtl;
  line-height: 1.7;
  text-shadow: 0 0 30px var(--dhikr-color, rgba(212, 168, 67, 0.5));
  margin-bottom: 8px;
}

.dhikr-transliteration {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dhikr-meaning {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* Circular Ring */
.tasbeeh-ring-container {
  width: min(75vw, 280px);
  height: min(75vw, 280px);
  position: relative;
  margin: 8px 0;
}

.tasbeeh-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.progress-ring-arc {
  transition: stroke-dashoffset 0.25s ease;
  filter: drop-shadow(0 0 8px var(--dhikr-color, #d4a843));
}

.ring-count-text {
  font-weight: 700;
}

/* Tap Button */
.tasbeeh-tap-btn {
  width: min(55vw, 180px);
  height: min(55vw, 180px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--dhikr-color, rgba(212, 168, 67, 0.3));
  margin: 16px 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.tasbeeh-tap-btn:active,
.tasbeeh-tap-btn.tapped {
  transform: scale(0.93);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--dhikr-color, rgba(212, 168, 67, 0.2));
}

.tap-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.tap-count-word {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.tasbeeh-count-msg {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #2ecc71;
  text-align: center;
  height: 24px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.tasbeeh-count-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Complete Screen ── */
.tasbeeh-complete {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 20px;
  position: relative;
  text-align: center;
}

.complete-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.complete-check {
  width: 100px;
  height: 100px;
}

.check-circle-anim {
  stroke-dasharray: 239;
  stroke-dashoffset: 239;
  animation: drawCircle 0.6s ease forwards 0.1s;
}

.check-mark-anim {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.4s ease forwards 0.6s;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.complete-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #d4a843;
  margin: 0;
  text-shadow: 0 0 30px rgba(212, 168, 67, 0.4);
}

.complete-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.complete-stats-card {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.complete-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cstat-icon {
  font-size: 1.2rem;
}

.cstat-label {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.cstat-value {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4a843;
}

.complete-quote {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  max-width: 280px;
  line-height: 1.6;
  margin: 0;
}

.complete-quote-ref {
  font-size: 0.72rem;
  color: rgba(212, 168, 67, 0.5);
  margin: -14px 0 0;
}

.tasbeeh-new-btn {
  width: 100%;
  max-width: 300px;
  padding: 16px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #d4a843, #b8922e);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #071a12;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.25);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tasbeeh-new-btn:active {
  transform: scale(0.97);
}

.tasbeeh-home-btn {
  width: 100%;
  max-width: 300px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tasbeeh-home-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== COMPACT COUNTDOWN ==================== */
.countdown-display.compact {
  gap: 0.35rem;
}

.countdown-display.compact .countdown-digit-box {
  padding: 0.6rem 0.5rem;
  min-width: 54px;
}

.countdown-display.compact .countdown-digit {
  font-size: 2.2rem;
}

.countdown-display.compact .countdown-separator {
  font-size: 1.8rem;
}

.countdown-section .countdown-label {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* Suhur mode */
.countdown-section.suhur-mode {
  background: radial-gradient(ellipse at center, rgba(184, 212, 240, 0.12) 0%, var(--bg-card) 70%);
}

.suhur-glow {
  background: var(--sahri-color);
}

/* ==================== FASTING MOTIVATION CARD ==================== */
.fasting-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, var(--bg-card) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.4s ease-out;
}

.fasting-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fasting-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.fasting-card-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}

/* ==================== DUA CARDS (Collapsible) ==================== */
.dua-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.dua-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.dua-card-header:hover {
  background: rgba(212, 168, 67, 0.05);
}

.dua-card-chevron {
  font-size: 0.9rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.dua-card.expanded .dua-card-chevron {
  transform: rotate(180deg);
}

.dua-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 1.2rem;
}

.dua-card.expanded .dua-body {
  max-height: 600px;
  padding: 0 1.2rem 1.2rem;
}

.dua-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
}

.dua-decor {
  text-align: center;
  margin-bottom: 0.5rem;
}

.dua-decor svg {
  width: 30px;
  height: 15px;
}

.dua-row {
  margin-bottom: 0.8rem;
}

.dua-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: block;
}

.dua-label-gold {
  color: var(--gold);
}

.dua-label-muted {
  opacity: 0.6;
}

.dua-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 2;
  text-align: right;
  direction: rtl;
}

.dua-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dua-italic {
  font-style: italic;
}

.copy-dua-btn {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.copy-dua-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==================== SHORTCUT CARDS STACK ==================== */
.shortcut-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.shortcut-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.shortcut-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.shortcut-card:active {
  transform: scale(0.98);
}

.shortcut-card.tasbeeh-shortcut {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, var(--bg-card) 100%);
}

.shortcut-card.quran-shortcut {
  background: linear-gradient(135deg, rgba(184, 212, 240, 0.06) 0%, var(--bg-card) 100%);
}

.shortcut-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.shortcut-text {
  flex: 1;
  min-width: 0;
}

.shortcut-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.shortcut-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ==================== NAV BUTTON STYLES ==================== */
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  background: transparent;
  border: none;
  min-width: 52px;
  min-height: 48px;
  position: relative;
}

.nav-btn .nav-icon {
  font-size: 1.3rem;
  transition: var(--transition);
}

.nav-btn .nav-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.nav-btn.active {
  color: var(--gold);
}

.nav-btn.active .nav-label {
  color: var(--gold);
  font-weight: 600;
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ==================== ABOUT SECTION IN PROFILE ==================== */
.about-section-card {
  margin-top: 0.5rem;
}

/* ==================== AL-QUR'AN READER ==================== */
.quran-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.quran-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
}

.quran-header-actions {
  display: flex;
  gap: 0.5rem;
}

.quran-icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.quran-icon-btn:hover {
  border-color: var(--gold);
}

/* Surah List */
.surah-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.surah-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.surah-item:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}

.surah-item:active {
  transform: scale(0.98);
}

.surah-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  flex-shrink: 0;
}

.surah-names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.surah-arabic-name {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.surah-english-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surah-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.surah-ayah-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.surah-revelation {
  font-size: 0.6rem;
  color: var(--gold);
  text-transform: capitalize;
  opacity: 0.7;
}

/* Back Bar */
.quran-back-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--card-border);
}

.quran-back-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  flex-shrink: 0;
}

.quran-surah-info-header {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.qsh-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: block;
}

.qsh-english {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.quran-audio-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.quran-audio-btn.playing {
  background: rgba(212, 168, 67, 0.15);
  border-color: var(--gold);
}

/* Bismillah */
.quran-bismillah {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

/* Ayah Cards */
.ayah-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ayah-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.ayah-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.ayah-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.ayah-bookmark-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.2rem;
}

.ayah-bookmark-btn.bookmarked {
  color: var(--gold);
}

.ayah-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  line-height: 2.2;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ayah-translation {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Search */
.quran-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quran-search-input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.quran-search-input::placeholder {
  color: var(--text-muted);
}

.quran-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.quran-search-go {
  padding: 0.7rem 1rem;
  background: var(--gold);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--bg-primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.quran-search-go:hover {
  background: var(--gold-light);
}

.quran-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.85rem;
}

/* Search Result Cards */
.search-results-list,
.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-card,
.bookmark-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-card:hover,
.bookmark-card:hover {
  border-color: var(--gold);
}

.search-result-ref,
.bookmark-ref {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.search-result-arabic,
.bookmark-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.search-result-translation,
.bookmark-translation {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Loader */
.quran-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quran-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--card-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.8rem;
}

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

/* ==================== RTL SUPPORT ==================== */
[dir="rtl"] .header-row-2 {
  direction: rtl;
}

[dir="rtl"] .shortcut-card:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .surah-item:hover {
  transform: translateX(-3px);
}

[dir="rtl"] .shortcut-arrow {
  transform: scaleX(-1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 360px) {
  .header-row-2 {
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .header-center {
    flex-direction: row;
    gap: 0.4rem;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .countdown-display.compact .countdown-digit-box {
    min-width: 48px;
    padding: 0.5rem 0.3rem;
  }

  .countdown-display.compact .countdown-digit {
    font-size: 1.8rem;
  }
}
/* Translation language selector in Quran header */
.quran-lang-select {
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 12px;
  padding: 5px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  max-width: 120px;
}

.quran-lang-select:focus {
  border-color: rgba(212,168,67,0.5);
}

.quran-lang-select option {
  background: #071a12;
  color: #fff;
}

/* Translation language badge inside reader */
.quran-trans-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: rgba(212,168,67,0.05);
  border-bottom: 1px solid rgba(212,168,67,0.08);
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
}

.quran-change-lang-btn {
  background: transparent;
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 10px;
  padding: 2px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  color: rgba(212,168,67,0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Error state */
.quran-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.quran-retry-btn {
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid rgba(212,168,67,0.3);
  background: rgba(212,168,67,0.1);
  color: #d4a843;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
