/* ============================================
   МЦ Лекарь — Design System
   Фирменный стиль на основе mclekar.ru
   ============================================ */

:root {
    --violet: #d0147f;
    --violet-dark: #9a0057;
    --violet-light: #e8406c;
    --blue-light: #00a0e3;
    --green: #005631;

    --gradient-brand: linear-gradient(to right, #d0147f 50%, #00a0e3);
    --gradient-vioblue: linear-gradient(to right, #d0147f 50%, #00a0e3);
    --gradient-record: linear-gradient(to left, #5567ba, #794fa9);
    --gradient-oms: linear-gradient(to left, #794fa9, #8e409e);
    --gradient-soft: linear-gradient(345.57deg, #fdeef6 5.87%, #eef3ff 71.21%);
    --gradient-soft-2: linear-gradient(159deg, #fdeef6 5.87%, #eef3ff 71.21%);
    --gradient-purple: linear-gradient(135deg, #346CFC 0%, #7A29DC 100%);
    --gradient-pink: linear-gradient(45deg, #d0147f, #903e9d, #039ee2);
    --gradient-dark: linear-gradient(to right, #d0147f 40%, #4e2482);

    --primary: #d0147f;
    --primary-hover: #9a0057;
    --primary-light: #fdeef6;
    --secondary: #00a0e3;
    --secondary-hover: #0088c2;
    --success: #1ac23c;
    --warning: #d39717;
    --danger: #e74c3c;
    --info: #2980b9;

    --black: #252525;
    --gray-900: #333333;
    --gray-700: #555555;
    --gray-600: #666666;
    --gray-500: #808080;
    --gray-400: #999999;
    --gray-300: #cccccc;
    --gray-200: #dddddd;
    --gray-100: #eeeeee;
    --gray-50: #f4f4f4;
    --gray-25: #f8f8f8;
    --white: #ffffff;

    --shadow-sm: 0 1px 6px -1px rgba(37, 37, 37, 0.4);
    --shadow: 0px 5px 25px 0px rgba(18, 25, 38, 0.1);
    --shadow-md: 0px 0px 15px -5px rgba(18, 25, 38, 0.1);
    --shadow-lg: 0px 10px 15px -5px rgba(18, 25, 38, 0.1);
    --shadow-violet: 0px 0px 15px -3px var(--violet-light);
    --shadow-card: 0px 4px 8px 6px rgba(208, 20, 127, .12);

    --max-width: 1170px;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    --border-radius-xl: 50px;
    --border-radius-full: 100px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--primary-hover);
}

/* --- Bootstrap Overrides --- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 10px 24px;
    transition: var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-violet);
}

.btn-gradient {
    background: var(--gradient-brand);
    border: none;
    color: var(--white);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    padding: 12px 32px;
    transition: var(--transition);
}
.btn-gradient:hover {
    opacity: 0.9;
    color: var(--white);
    box-shadow: var(--shadow-violet);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--border-radius);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    border-radius: var(--border-radius);
}
.btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--border-radius-lg);
}

/* --- Navbar --- */
.navbar-lekar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0;
    z-index: 1050;
    transition: var(--transition);
}
.navbar-lekar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.navbar-lekar .navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
    padding: 12px 0;
}
.navbar-lekar .navbar-brand:hover {
    color: var(--primary-hover);
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}
@media (max-width: 575.98px) {
    .navbar-logo { height: 32px; }
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.1rem;
}

.navbar-lekar .nav-link {
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    padding: 20px 14px !important;
    transition: var(--transition-fast);
    position: relative;
}
.navbar-lekar .nav-link:hover,
.navbar-lekar .nav-link.active {
    color: var(--primary);
}
.navbar-lekar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.navbar-phone {
    color: var(--black);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}
.navbar-phone:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
    background: var(--gradient-soft);
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 520px;
}

.hero-stats-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--gray-700);
}
.hero-stats-inline strong {
    color: var(--primary);
    font-weight: 700;
}
.hero-stats-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 360px;
}
.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--gradient-brand);
    opacity: 0.12;
    filter: blur(40px);
}
.hero-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 14px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
    animation: heroFloat 3s ease-in-out infinite;
}
.hero-card i {
    font-size: 1.4rem;
    color: var(--primary);
}
.hero-card-1 { top: 30px; left: 20%; animation-delay: 0s; }
.hero-card-2 { top: 50%; right: 5%; animation-delay: 1s; }
.hero-card-3 { bottom: 40px; left: 10%; animation-delay: 2s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Quick Booking Widget --- */
.booking-widget {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow);
}
.booking-widget .form-select,
.booking-widget .form-control {
    border-radius: var(--border-radius);
    border-color: var(--gray-200);
    padding: 12px 16px;
    font-size: 14px;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--gradient-dark);
    padding: 36px 0;
    color: var(--white);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 14px;
    opacity: 0.85;
}

