/* 
  Ezan Vakti - Tasarım Sistemi & CSS Kuralları
  Aesthetic: Premium Glassmorphism, Dynamic Gradients, Tactile Micro-Animations
*/

:root {
  /* Fonts */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette (Base: Space Night) */
  --bg-primary: #07080d;
  --bg-secondary: #0d0e16;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Accent Colors */
  --accent-gold: #ffd000;
  --accent-orange: #ff7b00;
  --accent-cyan: #00f0ff;
  --accent-green: #00e676;
  --accent-red: #ff3d00;
  
  /* Glassmorphism Settings */
  --glass-bg: rgba(18, 20, 32, 0.6);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-glow: rgba(255, 255, 255, 0.02);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
  Time of Day Themes (Dinamik Gradient Geçişleri) 
*/
body[data-theme="dawn"] {
  --bg-primary: #0c0d1b;
  --glass-bg: rgba(20, 18, 38, 0.65);
  --glass-border: rgba(235, 172, 237, 0.12);
  --accent-gold: #ffb74d;
}
body[data-theme="day"] {
  --bg-primary: #0a1128;
  --glass-bg: rgba(13, 23, 50, 0.6);
  --glass-border: rgba(144, 202, 249, 0.12);
  --accent-gold: #ffd000;
}
body[data-theme="dusk"] {
  --bg-primary: #150913;
  --glass-bg: rgba(30, 15, 29, 0.65);
  --glass-border: rgba(240, 98, 146, 0.12);
  --accent-gold: #ffb74d;
}
body[data-theme="night"] {
  --bg-primary: #06070c;
  --glass-bg: rgba(11, 12, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --accent-gold: #ffd000;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  justify-content: center;
  transition: background-color var(--transition-slow);
}

/* Dynamic Gradient Background Glows */
.bg-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  transition: all var(--transition-slow);
}

/* Default Space Night Orbs */
.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3f51b5 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #e91e63 0%, transparent 70%);
  top: 40%;
  left: 30%;
  opacity: 0.08;
}

