/* Google Fonts Integration */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Vazirmatn:wght@100..900&display=swap');

/* Modern CSS Reset & Core Styling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Theme variables */
:root {
    /* Fonts */
    --font-latin: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Almarai', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* LIGHT MODE Theme Variables */
    --color-bg-base: #f1f5f9;
    --color-bg-card: rgba(255, 255, 255, 0.75);
    --color-bg-overlay: rgba(241, 245, 249, 0.96);
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-glow: rgba(13, 148, 136, 0.25);
    --color-shadow: 0 10px 40px rgba(15, 23, 42, 0.04), 0 2px 10px rgba(15, 23, 42, 0.02);
    --color-radial-glow: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.04) 0%, transparent 45%),
                         radial-gradient(circle at 90% 80%, rgba(226, 184, 85, 0.04) 0%, transparent 45%);
    
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    
    /* Social Brand Colors */
    --color-whatsapp: #25d366;
    --color-whatsapp-glow: rgba(37, 211, 102, 0.2);
    --color-phone: #0ea5e9;
    --color-phone-glow: rgba(14, 165, 233, 0.2);
    --color-facebook: #1877f2;
    --color-instagram: #e1306c;
    --color-tiktok: #0f172a;
    
    /* Common Brand Colors */
    --color-emerald: #0d9488;
    --color-emerald-dark: #0f766e;
    --color-emerald-glow: rgba(13, 148, 136, 0.25);
    
    --color-gold: #d97706;
    --color-gold-hover: #b45309;
    --color-gold-glow: rgba(217, 119, 6, 0.2);
    
    /* Shared values */
    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-premium: var(--color-shadow);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK MODE variables */
html.dark-theme {
    --color-bg-base: #060911;
    --color-bg-card: rgba(15, 23, 42, 0.55);
    --color-bg-overlay: rgba(6, 9, 17, 0.97);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-glow: rgba(13, 148, 136, 0.35);
    --color-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.2);
    --color-radial-glow: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 45%),
                         radial-gradient(circle at 90% 80%, rgba(226, 184, 85, 0.08) 0%, transparent 45%);
    
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #475569;
    
    --color-tiktok: #f8fafc;
    
    /* Accent adjustments for dark contrast */
    --color-gold: #f59e0b;
    --color-gold-hover: #fbbf24;
    --color-gold-glow: rgba(245, 158, 11, 0.3);
    
    --color-emerald: #14b8a6;
    --color-emerald-dark: #0d9488;
    --color-emerald-glow: rgba(20, 184, 166, 0.35);
}

/* Global Theme Transitions */
body, .premium-card, .social-item-card, .phone-item, header, footer, h1, h2, h3, p, span, .btn-lang-switch, .btn-theme-toggle {
    transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Direction Configuration */
html {
    font-family: var(--font-latin);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"], html[lang="ku"] {
    font-family: var(--font-arabic);
    line-height: 1.6;
}

html[lang="ar"] *, html[lang="ku"] * {
    letter-spacing: normal !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background-image: var(--color-radial-glow);
    background-attachment: fixed;
}

/* Full Screen Language Selection Overlay */
#language-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg-overlay);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#language-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lang-selector-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lang-selector-card .sub-heading {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.lang-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 1.1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-lang-select:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--color-emerald);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-lang-select .lang-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Page Wrapper */
.app-container {
    width: 100%;
    max-width: 680px;
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

/* Top Navigation / Language & Theme controls */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1000;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald-glow);
    object-fit: cover;
}

.logo-header span {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle Button styling */
.btn-theme-toggle {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
    border-color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.1);
    transform: rotate(15deg) scale(1.05);
}

/* Theme Icon selectors based on active html theme */
html:not(.dark-theme) .btn-theme-toggle .icon-sun { display: none; }
html.dark-theme .btn-theme-toggle .icon-moon { display: none; }

.lang-dropdown-container {
    position: relative;
}

.btn-lang-switch {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-lang-switch:hover {
    border-color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 140px;
    box-shadow: var(--shadow-premium);
    display: none;
    z-index: 100;
    overflow: hidden;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: var(--color-text-primary);
    padding: 0.8rem 1.1rem;
    text-align: start;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-dropdown button:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
}

/* Card General Design */
.premium-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Subtle gradient border overlay in dark mode, hidden in light mode */
html:not(.dark-theme) .premium-card::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.005));
}

.premium-card:hover {
    border-color: var(--color-border-glow);
    transform: translateY(-2px);
}

/* Profile Hero Card */
.profile-card {
    text-align: center;
    padding-top: 0;
    overflow: visible;
}

