/* CSS Variables */
:root {
    --color-bg: #0a0f1a;
    --color-bg-secondary: #111827;
    --color-bg-card: #1a2332;
    --color-text: #e8edf5;
    --color-text-secondary: #94a3b8;
    --color-accent: #22d3ee;
    --color-accent-secondary: #06b6d4;
    --color-gold: #fbbf24;
    --color-border: #2d3a4f;
    --color-success: #10b981;
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(34, 211, 238, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-secondary);
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.125rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: default;
}

.nav-dropdown > a:hover {
    color: var(--color-text);
}

.nav-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition);
    display: inline-block;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
    background: rgba(34, 211, 238, 0.1);
    color: var(--color-accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
    margin-bottom: 6px;
}

.mobile-menu-btn span:nth-child(3) {
    margin-top: 6px;
}

/* Hamburger animation when open */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

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

.mobile-nav a {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6rem 2rem;
    transition: color var(--transition);
    width: 100%;
    max-width: 320px;
    text-align: left;
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

.mobile-nav-home {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    max-width: 320px;
    margin-top: 0.5rem;
}

.mobile-nav-heading {
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 2rem 0.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(251, 191, 36, 0.05), transparent);
    pointer-events: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    max-width: 900px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    color: var(--color-bg);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
    color: var(--color-bg);
}

/* Rehabs Section */
.rehabs-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.rehabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Rehab Card */
.rehab-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.rehab-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(34, 211, 238, 0.3);
}

.rehab-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2 / 1; /* Prevents CLS by reserving space */
    transition: transform var(--transition);
}

/* Placeholder gradients for cards without images */
.card-image.placeholder {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image.placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.card-image.placeholder .placeholder-icon {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
    z-index: 1;
}

/* Gradient variations for visual variety */
.card-image.placeholder-1 {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1a2a 100%);
}
.card-image.placeholder-1::before {
    background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.2) 0%, transparent 60%);
}

.card-image.placeholder-2 {
    background: linear-gradient(135deg, #1a2332 0%, #111827 100%);
}
.card-image.placeholder-2::before {
    background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 60%);
}