/* Theme specific orb adjustments */
body[data-theme="dawn"] .orb-1 { background: radial-gradient(circle, #e040fb 0%, transparent 70%); }
body[data-theme="dawn"] .orb-2 { background: radial-gradient(circle, #ff5722 0%, transparent 70%); }

body[data-theme="day"] .orb-1 { background: radial-gradient(circle, #2196f3 0%, transparent 70%); opacity: 0.2; }
body[data-theme="day"] .orb-2 { background: radial-gradient(circle, #4caf50 0%, transparent 70%); opacity: 0.1; }

body[data-theme="dusk"] .orb-1 { background: radial-gradient(circle, #ff3d00 0%, transparent 70%); }
body[data-theme="dusk"] .orb-2 { background: radial-gradient(circle, #9c27b0 0%, transparent 70%); }

/* App Layout Container */
.app-container {
  width: 100%;
  max-width: 540px;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(92px + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow: hidden;
}

.app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 14px 6px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-icon {
  filter: drop-shadow(0 0 8px rgba(255, 208, 0, 0.4));
  animation: logo-float 4s ease-in-out infinite;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 60%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 12px 30px var(--glass-shadow);
  padding: 24px;
  margin-bottom: 20px;
  transition: border var(--transition-normal), background-color var(--transition-normal);
}

/* Buttons */
.btn-icon-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-label:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.2);
  color: var(--accent-gold);
  padding: 8px 14px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  max-width: 170px;
  white-space: nowrap;
}

.location-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-badge:hover {
  background: rgba(255, 208, 0, 0.18);
  border-color: rgba(255, 208, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 208, 0, 0.15);
}

/* Sections management */
.app-section {
  display: none;
  animation: fade-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-section.active {
  display: block;
}

#sec-vakitler.active {
  display: flex;
  flex-direction: column;
  height: min(80vh, 100%);
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 6px;
}

#sec-vakitler.active::-webkit-scrollbar {
  display: none;
}

/* 
  Countdown Card 
*/
.countdown-card {
  padding: 24px;
}

.countdown-layout {
  display: flex;
  align-items: center;
  gap: 28px;
}

.countdown-circular {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring-bar {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(255, 123, 0, 0.5));
}

.countdown-timer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

#countdownTime {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-next-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  text-align: center;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.countdown-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hijri-date {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: -0.2px;
}

.miladi-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

.quran-quote {
  font-size: 12.5px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  padding-left: 10px;
  border-left: 2px solid var(--accent-gold);
}

/* 
  Prayer Grid Cards 
*/
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: calc(100% - 2px);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.prayer-card {
  margin-bottom: 0;
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  min-width: 0;
}

.prayer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.prayer-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.prayer-icon-wrapper {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.prayer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.prayer-time-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-top: 10px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-fast);
}

.prayer-bell-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2;
}

.prayer-bell-toggle:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.prayer-bell-toggle.muted {
  color: var(--accent-red);
}

.prayer-bell-toggle.muted svg {
  animation: shake 0.5s ease-in-out;
}

/* Active Card Styling */
.prayer-card.active {
  background: rgba(255, 208, 0, 0.08);
  border-color: rgba(255, 208, 0, 0.5);
  box-shadow: 0 0 25px rgba(255, 208, 0, 0.12), inset 0 0 10px rgba(255, 208, 0, 0.05);
  transform: scale(1.02);
}

.prayer-card.active .prayer-icon-wrapper {
  color: var(--accent-gold);
  filter: drop-shadow(0 0 4px rgba(255, 208, 0, 0.6));
}

.prayer-card.active .prayer-name {
  color: var(--accent-gold);
}

.prayer-card.active .prayer-time-val {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.prayer-card.active .prayer-bell-toggle {
  color: var(--text-secondary);
}

/* 
  Kıble Pusulası (Compass) 
*/
.compass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sabit bölüm yüksekliği: içerik uzunsa yalnızca kart içinde dikey kaydırma olur. */
.settings-card,
.zikirmatic-card,
.compass-card {
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.compass-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.compass-plate {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 18, 30, 0.8) 0%, rgba(8, 9, 15, 0.95) 100%);
  border: 4px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: transform 0.1s ease-out; /* Smooth gyro updates */
}

.compass-dial {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.direction-marker {
  position: absolute;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-secondary);
  width: 20px;
  text-align: center;
}

.marker-n { top: 12px; left: 50%; transform: translateX(-50%); color: var(--accent-red); }
.marker-e { right: 12px; top: 50%; transform: translateY(-50%); }
.marker-s { bottom: 12px; left: 50%; transform: translateX(-50%); }
.marker-w { left: 12px; top: 50%; transform: translateY(-50%); }

.compass-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.qibla-needle {
  position: absolute;
  width: 16px;
  height: 190px;
  z-index: 3;
  transform-origin: 50% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.needle-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 30px solid var(--accent-gold);
  filter: drop-shadow(0 0 5px rgba(255, 208, 0, 0.7));
}

.kaaba-icon {
  transform: translateY(-24px);
  filter: drop-shadow(0 0 6px rgba(255, 208, 0, 0.8));
}

.compass-glow-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 1;
  transition: all var(--transition-normal);
}

/* Glow ring state when aligned to Qibla */
.compass-wrapper.aligned .compass-glow-ring {
  border-color: var(--accent-green);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.25), inset 0 0 15px rgba(0, 230, 118, 0.1);
  animation: compass-pulse 2s infinite;
}

.compass-meta {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.08);
}

.compass-instruction {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
}

/* 
  Zikirmatik (Tasbih) 
*/
.zikirmatic-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.counter-display-panel {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.zikir-phrase-selector {
  width: 100%;
}

.counter-number-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 16px 0;
}

.counter-target-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-value {
  font-size: 64px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 50%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.counter-lap {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.counter-buttons-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 10px;
}

/* Main Tap Button (Premium 3D Neumorphic Glass) */
.btn-zikir-tap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, rgba(30, 32, 54, 0.8) 0%, rgba(15, 16, 28, 0.9) 100%);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 4px 10px rgba(255, 255, 255, 0.1),
    inset 0 -4px 10px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
}

.btn-zikir-tap:active {
  transform: scale(0.95);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 8px 16px rgba(0, 0, 0, 0.7),
    inset 0 -2px 6px rgba(255, 255, 255, 0.05);
}

.tap-circle-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 208, 0, 0.2);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.btn-zikir-tap:active .tap-circle-outer {
  border-color: rgba(255, 208, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.3);
}

.tap-circle-inner {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  transition: color var(--transition-fast);
}

.btn-zikir-tap:active .tap-circle-inner {
  color: var(--accent-gold);
}

/* Secondary Action Buttons */
.btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  width: 65px;
  height: 65px;
  border-radius: 18px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-secondary:active {
  transform: scale(0.92);
}

.target-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-target-selector {
  width: 40px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-target-selector.active {
  background: rgba(255, 208, 0, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.zikir-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
}

.switch-control {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch-control input {
  display: none;
}

.switch-slider {
  width: 36px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  position: relative;
  transition: background-color var(--transition-fast);
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

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

.switch-control input:checked + .switch-slider::before {
  transform: translateX(16px);
}

.switch-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 
  Ayarlar (Settings) 
*/
.settings-group {
  margin-bottom: 24px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.settings-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.settings-item {
  width: 100%;
}

.alarm-test-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alarm-test-actions button {
  flex: 1 1 0;
  min-width: 0;
}

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

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

.settings-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-select:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
}

.settings-select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.settings-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  margin-top: 8px;
}

.settings-input:focus {
  border-color: var(--accent-gold);
}

.volume-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 208, 0, 0.5);
}

#volumePercent {
  font-size: 13px;
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
  border: none;
  color: #000000;
  padding: 12px 24px;
  border-radius: 16px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 5px 15px rgba(255, 208, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 208, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-danger {
  background: rgba(255, 61, 0, 0.1);
  border: 1px solid rgba(255, 61, 0, 0.2);
  color: var(--accent-red);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger:hover {
  background: rgba(255, 61, 0, 0.18);
}

.settings-help-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

/* 
  Modals (Glassmorphic Popup) 
*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fade-in 0.25s ease-out;
}

.modal-content {
  width: 100%;
  max-width: 400px;
  margin-bottom: 0;
  border-color: rgba(255, 255, 255, 0.12);
  animation: scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.modal-divider-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  margin: 16px 0;
}

.modal-divider-text::before,
.modal-divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.modal-divider-text::before { left: 0; }
.modal-divider-text::after { right: 0; }

.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}

.input-field input:focus {
  border-color: var(--accent-gold);
}

.w-full { width: 100%; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-6 { margin-top: 24px; }
.error-text {
  color: var(--accent-red);
  font-size: 12px;
}

/* Alarm Alert Overlay specific styling */
.alarm-alert-overlay {
  z-index: 2000;
  background: rgba(7, 8, 13, 0.9);
}

.alarm-alert-box {
  max-width: 350px;
  border-color: rgba(255, 208, 0, 0.3);
  padding: 40px 30px;
}

.alarm-pulsing-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 208, 0, 0.1);
  border: 2px solid var(--accent-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px auto;
  animation: alarm-pulse 1.5s infinite;
}

.alarm-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.alarm-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Helper Class for Hiding */
.hidden {
  display: none !important;
}

/* 
  Bottom Navigation Bar (Floating Glassmorphism) 
*/
.app-nav {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 508px;
  height: 68px;
  background: rgba(13, 14, 22, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 500;
  padding: 0 10px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  cursor: pointer;
  position: relative;
  z-index: 5;
  transition: color var(--transition-fast);
}

.nav-btn svg {
  transition: transform var(--transition-normal);
}

.nav-btn span {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

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

.nav-btn.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(255, 208, 0, 0.4));
}

/* Ayar kaydı artık Firebase üzerinden yapıldığı için eski yedek/FCM ekranını
   kullanıcı arayüzünden kaldırıyoruz; eski kurulumlar etkilenmeden çalışır. */
.legacy-settings {
  display: none;
}

/* Nav Indicator Bubble */
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 56px;
  background: rgba(255, 208, 0, 0.08);
  border: 1px solid rgba(255, 208, 0, 0.15);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

/* Adjust layout on Desktop views */
@media (min-width: 768px) {
  body {
    background-color: #0d0e15;
  }
  .app-container {
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
  }
}

/* 
  Animations Keyframes 
*/
@keyframes logo-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes compass-pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.35);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
  }
}

@keyframes alarm-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(255, 208, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 208, 0, 0);
  }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
  75% { transform: rotate(10deg); }
}