/* --- Section Styles --- */
.section {
    padding: 64px 0;
}
.section-light {
    background: var(--gray-25);
}
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}
.section-subtitle {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 0;
}

/* --- Specialty Grid --- */
.specialty-item {
    display: block;
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--gray-100);
    text-decoration: none;
}
.specialty-item:hover {
    background: var(--primary-light);
    border-color: rgba(208, 20, 127, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--black);
}
.specialty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}
.specialty-item:hover .specialty-icon {
    background: var(--primary);
    color: var(--white);
}
.specialty-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}

/* --- Cards Base --- */
.card-lekar {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
}
.card-lekar:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* --- Doctor Card --- */
.doctor-card {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 24px 20px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.doctor-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}
.doctor-card .doctor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}
.doctor-card .doctor-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}
.doctor-card .doctor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}
.doctor-card .doctor-specialty {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}
.doctor-card .doctor-exp {
    font-size: 13px;
    color: var(--gray-600);
}
.doctor-card .doctor-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.doctor-card .btn {
    margin-top: auto !important;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}
.rating-stars i {
    color: #f5a623;
}
.rating-stars .bi-star {
    color: var(--gray-300);
}
.rating-value {
    font-weight: 600;
    color: var(--black);
    margin-left: 6px;
    font-size: 13px;
}
.rating-count {
    font-size: 12px;
    color: var(--gray-500);
    margin-left: 2px;
}

/* --- Service Card --- */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: none;
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
}
.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}
.service-desc {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
}
.service-count {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    margin-bottom: 16px;
}
.service-card .service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- Branch Card --- */
.branch-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    display: flex;
    flex-direction: column;
}
.branch-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.branch-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 12px;
}
.branch-type-mc {
    background: var(--primary-light);
    color: var(--primary);
}
.branch-type-lab {
    background: #e6f7ff;
    color: var(--secondary);
}

.branch-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}
.branch-info {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.branch-info i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.branch-info a {
    color: var(--gray-600);
    text-decoration: none;
}
.branch-info a:hover {
    color: var(--primary);
}

/* --- Advantages --- */
.advantage-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}
.advantage-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}
.advantage-card:hover .advantage-icon {
    background: var(--primary);
    color: var(--white);
}
.advantage-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}
.advantage-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-dark);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

/* --- Booking Form Card --- */
.booking-form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
.footer-lekar {
    background: var(--black);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
}
.footer-lekar h5 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-about {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 8px;
}
.footer-license {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a,
.footer-links span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--primary);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}
.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-lekar .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 32px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* --- SEO Text --- */
.seo-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* --- Form Styles --- */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border-color: var(--gray-200);
    padding: 10px 16px;
    font-size: 14px;
    transition: var(--transition-fast);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(208, 20, 127, 0.15);
}
.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- Consent --- */
.consent-checkbox {
    font-size: 13px;
    color: var(--gray-600);
}
.consent-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

/* --- Booking Wizard --- */
.booking-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.booking-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.booking-step.active {
    background: var(--primary);
    color: var(--white);
}
.booking-step.completed {
    background: var(--success);
    color: var(--white);
}
.booking-step.pending {
    background: var(--gray-100);
    color: var(--gray-500);
}
.step-connector {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    align-self: center;
}
.step-connector.completed {
    background: var(--success);
}

/* Time Slots */
.time-slot {
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 14px;
}
.time-slot:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.time-slot.unavailable {
    background: var(--gray-50);
    color: var(--gray-400);
    cursor: not-allowed;
    border-color: var(--gray-100);
}