.banner-container {
    height: 160px;
    margin: 0 -2rem;
    background-image: url('assets/banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.banner-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, var(--color-bg-base) 100%);
    opacity: 0.95;
    transition: background-color 0.3s ease;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: -60px auto 1rem;
    z-index: 10;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-bg-base);
    box-shadow: 0 0 25px var(--color-emerald-glow);
    background-color: var(--color-bg-base);
}

.badge-verified {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--color-emerald);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    border: 2px solid var(--color-bg-base);
}

html[dir="rtl"] .badge-verified {
    right: auto;
    left: 5px;
}

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.2px;
}

.profile-info .specialty {
    color: var(--color-emerald);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.profile-info .clinic-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border: 1px solid rgba(16, 185, 129, 0.15);
    font-weight: 600;
}

.profile-info .clinic-location svg {
    color: var(--color-gold);
    width: 15px;
    height: 15px;
}

/* Quick Actions Button Bar */
.quick-actions-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 0.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-action svg {
    width: 24px;
    height: 24px;
}

.btn-action.whatsapp {
    background: linear-gradient(135deg, var(--color-whatsapp) 0%, #1ebd5d 100%);
    box-shadow: 0 4px 15px var(--color-whatsapp-glow);
}

.btn-action.whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-3px);
}

.btn-action.call {
    background: linear-gradient(135deg, var(--color-phone) 0%, #0284c7 100%);
    box-shadow: 0 4px 15px var(--color-phone-glow);
}

.btn-action.call:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    transform: translateY(-3px);
}

.btn-action.directions {
    background: linear-gradient(135deg, var(--color-gold) 0%, #b45309 100%);
    box-shadow: 0 4px 15px var(--color-gold-glow);
}

.btn-action.directions:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    transform: translateY(-3px);
}

/* Links & Media Sections */
.section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--color-border), transparent);
}

html[dir="rtl"] .section-title::after {
    background: linear-gradient(to left, var(--color-border), transparent);
}

/* Social Media Channels Lists */
.social-channels-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.social-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.social-item-card:hover {
    background: rgba(128, 128, 128, 0.07);
    transform: translateX(4px);
}

html[dir="rtl"] .social-item-card:hover {
    transform: translateX(-4px);
}

.social-item-card.facebook-card:hover {
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.1);
}
.social-item-card.instagram-card:hover {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.1);
}
.social-item-card.tiktok-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.social-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.social-item-card:hover .social-icon-wrapper {
    transform: scale(1.08);
}

.social-item-card.facebook-card .social-icon-wrapper {
    background: rgba(24, 119, 242, 0.1);
    color: var(--color-facebook);
    border-color: rgba(24, 119, 242, 0.2);
}
.social-item-card.facebook-card:hover .social-icon-wrapper {
    background: var(--color-facebook);
    color: #fff;
}

.social-item-card.instagram-card .social-icon-wrapper {
    background: rgba(225, 48, 108, 0.1);
    color: var(--color-instagram);
    border-color: rgba(225, 48, 108, 0.2);
}
.social-item-card.instagram-card:hover .social-icon-wrapper {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.social-item-card.tiktok-card .social-icon-wrapper {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-text-primary);
    border-color: rgba(16, 185, 129, 0.15);
}
.social-item-card.tiktok-card:hover .social-icon-wrapper {
    background: var(--color-text-primary);
    color: var(--color-bg-base);
    border-color: var(--color-text-primary);
}

.social-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.social-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.social-handle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.social-arrow {
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    width: 20px;
    height: 20px;
}

.social-item-card:hover .social-arrow {
    color: var(--color-text-primary);
    transform: translateX(3px);
}

html[dir="rtl"] .social-item-card:hover .social-arrow {
    transform: translateX(-3px) rotate(180deg);
}

html[dir="rtl"] .social-arrow {
    transform: rotate(180deg);
}

/* Map Review Section */
.map-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.map-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.map-card-text h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.map-card-text p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.review-highlight {
    color: var(--color-gold);
    font-weight: 700;
}

.map-preview-box {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.map-preview-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.btn-map-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-map-action.nav {
    background: rgba(217, 119, 6, 0.08);
    color: var(--color-gold);
    border-color: rgba(217, 119, 6, 0.2);
}

.btn-map-action.nav:hover {
    background: var(--color-gold);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-gold-glow);
}

.btn-map-action.review {
    background: var(--color-emerald);
    color: #fff;
}

.btn-map-action.review:hover {
    background: var(--color-emerald-dark);
    box-shadow: 0 4px 15px var(--color-emerald-glow);
}

.btn-map-action svg {
    width: 18px;
    height: 18px;
}