/* 
  PWA Install Banner Styling
*/
.pwa-install-banner {
  position: fixed;
  bottom: 96px; /* Positioned just above the floating navigation bar */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 508px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-color: rgba(255, 208, 0, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: slide-up-banner 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up-banner {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.banner-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 208, 0, 0.1);
  border: 1.5px solid rgba(255, 208, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 5px rgba(255, 208, 0, 0.3));
}

.banner-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.banner-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 3px;
}

.banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary-sm {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
  border: none;
  color: #000000;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px rgba(255, 208, 0, 0.2);
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 208, 0, 0.3);
}

.btn-primary-sm:active {
  transform: translateY(1px);
}

.btn-secondary-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-sm:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-secondary-sm:active {
  transform: scale(0.96);
}

/* Compact home, ad areas, wall feed */
.app-container {
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}

.app-header {
  padding: 6px 4px 10px;
}

.countdown-card {
  padding: 16px;
  margin-bottom: 10px;
}

.countdown-layout {
  gap: 14px;
}

.countdown-circular {
  width: 118px;
  height: 118px;
}

#countdownTime {
  font-size: 20px;
}

.countdown-next-label {
  font-size: 10px;
}

.hijri-date {
  font-size: 14px;
}

.quran-quote {
  font-size: 11.5px;
  line-height: 1.35;
}

