/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fc;
    min-height: 100vh;
    color: #1a202c;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(17, 153, 142, 0.02) 0%, rgba(56, 239, 125, 0.03) 100%),
        radial-gradient(circle at 20% 20%, rgba(56, 239, 125, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(17, 153, 142, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 0;
    animation: fadeIn 0.4s ease-out;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    animation: none;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Website Header - Navigation */
.website-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(17, 153, 142, 0.15);
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo-icon {
    font-size: 36px;
}

.header-logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav-link {
    color: #2d3748;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #11998e;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #11998e;
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

.header-cta {
    padding: 12px 28px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

/* Content Section */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 40px 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.03) 0%, rgba(56, 239, 125, 0.03) 100%);
}

.section-white {
    background: white;
    width: 100%;
}

.section-gradient {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    border-radius: 2px;
}

/* Website Footer */
.website-footer {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
    padding: 60px 40px 30px;
    margin-top: 60px;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    padding-left: 20px;
    position: relative;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    padding-left: 25px;
}

.footer-link:hover::before {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Page Content Styles */
.page-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
    font-weight: 400;
}

.page-header .btn-back {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #11998e;
    color: #11998e;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-header .btn-back:hover {
    background: #11998e;
    color: white;
}

/* Page scroll wrapper for content */
.page-scroll-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}

.page-scroll-content::-webkit-scrollbar {
    width: 8px;
}

.page-scroll-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.page-scroll-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 10px;
}

.page-scroll-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d7a6f 0%, #2dd164 100%);
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen - Enhanced */
.welcome-hero {
    text-align: center;
    margin-bottom: 40px;
    animation: bounceIn 1s ease-out;
}

.hero-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 10px 20px rgba(17, 153, 142, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo-large {
    font-size: 56px;
    font-weight: bold;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(17, 153, 142, 0.2);
}

.tagline-large {
    font-size: 18px;
    color: #666;
    font-style: italic;
    font-weight: 500;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    border: 2px solid rgba(17, 153, 142, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 239, 125, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.banner-icon {
    font-size: 60px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 28px;
    color: #11998e;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-banner .subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Welcome Stats */
.welcome-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(17, 153, 142, 0.1);
    transition: all 0.3s ease;
}

.stat-card-welcome:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.2);
    border-color: #11998e;
}

.stat-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #11998e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Features Grid - Enhanced */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(17, 153, 142, 0.25);
    border-color: #38ef7d;
    background: linear-gradient(135deg, #ffffff 0%, rgba(56, 239, 125, 0.05) 100%);
}

.feature-icon {
    font-size: 65px;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    font-size: 22px;
    color: #11998e;
    margin-bottom: 12px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #0d7a6e;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.feature-card:hover p {
    color: #555;
}

/* Demo Badge */
.demo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    margin: 30px auto;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    font-size: 20px;
}

/* Legacy Welcome Styles */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 42px;
    color: #11998e;
    margin-bottom: 5px;
}

