/* ==========================================
   CSS Design System & Color Tokens
   ========================================== */
:root {
    --bg-dark: #0a0b0e;
    --card-bg: rgba(18, 20, 27, 0.7);
    --card-border: rgba(0, 240, 255, 0.08);
    --card-border-hover: rgba(0, 240, 255, 0.25);
    
    --neon-blue: #00f0ff;
    --neon-blue-dark: #0072ff;
    --neon-blue-glow: rgba(0, 240, 255, 0.15);
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #4b5563;
    
    --font-heading: 'Outfit', 'IBM Plex Sans Thai', sans-serif;
    --font-body: 'IBM Plex Sans Thai', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   Reset & Page Base Layout
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Travel Grid background lines */
.geo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px, 40px 40px, 40px 40px;
    background-position: center center;
    transform: rotate(15deg);
    opacity: 0.8;
}

.glow-sphere {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}

/* Main Container Wrap */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    min-height: 100vh;
}

/* ==========================================
   Header component
   ========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pulse-node {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    position: relative;
}

.pulse-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 60%, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-link-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 15px var(--neon-blue-glow);
    border-color: var(--neon-blue);
}

.nav-link-btn i {
    width: 14px;
    height: 14px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.geo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--neon-blue);
}

.geo-tag i {
    width: 14px;
    height: 14px;
    animation: rotGlobe 12s infinite linear;
}

@keyframes rotGlobe {
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3.8rem;
    line-height: 1.45; /* Adjusted to prevent Thai vowels from getting cut off */
    letter-spacing: -1.5px;
    padding-bottom: 0.4rem; /* Additional bottom padding for lower vowels like สระอุ */
    background: linear-gradient(135deg, #ffffff 40%, #a3e635 150%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
    background: linear-gradient(to right, #ffffff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 300;
}

.scroll-indicator {
    margin-top: 2rem;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background-color: var(--neon-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollScroll 2s infinite ease-in-out;
}

@keyframes scrollScroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ==========================================
   Dashboard Grid & Cards
   ========================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots .red { background: #ef4444; }
.window-dots .yellow { background: #eab308; }
.window-dots .green { background: #22c55e; }

.window-title {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 10px;
    border-radius: 6px;
}

/* YouTube Section Relative Wrapper */
.youtube-wrapper-relative {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.youtube-wrapper-relative .youtube-card {
    width: 100%;
}

/* Creator Profile Style inside Player Card */
.creator-profile-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar-ring-animated {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-blue-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    animation: rotateGlow 6s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.creator-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
    /* Counter-rotate the avatar image so the face stays upright while the ring spins */
    animation: counterRotateGlow 6s linear infinite;
}

@keyframes counterRotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* YouTube Window Styling */
.youtube-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 10px 40px -15px var(--neon-blue-glow);
}

.youtube-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom scrollbar styling for the video playlist */
.youtube-videos-grid::-webkit-scrollbar {
    width: 6px;
}
.youtube-videos-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.youtube-videos-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
}
.youtube-videos-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.3);
}

.yt-video-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.yt-video-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(4px);
}

.yt-thumbnail {
    width: 110px;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.yt-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 14, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.yt-play-btn i {
    width: 16px;
    height: 16px;
    color: var(--neon-blue);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.yt-video-item:hover .yt-play-btn {
    opacity: 1;
}

.yt-video-item:hover .yt-play-btn i {
    transform: scale(1.1);
}

.yt-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.yt-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-stats {
    display: flex;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ==========================================
   Interactive Link Dashboard & 3D Cards
   ========================================== */
.link-dashboard-card {
    perspective: 1000px; /* Setup 3D space */
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.title-with-icon h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.card-status-badge {
    background: rgba(0, 240, 255, 0.08);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.dashboard-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.interactive-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* If there are 3 cards, make the 3rd one span 2 columns on desktop to fill the row */
@media (min-width: 641px) {
    .orbit-card:nth-child(3) {
        grid-column: span 2;
    }
}

/* 3D Orbit / Tilt Card container */
.orbit-card {
    height: 220px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    will-change: transform;
}

.orbit-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 15px 35px -10px rgba(0, 240, 255, 0.15);
}

/* ElevenLabs-style Orbit Rings in card background */
.orbit-bg-elements {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -50px;
    right: -50px;
    pointer-events: none;
    transform: translateZ(-20px); /* Push into 3D background */
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 240, 255, 0.06);
    border-radius: 50%;
}

.ring-1 {
    width: 140px;
    height: 140px;
    border-style: dashed;
    animation: rotRing 20s infinite linear;
}

.ring-2 {
    width: 220px;
    height: 220px;
    animation: rotRing 40s infinite linear reverse;
}

@keyframes rotRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating particles orbiting in background */
.orbit-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    opacity: 0.4;
}

.p1 {
    top: 15%;
    left: 15%;
    animation: orbitFloat1 8s infinite ease-in-out alternate;
}

.p2 {
    bottom: 25%;
    right: 15%;
    animation: orbitFloat2 10s infinite ease-in-out alternate;
}

.p3 {
    top: 40%;
    right: 25%;
    animation: orbitFloat1 12s infinite ease-in-out alternate;
}

.p4 {
    bottom: 10%;
    left: 30%;
    animation: orbitFloat2 9s infinite ease-in-out alternate;
}

@keyframes orbitFloat1 {
    0% { transform: translate(0, 0) scale(0.8); }
    100% { transform: translate(30px, -20px) scale(1.2); }
}

@keyframes orbitFloat2 {
    0% { transform: translate(0, 0) scale(1.2); }
    100% { transform: translate(-25px, 25px) scale(0.8); }
}

/* Card inner content with Parallax Layering */
.card-inner-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    z-index: 5;
    transform: translateZ(40px); /* Pull content forward in 3D */
    transition: transform 0.2s ease;
}

.icon-sphere {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-blue);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.08);
    transition: var(--transition-smooth);
    transform: translateZ(20px);
}