.prayer-grid {
  gap: 8px;
}

.prayer-card {
  min-height: 86px;
  padding: 12px 13px;
  border-radius: 18px;
}

.prayer-card-header {
  gap: 7px;
}

.prayer-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.prayer-name {
  font-size: 12px;
}

.prayer-time-val {
  font-size: 22px;
  margin-top: 7px;
}

.prayer-bell-toggle {
  right: 10px;
  bottom: 9px;
}

.support-strip {
  width: 100%;
  min-height: 58px;
  margin: auto 0 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.12), rgba(255, 255, 255, 0.035));
  border-color: rgba(255, 208, 0, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  color: inherit;
  text-decoration: none;
}

.support-strip span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.support-strip strong {
  color: var(--accent-gold);
  font-size: 13px;
  white-space: nowrap;
}

.wall-card {
  padding: 18px;
}

.wall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.wall-head .section-subtitle {
  margin-bottom: 0;
}

.wall-status {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 208, 0, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 208, 0, 0.08);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
}

.wall-form {
  display: grid;
  gap: 9px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.wall-form .settings-input {
  margin-top: 0;
}

.wall-message-input {
  resize: vertical;
  min-height: 78px;
}

.wall-symbols {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wall-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 19px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wall-symbol.active {
  border-color: rgba(255, 208, 0, 0.5);
  background: rgba(255, 208, 0, 0.12);
  box-shadow: 0 0 18px rgba(255, 208, 0, 0.12);
}

.wall-list {
  display: grid;
  gap: 10px;
}

.wall-empty {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.wall-post {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.wall-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 208, 0, 0.32), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 208, 0, 0.18);
  font-size: 21px;
}

.wall-post-body {
  min-width: 0;
}

.wall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.wall-meta strong {
  font-size: 13px;
}

.wall-meta span {
  color: var(--text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.wall-post p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wall-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.wall-join {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #000;
  padding: 7px 13px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wall-join.joined {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
}

.wall-replies {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wall-replies::-webkit-scrollbar {
  display: none;
}

.wall-reply {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  padding: 6px 9px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.wall-reply.replied {
  border-color: rgba(255, 208, 0, 0.28);
  background: rgba(255, 208, 0, 0.09);
  color: var(--accent-gold);
}

/* WhatsApp-like wall layout */
#sec-duvar.active {
  height: calc(100% - 8px);
  max-height: calc(100% - 8px);
  min-height: 0;
  overflow: hidden;
}

.wall-card {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
}

.wall-head {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wall-head .section-title {
  font-size: 19px;
}

.wall-head .section-subtitle {
  font-size: 12px;
}

.wall-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  max-height: none;
  align-content: end;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.wall-post {
  width: min(92%, 420px);
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 11px 48px 11px 10px;
  border-radius: 18px 18px 18px 7px;
  background: rgba(255, 255, 255, 0.055);
  position: relative;
}

.wall-avatar {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  font-size: 18px;
}

.wall-post p {
  color: rgba(255, 255, 255, 0.82);
}

.wall-actions {
  display: contents;
}

.wall-join,
.wall-reply-action {
  border: 0;
  font-family: var(--font-main);
  font-weight: 800;
  cursor: pointer;
}

.wall-join {
  position: absolute;
  right: 9px;
  top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 7px;
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.95), rgba(255, 123, 0, 0.95));
  color: #151005;
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.18);
}

.wall-join span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width var(--transition-fast), opacity var(--transition-fast);
}

.wall-join:hover span,
.wall-join:focus-visible span,
.wall-join.joined span {
  max-width: 52px;
  opacity: 1;
}

.wall-join strong {
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wall-join.joined {
  background: rgba(255, 208, 0, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 208, 0, 0.28);
  box-shadow: none;
}

.wall-reply-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.wall-reply-action:hover,
.wall-reply-action:focus-visible {
  color: var(--accent-gold);
  border-color: rgba(255, 208, 0, 0.28);
  background: rgba(255, 208, 0, 0.1);
}

.wall-delete-action {
  position: absolute;
  right: 48px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.08);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
  padding: 0;
}

.wall-delete-action:hover,
.wall-delete-action:focus-visible {
  background: rgba(255, 68, 68, 0.2);
  border-color: rgba(255, 68, 68, 0.35);
  color: #ff6666;
}

.wall-replies {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-left: 2px;
  overflow: visible;
}

.wall-reply-bubble {
  width: fit-content;
  max-width: 100%;
  border-left: 2px solid rgba(255, 208, 0, 0.45);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wall-composer {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(6, 7, 12, 0.72);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.wall-input {
  min-width: 0;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 14px;
  outline: 0;
  font-family: var(--font-main);
  font-size: 14px;
}

.wall-tool-btn,
.wall-send-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  font-family: var(--font-main);
  cursor: pointer;
}

.wall-tool-btn {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 20px;
}

.wall-send-btn {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #111;
}

.wall-send-btn.sending {
  opacity: 0.7;
}

.wall-emoji-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(10, 11, 18, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.wall-emoji-panel button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  cursor: pointer;
}

.wall-reply-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 2px 0;
  border-left: 3px solid var(--accent-gold);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(255, 208, 0, 0.08);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 800;
}

.wall-reply-preview button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.welcome-spot {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 4, 8, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.welcome-spot-panel {
  position: relative;
  width: min(430px, 100%);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 208, 0, 0.24);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 208, 0, 0.34), transparent 25%),
    linear-gradient(160deg, rgba(24, 27, 44, 0.95), rgba(9, 10, 18, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.welcome-spot-panel::before {
  content: "☪";
  position: absolute;
  left: 50%;
  top: 54px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 208, 0, 0.25);
  color: rgba(255, 208, 0, 0.9);
  font-size: 80px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 35px rgba(255, 208, 0, 0.08), 0 0 35px rgba(255, 208, 0, 0.12);
}

.welcome-spot-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.welcome-spot-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 208, 0, 0.12);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.welcome-spot-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 230px 24px 26px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58) 22%, rgba(0, 0, 0, 0.7));
}

.welcome-spot-kicker {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.welcome-spot-content h2 {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.6px;
}

.welcome-spot-content p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-size: 14px;
}

.welcome-spot-content strong {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  font-size: 13px;
}

.welcome-spot-cta {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 430px) {
  .app-container {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .app-title {
    font-size: 19px;
  }

  .location-badge {
    max-width: 138px;
    padding: 8px 10px;
  }

  .countdown-layout {
    align-items: stretch;
  }

  #countdownTime {
    font-size: 17px;
  }

  .quran-quote-wrapper {
    display: block;
  }

  .quran-quote {
    font-size: 10.5px;
    line-height: 1.3;
    padding-left: 8px;
  }

  .prayer-card {
    min-height: 78px;
    padding: 10px 11px;
  }

  .prayer-time-val {
    font-size: 20px;
  }

  .app-nav {
    padding: 0 5px;
  }

  .nav-btn span {
    font-size: 10px;
  }

  .support-strip {
    min-height: 54px;
    margin: auto 0 16px;
    padding: 10px 12px;
  }
}