/* --- Patient Cabinet Sidebar --- */
.sidebar-lekar {
    background: var(--white);
    min-height: 100vh;
    border-right: 1px solid var(--gray-100);
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    padding-top: 20px;
    overflow-y: auto;
}
.sidebar-lekar .sidebar-brand {
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 10px;
}
.sidebar-lekar .sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.sidebar-lekar .nav-link {
    padding: 10px 20px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-lekar .nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.sidebar-lekar .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.sidebar-lekar .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.cabinet-content {
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
    background: var(--gray-50);
}

/* --- Status Badges --- */
.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1e7dd; color: #0f5132; }
.badge-arrived { background: #cff4fc; color: #055160; }
.badge-in-progress { background: #e2d5f1; color: #432874; }
.badge-completed { background: #d1e7dd; color: #0f5132; }
.badge-cancelled { background: #f8d7da; color: #842029; }
.badge-no-show { background: #f8d7da; color: #842029; }

.result-normal { color: var(--success); font-weight: 600; }
.result-high { color: var(--danger); font-weight: 600; }
.result-low { color: var(--secondary); font-weight: 600; }

/* --- Loyalty Card --- */
.loyalty-card {
    background: var(--gradient-dark);
    border-radius: var(--border-radius-lg);
    color: var(--white);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.loyalty-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.loyalty-points {
    font-size: 2.5rem;
    font-weight: 700;
}
.loyalty-level {
    font-size: 14px;
    opacity: 0.85;
}

/* --- Promo Banner --- */
.promo-banner {
    border-radius: var(--border-radius-lg);
    padding: 32px;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

/* --- OTP Input --- */
.otp-input {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}
.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(208, 20, 127, 0.15);
    outline: none;
}

/* --- Toast --- */
.toast-lekar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}
.toast-container-lekar {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Chat UI --- */
.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.chat-bubble-patient {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-bubble-doctor {
    background: var(--gray-50);
    color: var(--black);
    border-bottom-left-radius: 4px;
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--border-radius);
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton-avatar { width: 64px; height: 64px; border-radius: 50%; }
.skeleton-card { height: 150px; }

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUp 0.6s ease forwards; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}
.animate-on-scroll:nth-child(1) { animation-delay: 0.05s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.15s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.25s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.35s; }

/* --- Rating Stars (standalone) --- */
.stars {
    color: #f5a623;
    letter-spacing: 2px;
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-violet);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: none;
    font-size: 18px;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
}
.mobile-bottom-nav .nav-link {
    color: var(--gray-500);
    font-size: 11px;
    padding: 4px;
    text-decoration: none;
    display: block;
}
.mobile-bottom-nav .nav-link.active {
    color: var(--primary);
}
.mobile-bottom-nav .nav-link i {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title { font-size: 2rem; }
    .cabinet-content { margin-left: 0; }
    .sidebar-lekar { display: none; }
    .cta-section { padding: 32px 24px; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.6rem; }
    .hero-section { padding: 40px 0 70px; }
    .section { padding: 40px 0; }
    .stat-number { font-size: 1.75rem; }
    .booking-widget { padding: 16px 20px; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
    .scroll-top { bottom: 80px; }
    .cta-section { padding: 28px 20px; }
    .booking-form-card { padding: 24px 20px; }
}

/* --- Utility Classes --- */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--gray-600); }
.text-muted-custom { color: var(--gray-500); }
.fw-600 { font-weight: 600 !important; }
.fw-800 { font-weight: 800 !important; }
.rounded-xl { border-radius: var(--border-radius-lg); }
.bg-primary-subtle { background: var(--primary-light) !important; }
.border-primary-custom { border-color: var(--primary) !important; }

/* --- Filter Panel --- */
.filter-panel { background: var(--white); border-radius: var(--border-radius-md); padding: 24px; box-shadow: var(--shadow-md); }
.filter-title { font-weight: 600; font-size: 15px; margin-bottom: 16px; color: var(--black); display: flex; align-items: center; }
.filter-group { margin-bottom: 16px; }
.filter-group .form-label { font-size: 13px; font-weight: 500; color: var(--gray-600); }

/* --- Nav Tabs Lekar --- */
.nav-tabs-lekar { border-bottom: 2px solid var(--gray-100); }
.nav-tabs-lekar .nav-link { color: var(--gray-600); font-weight: 500; border: none; border-bottom: 2px solid transparent; padding: 10px 20px; margin-bottom: -2px; transition: var(--transition-fast); background: none; }
.nav-tabs-lekar .nav-link:hover { color: var(--primary); }
.nav-tabs-lekar .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* --- Nav Pills Override --- */
.nav-pills .nav-link { border-radius: var(--border-radius); color: var(--gray-600); font-weight: 500; font-size: 14px; padding: 8px 16px; transition: var(--transition-fast); }
.nav-pills .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-pills .nav-link.active { background: var(--primary); color: var(--white); }

/* --- Price Row --- */
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gray-100); gap: 12px; transition: var(--transition-fast); }
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--gray-25); margin: 0 -16px; padding: 14px 16px; border-radius: var(--border-radius-sm); }
.price-name { font-size: 15px; color: var(--black); flex: 1; }
.price-duration { font-size: 13px; color: var(--gray-500); white-space: nowrap; }
.price-value { font-size: 16px; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* --- Contact Card --- */
.contact-card { background: var(--white); border-radius: var(--border-radius-md); padding: 24px; box-shadow: var(--shadow-md); text-align: center; transition: var(--transition); height: 100%; }
.contact-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; color: var(--primary); }

/* --- Page Hero --- */
.page-hero { background: var(--gradient-soft); padding: 48px 0 40px; margin-bottom: 0; }
.page-hero h1 { font-size: 2rem; font-weight: 700; }
.page-hero p { color: var(--gray-600); }

/* --- Doctor Profile --- */
.doctor-profile-header { background: var(--gradient-soft); padding: 40px 0; }
.doctor-profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: var(--shadow-md); }
.doctor-profile-photo-placeholder { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; color: var(--white); background: var(--gradient-brand); box-shadow: var(--shadow-md); flex-shrink: 0; }
.profile-header { background: var(--white); border-radius: var(--border-radius-lg); padding: 32px; box-shadow: var(--shadow); }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 600; color: var(--white); background: var(--gradient-brand); flex-shrink: 0; }
.profile-name { font-size: 1.5rem; font-weight: 700; }
.profile-spec { font-size: 1rem; color: var(--primary); font-weight: 500; }

