html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

button, a, .btn, .floating-btn {
    touch-action: manipulation;
}

:root {
    --primary-color: #0088cc;
    --primary-gradient: linear-gradient(135deg, #0088cc 0%, #00b4d8 100%);
    --bg-body: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #1e293b;
    --bg-navbar: #0f172a;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] {
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-navbar: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.solid-navbar {
    background-color: var(--bg-navbar) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background-color 0.4s ease;
    z-index: 9999;
}

/* 🩺 تنسيقات صورة كارت الأخصائي */
.doctor-profile-img {
    max-height: 380px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.bg-soft-primary { background-color: rgba(0, 136, 204, 0.15); }
.bg-soft-success { background-color: rgba(42, 157, 143, 0.15); }
.bg-soft-warning { background-color: rgba(247, 127, 0, 0.15); }
.bg-soft-info { background-color: rgba(0, 180, 216, 0.15); }
.bg-soft-purple { background-color: rgba(114, 9, 183, 0.15); }
.text-purple { color: #a855f7 !important; }

.spec-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fw-black { font-weight: 900; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.bg-light-section { background-color: var(--bg-light); }
.bg-card-custom { background-color: var(--bg-card); color: var(--text-dark); }
.dir-ltr { direction: ltr; display: inline-block; }

.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.floating-btn-group {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-whatsapp { background-color: #25d366; }
.btn-call { background-color: #0088cc; }

#preloader {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: var(--bg-body); z-index:99999;
    display:flex; justify-content:center; align-items:center;
}