.card-image.placeholder-3 {
    background: linear-gradient(135deg, #162030 0%, #0f1825 100%);
}
.card-image.placeholder-3::before {
    background: radial-gradient(circle at 50% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

/* Card Footer - contains phone and badge */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.card-badge {
    padding: 0.35rem 0.85rem;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-badge.featured {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--color-gold);
}

.card-content {
    padding: 1.5rem 2rem 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-location {
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-services li {
    padding: 0.35rem 0.75rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.card-contact {
    color: var(--color-text);
    font-weight: 500;
}

/* About Section */
.about-section {
    background: var(--color-bg-secondary);
    padding: 6rem 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-cta {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.about-cta p {
    margin-bottom: 0;
    color: var(--color-text);
}

/* Footer */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-disclaimer {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .rehabs-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content h3 {
        margin-top: 0;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat {
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-cta {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
}

/* ===================================
   Browse Sections (Location & Category)
   =================================== */

.browse-section {
    padding: 5rem 2rem;
    background: var(--color-bg-secondary);
}

.browse-categories-section {
    background: var(--color-bg);
}

.browse-container {
    max-width: 1200px;
    margin: 0 auto;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.browse-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.browse-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--color-text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.browse-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--color-text);
}

.browse-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.browse-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--color-accent);
}

.browse-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   Filter Bar
   =================================== */

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select {
    padding: 0.65rem 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: auto;
    transition: border-color var(--transition);
}

.filter-group select:focus {
    border-color: var(--color-accent);
    outline: none;
}

.filter-reset {
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-reset:hover {
    background: rgba(34, 211, 238, 0.1);
}

.filter-results {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

/* Card title link styling */
.card-content h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

.card-content h3 a:hover {
    color: var(--color-accent);
}

/* Footer Navigation Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
    flex-direction: row;
    margin-bottom: 2rem;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-col h4 {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-col a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav-col a:hover {
    color: var(--color-accent);
}

/* Browse Responsive */
@media (max-width: 1024px) {
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .browse-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .browse-section {
        padding: 3rem 1rem;
    }
    
    .browse-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .browse-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .browse-card {
        padding: 1.25rem;
    }
    
    .browse-icon {
        font-size: 1.5rem;
    }
    
    .browse-card h3 {
        font-size: 1.1rem;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .browse-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* LLM Data Page Specific Styles */
.llm-data-page {
    padding: 6rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.llm-data-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.llm-intro {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.data-section {
    margin-bottom: 3rem;
}

.data-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.data-entry {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.data-entry h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.data-entry dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.75rem 1rem;
}

.data-entry dt {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.data-entry dd {
    color: var(--color-text);
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   WEATHER WIDGET STYLES
   ============================================ */

.weather-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
    border-top: 1px solid var(--color-border);
}

.weather-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.weather-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.weather-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
}

.weather-intro-text {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.weather-intro-cta {
    color: var(--color-text);
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(34, 211, 238, 0.1);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.weather-forecast-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.weather-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.weather-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    min-height: 180px; /* Prevents CLS - reserves space for weather cards */
}

.weather-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.weather-card {
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.weather-card-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
}

.weather-region-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.weather-region-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.weather-region-info .location {
    color: var(--color-accent);
    font-size: 0.9rem;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-current-temp {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.weather-current-condition {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.forecast-day {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
}

.forecast-day .day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.forecast-day .weather-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.forecast-day .temps {
    font-size: 0.8rem;
}

.forecast-day .temp-high {
    color: var(--color-text);
    font-weight: 600;
}

.forecast-day .temp-low {
    color: var(--color-text-secondary);
}

/* Weather Icons */
.weather-icon-sunny::before { content: '☀️'; }
.weather-icon-clear-night::before { content: '🌙'; }
.weather-icon-partly-cloudy::before { content: '⛅'; }
.weather-icon-cloudy::before { content: '☁️'; }
.weather-icon-fog::before { content: '🌫️'; }
.weather-icon-rain::before { content: '🌧️'; }
.weather-icon-thunderstorm::before { content: '⛈️'; }
.weather-icon-snow::before { content: '❄️'; }

/* Weather Navigation */
.weather-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-nav-btn {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--transition);
}

.weather-nav-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

.weather-dots {
    display: flex;
    gap: 0.5rem;
}

.weather-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.weather-dot.active {
    background: var(--color-accent);
}

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

/* Weather Widget Responsive */
@media (max-width: 768px) {
    .weather-section {
        padding: 3rem 1rem;
    }
    
    .weather-card-inner {
        padding: 1.5rem;
    }
    
    .weather-region-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .weather-forecast {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }
    
    .forecast-day {
        padding: 0.5rem 0.25rem;
    }
    
    .forecast-day .day-name {
        font-size: 0.65rem;
    }
    
    .forecast-day .weather-icon {
        font-size: 1.25rem;
    }
    
    .forecast-day .temps {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .weather-section h2 {
        font-size: 1.5rem;
    }
    
    .weather-current-temp {
        font-size: 2rem;
    }
    
    .weather-forecast {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .forecast-day:nth-child(n+5) {
        display: none;
    }
}

/* ===================================
   Flight Tracker Marquee Section
   =================================== */

.flights-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-top: 1px solid var(--color-border);
}

.flights-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.flights-header {
    margin-bottom: 2rem;
}

.flights-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.flights-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Marquee Container */
.flights-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
    cursor: pointer;
    min-height: 140px; /* Prevents CLS - reserves space for flight cards */
}

.flights-marquee::before,
.flights-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.flights-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}

.flights-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg) 0%, transparent 100%);
}

/* Scrolling Track */
.flights-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee-scroll 120s linear infinite;
    width: max-content;
}

.flights-track:hover,
.flights-marquee.paused .flights-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Flight Card */
.flight-card {
    flex-shrink: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.flight-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* Plane Icon */
.flight-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flight-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
    transform: rotate(45deg);
}

/* Flight Info */
.flight-info {
    flex: 1;
    text-align: left;
}

.flight-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.flight-route {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.flight-route .origin {
    font-weight: 500;
}

.flight-route .arrow {
    color: var(--color-text-secondary);
    margin: 0 0.5rem;
}

.flight-route .destination {
    color: var(--color-accent);
    font-weight: 500;
}

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

.flight-airline {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Footer Text */
.flights-updated {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.flights-hint {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ===================================
   Mobile Flight Board - LED Style
   =================================== */

@media (max-width: 768px) {
    .flights-section {
        padding: 2rem 0.5rem;
    }
    
    .flights-container {
        max-width: 100%;
        padding: 0;
    }
    
    .flights-header {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .flights-header h2 {
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    
    .flights-subtitle {
        font-size: 0.8rem;
    }
    
    /* Hide desktop marquee elements */
    .flights-marquee {
        display: none;
    }
    
    /* Flight Board Container */
    .flight-board {
        display: block;
        background: #0a0a0a;
        border: 2px solid #1a1a1a;
        border-radius: 8px;
        overflow: hidden;
        max-height: 60vh;
        position: relative;
    }
    
    /* Board Header */
    .flight-board-header {
        display: grid;
        grid-template-columns: 1fr 1.5fr 0.8fr 1fr;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #111;
        border-bottom: 2px solid #222;
        font-family: 'Courier New', monospace;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #ffcc00;
    }
    
    /* Scrolling Board Content */
    .flight-board-content {
        height: calc(60vh - 50px);
        overflow: hidden;
        position: relative;
    }
    
    .flight-board-track {
        animation: board-scroll-up 30s linear infinite;
    }
    
    .flight-board-track.paused {
        animation-play-state: paused;
    }
    
    @keyframes board-scroll-up {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-50%);
        }
    }
    
    /* Flight Row */
    .flight-row {
        display: grid;
        grid-template-columns: 1fr 1.5fr 0.8fr 1fr;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        font-family: 'Courier New', monospace;
        font-size: 0.75rem;
        border-bottom: 1px solid #1a1a1a;
        color: #ffffff;
        text-decoration: none;
        transition: background 0.2s ease;
    }
    
    .flight-row:nth-child(even) {
        background: rgba(255, 255, 255, 0.02);
    }
    
    .flight-row:active {
        background: rgba(0, 255, 100, 0.1);
    }
    
    .flight-row .flight-num {
        color: #00ff88;
        font-weight: 700;
    }
    
    .flight-row .flight-from {
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .flight-row .flight-to {
        color: #ffcc00;
        font-weight: 600;
    }
    
    .flight-row .flight-time {
        color: #00ccff;
        text-align: right;
        font-weight: 500;
    }
    
    /* Board Footer Gradient */
    .flight-board::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(transparent, #0a0a0a);
        pointer-events: none;
    }
    
    .flights-updated,
    .flights-hint {
        font-size: 0.7rem;
        padding: 0 0.5rem;
    }
}

/* Desktop keeps existing horizontal marquee */
@media (min-width: 769px) {
    .flight-board {
        display: none;
    }
}

/* ===================================
   FAQ Section
   =================================== */

.faq-section {
    padding: 4rem 2rem;
    background: var(--color-bg-light);
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section .section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.faq-section .section-header p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(13, 148, 136, 0.1);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.faq-answer strong {
    color: var(--color-text);
}

/* Last Updated Badge */
.last-updated {
    display: inline-block;
    background: rgba(13, 148, 136, 0.15);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Mobile FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-section .section-header h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-item.open .faq-answer {
        padding: 0 1.25rem 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* ===================================
   AI Chat Widget
   =================================== */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-body);
}

/* Chat Bubble (Collapsed) */
.chat-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 148, 136, 0.5);
}

.chat-bubble .chat-icon {
    width: 22px;
    height: 22px;
}

.chat-bubble-text {
    display: inline;
}

/* Chat Panel (Expanded) */
.chat-panel {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 560px;
    background: #0f1419;
    border: 1px solid #2f3336;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-widget.open .chat-bubble {
    display: none;
}

.chat-widget.open .chat-panel {
    display: flex;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-icon svg {
    width: 22px;
    height: 22px;
}

.chat-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 2px 0 0 0;
}

.chat-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-close svg {
    width: 20px;
    height: 20px;
}

/* Crisis Banner */
.chat-crisis-banner {
    padding: 10px 16px;
    background: #1c1c1e;
    border-bottom: 1px solid #2f3336;
    font-size: 0.8rem;
    color: #f59e0b;
    text-align: center;
}

.chat-crisis-banner a {
    color: #f59e0b;
    font-weight: 700;
    text-decoration: underline;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Welcome Section */
.chat-welcome {
    padding: 8px 0;
}

.chat-welcome-text {
    color: #e7e9ea;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Quick Action Buttons */
.chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #1c2127;
    border: 1px solid #2f3336;
    border-radius: 10px;
    color: #e7e9ea;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: #252d35;
    border-color: #0d9488;
}

.quick-icon {
    font-size: 1.1rem;
}

/* Message Bubbles */
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageIn 0.3s ease;
}

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

.chat-message.user {
    align-self: flex-end;
    background: #0d9488;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant {
    align-self: flex-start;
    background: #1c2127;
    color: #e7e9ea;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #1c2127;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: #6b7280;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Input Area */
.chat-input-area {
    padding: 12px 16px 16px;
    background: #0f1419;
    border-top: 1px solid #2f3336;
}

.chat-disclaimer {
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 10px;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: #1c2127;
    border: 1px solid #2f3336;
    border-radius: 24px;
    color: #e7e9ea;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input::placeholder {
    color: #6b7280;
}

.chat-input:focus {
    border-color: #0d9488;
}

.chat-send {
    width: 44px;
    height: 44px;
    background: #0d9488;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send:hover {
    background: #0f766e;
    transform: scale(1.05);
}

.chat-send:disabled {
    background: #374151;
    cursor: not-allowed;
    transform: none;
}

.chat-send svg {
    width: 20px;
    height: 20px;
}

/* Center Info Card (in messages) */
.center-card {
    background: #1c2127;
    border: 1px solid #2f3336;
    border-radius: 12px;
    padding: 14px;
    margin-top: 8px;
}

.center-card h4 {
    color: #0d9488;
    font-size: 0.95rem;
    margin: 0 0 8px 0;
}

.center-card p {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 4px 0;
}

.center-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #0d9488;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.center-card a:hover {
    background: #0f766e;
}

/* Mobile Full Screen */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .chat-bubble-text {
        display: none;
    }
    
    .chat-bubble {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    
    .chat-widget.open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100svh; /* Small viewport height - doesn't change with keyboard */
        background: #0f1419; /* Match chat background so no gap shows */
        overflow: hidden;
    }
    
    .chat-widget.open .chat-panel {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }
    
    /* Messages area shrinks to fit, input stays at bottom */
    .chat-widget.open .chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
    
    /* Input area stays fixed size at bottom */
    .chat-widget.open .chat-input-area {
        flex: 0 0 auto;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
    
    .chat-header {
        border-radius: 0;
        flex-shrink: 0;
    }
    
    .chat-crisis-banner {
        flex-shrink: 0;
    }
    
    .chat-close {
        width: 44px;
        height: 44px;
    }
    
    .chat-messages {
        padding: 16px;
        flex: 1;
        min-height: 0; /* Important for flex scroll */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chat-input-area {
        flex-shrink: 0;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    
    .quick-action-btn {
        padding: 14px 16px;
    }
}