.orbit-card:hover .icon-sphere {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateZ(30px) rotate(15deg);
}

.interactive-icon {
    width: 22px;
    height: 22px;
}

.card-text-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-text-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.url-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.action-arrow {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.orbit-card:hover .action-arrow {
    background: rgba(255, 255, 255, 0.08);
    color: var(--neon-blue);
    transform: rotate(45deg);
}

.action-arrow i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   Footer Component
   ========================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

.divider {
    color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Responsive Design Breakpoints
   ========================================== */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .leaning-user-img {
        display: none; /* Hide leaning user photo on tablet/mobile to prevent overlapping text */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 640px) {
    .main-wrapper {
        padding: 1.5rem 1rem;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.35;
    }
    
    .hero-section {
        padding: 2.5rem 0.5rem;
    }
}

/* ==========================================
   Entrance & Shimmer Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section, .geo-tag, .hero-title, .hero-subtitle, .dashboard-card, .youtube-wrapper-relative {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-section { animation-delay: 0.1s; }
.geo-tag { animation-delay: 0.2s; }
.hero-title { animation-delay: 0.3s; }
.hero-subtitle { animation-delay: 0.4s; }
.youtube-wrapper-relative { animation-delay: 0.5s; }
.link-dashboard-card { animation-delay: 0.6s; }

/* Gradient Shift Animation for highlighted text */
@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title .highlight {
    background: linear-gradient(120deg, #ffffff, var(--neon-blue), #ffffff, var(--neon-blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s ease infinite;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}
    
    .interactive-links-container {
        grid-template-columns: 1fr;
    }
    
    .orbit-card {
        height: 180px;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .divider {
        display: none;
    }

    .ai-modal-card {
        top: 80px;
        right: 5%;
        left: 5%;
        width: auto;
        transform-origin: top center;
    }
}

/* ==========================================
   Guild AI Chat Modal Style
   ========================================== */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 14, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.ai-modal-overlay.active {
    display: block;
}

.ai-modal-card {
    position: fixed;
    top: 95px;
    right: 2.5rem;
    left: auto;
    width: 420px;
    max-width: 90%;
    height: 520px;
    background: #11131a;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: top right;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
}

.ai-modal-overlay.active .ai-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ai-modal-header {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ai-title-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10;
}

.close-modal-btn:hover {
    color: #fff;
}

.ai-modal-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
}

.api-key-section {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.api-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.input-glow-group {
    display: flex;
    gap: 0.5rem;
}

.input-glow-group input, .ai-modal-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.input-glow-group input:focus, .ai-modal-footer input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.save-key-btn, .send-chat-btn {
    background: var(--neon-blue);
    border: none;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.save-key-btn:hover, .send-chat-btn:not(:disabled):hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.user-msg {
    align-self: flex-end;
    background: var(--neon-blue);
    color: var(--bg-dark);
    font-weight: 500;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.15);
}

.ai-modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.8rem;
}

.send-chat-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.send-chat-btn i {
    width: 16px;
    height: 16px;
}

.send-chat-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}
