/* ==========================================================================
   ЕДИНЫЙ CSS ДЛЯ TABOBAT.UZ
   Организованная структура без конфликтов и дублирования
   ========================================================================== */

/* ==========================================================================
   1. CSS ПЕРЕМЕННЫЕ (Custom Properties)
   ========================================================================== */
:root {
    --primary: #00b894;
    --primary-dark: #00856f;
    --secondary: #0984e3;
    --accent: #6c5ce7;
    --success: #00b894;
    --danger: #ff7675;
    --warning: #fdcb6e;
    --info: #74b9ff;
    --dark: #2d3436;
    --light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --gradient-secondary: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    --gradient-hero: linear-gradient(135deg, #00b894 0%, #0984e3 50%, #6c5ce7 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: none;
}

/* ==========================================================================
   2. БАЗОВЫЕ СТИЛИ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.05)),
                url('/images/backgrounds/herbs-desktop.jpg') center/cover no-repeat,
                linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    background-attachment: scroll;
    overflow-x: hidden;
    min-height: 100vh;
}

body.loading * {
    transition: none !important;
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.05)),
                    url('/images/backgrounds/herbs-mobile.jpg') center/cover no-repeat,
                    linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    }
}

.container {
    position: relative;
    z-index: 10;
}

.container.mt-4 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 16px;
    margin-top: 1.5rem;
    max-width: min(1320px, 96vw);
    animation: pageContentFade 0.2s ease-out;
}

@keyframes pageContentFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .container.mt-4 {
        animation: none;
    }
}

/* ==========================================================================
   3. НАВИГАЦИЯ
   ========================================================================== */
.navbar {
    background: var(--primary);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1030;
    transition: none !important;
}

.navbar *, .navbar-nav *, .nav-item *, .navbar-brand * {
    transition: none !important;
    animation: none !important;
}

.navbar .collapse,
.navbar .collapsing,
.navbar .navbar-collapse {
    transition: none !important;
    animation: none !important;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    flex: 0 0 auto;
}

.navbar-nav {
    flex-wrap: nowrap;
}

.navbar .nav-link {
    color: white !important;
    white-space: nowrap;
    font-size: 14px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: none !important;
}

.navbar .nav-link i {
    width: 1.15em;
    text-align: center;
}

.navbar .nav-link:hover {
    opacity: 1;
}

.navbar .dropdown-toggle {
    color: white !important;
}

.navbar .dropdown-toggle::after {
    color: white;
}

.navbar .dropdown-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 8px 0;
    min-width: 200px;
}

.navbar .dropdown-item {
    color: #333;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary);
}

.navbar .dropdown-divider {
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

/* Адаптивное меню */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 13px;
        padding: 0.5rem 0.5rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .nav-link {
        font-size: 12px;
        padding: 0.5rem 0.4rem;
    }
}

/* ==========================================================================
   4. ПОИСК (строка поиска в header)
   ========================================================================== */
.header-search-bar {
    background-color: rgba(248, 249, 250, 0.95);
    margin: 0;
    padding: 15px 0;
    width: 100%;
}

.searchbar-actions {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.searchbar-main-btn {
    flex: 0 0 auto;
    min-width: 220px;
    white-space: nowrap;
}

#themeToggle {
    flex: 0 0 auto;
}

/* ==========================================================================
   5. HERO СЕКЦИЯ
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 42%, #3b82f6 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(15, 45, 120, 0.28);
}

.hero-section h1 {
    color: white;
    font-weight: 800;
    font-size: 3.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section {
        padding: 2rem 0;
    }
}

/* ==========================================================================
   6. КАРТОЧКИ
   ========================================================================== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   7. КНОПКИ
   ========================================================================== */