/* --- Info Badge --- */
.info-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--border-radius-full); background: var(--gray-50); font-size: 14px; font-weight: 500; color: var(--gray-700); }
.info-badge i { color: var(--primary); }

/* --- Review Card --- */
.review-card { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.review-card:last-child { border-bottom: none; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: var(--primary); flex-shrink: 0; }

/* --- Advantage Icon (about page) --- */
.adv-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 28px; color: var(--primary); transition: var(--transition); }

/* --- Specialty Icon/Name (booking) --- */
.spec-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); transition: var(--transition); }
.spec-name { font-size: 13px; font-weight: 600; color: var(--black); margin-top: 8px; }

/* --- Branch List Card --- */
.branch-list-card { background: var(--white); border-radius: var(--border-radius); padding: 16px 20px; box-shadow: var(--shadow-md); margin-bottom: 12px; transition: var(--transition); }
.branch-list-card:hover { box-shadow: var(--shadow-lg); }

/* --- Booking Progress (Wizard) --- */
.booking-progress { display: flex; align-items: center; justify-content: center; gap: 0; padding: 8px 0; }
.booking-progress .booking-step { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; background: var(--gray-100); color: var(--gray-500); transition: var(--transition); flex-shrink: 0; }
.booking-progress .booking-step.active { background: var(--primary); color: var(--white); box-shadow: var(--shadow-violet); }
.booking-progress .booking-step.done { background: var(--success); color: var(--white); }
.booking-progress .step-num { line-height: 1; }
.booking-progress .step-label { font-size: 13px; margin-left: 6px; }
.booking-step-line { flex: 1; height: 3px; background: var(--gray-200); max-width: 60px; transition: var(--transition); }
.booking-step-line.done { background: var(--success); }

/* --- Category Section Header --- */
.category-header { font-size: 1.125rem; font-weight: 700; color: var(--black); padding: 16px 0 8px; margin-top: 24px; display: flex; align-items: center; gap: 8px; }
.category-header:first-child { margin-top: 0; }
.category-header i { color: var(--primary); }

/* --- Step Card (Booking) --- */
.step-card { background: var(--white); border-radius: var(--border-radius-md); padding: 32px; box-shadow: var(--shadow-md); }