/* Phone Contacts Section */
.phone-contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid var(--color-border);
}

.phone-details {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(14, 165, 233, 0.08);
    color: var(--color-phone);
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-number {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.phone-operator {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.phone-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-phone-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    background: rgba(128, 128, 128, 0.04);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-phone-circle:hover {
    background: var(--color-phone);
    color: #fff;
    border-color: var(--color-phone);
    box-shadow: 0 3px 10px var(--color-phone-glow);
    transform: scale(1.05);
}

.btn-phone-circle.copy:hover {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
    box-shadow: 0 3px 10px var(--color-emerald-glow);
}

.btn-phone-circle svg {
    width: 16px;
    height: 16px;
}

/* Toast Message */
#toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 185, 129, 0.96);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Share Clinic Floating Button */
.btn-share-clinic {
    margin-top: 1rem;
    width: 100%;
    background: rgba(128, 128, 128, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-share-clinic:hover {
    background: rgba(128, 128, 128, 0.08);
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}

.btn-share-clinic svg {
    width: 16px;
    height: 16px;
}

/* Footer Section */
footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: var(--color-emerald);
}

/* Keyframes Animations */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    animation: itemReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes itemReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay classes for entrance animations */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 480px) {
    .premium-card {
        padding: 1.5rem;
    }
    
    .banner-container {
        height: 120px;
        margin: 0 -1.5rem;
    }
    
    .avatar-wrapper {
        width: 100px;
        height: 100px;
        margin: -50px auto 0.75rem;
    }
    
    .profile-info h1 {
        font-size: 1.45rem;
    }
    
    .quick-actions-bar {
        gap: 0.5rem;
    }
    
    .btn-action {
        padding: 0.9rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .map-buttons-group {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   NEW PREMIUM DESIGN COMPONENTS (Dr. Kani Redesign)
   ========================================================================== */

/* Animated Ambient Glow Blobs in Background */
.ambient-glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    max-width: 550px;
    max-height: 550px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    animation: floatGlow 25s infinite alternate ease-in-out;
    transition: opacity 0.5s ease;
}
.glow-1 {
    background: radial-gradient(circle, var(--color-emerald-glow) 0%, transparent 70%);
    top: -15%;
    left: -15%;
}
.glow-2 {
    background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
    bottom: -15%;
    right: -15%;
    animation-delay: -7s;
}
@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(8% , 5%) scale(1.15) rotate(120deg); }
    100% { transform: translate(-5%, 12%) scale(0.9) rotate(240deg); }
}

/* Elegant Preloader Splash Screen */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-base);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.loader-logo-container {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.loader-logo-ring {
    position: absolute;
    inset: 0;
    border: 3.5px solid transparent;
    border-top-color: var(--color-emerald);
    border-bottom-color: var(--color-gold);
    border-radius: 50%;
    animation: spinRing 2s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite;
}
.loader-logo-img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: pulseLogo 2.5s ease-in-out infinite;
}
.loader-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    min-height: 2.2rem;
}
.loader-sub {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.85;
    text-align: center;
    letter-spacing: 1px;
}
@keyframes spinRing {
    to { transform: rotate(360deg); }
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(13, 148, 136, 0)); }
    50% { transform: scale(1.06); filter: brightness(1.08) drop-shadow(0 0 15px rgba(13, 148, 136, 0.3)); }
}

/* Premium Language Selector Modal Customizations */
.lang-selector-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(13, 148, 136, 0.05);
    padding: 3rem 2.5rem;
}
.lang-buttons-grid .btn-lang-select {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.lang-buttons-grid .btn-lang-select::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}
.lang-buttons-grid .btn-lang-select:hover::after {
    transform: translateX(100%);
}

