
.qibla-page { max-width: 520px; margin: 0 auto; padding: 16px 12px; text-align: center; font-family: 'Outfit', system-ui, -apple-system, sans-serif; }
.qibla-hero { 
    background: linear-gradient(135deg, #091e3a 0%, #1e3a5f 55%, #104f55 100%); 
    color: #fff; 
    border-radius: 18px; 
    padding: 24px 20px; 
    margin-bottom: 22px; 
    box-shadow: 0 10px 25px -5px rgba(9, 30, 58, 0.25), 0 8px 10px -6px rgba(9, 30, 58, 0.2); 
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.qibla-hero h1 { margin: 0 0 8px 0; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Outfit', 'Amiri', serif; }
.qibla-hero .location-text { font-size: 0.9rem; opacity: 0.9; margin-top: 6px; font-weight: 600; }

.qibla-compass-wrap { position: relative; width: 280px; height: 280px; margin: 24px auto; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15)); }
.qibla-compass-bg { 
    position: absolute; inset: 0; border-radius: 50%; 
    background: #fff; 
    border: 8px solid #f1f5f9; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: inset 0 0 30px rgba(30,58,95,0.05);
}
.qibla-compass-rose { position: absolute; inset: 20px; border-radius: 50%; transition: transform 0.1s ease-out; }
.qibla-compass-rose .n, .qibla-compass-rose .e, .qibla-compass-rose .s, .qibla-compass-rose .w { position: absolute; font-size: 16px; font-weight: 900; color: #cbd5e1; }
.qibla-compass-rose .n { top: 0; left: 50%; transform: translateX(-50%); color: #ef4444; }
.qibla-compass-rose .e { right: 0; top: 50%; transform: translateY(-50%); }
.qibla-compass-rose .s { bottom: 0; left: 50%; transform: translateX(-50%); }
.qibla-compass-rose .w { left: 0; top: 50%; transform: translateY(-50%); }

.qibla-arrow { position: absolute; top: 50%; left: 50%; width: 10px; height: 48%; transform-origin: center bottom; margin-left: -5px; margin-top: -48%; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 5px 10px rgba(30,58,95,0.3)); }
.qibla-arrow::before { content: ''; position: absolute; left: 50%; top: 0; width: 0; height: 0; margin-left: -15px; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 45px solid #fbbf24; } /* Golden Needle */
.qibla-arrow::after { content: '🕋'; position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.qibla-center-dot { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; background: #fbbf24; border-radius: 50%; margin: -12px 0 0 -12px; border: 4px solid #fff; box-shadow: 0 0 15px rgba(251,191,36,0.5); z-index: 10; }

.qibla-stats { display: flex; justify-content: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.qibla-stat { background: rgba(255,255,255,0.12); padding: 10px 20px; border-radius: 14px; font-weight: 800; font-size: 1.15rem; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(8px); }
.qibla-stat span { font-size: 0.72rem; font-weight: 700; opacity: 0.85; display: block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.8px; }

.qibla-location-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.qibla-location-bar input { flex: 1; min-width: 180px; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 14px; transition: 0.25s; }
.qibla-location-bar input:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
.qibla-location-bar button { padding: 10px 18px; background: #0284c7; color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; font-size: 0.88rem; }
.qibla-location-bar button:hover { background: #0369a1; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); }
.qibla-location-bar button.secondary { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.qibla-location-bar button.secondary:hover { background: #e2e8f0; }

.qibla-section { background: #fff; border-radius: 16px; padding: 22px; margin-bottom: 24px; border: 1px solid #e2e8f0; text-align: left; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.qibla-section h2 { margin: 0 0 12px 0; font-size: 1.05rem; color: #0f172a; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.qibla-link { display: inline-flex; align-items: center; gap: 10px; color: #3b7cb5; font-weight: 700; text-decoration: none; padding: 10px 15px; background: #f1f5f9; border-radius: 10px; transition: 0.2s; }
.qibla-link:hover { background: #1e3a5f; color: #fff; transform: translateX(5px); }
.qibla-hint { font-size: 12px; color: #94a3b8; margin-top: 12px; }
@media (max-width: 400px) { .qibla-compass-wrap { width: 240px; height: 240px; } }