/* --- Top Bar --- */
.top-bar {
    background: var(--gray-25);
    border-bottom: 1px solid var(--gray-100);
    padding: 5px 0;
    font-size: 13px;
}
.top-bar-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-bar-icons > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--gray-500);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}
.top-bar-icons > a:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.top-bar-search {
    position: relative;
}
.top-bar-search input {
    width: 300px;
    max-width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 5px 30px 5px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.top-bar-search input:focus {
    outline: none;
    border-color: rgba(208, 20, 127, 0.35);
    box-shadow: 0 0 0 3px rgba(208, 20, 127, 0.1);
}
.top-bar-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.top-bar-search button:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}
.top-bar-social {
    display: flex;
    gap: 10px;
}
.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--gray-500);
    font-size: 16px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.top-bar-social a:hover {
    color: var(--primary);
    background: rgba(208, 20, 127, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(208, 20, 127, 0.14);
}
.top-bar-divider {
    width: 1px;
    height: 16px;
    background: var(--gray-200);
    display: inline-block;
    margin: 0 4px;
    flex-shrink: 0;
}
.top-bar-schedule {
    color: var(--gray-500);
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.top-bar-schedule i { color: var(--gray-400); margin-right: 3px; font-size: 11px; }
.top-bar-phone {
    color: var(--black);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.top-bar-phone:hover { color: var(--primary); }
.top-bar-phone i { color: var(--primary); margin-right: 3px; font-size: 12px; }

/* --- Navbar (glass on scroll, dropdown polish) --- */
.navbar-lekar {
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}
.navbar-lekar.scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 4px 30px rgba(18, 25, 38, 0.09);
    border-bottom-color: rgba(208, 20, 127, 0.07);
}
.navbar-lekar .navbar-toggler {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.navbar-lekar .navbar-toggler:hover {
    transform: scale(1.02);
}
.navbar-lekar .dropdown-menu {
    margin-top: 0.35rem;
    padding: 0.5rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(18, 25, 38, 0.12), 0 4px 14px rgba(208, 20, 127, 0.07);
    animation: lekarDropdownIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: top center;
}
.navbar-lekar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-lekar .dropdown-item:hover,
.navbar-lekar .dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}
.navbar-lekar .dropdown-item:active {
    background-color: var(--primary-light);
}

@keyframes lekarDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Micro-interactions: links & buttons --- */
a {
    transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover:not(:disabled):not(.disabled) {
    transform: scale(1.02);
}
.btn-gradient:hover {
    transform: translateY(-1px) scale(1.02);
}
.scroll-top:hover {
    transform: translateY(-2px) scale(1.02);
}

/* --- Section gradient divider (utility) --- */
.section-gradient-divider {
    display: block;
    height: 2px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    border: none;
    background: linear-gradient(90deg, transparent 0%, rgba(208, 20, 127, 0.2) 25%, rgba(0, 160, 227, 0.22) 75%, transparent 100%);
}

/* --- Breadcrumb Bar & breadcrumb-lekar (pill separators, home icon) --- */
.breadcrumb-bar {
    background: linear-gradient(180deg, rgba(250, 250, 252, 0.98) 0%, var(--gray-25) 100%);
    border-bottom: 1px solid rgba(208, 20, 127, 0.06);
    padding: 12px 0;
}
.breadcrumb-bar .breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    margin-bottom: 0;
}
.breadcrumb-bar .breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb-bar .breadcrumb-item a:hover {
    color: var(--primary);
}
.breadcrumb-bar .breadcrumb-item.active {
    color: var(--gray-700);
}
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    float: left;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.15rem 0.45rem;
    margin-right: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--gray-100), var(--white));
    color: var(--gray-500);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 8px rgba(18, 25, 38, 0.06);
}
.breadcrumb-bar .breadcrumb-item:first-child a,
.breadcrumb-lekar .breadcrumb-item:first-child a {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-bar .breadcrumb-item:first-child a::before,
.breadcrumb-lekar .breadcrumb-item:first-child a::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    flex-shrink: 0;
    background-color: currentColor;
    opacity: 0.85;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.breadcrumb-lekar {
    padding: 16px 0 10px;
}
.breadcrumb-lekar .breadcrumb {
    flex-wrap: wrap;
    gap: 0.25rem 0;
}
.breadcrumb-lekar .breadcrumb-item a {
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb-lekar .breadcrumb-item a:hover {
    color: var(--primary);
}
.breadcrumb-lekar .breadcrumb-item.active {
    color: var(--black);
    font-size: 14px;
}
.breadcrumb-lekar .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    float: left;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.15rem 0.45rem;
    margin-right: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--gray-100), var(--white));
    color: var(--gray-400);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 8px rgba(18, 25, 38, 0.06);
}

