:root {
    --primary: #d81b60;
    --bg-color: #fdf2f8;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: rgba(216, 27, 96, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] {
    --primary: #ff4081;
    --bg-color: #121212;
    --card-bg: rgba(30, 30, 30, 0.9);
    --text-main: #ffffff;
    --text-muted: #bbbbbb;
    --border-color: rgba(255, 64, 129, 0.3);
    --glass-bg: rgba(18, 18, 18, 0.8);
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color); color: var(--text-main);
    font-family: 'Poppins', sans-serif; transition: all 0.4s ease;
    -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}

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

.urdu-text { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; line-height: 2.5; }

.header {
    text-align: center; padding: 20px 15px;
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100;
}

.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto;
}

.icon-action-btn {
    background: transparent; border: none; color: var(--primary);
    font-size: 1.4rem; cursor: pointer; transition: 0.3s;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}

.site-title {
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    color: var(--primary); margin: 0; letter-spacing: 1px;
}

.search-container { margin: 15px auto 0; width: 100%; max-width: 500px; position: relative; }
.search-bar {
    width: 100%; padding: 12px 20px 12px 45px;
    border-radius: 50px; border: 2px solid var(--border-color);
    background: var(--card-bg); color: var(--text-main);
    font-size: 1rem; font-family: 'Poppins', sans-serif; outline: none; transition: 0.3s;
}
.search-bar:focus { border-color: var(--primary); }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); }

.columns-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; padding: 30px 15px; max-width: 1200px; margin: auto;
}

.column-card {
    background: var(--card-bg); border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border-color); box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.4s; display: flex; flex-direction: column;
}

.col-img { width: 100%; height: 220px; object-fit: cover; }
.col-content { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.col-title { font-size: 1.4rem; margin: 10px 0 20px; color: var(--primary); flex-grow: 1; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.icon-btn {
    background: transparent; border: 1px solid var(--border-color);
    width: 40px; height: 40px; border-radius: 50%; color: var(--primary);
    cursor: pointer; font-size: 1.1rem; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}

.shimmer-btn {
    position: relative; overflow: hidden; background: var(--primary); color: white;
    border: none; padding: 10px 20px; border-radius: 50px;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; flex-grow: 1;
}
.shimmer-btn::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg); animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 100% { left: 150%; } }

.skeleton { background: #e0e0e0; border-radius: 20px; overflow: hidden; position: relative; height: 380px; }
[data-theme="dark"] .skeleton { background: #2a2a2a; }
.skeleton::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    z-index: 1000; overflow-y: auto; display: none; opacity: 0; transition: 0.3s;
}
.popup-overlay.active { display: block; opacity: 1; }
.popup-header { padding: 20px; display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 10; }
.close-btn {
    background: var(--card-bg); color: var(--primary); border: 1px solid var(--border-color);
    width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.popup-content {
    max-width: 800px; margin: 0 auto; padding: 10px 20px 60px;
    font-size: clamp(1.1rem, 4vw, 1.4rem); color: var(--text-main);
}
.popup-title { text-align: center; font-size: clamp(1.8rem, 6vw, 2.5rem); color: var(--primary); margin-bottom: 30px; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s; z-index: 2000;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--card-bg); padding: 30px 25px; border-radius: 25px; text-align: center;
    width: 90%; max-width: 400px; transform: scale(0.8); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-box { transform: scale(1); }
.close-modal-btn {
    position: absolute; top: 15px; right: 15px; background: transparent; border: none;
    color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
}
.modal-title { font-family: 'Playfair Display SC', serif; color: var(--primary); margin: 0 0 20px; font-size: 1.5rem; }
.about-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); margin-bottom: 15px; padding: 3px; }

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    padding: 12px 25px; border-radius: 50px; font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; font-weight: 600; opacity: 0; transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999; display: flex; align-items: center; gap: 10px; color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: #2ecc71; }
.toast.error { background: #e74c3c; }

.footer {
    background: var(--glass-bg); text-align: center; padding: 40px 15px 20px;
    border-top: 1px solid var(--border-color); margin-top: 40px;
}
.review-section {
    max-width: 400px; margin: 0 auto 30px; background: var(--card-bg); padding: 20px;
    border-radius: 20px; border: 1px solid var(--border-color);
}
.review-box {
    width: 100%; border-radius: 12px; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-main); padding: 12px; font-family: 'Poppins', sans-serif;
    resize: none; height: 90px; outline: none; margin-top: 10px;
}
.send-btn {
    background: var(--primary); color: white; border: none; padding: 10px 25px;
    border-radius: 50px; margin-top: 10px; cursor: pointer; font-weight: 600; width: 100%;
}
.copyright { font-size: 0.9rem; color: var(--text-muted); }