/* CSS Reset and Core Theme setup */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --accent: #f59e0b;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(2, 132, 199, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.6) 0px, transparent 100%),
        radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.06) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(15, 118, 110, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.65;
    letter-spacing: -0.2px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-accent { color: var(--accent) !important; }
.font-bold { font-weight: 700; }
.display-block { display: block; }
.center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-admin {
    background: var(--dark-bg);
    color: #f1f5f9;
}

.btn-admin:hover {
    background: #1e293b;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
}

.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: #1e293b; }
.btn-light { background: #e2e8f0; color: #334155; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Header & Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary); }

.highlight-link {
    color: var(--teal);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0fdf4;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

/* ==========================================================================
   RESPONSIVE HEADER & MOBILE DRAWER NAVIGATION
   ========================================================================== */

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    text-decoration: none;
}

.logo-icon-sm {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-quick-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    white-space: nowrap;
}

.mobile-quick-book-btn i {
    font-size: 0.9rem;
}

/* HAMBURGER TOGGLE BUTTON */
.mobile-hamburger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    z-index: 105;
}

.mobile-hamburger-btn:hover,
.mobile-hamburger-btn:active {
    background: #e2e8f0;
    border-color: var(--primary);
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MOBILE NAV DRAWER */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 330px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.25);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), right 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    visibility: hidden;
}

.mobile-nav-drawer.active {
    right: 0;
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.mobile-drawer-header small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    color: #475569;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* MOBILE AUTH BOX */
.mobile-drawer-auth-box {
    padding: 15px 20px;
    background: #f0fdfa;
    border-bottom: 1px solid #ccfbf1;
}

.mobile-user-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-user-info .avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mobile-user-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.mobile-user-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-user-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mobile-drawer-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-drawer-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
    background: #e0f2fe;
    color: var(--primary);
    border-color: #bae6fd;
}

.mobile-drawer-link i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
}

.mobile-drawer-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-contact-item a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* View Sections Switcher */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #090d16 0%, #0f172a 45%, #0369a1 100%);
    color: white;
    padding: 90px 0 110px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -15%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(2, 132, 199, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: floatGlow 9s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, rgba(15, 118, 110, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: floatGlow 11s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, -25px) scale(1.12); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.88rem;
    color: #38bdf8;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 35px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.7rem;
    font-weight: 900;
    color: #38bdf8;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Dental Glow Card */
.dental-card-glow {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Hero Smile Image Banner Styling */
.smile-image-banner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-smile-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.smile-image-banner:hover .hero-smile-img {
    transform: scale(1.05);
}

.smile-img-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dental-card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal), var(--accent));
}

.clinic-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.clinic-card-header i { font-size: 2.2rem; }

.features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateX(-4px);
}

.feature-box i {
    font-size: 1.4rem;
    margin-top: 2px;
}

.feature-box h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-box p {
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* SERVICES SECTION */
.services-section {
    padding: 90px 0;
    background: transparent;
    position: relative;
}

.section-header {
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.2);
    border-color: var(--primary);
    background: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.service-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
    background: #f0fdf4;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
}

.service-call-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.service-call-btn:hover {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* TEETH CHART SECTION */
.teeth-section {
    padding: 70px 0;
}

.teeth-chart-box {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 45px 30px;
    box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.9);
    text-align: center;
}

.arch-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 10px 0;
}

.teeth-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tooth-item {
    width: 48px;
    height: 58px;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 8px 8px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tooth-item:hover, .tooth-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.tooth-num {
    font-size: 0.75rem;
    font-weight: 700;
}

.tooth-icon {
    font-size: 1rem;
}

.arch-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 20px 0;
}

.tooth-detail-pop {
    margin-top: 25px;
    padding: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    color: #0369a1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ADMIN PANEL LAYOUT */
.admin-sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 76px);
}

.admin-sidebar {
    background: #0f172a;
    color: white;
    padding: 25px 15px;
    border-left: 1px solid #1e293b;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 25px;
}

.admin-profile .avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.admin-profile h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-profile small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
    width: 100%;
}

.admin-nav-item:hover {
    background: #1e293b;
    color: white;
}