/* --- Footer: social lift --- */
.footer-lekar .social-link {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.footer-lekar .social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 14px 32px rgba(208, 20, 127, 0.38);
}

/* --- Animation utilities --- */
@keyframes lekarFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes lekarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes lekarLift {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.transition-micro {
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.animate-lekar-fade {
    animation: lekarFade 0.45s ease forwards;
}
.animate-lekar-slide-down {
    animation: lekarSlideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-lekar-lift {
    animation: lekarLift 0.45s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
    .navbar-lekar .dropdown-menu {
        animation: none;
    }
    .animate-lekar-fade,
    .animate-lekar-slide-down,
    .animate-lekar-lift {
        animation: none;
    }
}

/* --- Booking Nav (mobile) --- */
.mobile-bottom-nav .booking-nav i { color: var(--primary); }

/* --- Print --- */
@media print {
    .navbar-lekar, .footer-lekar, .sidebar-lekar,
    .mobile-bottom-nav, .scroll-top, .btn, .top-bar { display: none !important; }
    .cabinet-content { margin-left: 0 !important; }
}

/* ============================================
   Pharmacy / Online Store
   ============================================ */

/* --- Category Cards --- */
.pharmacy-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--border-radius-md);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    text-decoration: none;
    color: var(--black);
    height: 100%;
}
.pharmacy-category-card:hover {
    background: var(--primary-light);
    border-color: rgba(208, 20, 127, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--black);
}
.pharmacy-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
    transition: var(--transition);
}
.pharmacy-category-card:hover .pharmacy-category-icon {
    background: var(--primary);
    color: var(--white);
}
.pharmacy-category-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pharmacy-category-count {
    font-size: 12px;
    color: var(--gray-400);
}

/* --- Product Card --- */
.pharmacy-product-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pharmacy-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(208, 20, 127, 0.15);
}
.pharmacy-badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    z-index: 2;
}
.pharmacy-badge-rx {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 2;
}
.pharmacy-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 16px;
    background: var(--gray-25);
}
.pharmacy-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pharmacy-product-placeholder {
    font-size: 3rem;
    color: var(--gray-200);
}
.pharmacy-product-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pharmacy-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.pharmacy-product-name:hover {
    color: var(--primary);
}
.pharmacy-product-manufacturer {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.pharmacy-product-dosage {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.pharmacy-product-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

/* --- Prices --- */
.pharmacy-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.pharmacy-price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
}
.pharmacy-price-old {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
}
.pharmacy-savings {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: rgba(26, 194, 60, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.pharmacy-out-of-stock {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}
.pharmacy-btn-cart {
    border-radius: var(--border-radius-sm) !important;
    padding: 6px 10px !important;
}

/* --- Product Detail --- */
.pharmacy-product-detail-image {
    background: var(--gray-25);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
}
.pharmacy-product-detail-image img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}
.pharmacy-product-placeholder-lg {
    font-size: 6rem;
    color: var(--gray-200);
}
.pharmacy-detail-price-block {
    background: var(--gray-25);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 8px;
}

/* --- Sidebar (category page) --- */
.pharmacy-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-md);
    padding: 20px;
}
.pharmacy-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.pharmacy-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pharmacy-sidebar-list li {
    margin-bottom: 2px;
}
.pharmacy-sidebar-list a {
    display: block;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}
.pharmacy-sidebar-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.pharmacy-sidebar-list a.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

/* --- Info icons --- */
.pharmacy-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* --- Cart indicator (header) --- */
.pharmacy-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}
.pharmacy-cart-link:hover {
    color: var(--primary-hover);
}
.pharmacy-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .pharmacy-product-image {
        height: 140px;
    }
    .pharmacy-price-current {
        font-size: 14px;
    }
    .pharmacy-product-detail-image {
        min-height: 220px;
    }
}
