:root {
    /* --- MODERN PURPLE THEME VARIABLES --- */

    /* Colors */
    --primary-color: #6366f1;
    /* Indigo 500 */
    --primary-hover: #4f46e5;
    /* Indigo 600 */
    --secondary-color: #a855f7;
    /* Purple 500 */
    --accent-color: #ec4899;
    /* Pink 500 */

    /* Backgrounds */
    --bg-body: #f8fafc;
    /* Slate 50 - Very Light Gray/Blue */
    --bg-surface: #ffffff;
    /* White Cards */
    --bg-input: #f1f5f9;
    /* Slate 100 - Inputs */

    /* Text */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f8fafc;
    /* White text */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);

    /* Shadows & Glass */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-purple: 0 10px 25px -5px rgba(99, 102, 241, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(12px);

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-pill: 999px;
    /* Max rounded pill shape */
}

/* ... */

.social-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Share Btn Hover separate to keep brand colors */
.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    color: white;
}

/* --- RESTORED SOCIAL COLORS --- */
.share-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    /* Ensure circle */
    border-radius: 50% !important;
    /* Force circle */
}

/* --- RESET & BASE --- */
body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
    /* Tighter tracking for modern feel */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* --- COMPONENTS --- */

/* Modern Cards */
.glass-card,
.card {
    background: var(--bg-surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Subtle border */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Ensure content obeys radius */
}

.glass-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Specific Glass Effect Override if needed */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: var(--radius-pill) !important;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    /* Force solid on hover */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.btn-light {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-light:hover {
    background: var(--bg-input);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Inputs & Forms */
.form-control,
.form-select {
    background-color: var(--bg-input);
    border: 1px solid transparent;
    /* No border initially */
    border-radius: var(--radius-pill);
    /* Or radius-sm for less round */
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    /* Soft focus ring */
    outline: none;
}

/* --- LAYOUT SECTIONS --- */

/* Navbar - Floating Glass Pill */
.navbar-floating {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin: 1.5rem auto;
    width: 95%;
    max-width: 1300px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    /* Indigo tint shadow */
    padding: 0.7rem 2rem;
    position: sticky;
    top: 20px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-floating:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.03em;
}

/* Nav Link - Animated Underline */
.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    transition: color 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0px;
    left: 1.2rem;
    /* Match padding */
    background: var(--gradient-primary);
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-dark) !important;
}

.nav-link:hover::after {
    width: calc(100% - 2.4rem);
    /* Match padding */
}

/* Header Search - Expandable */
.header-search-minimal .form-control {
    background: #f1f5f9;
    border: 2px solid transparent;
    font-size: 0.9rem;
    width: 180px;
    padding-left: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
    /* Reset layout shadow */
}

.header-search-minimal .form-control:focus {
    background: white;
    width: 250px;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15) !important;
}

.header-search-minimal button {
    z-index: 5;
    color: var(--primary-color) !important;
    opacity: 0.7;
    transition: all 0.3s;
}

.header-search-minimal button:hover {
    transform: translateY(-50%) scale(1.1) !important;
    /* Keep centered vertical */
    opacity: 1;
}

/* Header Socials - Bouncing Bubbles */
.header-socials {
    padding-left: 1rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.social-link-minimal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--text-muted) !important;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    margin: 0 2px;
}

.social-link-minimal:hover {
    transform: translateY(-4px) scale(1.1);
    color: white !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Brand Colors on Hover */
.social-link-minimal:hover .fa-facebook-f {
    background-color: #1877F2;
    box-shadow: 0 0 0 38px #1877F2 inset;
}

.social-link-minimal:hover .fa-twitter {
    background-color: #1DA1F2;
    box-shadow: 0 0 0 38px #1DA1F2 inset;
}

.social-link-minimal:hover .fa-instagram {
    background: linear-gradient(45deg, #f09433, #dc2743);
    box-shadow: 0 0 0 38px transparent inset;
    position: relative;
    z-index: 1;
}

/* Quick fix for gradient hover on icon */
.social-link-minimal:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #f09433, #dc2743);
    color: white;
}

.social-link-minimal:hover .fa-linkedin {
    background-color: #0077b5;
    box-shadow: 0 0 0 38px #0077b5 inset;
}

.social-link-minimal:hover .fa-youtube {
    background-color: #FF0000;
    box-shadow: 0 0 0 38px #FF0000 inset;
}

/* Existing Socials Logic (for footer/share) kept below for compatibility, but refined */
.share-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    color: white;
}

.share-btn-facebook {
    background-color: #1877F2;
}

.share-btn-twitter {
    background-color: #1DA1F2;
}

.share-btn-whatsapp {
    background-color: #25D366;
}

.share-btn-linkedin {
    background-color: #0077b5;
}

.share-btn-copy {
    background-color: #4b5563;
}

/* --- RESTORED SIM NETWORK BUTTONS --- */
.btn-network {
    border-radius: 50px !important;
    /* Force Pill */
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    color: white;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    margin: 0.25rem;
}

.btn-network:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-network-all {
    background: #64748b;
    color: white;
}

.btn-network-jazz {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

/* Red */
.btn-network-telenor {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Blue */
.btn-network-zong {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

/* Green */
.btn-network-ufone {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Orange */

/* --- RESTORED TOOLS STYLES --- */
.prayer-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 1.5rem;
    font-weight: 800;
}

.prayer-grid-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    background: white;
}

.prayer-grid-card.active {
    border: 2px solid var(--primary-color);
    background: #eef2ff;
}

/* Ad Space */
.ad-container {
    margin: 2rem auto;
    text-align: center;
}

.ad-placeholder {
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ad-billboard {
    width: 728px;
    height: 90px;
    margin: 0 auto;
}


/* --- UTILITIES --- */
.text-gradient-custom {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light {
    background-color: #f1f5f9 !important;
    /* Force slate-100 */
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.05em;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-floating {
        width: 95%;
        padding: 0.5rem 1rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}

/* --- DARK MODE OVERRIDES (Optional Support) --- */
body.dark-mode {
    --bg-body: #0f172a;
    /* Slate 900 */
    --bg-surface: #1e293b;
    /* Slate 800 */
    --bg-input: #334155;
    /* Slate 700 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body.dark-mode .glass-card,
body.dark-mode .card,
body.dark-mode footer {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .navbar-floating {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}