/* Smile Comparison Before / After Gallery Styles */
.before-after-container {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.before-after-slider {
    position: relative;
    width: 100%;
    height: 290px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--color-shadow);
    border: 1px solid var(--color-border);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.slider-img.img-before {
    z-index: 1;
}
.slider-img.img-after {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    pointer-events: none;
}
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--color-emerald);
    color: #fff;
    border-radius: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px var(--color-emerald-glow);
    border: 3px solid #fff;
    pointer-events: none;
    transition: background-color 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.before-after-slider:hover .slider-handle {
    background: var(--color-gold);
    box-shadow: 0 4px 15px var(--color-gold-glow);
    transform: translate(-50%, -50%) scale(1.1);
}
.slider-handle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}
.before-after-slider:hover .slider-handle svg {
    transform: scale(1.1);
}
.slider-label {
    position: absolute;
    bottom: 12px;
    padding: 0.35rem 0.75rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 5;
    letter-spacing: 0.5px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.slider-label.label-before {
    left: 12px;
}
.slider-label.label-after {
    right: 12px;
}
html[dir="rtl"] .slider-label.label-before {
    left: auto;
    right: 12px;
}
html[dir="rtl"] .slider-label.label-after {
    right: auto;
    left: 12px;
}

/* Specialty Services Styling */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.service-card {
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--color-emerald);
    opacity: 0.75;
    transition: var(--transition-smooth);
}
html[dir="rtl"] .service-card::before {
    left: auto;
    right: 0;
}
.service-card:hover {
    background: rgba(13, 148, 136, 0.04);
    border-color: var(--color-border-glow);
}
.service-card:hover::before {
    width: 6px;
    background: var(--color-gold);
}
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.service-title-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.service-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    color: var(--color-emerald);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon-box {
    background: var(--color-emerald);
    color: #fff;
    transform: scale(1.05);
}
.service-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-primary);
}
.service-toggle-btn {
    color: var(--color-text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
    width: 20px;
    height: 20px;
}
.service-card:hover .service-toggle-btn {
    color: var(--color-text-primary);
}
.service-card.expanded .service-toggle-btn {
    transform: rotate(90deg);
}
html[dir="rtl"] .service-card.expanded .service-toggle-btn {
    transform: rotate(-90deg);
}
.service-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, margin-top 0.3s;
}
.service-card.expanded .service-body {
    max-height: 220px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--color-border);
}
.service-description {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}
.btn-service-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--color-emerald);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}
.btn-service-action:hover {
    background: var(--color-emerald-dark);
    box-shadow: 0 4px 10px var(--color-emerald-glow);
    transform: translateY(-1px);
}
.btn-service-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Clinic Live Hours Status Widget */
.status-bar-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid var(--color-border);
    margin-bottom: 0.85rem;
}
.status-indicator-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.status-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.status-indicator-dot.open {
    background-color: var(--color-emerald);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6);
    animation: livePulseGreen 1.8s infinite;
}
.status-indicator-dot.closed {
    background-color: #ea580c;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6);
    animation: livePulseOrange 1.8s infinite;
}
@keyframes livePulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}
@keyframes livePulseOrange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}
.status-label-texts {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.status-live-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.status-live-desc {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}
.status-schedule-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}
.status-schedule-btn:hover {
    border-color: var(--color-emerald);
    color: var(--color-emerald);
    background: rgba(13, 148, 136, 0.05);
}
.status-schedule-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}
.status-schedule-btn.active svg {
    transform: rotate(180deg);
}
.status-schedule-table {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, margin-top 0.3s;
}
.status-schedule-table.visible {
    max-height: 350px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 0.5rem;
}
.schedule-table-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(128,128,128,0.06);
    color: var(--color-text-secondary);
}
.schedule-table-row:last-child {
    border-bottom: none;
}
.schedule-table-row.today-highlight {
    background: rgba(13, 148, 136, 0.06);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--color-emerald);
    border-bottom-color: transparent;
}

/* Patient Testimonials Review Carousel */
.testimonials-slider-box {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.testimonials-viewport {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.testimonial-card-slide {
    width: 100%;
    flex-shrink: 0;
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-sizing: border-box;
}
.testimonial-rating-stars {
    color: var(--color-gold);
    display: flex;
    gap: 0.15rem;
}
.testimonial-rating-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.testimonial-quote-text {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
}
.testimonial-profile-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.testimonial-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    color: var(--color-emerald);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.testimonials-bullets-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
}
.bullet-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.5;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}
.bullet-indicator.active {
    background: var(--color-emerald);
    opacity: 1;
    transform: scale(1.25);
    width: 16px;
    border-radius: 4px;
}

/* Split-Panel Dual Column Desktop Layout */
@media (min-width: 768px) {
    body {
        padding-top: 1.5rem;
    }
    
    .app-container {
        max-width: 980px;
        display: grid;
        grid-template-columns: 340px 1fr;
        column-gap: 2.2rem;
        row-gap: 1.5rem;
        padding: 1.5rem 1.5rem;
    }
    
    header {
        grid-column: 1 / -1;
    }
    
    main.profile-card {
        position: sticky;
        top: 2rem;
        height: fit-content;
        grid-column: 1;
        margin-bottom: 0;
    }
    
    .right-column-sections {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    footer {
        grid-column: 1 / -1;
        padding-top: 3.5rem;
    }
}

/* Hover dynamic depth effects on profile & general cards */
.premium-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 0 25px rgba(13, 148, 136, 0.08);
}
html.dark-theme .premium-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(13, 148, 136, 0.12);
}