.admin-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.admin-content {
    padding: 35px;
    background: #f8fafc;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.tab-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.tab-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FINANCIAL STATS CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card-teal .stat-icon { background: #e0f2fe; color: #0284c7; }
.card-green .stat-icon { background: #d1fae5; color: #10b981; }
.card-warning .stat-icon { background: #fef3c7; color: #d97706; }
.card-purple .stat-icon { background: #f3e8ff; color: #9333ea; }

.stat-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2px;
}

/* DATA TABLES */
.table-container {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table-header-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.table-header-tools h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-box {
    display: flex;
    gap: 12px;
}

.filter-box input, .filter-box select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.data-table th, .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.data-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
}

.data-table tr:hover {
    background: #f1f5f9;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-success { background: #d1fae5; color: #047857; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }

/* SMS DASHBOARD MODULE */
.sms-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.sms-debtors-panel, .sms-simulator-panel {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.card-header-styled {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-header-styled h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-styled small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.debtors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 550px;
    overflow-y: auto;
}

.debtor-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.debtor-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.debtor-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.debtor-amount {
    text-align: left;
}

.debtor-amount .amount {
    font-weight: 800;
    color: var(--danger);
    font-size: 1rem;
    display: block;
}

.template-box {
    background: #f8fafc;
    padding: 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.template-box h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-box select, .template-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.template-variables {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.78rem;
}

.tag-btn {
    background: #e2e8f0;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.tag-btn:hover { background: #cbd5e1; }

.sms-logs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.sms-log-item {
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    border-right: 4px solid var(--teal);
    font-size: 0.83rem;
}

.sms-log-item .sms-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

/* HEALTH CLEARANCE CARDS */
.health-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.health-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.health-card.warning-border {
    border-color: var(--danger);
    background: #fff5f5;
}

.patient-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.patient-head h4 {
    font-size: 1rem;
    font-weight: 800;
}

.conditions-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.tag-danger {
    background: var(--danger-light);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tag-safe {
    background: var(--success-light);
    color: var(--success);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-card.modal-lg { max-width: 750px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 25px;
}

.form-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.highlight-input {
    background: #fef3c7;
    color: #b45309;
    font-weight: 800;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
}

.custom-checkbox.danger-highlight {
    background: #fff5f5;
    border-color: #fca5a5;
}

.custom-checkbox.success-highlight {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
    font-weight: 700;
}

.declaration-box {
    margin-top: 20px;
    padding: 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius-sm);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    border-right: 4px solid var(--primary);
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive queries */
@media (max-width: 900px) {
    .hero-container, .admin-sidebar-layout, .sms-dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        border-left: none;
        border-bottom: 1px solid #1e293b;
    }
}

/* Portfolio & Instagram Gallery Section */
.portfolio-section {
    padding: 60px 0;
}

.insta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.portfolio-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.portfolio-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img-box img {
    transform: scale(1.06);
}

.portfolio-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.portfolio-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-info h4 {
    font-size: 1.05rem;
    color: var(--text-main);
}

.portfolio-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.insta-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc2743;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 8px;
    transition: var(--transition);
}

.insta-link-btn:hover {
    color: #bc1888;
    transform: translateX(-3px);
}

/* Location & Navigation Routing Section */
.location-section {
    padding: 40px 0 80px 0;
}

.location-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.location-icon {
    width: 60px;
    height: 60px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.address-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
}

.address-row i {
    font-size: 1.2rem;
}

.navigation-apps-box h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.nav-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nav-google {
    background: #4285F4;
    color: white;
}
.nav-google:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.3);
}

.nav-neshan {
    background: #007BFF;
    color: white;
}
.nav-neshan:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.nav-balad {
    background: #facc15;
    color: #1e293b;
}
.nav-balad:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.35);
}

/* Phone Call Buttons & Links Styling */
.btn-call-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-call-nav:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-call-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-call-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}

.phone-highlight-link {
    color: #16a34a;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.phone-highlight-link:hover {
    background: #16a34a;
    color: white;
}

/* Articles Section Styling */
.articles-section {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.article-img {
    position: relative;
    height: 190px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.article-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.article-body h3 {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.5;
}

.article-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* Patient Reviews Section Styling */
.reviews-section {
    padding: 60px 0 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 35px;
    margin-bottom: 50px;
}

.review-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.review-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.review-rating {
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    font-style: italic;
}

.review-date {
    font-size: 0.78rem;
    color: #94a3b8;
    align-self: flex-end;
}

.add-review-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.add-review-header {
    margin-bottom: 25px;
}

.add-review-header h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

/* Site Footer */
.site-footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 100px 0;
    border-top: 3px solid var(--primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 500px;
    margin-bottom: 15px;
}

.copyright {
    color: #64748b;
    font-size: 0.8rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-call-btn, .footer-insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-call-btn {
    background: #16a34a;
    color: white;
}
.footer-call-btn:hover { background: #15803d; }

.footer-insta-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.footer-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-quick-links h4 {
    font-size: 0.95rem;
    color: white;
    font-weight: 800;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--teal);
    transform: translateX(-4px);
}

/* Sticky Floating Quick Action Bar */
.floating-quick-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    text-decoration: none;
}

.float-call {
    background: #16a34a;
    color: white;
}

.float-call:hover {
    transform: scale(1.06);
    background: #15803d;
}

.float-book {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
}

.float-book:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.4);
}

/* Oral & Dental Diseases Section Styling */
.diseases-section {
    padding: 70px 0;
}

.diseases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.disease-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.disease-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
    background: white;
}

.disease-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-danger { background: #fee2e2; color: #ef4444; }
.icon-warning { background: #fef3c7; color: #f59e0b; }
.icon-info { background: #e0f2fe; color: #0284c7; }
.icon-accent { background: #fef3c7; color: #d97706; }
.icon-success { background: #d1fae5; color: #10b981; }

.disease-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.disease-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.disease-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
}

.disease-detail p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.margin-top {
    margin-top: 10px;
}

/* Health Magazine Section Styling */
.magazine-section {
    padding: 70px 0;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.mag-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mag-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.18);
    border-color: var(--teal);
}

.mag-img-box {
    position: relative;
    height: 195px;
}

.mag-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mag-card:hover .mag-img-box img {
    transform: scale(1.05);
}

.mag-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mag-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mag-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.mag-content h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.5;
}

.mag-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* User Auth & Login Modal Styling */
.auth-notice-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.auth-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.user-logged-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* MOBILE RESPONSIVENESS & PERFORMANCE OPTIMIZATIONS */
@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .admin-nav-item {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 110px;
    }
    .hero-container {
        grid-template-columns: 1fr;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .floating-quick-bar {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 12px 18px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        border-radius: 20px 20px 0 0;
        border-top: 1px solid rgba(56, 189, 248, 0.3);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
        z-index: 2000;
        display: flex;
        flex-direction: row;
        gap: 12px;
    }
    .float-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .toast-container {
        bottom: 85px;
        left: 15px;
        right: 15px;
    }
    .toast {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.84rem;
        padding: 12px 16px;
    }
}

/* High Speed Hardware Acceleration */
img {
    content-visibility: auto;
}

/* Top Announcement & Working Hours Bar */
.top-info-bar {
    background: #0f172a;
    color: white;
    padding: 8px 0;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
}

.qr-desk-btn {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qr-desk-btn:hover {
    transform: scale(1.05);
}

/* Digital Signature Canvas Styling */
.signature-box-wrapper {
    position: relative;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    background: #f8fafc;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#sig-canvas {
    width: 100%;
    max-width: 460px;
    height: 130px;
    cursor: crosshair;
    touch-action: none;
    background: white;
}

.sig-clear-btn {
    position: absolute;
    top: 8px;
    left: 8px;
}

/* Reception Desk QR Code Poster Card */
.qr-poster-card {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15);
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
}

.qr-poster-header h2 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-top: 10px;
}

.qr-poster-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.qr-code-img-box {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    display: inline-block;
    border: 1px solid var(--border-color);
}

.qr-code-img {
    width: 220px;
    height: 220px;
    display: block;
}

.qr-poster-footer p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 8px;
}

.qr-poster-footer small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Patient Account Portal & Gateway Styling */
.patient-profile-card {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
}

.profile-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Manual Payment & Receipt Verification System */
.mp-summary-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.bank-account-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.bank-account-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bank-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.bank-card-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.88rem;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.copy-badge-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.copy-badge-btn:hover {
    background: var(--primary);
    color: white;
}

.file-preview-wrapper {
    background: #ffffff;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE BREAKPOINTS (320px, 375px, 414px, 768px, 992px)
   ========================================================================== */

@media (max-width: 992px) {
    .desktop-nav-links {
        display: none !important;
    }

    .mobile-header-actions {
        display: flex;
    }

    .navbar {
        padding: 10px 0;
    }

    .brand-text h1 {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-info-bar {
        padding: 6px 0;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        justify-content: center;
    }

    .top-info-item {
        font-size: 0.75rem;
    }

    .navbar {
        padding: 8px 0;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        border-radius: 10px;
    }

    .brand-text h1 {
        font-size: 0.95rem;
    }

    .mobile-quick-book-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 414px) {
    .brand-text h1 {
        font-size: 0.88rem;
        max-width: 175px;
        line-height: 1.35;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }

    .mobile-quick-book-btn {
        padding: 6px 10px;
        font-size: 0.76rem;
    }

    .mobile-hamburger-btn {
        width: 38px;
        height: 38px;
    }

    .hamburger-bar {
        width: 18px;
    }
}

@media (max-width: 360px) {
    .brand-text h1 {
        font-size: 0.82rem;
        max-width: 140px;
    }

    .mobile-quick-book-btn span {
        display: none; /* Icon-only compact for 320px-360px ultra small screens */
    }

    .mobile-quick-book-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}


/* ============================
   OTP VERIFICATION STYLES
   ============================ */
#otp-verification-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd;
    border-radius: 14px;
    padding: 22px;
    margin-top: 12px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.otp-title { font-size: 1rem; font-weight: 700; color: #1e40af; margin-bottom: 6px; }
.otp-subtitle { font-size: 0.83rem; color: #475569; margin-bottom: 16px; }
.otp-inputs-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; direction: ltr; }
.otp-digit-input {
    width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700;
    border: 2px solid #93c5fd; border-radius: 10px; background: #fff; color: #1e40af; transition: all 0.2s;
}
.otp-digit-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); transform: scale(1.05); }
.otp-digit-input.otp-filled { background: #dbeafe; border-color: #2563eb; }
.otp-resend-row { font-size: 0.82rem; color: #64748b; margin-top: 8px; }
.otp-resend-btn { background: none; border: none; color: #2563eb; cursor: pointer; font-size: 0.82rem; font-weight: 600; text-decoration: underline; padding: 0 4px; font-family: inherit; }
.otp-resend-btn:disabled { color: #94a3b8; cursor: not-allowed; text-decoration: none; }
.otp-countdown { color: #f59e0b; font-weight: 700; }

@media (max-width: 360px) {
    .otp-digit-input {
        width: 38px;
        height: 48px;
        font-size: 1.2rem;
    }
    .otp-inputs-row {
        gap: 6px;
    }
}

/* ============================
   INVOICE PDF PRINT STYLES
   ============================ */
#invoice-print-area { display: none; }

@media print {
    body > *:not(#invoice-print-area) { display: none !important; }
    #invoice-print-area {
        display: block !important; position: fixed; top: 0; left: 0; width: 100%;
        background: #fff; z-index: 99999; padding: 20px 30px;
        font-family: "Vazirmatn", sans-serif; direction: rtl; color: #1e293b;
    }
    .print-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #0284c7; padding-bottom: 14px; margin-bottom: 18px; }
    .print-clinic-info h1 { font-size: 1.2rem; color: #0284c7; margin: 0 0 4px; }
    .print-clinic-info p { font-size: 0.78rem; color: #475569; margin: 2px 0; }
    .print-invoice-meta { text-align: left; font-size: 0.82rem; }
    .print-invoice-meta strong { color: #0284c7; font-size: 1rem; }
    .print-section-title { font-size: 0.9rem; font-weight: 700; color: #0284c7; border-right: 4px solid #0284c7; padding-right: 8px; margin: 14px 0 8px; }
    .print-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
    .print-table th { background: #eff6ff; color: #1e40af; padding: 8px 10px; text-align: right; border: 1px solid #bfdbfe; }
    .print-table td { padding: 8px 10px; border: 1px solid #e2e8f0; text-align: right; }
    .print-table tr:nth-child(even) td { background: #f8fafc; }
    .print-total-row td { font-weight: 700; background: #eff6ff !important; color: #1e40af; font-size: 0.95rem; }
    .print-balance-row td { font-weight: 700; background: #fee2e2 !important; color: #dc2626; font-size: 1rem; }
    .print-balance-row.paid td { background: #d1fae5 !important; color: #065f46; }
    .print-footer { margin-top: 30px; border-top: 1px solid #e2e8f0; padding-top: 12px; display: flex; justify-content: space-between; font-size: 0.75rem; color: #64748b; }
    .print-stamp-area { text-align: center; margin-top: 30px; border: 1px dashed #94a3b8; border-radius: 8px; padding: 20px; width: 180px; font-size: 0.8rem; color: #94a3b8; }
}
