/* === مکمل کلر فل نیو مورفزم اسٹائل (وائٹ + بلیو + پنک) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Noto Nastaliq Urdu', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
:root {
    --bg-color: #f4f9ff;
    --shadow-light: #ffffff;
    --shadow-dark: #c2d0e6;
    --text-dark: #1e2b3a;
    --text-light: #4a5b6e;
    --accent-green: #00c49a;
    --accent-blue: #2b7fff;
    --accent-pink: #ff4d94;
    --accent-orange: #ffb347;
}
body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 80px;
    overflow-x: hidden;
}
.arabic {
    font-family: 'Amiri Quran', serif;
    font-size: 1.8rem;
    text-align: center;
    color: var(--accent-blue);
    line-height: 2.2;
    margin-bottom: 15px;
}
.urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-dark);
    line-height: 2.4;
}
.neo-box {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}
.neo-box:hover {
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}
.neo-box-inset {
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    padding: 15px;
    margin-bottom: 15px;
}
.neo-button {
    background: var(--bg-color);
    border: none;
    border-radius: 15px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    padding: 12px 20px;
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.neo-button:active, .active-btn {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    color: var(--accent-pink);
}
.neo-button.green { color: var(--accent-green); }
.neo-button.pink { color: var(--accent-pink); }
.neo-input {
    width: 100%;
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(194,208,230,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.8);
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo i { margin-left: 8px; }
.logo span { 
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.menu-btn {
    font-size: 1.5rem;
    color: var(--accent-pink);
    cursor: pointer;
    background: var(--bg-color);
    border: none;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    transition: 0.2s;
}
.menu-btn:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -10px 0 20px rgba(194,208,230,0.7);
    transition: 0.4s cubic-bezier(0.68,-0.55,0.27,1.55);
    z-index: 1000;
    padding: 30px 20px;
    overflow-y: auto;
    border-left: 2px solid rgba(255,255,255,0.9);
}
.sidebar.active { right: 0; }
.close-btn { 
    font-size: 1.8rem; 
    color: var(--accent-pink); 
    cursor: pointer; 
    margin-bottom: 20px; 
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}
.close-btn:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.nav-links { list-style: none; }
.nav-links li { margin-bottom: 15px; }
.nav-links a { text-decoration: none; display: block; }

section { display: none; padding: 20px; animation: popIn 0.4s ease-out; }
section.active { display: block; }
@keyframes popIn {
    0% { opacity:0; transform:scale(0.95) translateY(10px); }
    100% { opacity:1; transform:scale(1) translateY(0); }
}
.section-title {
    text-align: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.7rem;
    font-weight: 800;
}
.date-badge {
    display: inline-block;
    background: var(--bg-color);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    color: var(--accent-green);
    font-weight: bold;
    margin-bottom: 20px;
}
.next-prayer-card {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--bg-color), #ffffff);
    box-shadow: inset 2px 2px 5px var(--shadow-light), inset -3px -3px 7px var(--shadow-dark), 5px 5px 15px var(--shadow-dark);
    border-top: 4px solid var(--accent-green);
    margin-bottom: 20px;
}
.prayer-list { list-style: none; }
.prayer-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--shadow-dark);
    font-weight: bold;
    color: var(--text-light);
}
.table-responsive { overflow-x: auto; border-radius: 15px; box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); padding: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 500px; text-align: center; }
th { color: var(--accent-green); padding: 10px; border-bottom: 2px solid var(--shadow-dark); }
td { padding: 10px; color: var(--text-dark); border-bottom: 1px solid rgba(194,208,230,0.5); }
.names-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.name-card {
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    padding: 15px;
    text-align: center;
    position: relative;
    border-right: 4px solid var(--accent-pink);
}
.name-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: bold;
}
.name-arabic { font-family: 'Amiri Quran', serif; font-size: 1.8rem; color: var(--accent-green); margin-bottom: 5px; }
.loader { text-align: center; color: var(--accent-pink); display: none; margin: 20px 0; }
.btn-group { display: flex; gap: 10px; margin-bottom: 20px; }

.tasbih-display {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    color: var(--accent-green);
    margin: 20px 0;
}
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.post-card {
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--accent-orange);
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--bg-color);
    box-shadow: 0 -5px 15px rgba(194,208,230,0.6);
    z-index: 99;
}
.footer-text {
    font-weight: bold;
    animation: colorChange 3s infinite;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* مدنی ٹی وی پلیئر */
.player-wrapper {
    width: 100%;
    border-radius: 20px;
    padding: 15px;
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    margin-bottom: 20px;
}
.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f0f0f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    outline: none;
}
#tvLoader, #tvError {
    position: absolute;
    inset: 0;
    background: rgba(244,249,255,0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
#tvLoader.show, #tvError.show { opacity: 1; visibility: visible; }
.spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(43,127,255,0.2);
    border-top: 4px solid var(--accent-pink);
    border-right: 4px solid var(--accent-blue);
    border-bottom: 4px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 0.9s infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tv-controls {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 20;
}
.player-box:hover .tv-controls,
.player-box:focus-within .tv-controls { opacity: 1; pointer-events: auto; }
.tv-btn {
    background: rgba(244,249,255,0.8);
    backdrop-filter: blur(8px);
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    color: var(--accent-blue);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tv-btn:active { box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); }
.error-box {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    max-width: 250px;
}
.error-box button {
    background: var(--accent-pink);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: bold;
}
.settings-panel {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    z-index: 2000;
    width: 280px;
    display: none;
}
.settings-panel.show { display: block; }
.quality-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

/* ===== PWA INSTALL POPUP CSS ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 350;
}
.popup-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}
.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.popup-close-btn:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}
/* Utility classes for popup */
.max-w-sm { max-width: 24rem; }
.text-center { text-align: center; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.rounded-2xl { border-radius: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.text-gray-500 { color: #6b7280; }

.btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #2b7fff, #1e6ae0);
    box-shadow: 0 8px 15px rgba(43, 127, 255, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(43, 127, 255, 0.4);
    background: linear-gradient(135deg, #5a9cff, #2b7fff);
}
.not-now-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s ease;
    padding: 5px 10px;
    font-family: 'Poppins', sans-serif;
}
.not-now-btn:hover {
    color: #333;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}