.btn {
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary,
.btn-success {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 16px rgba(9, 132, 227, 0.3);
}

.btn-outline-primary,
.btn-outline-success {
    color: var(--secondary);
    border: 2px solid var(--secondary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    background: var(--gradient-primary);
    border-color: var(--secondary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

/* ==========================================================================
   8. ФОРМЫ
   ========================================================================== */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   9. АЛЕРТЫ
   ========================================================================== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid var(--info);
}

/* ==========================================================================
   10. ФУТЕР
   ========================================================================== */
footer,
.footer {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
    position: relative;
}

footer h5 {
    color: var(--primary);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

footer a,
footer .footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

footer a:hover,
footer .footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

footer .col-md-4 {
    position: relative;
    padding: 20px;
}

footer .col-md-4:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

@media (max-width: 768px) {
    footer,
    .footer {
        padding: 20px 0 10px;
        margin-top: 30px;
    }
    footer .row {
        display: none;
    }
    footer .row:last-child {
        display: flex;
    }
    footer .col-md-4 {
        display: none;
    }
    footer h5 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    footer p {
        font-size: 12px;
        margin-bottom: 5px;
    }
    footer hr {
        margin: 10px 0;
    }
}

/* ==========================================================================
   12. КНОПКА ТЕМЫ
   ========================================================================== */
#themeToggle {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border: 2px solid rgba(255,255,255,0.2);
    color: #f7fafc;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: var(--transition);
}

#themeToggle:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   13. ИНТЕРАКТИВНЫЕ ЭЛЕМЕНТЫ
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5f2d, #97bc62);
    z-index: 9999;
    transition: width 0.1s ease;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c5f2d, #97bc62);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   14. ТОСТЫ И УВЕДОМЛЕНИЯ
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: none;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    .toast {
        transform: translateY(-100px);
    }
    .toast.show {
        transform: translateY(0);
    }
    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

/* ==========================================================================
   15. СКЕЛЕТОН ЗАГРУЗКИ
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 20px auto;
}

.skeleton-text {
    height: 16px;
    margin: 10px 20px;
    border-radius: 4px;
}

/* ==========================================================================
   16. LAZY LOADING
   ========================================================================== */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* ==========================================================================
   17. РЕЙТИНГ
   ========================================================================== */
.rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star.filled {
    color: #ffd700;
}

.star:hover {
    color: #ffd700;
}

/* ==========================================================================
   18. ВРАЧИ
   ========================================================================== */
.doctor-card {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.doctor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* ==========================================================================
   19. СТАТИСТИКА
   ========================================================================== */
.stat-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   20. ВКЛАДКИ
   ========================================================================== */
.card .nav-tabs,
.card-body .nav-tabs,
#profileTabs {
    border-bottom: 2px solid #dee2e6;
    flex-wrap: wrap;
    background: transparent;
}

.card .nav-tabs .nav-link,
.card-body .nav-tabs .nav-link,
#profileTabs .nav-link,
.nav-tabs .nav-item .nav-link {
    color: #333333;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: -2px;
    transition: var(--transition);
}

.card .nav-tabs .nav-link:hover,
.card-body .nav-tabs .nav-link:hover,
#profileTabs .nav-link:hover,
.nav-tabs .nav-item .nav-link:hover {
    color: #0d6efd;
    background-color: #e7f1ff;
}

.card .nav-tabs .nav-link.active,
.card-body .nav-tabs .nav-link.active,
#profileTabs .nav-link.active,
.nav-tabs .nav-item .nav-link.active {
    color: #0d6efd;
    background-color: #ffffff;
    border-color: #dee2e6 #dee2e6 #ffffff;
    font-weight: 700;
}

.tab-content {
    padding-top: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    background: #fff;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .card .nav-tabs .nav-link,
    .card-body .nav-tabs .nav-link,
    #profileTabs .nav-link,
    .nav-tabs .nav-item .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    .nav-tabs .nav-link i {
        display: block;
        margin: 0 auto 5px;
    }
}

/* ==========================================================================
   21. АНИМАЦИИ
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.3);
}

/* ==========================================================================
   22. ТЕМНАЯ ТЕМА
   ========================================================================== */
body.dark-theme {
    background: radial-gradient(ellipse at top, #1a202c 0%, #0f1419 100%),
                linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
    color: #f7fafc;
}

body.dark-theme .navbar {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

body.dark-theme .container.mt-4 {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95), rgba(26, 32, 44, 0.95));
    color: #f7fafc;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

body.dark-theme .card {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.9), rgba(45, 55, 72, 0.9));
    color: #f7fafc;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, 
body.dark-theme h4, body.dark-theme h5, body.dark-theme h6, 
body.dark-theme p, body.dark-theme div, body.dark-theme span {
    color: #f7fafc;
}

body.dark-theme .header-search-bar {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95), rgba(26, 32, 44, 0.95));
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.dark-theme .dropdown-menu {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.95), rgba(45, 55, 72, 0.95));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.dark-theme .dropdown-item {
    color: #f7fafc;
}

body.dark-theme .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.2), rgba(0, 184, 148, 0.1));
    color: #4ecdc4;
}

body.dark-theme #themeToggle {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    color: #2d3748;
    border-color: rgba(0,0,0,0.2);
}

body.dark-theme footer h5 {
    color: #4ecdc4;
}

body.dark-theme footer .footer-link:hover {
    color: #4ecdc4;
}

body.dark-theme .toast {
    background: #2d3748;
    color: #f7fafc;
}

body.dark-theme .skeleton {
    background: linear-gradient(90deg, #4a5568 25%, #2d3748 50%, #4a5568 75%);
    background-size: 200% 100%;
}

/* ==========================================================================
   23. ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ========================================================================== */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-success {
    background: var(--gradient-primary);
}

.badge-info {
    background: var(--gradient-secondary);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Отключаем проблемные элементы */
.nature-background, .falling-leaves, .nature-landscape, .sun { 
    display: none !important; 
}

/* ==========================================================================
   24. ПРОГРЕСС-БАРЫ
   ========================================================================== */
.progress-modern {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00cec9);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   25. DAVOLASH TAVSIYASI (PATIENT SURVEY RESULT)
   ========================================================================== */
.result-wrap {
    margin-top: 1.5rem;
}

.result-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.08));
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

.result-hero__icon {
    font-size: 2.5rem;
}

.result-hero__title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
}

.result-hero__complaint {
    font-size: 0.95rem;
    color: #4b5563;
}

.warning-box {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    background: #fffaf0;
    border-left: 4px solid #f97316;
    font-size: 0.95rem;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.empty-result {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: #f9fafb;
    box-shadow: var(--shadow-sm);
}

.empty-result__icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.survey-card {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

body.dark-theme .survey-card {
    background: rgba(30, 64, 175, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.herb-card,
.recipe-card,
.product-card {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 0.75rem;
}

.herb-card__name,
.product-card__name,
.recipe-card__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.herb-card__how,
.recipe-card__ingredients,
.recipe-card__how {
    font-size: 0.92rem;
    color: #4b5563;
}

.product-card__info {
    flex: 1;
}

.product-card__price {
    font-weight: 700;
    margin-top: 0.3rem;
}

.survey-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

body.dark-theme .result-hero {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(37, 99, 235, 0.16));
}

body.dark-theme .warning-box {
    background: rgba(127, 29, 29, 0.3);
    border-left-color: #f97316;
    color: #fed7aa;
}

body.dark-theme .result-section__title {
    color: #e5e7eb;
}

body.dark-theme .herb-card,
body.dark-theme .recipe-card,
body.dark-theme .product-card,
body.dark-theme .empty-result {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