.tagline {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

.welcome-content {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.welcome-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.features {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 0 auto 30px;
}

.features li {
    font-size: 15px;
    padding: 8px 0;
    color: #555;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(17, 153, 142, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #11998e;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 20px;
}

.contact-info p {
    margin: 5px 0;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
    flex-shrink: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 15px;
    background: white;
    color: #11998e;
    border: 2px solid #11998e;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #11998e;
    color: white;
}

.btn-back {
    background: none;
    border: none;
    font-size: 16px;
    color: #11998e;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #f0f0f0;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f0f0f0;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h2 {
    font-size: 22px;
    color: #333;
}

/* Search Box */
.search-box {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.search-box h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.search-input-group {
    position: relative;
    margin-bottom: 10px;
}

.search-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input-group input:focus {
    outline: none;
    border-color: #11998e;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f8f8;
}

.suggestion-item strong {
    color: #11998e;
}

.suggestion-item small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 3px;
}

.plus-divider {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #11998e;
    margin: 10px 0;
    flex-shrink: 0;
}

.selected-items {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.selected-item {
    background: #e8f5f3;
    border: 2px solid #11998e;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
    display: none;
    font-size: 13px;
}

.selected-item.active {
    display: block;
}

.selected-item strong {
    color: #11998e;
    font-size: 15px;
}

.selected-item p {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.quick-scan {
    margin-top: 10px;
    flex-shrink: 0;
}

/* Result Screen */
.result-content {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.result-card {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    text-align: center;
    flex-shrink: 0;
}

.result-card.compatible {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.result-card.incompatible {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.result-card.warning {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: white;
}

.result-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.result-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.result-card p {
    font-size: 14px;
    line-height: 1.4;
}

.result-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    flex-shrink: 0;
}

.result-details h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.interaction-info {
    background: white;
    border-left: 4px solid #11998e;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.interaction-info strong {
    color: #11998e;
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.interaction-info p {
    color: #666;
    line-height: 1.4;
    font-size: 12px;
}

.recommendation {
    background: #fff3cd;
    border-left: 4px solid #f2994a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.recommendation strong {
    color: #f2994a;
    display: block;
    margin-bottom: 8px;
}

.recommendation p {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* Profile Screen */
.profile-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #11998e;
}

.form-group textarea {
    min-height: 50px;
    resize: vertical;
}

.profile-info {
    background: #e8f5f3;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 15px;
    color: #11998e;
    margin-bottom: 6px;
}

.profile-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #11998e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38ef7d;
}

/* Navigation Menu */
.nav-menu {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #666;
}

.nav-item:hover {
    background: #e8f5f3;
    color: #11998e;
    transform: translateY(-3px);
}

.nav-item.active {
    background: #11998e;
    color: white;
}

.nav-item span:first-child {
    font-size: 24px;
}

.nav-item span:last-child {
    font-size: 12px;
    font-weight: 500;
}

/* Chat Screen */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.message {
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: #11998e;
    color: white;
}

.message.user .message-avatar {
    background: #38ef7d;
    color: white;
}

.message.doctor .message-avatar {
    background: #3498db;
    color: white;
}

.message-content {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 10px;
    line-height: 1.4;
    font-size: 13px;
}

.message.bot .message-content {
    background: white;
    border: 1px solid #e0e0e0;
}

.message.user .message-content {
    background: #11998e;
    color: white;
}

.message.doctor .message-content {
    background: #3498db;
    color: white;
}

.message-time {
    font-size: 10px;
    color: #999;
    margin-top: 3px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #11998e;
}

.btn-send {
    padding: 12px 25px;
    background: #11998e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send:hover {
    background: #0d7a72;
    transform: scale(1.05);
}

/* Doctor Consultation */
.doctor-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.doctor-card:hover {
    border-color: #11998e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.2);
}

.doctor-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #11998e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.doctor-info {
    flex: 1;
}

.doctor-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.doctor-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.doctor-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #e8f5f3;
    color: #11998e;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.doctor-status.offline {
    background: #fee;
    color: #e74c3c;
}

.premium-badge {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
}

/* History Screen */
.history-list {
    margin-top: 12px;
}

.history-item {
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #11998e;
    flex-shrink: 0;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.history-item-header h4 {
    font-size: 14px;
    color: #333;
}

.history-date {
    font-size: 11px;
    color: #999;
}

.history-combination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.history-combination span {
    padding: 4px 8px;
    background: #e8f5f3;
    color: #11998e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.history-result {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.history-result.compatible {
    background: #d4edda;
    color: #155724;
}

.history-result.incompatible {
    background: #f8d7da;
    color: #721c24;
}

.history-result.warning {
    background: #fff3cd;
    color: #856404;
}

/* Reminders Screen */
.reminder-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #11998e;
    flex-shrink: 0;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reminder-header h4 {
    font-size: 14px;
    color: #333;
}

.reminder-time {
    font-size: 15px;
    font-weight: bold;
    color: #11998e;
    margin-bottom: 5px;
}

.reminder-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.reminder-days {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.day-badge {
    padding: 3px 8px;
    background: #e8f5f3;
    color: #11998e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.btn-toggle {
    padding: 5px 12px;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle.on {
    background: #11998e;
    color: white;
}

.btn-toggle.off {
    background: #e0e0e0;
    color: #666;
}

.btn-add {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
    transition: all 0.3s;
}

.btn-add:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(17, 153, 142, 0.6);
}

/* Profile Statistics */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
    animation: slideInUp 0.5s ease-out;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.bmi-indicator {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bmi-indicator h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.bmi-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.bmi-number {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bmi-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.bmi-status.normal {
    background: #d4edda;
    color: #155724;
}

.bmi-status.underweight {
    background: #fff3cd;
    color: #856404;
}

.bmi-status.overweight {
    background: #f8d7da;
    color: #721c24;
}

.bmi-status.obese {
    background: #f5c6cb;
    color: #721c24;
}

.bmi-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bmi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Type Filter */
.type-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #11998e;
    background: white;
    color: #11998e;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e8f5f3;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-color: transparent;
}

.filter-btn .count {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: bounceIn 0.5s ease-out;
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 22px;
    color: #11998e;
    font-weight: bold;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.btn-close:hover {
    color: #333;
}

/* Language Selector */
.language-selector {
    display: none;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
}

.lang-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

/* Enhanced Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Apply animations to elements */
.logo-icon {
    animation: bounceIn 1s ease-out, pulse 2s infinite 1s;
}

.welcome-content {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.btn-primary {
    animation: slideInUp 0.6s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.search-box {
    animation: slideInLeft 0.5s ease-out 0.2s both;
}

.selected-item {
    animation: slideInUp 0.4s ease-out;
}

.result-card {
    animation: bounceIn 0.6s ease-out;
}

.doctor-card {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.doctor-card:nth-child(1) { animation-delay: 0.1s; }
.doctor-card:nth-child(2) { animation-delay: 0.2s; }
.doctor-card:nth-child(3) { animation-delay: 0.3s; }

.history-item {
    animation: slideInLeft 0.4s ease-out;
    animation-fill-mode: both;
}

.history-item:nth-child(1) { animation-delay: 0.05s; }
.history-item:nth-child(2) { animation-delay: 0.1s; }
.history-item:nth-child(3) { animation-delay: 0.15s; }
.history-item:nth-child(4) { animation-delay: 0.2s; }

.reminder-card {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.reminder-card:nth-child(1) { animation-delay: 0.1s; }
.reminder-card:nth-child(2) { animation-delay: 0.2s; }

.message {
    animation: slideInUp 0.3s ease-out;
}

.nav-menu {
    animation: slideInUp 0.5s ease-out 0.3s both;
}

.modal.active .modal-content {
    animation: bounceIn 0.5s ease-out;
}

/* Desktop Specific Styles */
/* Desktop - Enhanced for Large Screens */
@media (min-width: 1024px) {
    .container {
        max-width: 1600px;
        padding: 60px 80px;
    }
    
    .search-box {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .plus-divider {
        margin: 0;
        font-size: 40px;
    }
    
    .selected-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .doctor-card {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        gap: 25px;
    }
    
    .chat-container {
        height: 650px;
    }
    
    .logo-large {
        font-size: 72px;
    }
    
    .hero-banner h1 {
        font-size: 36px;
    }
    
    .hero-banner .subtitle {
        font-size: 18px;
    }
    
    .stats-main-title {
        font-size: 42px;
    }
    
    .stats-grid-large {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .stat-icon-large {
        font-size: 90px;
    }
    
    .stat-number-large {
        font-size: 56px;
    }
    
    .stat-label-large {
        font-size: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .feature-icon {
        font-size: 75px;
    }
    
    .feature-card h3 {
        font-size: 24px;
    }
    
    .feature-card p {
        font-size: 16px;
    }
    
    .platform-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .platform-stat-icon {
        font-size: 60px;
    }
    
    .platform-stat-value {
        font-size: 42px;
    }
    
    .coverage-card {
        padding: 40px;
    }
    
    .coverage-title {
        font-size: 24px;
    }
    
    .coverage-badge {
        font-size: 20px;
        padding: 10px 25px;
    }
    
    .coverage-bar {
        height: 40px;
    }
    
    .coverage-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .coverage-item {
        font-size: 15px;
        padding: 15px;
    }
    
    .features {
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 30px;
    }
    
    .nav-menu {
        position: relative;
        margin-top: 30px;
        padding: 15px;
    }
    
    .nav-item span:first-child {
        font-size: 28px;
    }
    
    .nav-item span:last-child {
        font-size: 14px;
    }
    
    .result-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .result-details h4 {
        grid-column: 1 / -1;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 900px;
        padding: 35px;
    }
    
    .search-box {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
        align-items: center;
    }
    
    .plus-divider {
        margin: 0;
    }
    
    .selected-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .logo h1 {
        font-size: 48px;
    }
    
    .features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 20px;
    }
    
    .nav-menu {
        margin-top: 25px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .container {
        padding: 20px;
        border-radius: 0;
        width: 100%;
    }

    .screen {
        padding: 0;
    }

    .logo h1 {
        font-size: 36px;
    }

    .welcome-content h2 {
        font-size: 20px;
    }
    
    .nav-menu {
        border-radius: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px;
        z-index: 100;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item span:last-child {
        font-size: 10px;
    }
    
    .btn-add {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .chat-container {
        height: calc(100vh - 250px);
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .logo h1 {
        font-size: 30px;
    }
    
    .welcome-content h2 {
        font-size: 18px;
    }
    
    .language-selector {
        flex-direction: column;
        gap: 5px;
        padding: 8px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .nav-item span:first-child {
        font-size: 20px;
    }
}

/* O'zbekiston Statistikasi - Home Page */
.uzbekistan-stats-home {
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.stats-main-title {
    text-align: center;
    font-size: 32px;
    color: #11998e;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(17, 153, 142, 0.2);
    animation: slideInUp 0.6s ease-out;
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card-large {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.stat-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card-large.primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-large.success::before {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card-large.warning::before {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.stat-card-large.info::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card-large:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-card-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon-large {
    font-size: 70px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.stat-content {
    width: 100%;
}

.stat-number-large {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card-large.primary .stat-number-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-large.warning .stat-number-large {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-large.info .stat-number-large {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-large {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.stat-description {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* Coverage Section */
.coverage-section {
    margin: 40px 0;
    animation: fadeIn 1s ease-out;
}

.coverage-card {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(17, 153, 142, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.coverage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.coverage-title {
    font-size: 20px;
    font-weight: bold;
    color: #11998e;
}

.coverage-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
}

.coverage-bar {
    height: 30px;
    background: rgba(17, 153, 142, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.coverage-fill {
    height: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 15px;
    transition: width 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.5);
    position: relative;
    overflow: hidden;
}

.coverage-fill::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: shimmer 2s infinite;
}

.coverage-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
}

.coverage-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coverage-icon {
    font-size: 20px;
}

.coverage-item strong {
    color: #11998e;
    font-weight: bold;
}

/* Platform Stats */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.platform-stat-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(17, 153, 142, 0.1);
    transition: all 0.3s ease;
}

.platform-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(17, 153, 142, 0.2);
    border-color: #38ef7d;
}

.platform-stat-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.platform-stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #11998e;
    margin-bottom: 8px;
}

.platform-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Old O'zbekiston Statistikasi (Search page) */
.uzbekistan-stats {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid rgba(17, 153, 142, 0.1);
}

.stats-title {
    text-align: center;
    font-size: 20px;
    color: #11998e;
    margin-bottom: 20px;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.15);
    border-color: #38ef7d;
}

.stat-box .stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.stat-box .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #11998e;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 13px;
    color: #666;
}

.stats-info {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.stats-info p {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
}

.stats-info strong {
    color: #11998e;
    font-weight: bold;
}

/* Quick Actions */
.quick-actions {
    margin: 15px 0;
    flex-shrink: 0;
}

.quick-actions h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(17, 153, 142, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.2);
    border-color: #11998e;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.action-icon {
    font-size: 24px;
}

/* Combinations List */
.combinations-list {
    display: grid;
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.combination-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.combination-card.safe {
    border-left-color: #38ef7d;
}

.combination-card.warning {
    border-left-color: #f2994a;
}

.combination-card.danger {
    border-left-color: #eb5757;
}

.combination-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.combination-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.combination-icon {
    font-size: 30px;
}

.combination-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.combination-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.combination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.severity-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.severity-low {
    background: #38ef7d;
}

.severity-medium {
    background: #f2994a;
}

.severity-high {
    background: #eb5757;
}

.test-btn {
    padding: 8px 20px;
    background: #11998e;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.test-btn:hover {
    background: #0d7a6e;
    transform: scale(1.05);
}

/* Recommendations Content */
.recommendations-content {
    display: grid;
    gap: 20px;
}

.recommendation-section {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(17, 153, 142, 0.1);
}

.recommendation-section h4 {
    font-size: 18px;
    color: #11998e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-list {
    display: grid;
    gap: 10px;
}

.recommendation-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: start;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.recommendation-item .icon {
    font-size: 24px;
}

.recommendation-item .text {
    flex: 1;
}

.recommendation-item .text strong {
    color: #11998e;
    font-size: 15px;
}

.recommendation-item .text p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-link {
    color: #2d3748;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    color: #11998e;
}

.mobile-menu-cta {
    padding: 15px 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 20px 30px;
    }
    
    .header-nav {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .content-section {
        padding: 60px 30px;
    }
    
    .stats-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .website-header {
        padding: 10px 12px;
        position: fixed;
        width: 100%;
        z-index: 1000;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        gap: 8px;
    }
    
    .header-logo {
        gap: 6px;
    }
    
    .header-logo-icon {
        font-size: 24px;
    }
    
    .header-logo-text {
        font-size: 18px;
    }
    
    .header-nav {
        display: none;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
    }
    
    .mobile-menu-btn span {
        width: 22px;
        height: 2.5px;
        background: #11998e;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hero-section {
        padding: 80px 15px 30px;
        min-height: auto;
    }
    
    .welcome-hero {
        margin-bottom: 20px;
    }
    
    .hero-icon {
        font-size: 50px;
    }
    
    .logo-large {
        font-size: 32px;
    }
    
    .tagline-large {
        font-size: 14px;
    }
    
    .hero-banner {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .banner-icon {
        font-size: 40px;
    }
    
    .hero-banner h1 {
        font-size: 20px;
    }
    
    .hero-banner .subtitle {
        font-size: 13px;
    }
    
    .content-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .page-content {
        padding: 70px 15px 30px;
        height: 100vh;
    }
    
    .page-header {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .page-header h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    .page-header .btn-back {
        position: static;
        transform: none;
        margin-bottom: 10px;
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
    
    .page-scroll-content {
        overflow-y: auto;
        padding-right: 5px;
    }
    
    /* Stats cards */
    .stats-grid-large {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card-large {
        padding: 15px;
    }
    
    .stat-icon-large {
        font-size: 35px;
    }
    
    .stat-number-large {
        font-size: 24px;
    }
    
    .stat-label-large {
        font-size: 13px;
    }
    
    .stat-description {
        font-size: 11px;
    }
    
    /* Platform stats */
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .platform-stat-icon {
        font-size: 28px;
    }
    
    .platform-stat-value {
        font-size: 20px;
    }
    
    .platform-stat-label {
        font-size: 11px;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 35px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    /* Search screen */
    .type-filter {
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-box {
        margin-bottom: 12px;
    }
    
    .search-box h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .search-input-group input {
        padding: 10px;
        font-size: 13px;
    }
    
    .plus-divider {
        font-size: 18px;
        margin: 10px 0;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-secondary {
        padding: 10px;
        font-size: 13px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px 0;
    }
    
    .action-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Profile form */
    .profile-form .form-group {
        margin-bottom: 10px;
    }
    
    .profile-form label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .form-group textarea {
        min-height: 40px;
    }
    
    /* Result screen */
    .result-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .result-icon {
        font-size: 35px;
        margin-bottom: 8px;
    }
    
    .result-card h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .result-card p {
        font-size: 13px;
    }
    
    .result-details {
        padding: 10px;
        margin-top: 10px;
    }
    
    .interaction-info {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    /* Chat */
    .chat-container {
        height: calc(100vh - 150px);
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message {
        margin-bottom: 8px;
        gap: 6px;
    }
    
    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .message-content {
        padding: 8px 10px;
        font-size: 13px;
        max-width: 80%;
    }
    
    .chat-input-area {
        padding: 10px;
        gap: 8px;
    }
    
    .chat-input-area input {
        padding: 10px;
        font-size: 13px;
    }
    
    .chat-input-area button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Doctor cards */
    .doctor-card {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .doctor-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .doctor-info h4 {
        font-size: 14px;
    }
    
    .doctor-info p {
        font-size: 12px;
    }
    
    /* History & Reminders */
    .history-item,
    .reminder-card {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .history-item-header h4,
    .reminder-header h4 {
        font-size: 13px;
    }
    
    .history-combination span {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .reminder-time {
        font-size: 14px;
    }
    
    .reminder-description {
        font-size: 11px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .website-footer {
        padding: 30px 15px 15px;
        margin-top: 30px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-section h4 {
        font-size: 14px;
    }
    
    .footer-section p,
    .footer-link {
        font-size: 12px;
    }
    
    /* Coverage section */
    .coverage-section {
        margin: 20px 0;
    }
    
    .coverage-card {
        padding: 15px;
    }
    
    .coverage-title {
        font-size: 13px;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 85vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        max-height: calc(85vh - 120px);
        overflow-y: auto;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        width: 80%;
        max-width: 300px;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-menu-items {
        padding: 10px;
    }
    
    .mobile-menu-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Selected items */
    .selected-item {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .selected-item strong {
        font-size: 14px;
    }
    
    .selected-item p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .website-header {
        padding: 8px 10px;
    }
    
    .header-logo-text {
        font-size: 16px;
    }
    
    .header-logo-icon {
        font-size: 20px;
    }
    
    .hero-section {
        padding: 70px 12px 25px;
    }
    
    .logo-large {
        font-size: 28px;
    }
    
    .tagline-large {
        font-size: 13px;
    }
    
    .hero-banner {
        padding: 15px 12px;
    }
    
    .hero-banner h1 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .page-content {
        padding: 65px 12px 25px;
    }
    
    .page-header {
        padding: 12px 10px;
        margin-bottom: 12px;
    }
    
    .page-header h2 {
        font-size: 18px;
    }
    
    .page-subtitle {
        font-size: 12px;
    }
    
    .platform-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-number-large {
        font-size: 22px;
    }
    
    .stat-label-large {
        font-size: 12px;
    }
    
    .type-filter {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
    
    .search-box h3 {
        font-size: 12px;
    }
    
    .search-input-group input {
        padding: 8px;
        font-size: 12px;
    }
    
    .plus-divider {
        font-size: 16px;
        margin: 8px 0;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    .feature-card h3 {
        font-size: 15px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 13px;
    }
    
    .btn-secondary {
        padding: 8px;
        font-size: 12px;
    }
    
    .quick-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .result-card {
        padding: 10px;
    }
    
    .result-icon {
        font-size: 30px;
    }
    
    .result-card h3 {
        font-size: 16px;
    }
    
    .doctor-card {
        padding: 8px;
        gap: 8px;
    }
    
    .doctor-avatar {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .doctor-info h4 {
        font-size: 13px;
    }
    
    .doctor-info p {
        font-size: 11px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .message-content {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .chat-input-area input {
        padding: 8px;
        font-size: 12px;
    }
    
    .history-item,
    .reminder-card {
        padding: 8px;
    }
    
    .coverage-card {
        padding: 12px;
    }
    
    .footer-logo {
        font-size: 18px;
    }
    
    .footer-section h4 {
        font-size: 13px;
    }
    
    .modal-content {
        width: 98%;
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .mobile-menu {
        width: 85%;
    }
}
