undefined/* AI Hub Specific Styles */

/* ===== MOBILE MENU BASE STYLES - MUST BE AT TOP ===== */

/* Desktop Navigation - Default visible */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

/* Mobile Menu Overlay - Hidden by default */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== NAVIGATION Z-INDEX FIX - MUST BE ON TOP ===== */
.navbar {
    z-index: 10000 !important;
}

.nav-menu {
    z-index: 9999 !important;
}

.mobile-menu-toggle {
    z-index: 10001 !important;
    position: relative;
}

/* Prevent horizontal scrolling - AGGRESSIVE FIX */
html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Force all containers to respect viewport width */
.ai-hub-section,
.ai-hub-section *,
.container,
.chat-container,
.access-card,
.donation-card,
.chat-interface,
.access-gate {
    box-sizing: border-box !important;
}

/* Override .container padding for mobile */
@media (max-width: 768px) {
    .ai-hub-section .container {
        padding: 0 0.5rem !important;
        margin: 0 !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 480px) {
    .ai-hub-section .container {
        padding: 0 0.25rem !important;
        margin: 0 !important;
        max-width: 100vw !important;
    }
}

/* ===== AI HUB BACKGROUND - CLEAN & SIMPLE ===== */
.ai-hub-section .ai-circuit-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.5 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Binary Rain Container */
.ai-hub-section .binary-rain {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    color: rgba(6, 182, 212, 0.8) !important;
    font-weight: bold !important;
    line-height: 20px !important;
    z-index: 2 !important;
}

/* Binary Columns mit Animation */
.ai-hub-section .binary-column {
    position: absolute !important;
    top: -100% !important;
    white-space: nowrap !important;
    animation: binaryFall 12s linear infinite !important;
}

/* Position für jede Spalte */
.ai-hub-section .binary-column:nth-child(1) { left: 5% !important; animation-delay: 0s !important; }
.ai-hub-section .binary-column:nth-child(2) { left: 15% !important; animation-delay: 2s !important; }
.ai-hub-section .binary-column:nth-child(3) { left: 25% !important; animation-delay: 4s !important; }
.ai-hub-section .binary-column:nth-child(4) { left: 35% !important; animation-delay: 1s !important; }
.ai-hub-section .binary-column:nth-child(5) { left: 45% !important; animation-delay: 3s !important; }
.ai-hub-section .binary-column:nth-child(6) { left: 55% !important; animation-delay: 5s !important; }
.ai-hub-section .binary-column:nth-child(7) { left: 65% !important; animation-delay: 2.5s !important; }
.ai-hub-section .binary-column:nth-child(8) { left: 75% !important; animation-delay: 4.5s !important; }
.ai-hub-section .binary-column:nth-child(9) { left: 85% !important; animation-delay: 1.5s !important; }
.ai-hub-section .binary-column:nth-child(10) { left: 95% !important; animation-delay: 3.5s !important; }

/* Grid Lines unter Binary Rain */
.ai-hub-section .grid-lines {
    z-index: 1 !important;
}

/* Binary Fall Animation */
@keyframes binaryFall {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 🥥 Special Coconut Cursors for Chat Actions */
.chat-messages {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23654321" stroke="%2306b6d4" stroke-width="1.5"/><ellipse cx="12" cy="12" rx="6" ry="8" fill="%238B4513" opacity="0.6"/><circle cx="8" cy="8" r="2" fill="%2306b6d4" opacity="0.6"/></svg>') 12 12, auto !important;
}

#chatInput {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="20" viewBox="0 0 2 20"><rect width="2" height="20" fill="%2306b6d4"/></svg>') 1 10, text !important;
}

/* AI Hub Section */
.ai-hub-section {
    min-height: 100vh;
    padding: 100px 0 50px;
    position: relative;
    background: 
        radial-gradient(ellipse at top, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #000000 0%, #0a0a14 100%);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Container muss ÜBER der Animation sein */
.ai-hub-section .container {
    position: relative;
    z-index: 10;
}

.ai-hub-section > * {
    max-width: 100%;
}

/* =================================
   COMING SOON OVERLAY - FULL SCREEN LOCK
   ================================= */

.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: overlayFadeIn 0.6s ease;
}

.coming-soon-content {
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(40px);
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 32px;
    padding: 4rem 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(6, 182, 212, 0.3),
        0 0 150px rgba(6, 182, 212, 0.2),
        inset 0 0 80px rgba(6, 182, 212, 0.05);
    animation: contentSlideUp 0.8s ease 0.2s both;
}

/* Large COCO Mascot */
.coco-mascot-large {
    margin-bottom: 2rem;
}

.coco-mascot-large img {
    width: 200px;
    height: auto;
    animation: floatLarge 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(6, 182, 212, 0.5))
            drop-shadow(0 5px 60px rgba(6, 182, 212, 0.4))
            drop-shadow(0 0 80px rgba(6, 182, 212, 0.3));
}

/* Coming Soon Title */
.coming-soon-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.coming-soon-title .gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #22d3ee 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShiftTitle 3s ease infinite;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6));
}

/* Coming Soon Subtitle */
.coming-soon-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Coming Soon Text */
.coming-soon-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Features Grid */
.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-item {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.feature-item span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
}

/* CTA Buttons */
.coming-soon-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-large i {
    font-size: 1.2rem;
}

/* Info Note */
.coming-soon-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.coming-soon-note i {
    color: var(--primary-color);
}

/* Animations */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes contentSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatLarge {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes gradientShiftTitle {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive - Coming Soon */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 3rem 2rem;
    }

    .coco-mascot-large img {
        width: 150px;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-subtitle {
        font-size: 1.5rem;
    }

    .coming-soon-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .coming-soon-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .coming-soon-overlay {
        padding: 1rem;
    }

    .coming-soon-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .coco-mascot-large img {
        width: 120px;
    }

    .coming-soon-title {
        font-size: 1.5rem;
    }

    .coming-soon-subtitle {
        font-size: 1.2rem;
    }

    .coming-soon-text {
        font-size: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }
}

/* Access Gate */
.access-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 2rem 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.access-card {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2), 0 0 100px rgba(6, 182, 212, 0.1);
    animation: fadeInUp 0.6s ease;
    box-sizing: border-box;
}

.coco-mascot {
    margin-bottom: 2rem;
}

.coco-mascot img {
    width: 180px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(6, 182, 212, 0.4))
           drop-shadow(0 0 50px rgba(6, 182, 212, 0.3));
}

.access-card h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.access-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Requirements Box */
.access-requirements {
    margin: 2rem 0;
}

.requirement-box {
    background: rgba(6, 182, 212, 0.08);
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.05), 0 0 20px rgba(6, 182, 212, 0.1);
}

.requirement-box i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6))
            drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
    animation: lockPulse 2s ease-in-out infinite;
}

.requirement-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.requirement-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Access Steps */
.access-steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 150px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0.6) 100%);
    border: 2px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 20px rgba(6, 182, 212, 0.1);
}

/* Step Icon with Images */
.step-icon-img {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 10px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.05);
    transition: all 0.3s ease;
}

.step-icon-img:hover {
    transform: scale(1.1);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.step-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Wallet Status */
.wallet-status {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
}

.wallet-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.wallet-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.wallet-status.loading {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Security Notice */
.security-notice {
    background: rgba(6, 182, 212, 0.05);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.security-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.security-header i {
    font-size: 2rem;
    color: #10b981;
    animation: shieldPulse 2s ease-in-out infinite;
}

.security-header h4 {
    font-size: 1.5rem;
    color: #10b981;
    margin: 0;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.security-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-points li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.security-points li i {
    color: #10b981;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.security-points li strong {
    color: #ffffff;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
    }
}

@keyframes lockPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6))
                drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.8))
                drop-shadow(0 0 45px rgba(239, 68, 68, 0.6));
    }
}

/* Buy Tokens CTA */
.buy-tokens-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-tokens-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Chat Interface */
.chat-interface {
    animation: fadeInUp 0.6s ease;
}

.chat-container {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2), 0 0 100px rgba(6, 182, 212, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Chat Header */
.chat-header {
    background: rgba(6, 182, 212, 0.08);
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

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

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.2);
}

.chat-header-info h2 {
    font-size: 1.3rem;
    margin: 0;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #10b981;
    margin-top: 0.25rem;
}

.online-status i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle Group */
.language-toggle-group {
    display: flex;
    gap: 0.3rem;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 0.2rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.language-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-primary);
}

.language-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.language-btn .flag {
    display: none;
    font-size: 1.1rem;
    line-height: 1;
}

.language-btn .lang-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.message-counter-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.message-counter-badge i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.message-counter-badge span {
    color: #10b981;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.message-counter-badge span.low {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.message-counter-badge span.critical {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation: criticalPulse 1s ease-in-out infinite;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.wallet-info i {
    color: #10b981;
    animation: connectedPulse 2s ease-in-out infinite;
}

.wallet-info span {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes connectedPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.9));
    }
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}
/* Message */
.message,
.chat-message {
    display: flex;
    gap: 1rem;
    animation: messageSlideIn 0.3s ease;
}

.user-message,
.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.message-avatar i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-message .message-avatar img,
.chat-message.user .message-avatar img {
    border-color: var(--primary-color);
}

.message-content {
    flex: 1;
    max-width: 70%;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.chat-message.user .message-content {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.08);
}

.chat-message.assistant .message-content {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.message-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.message-text {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.user-message .message-text {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.08);
}

.message-text p {
    margin: 0.5rem 0;
}

.message-text p:first-child {
    margin-top: 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

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

/* Chat Input */
.chat-input-container {
    border-top: 1px solid rgba(6, 182, 212, 0.3);
    padding: 1.5rem 2rem;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 -4px 20px rgba(6, 182, 212, 0.1);
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    min-height: 50px;
    max-height: 150px;
    transition: all 0.3s ease;
}

#chatInput:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.6);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

#chatInput::placeholder {
    color: var(--text-secondary);
}

.btn-send,
#sendBtn {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.6) 0%, rgba(6, 182, 212, 0.8) 100%);
    border: 1px solid rgba(6, 182, 212, 0.6);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.btn-send:hover:not(:disabled),
#sendBtn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.7) 0%, rgba(6, 182, 212, 1) 100%);
}

.btn-send:disabled,
#sendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.char-count {
    color: var(--text-secondary);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.message-counter i {
    color: var(--primary-color);
}

.message-counter #messagesRemaining,
#messagesRemainingBadge {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.message-counter #messagesRemaining.low,
#messagesRemainingBadge.low {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.message-counter #messagesRemaining.critical,
#messagesRemainingBadge.critical {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    animation: criticalPulse 1s ease-in-out infinite;
}

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

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== TWO-COLUMN + BOTTOM LAYOUT WRAPPER ===== */
.ai-hub-content-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: fadeInUp 0.6s ease;
}

.ai-hub-content-wrapper[style*="display: block"],
.ai-hub-content-wrapper[style*="display:block"] {
    display: grid !important;
}

.chat-interface {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 700px;
    max-height: 700px;
    overflow: hidden;
}

.crypto-news-inline {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 700px;
    max-height: 700px;
    overflow: hidden;
}

.whale-chat-inline {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.donation-section-inline {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* ===== CRYPTO NEWS INLINE (Column 2) ===== */
.crypto-news-inline {
    position: relative;
}

.news-card {
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2), 0 0 100px rgba(6, 182, 212, 0.15);
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.news-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.news-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.news-title h2 {
    font-size: 1.4rem;
    margin: 0;
    background: linear-gradient(135deg, #06b6d4 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-content {
    flex: 1;
    overflow-y: auto;
}

.news-card::-webkit-scrollbar,
.news-content::-webkit-scrollbar {
    width: 8px;
}

.news-card::-webkit-scrollbar-track,
.news-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.news-card::-webkit-scrollbar-thumb,
.news-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.news-card::-webkit-scrollbar-thumb:hover,
.news-content::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.news-loading i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.news-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-source {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.3rem;
}

.news-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-time i {
    font-size: 0.7rem;
}

.news-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.news-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.news-footer p i {
    color: var(--primary-color);
    animation: spin 2s linear infinite;
}

.refresh-news-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.refresh-news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.refresh-news-btn:active {
    transform: translateY(0);
}

.refresh-news-btn i {
    transition: transform 0.5s ease;
}

.refresh-news-btn:hover i {
    transform: rotate(180deg);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* News Reader Modal */
#newsReaderModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.news-reader-content {
    background: rgba(10, 10, 20, 0.98);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
}

.news-reader-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.news-reader-header h3,
#newsReaderTitle {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}

.news-reader-close,
#newsReaderClose {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-reader-close:hover,
#newsReaderClose:hover {
    color: var(--primary-color);
}

.news-reader-body,
#newsReaderBody {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.news-reader-body p,
#newsReaderBody p {
    margin-bottom: 1rem;
}

.news-reader-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    justify-content: center;
}

.news-reader-link,
#newsReaderOpenLink {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.news-reader-link:hover,
#newsReaderOpenLink:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* ===== DONATION SECTION INLINE (Inside Grid) ===== */
.donation-section-inline {
    position: relative;
}

.donation-section {
    padding: 0;
    background: transparent;
    position: relative;
}

.donation-card {
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2), 0 0 100px rgba(6, 182, 212, 0.15);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
}

.donation-section-inline .donation-card {
    height: 700px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.donation-header {
    text-align: center;
    margin-bottom: 2rem;
    flex-basis: 100%;
}

.donation-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.donation-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #06b6d4 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6))
            drop-shadow(0 0 40px rgba(6, 182, 212, 0.4))
            drop-shadow(0 0 60px rgba(6, 182, 212, 0.3));
    animation: donationTitleGlow 3s ease-in-out infinite;
}

.donation-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 auto;
    line-height: 1.5;
}

.donation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    width: 100%;
}

.donation-thanks {
    grid-column: 1 / -1;
}

.donation-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-5px);
}

.info-item i {
    font-size: 1.5rem;
    color: #06b6d4;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.donation-wallet {
    background: rgba(6, 182, 212, 0.08);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.donation-wallet h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #06b6d4;
}

.wallet-note {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.wallet-address-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wallet-address-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    word-break: break-all;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
    font-weight: 600;
    min-width: 150px;
}

.wallet-address-box .copy-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wallet-address-box .copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

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

.wallet-info i {
    color: #06b6d4;
}

.donation-thanks {
    text-align: center;
    padding: 1.25rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.donation-thanks i {
    font-size: 1.5rem;
    color: #f43f5e;
    margin-bottom: 0.5rem;
    display: block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.donation-thanks p {
    font-size: 0.95rem;
    color: #ffffff;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.9);
    }
}

/* ===== WALLET CONNECTED STATE (Navigation Button) ===== */
#walletBtn.connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5),
                0 0 40px rgba(16, 185, 129, 0.3),
                0 4px 15px rgba(0, 0, 0, 0.2) !important;
    animation: connectedGlow 2s ease-in-out infinite;
}

#walletBtn.connected i {
    animation: connectedPulse 2s ease-in-out infinite;
}

@keyframes connectedGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5),
                    0 0 40px rgba(16, 185, 129, 0.3),
                    0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.7),
                    0 0 60px rgba(16, 185, 129, 0.5),
                    0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

@keyframes donationTitleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6))
                drop-shadow(0 0 40px rgba(6, 182, 212, 0.4))
                drop-shadow(0 0 60px rgba(6, 182, 212, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.8))
                drop-shadow(0 0 55px rgba(6, 182, 212, 0.6))
                drop-shadow(0 0 80px rgba(6, 182, 212, 0.4));
    }
}

.donation-card::-webkit-scrollbar {
    width: 8px;
}

.donation-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.donation-card::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.donation-card::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* ===== WHALE CHAT INLINE (Column 4) ===== */
.whale-chat-inline {
    position: relative;
}

.whale-chat-card {
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2), 0 0 100px rgba(16, 185, 129, 0.15);
    height: 700px;
    display: flex;
    flex-direction: column;
}

.whale-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.whale-chat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whale-chat-title i {
    font-size: 1.5rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

.whale-chat-title h2 {
    font-size: 1.4rem;
    margin: 0;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.whale-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.whale-username-display,
#whaleUsernameDisplay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #10b981;
    font-weight: 600;
}

.whale-username-display i,
#whaleUsernameDisplay i {
    font-size: 1.1rem;
    color: #10b981;
}

.whale-username-display #whaleUsernameText,
#whaleUsernameText {
    color: #10b981;
}

.whale-online-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#whaleOnlineCount {
    font-weight: 600;
    color: #10b981;
}

.whale-admin-btn,
#adminPanelBtn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.whale-admin-btn:hover,
#adminPanelBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Username Setup */
.whale-username-setup,
#whaleUsernameSetup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 1rem;
}

.username-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.username-input-group i {
    color: #10b981;
    font-size: 1.2rem;
}

#whaleUsername {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

#whaleUsername::placeholder,
#martinPassword::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#martinPasswordField {
    display: none;
}

#martinPassword {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.username-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.username-note small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Whale Chat Interface */
.whale-chat-interface,
#whaleChatInterface {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.whale-chat-messages,
#whaleChatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whale-chat-messages::-webkit-scrollbar,
#whaleChatMessages::-webkit-scrollbar {
    width: 8px;
}

.whale-chat-messages::-webkit-scrollbar-track,
#whaleChatMessages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.whale-chat-messages::-webkit-scrollbar-thumb,
#whaleChatMessages::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

.whale-chat-messages::-webkit-scrollbar-thumb:hover,
#whaleChatMessages::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

.whale-system-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.whale-system-message i {
    color: #10b981;
    font-size: 1.2rem;
}

.whale-system-message p {
    margin: 0;
}

.whale-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

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

.whale-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.whale-username {
    font-weight: 600;
    color: #10b981;
}

.whale-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.message-admin-controls {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: auto;
}

.admin-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.admin-control-btn:hover {
    transform: scale(1.05);
}

.admin-control-btn.ban-btn {
    border-color: rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

.admin-control-btn.ban-btn:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
}

.admin-control-btn.delete-btn {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.admin-control-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.admin-control-btn i {
    font-size: 0.8rem;
}

.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.bot-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
    animation: botPulse 2s infinite;
}

@keyframes botPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(168, 85, 247, 0.7);
    }
}

.coco-bot-message {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    border-left: 3px solid #a855f7 !important;
}

.coco-bot-username {
    color: #a855f7 !important;
    font-weight: 700;
}

.whale-message-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.whale-message.own {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.whale-message.own .whale-username {
    color: #06b6d4;
}

/* Whale Chat Input */
.whale-chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
}

.emoji-btn,
#emojiBtn {
    background: transparent;
    border: none;
    color: #10b981;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.emoji-btn:hover,
#emojiBtn:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

#whaleChatInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

#whaleChatInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#whaleSendBtn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#whaleSendBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

#whaleSendBtn:active {
    transform: scale(0.95);
}

#whaleSendBtn i {
    font-size: 1rem;
}

/* Emoji Picker Root */
#emojiPickerRoot {
    position: fixed;
    background: rgba(10, 10, 20, 0.98);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    z-index: 2147483647;
    display: none;
    pointer-events: none;
}

/* Admin Modal */
#adminModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-modal-content {
    background: rgba(10, 10, 20, 0.98);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #f59e0b;
}

.admin-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.admin-modal-close:hover {
    color: #f59e0b;
}

.admin-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-action-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.admin-action-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%);
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.admin-action-btn i {
    font-size: 1.2rem;
}

/* ===== TOUCH-OPTIMIERUNGEN (Alle Touch-Geräte) ===== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .language-btn,
    .btn-send,
    #sendBtn,
    .emoji-btn,
    #emojiBtn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .btn:hover,
    .language-btn:hover {
        transform: none;
    }
    
    .btn:active,
    .language-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* ===== MOBILE NAVIGATION - COMPLETE FIX ===== */
@media (max-width: 768px) {
    /* Hide desktop buttons */
    .nav-buttons {
        display: none !important;
    }

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Menu - HIDDEN by default */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: rgba(10, 10, 20, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 80px 2rem 2rem !important;
        border-left: 1px solid rgba(6, 182, 212, 0.3) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .nav-menu li:last-child {
        border-bottom: none !important;
    }

    .nav-menu a {
        padding: 1rem 0 !important;
        width: 100% !important;
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .nav-menu a:hover {
        background: rgba(6, 182, 212, 0.1) !important;
        padding-left: 0.5rem !important;
    }

    .nav-menu a.active {
        background: rgba(6, 182, 212, 0.15) !important;
        border-left: 3px solid var(--primary-color) !important;
        padding-left: 0.5rem !important;
    }

    .nav-menu .ai-hub-link {
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%) !important;
        border: 1px solid rgba(6, 182, 212, 0.3) !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        margin-top: 1rem !important;
    }

    /* Mobile specific optimizations */
    .ai-hub-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .chat-interface,
    .crypto-news-inline,
    .whale-chat-inline,
    .donation-section-inline {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .chat-container {
        height: 500px;
        min-height: 400px;
    }
    
    .news-card {
        height: 400px;
        min-height: 300px;
    }
    
    .whale-chat-card {
        height: 500px;
        min-height: 400px;
    }
    
    .donation-card {
        height: auto;
        max-height: none;
    }
    
    .chat-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .chat-header-left {
        flex: 1;
        min-width: 200px;
    }
    
    .chat-header-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .message-counter-badge {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-message {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .chat-input-wrapper textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .btn-send,
    #sendBtn {
        width: 40px;
        height: 40px;
    }
    
    .news-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .news-icon {
        font-size: 1.5rem;
    }
    
    .whale-chat-header {
        padding: 1rem;
    }
    
    .whale-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .whale-username-display,
    #whaleUsernameDisplay {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .whale-username-display i,
    #whaleUsernameDisplay i {
        font-size: 1rem;
    }
    
    .whale-online-count {
        font-size: 0.85rem;
    }
    
    .whale-chat-messages,
    #whaleChatMessages {
        padding: 1rem;
    }
    
    .whale-message {
        padding: 0.75rem;
        font-size: 0.9rem;
        max-width: 85%;
    }
    
    .whale-chat-input-container {
        padding: 1rem;
    }
    
    .whale-chat-input-container input {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .donation-card {
        padding: 1.5rem;
    }
    
    .donation-header h2 {
        font-size: 1.3rem;
    }
    
    .wallet-address-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wallet-address-box code {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .donation-content {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .donation-info,
    .donation-wallet {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 260px !important;
        padding: 70px 1.5rem 1.5rem !important;
    }

    .nav-menu a {
        font-size: 1rem !important;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .emoji-item {
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    .ai-hub-section {
        padding: 70px 0 20px;
    }

    .language-btn .flag {
        display: inline-block;
        font-size: 0.85rem;
    }

    .language-btn .lang-text {
        font-size: 0.6rem;
    }
}

/* ===== FINAL MOBILE OVERFLOW FIX ===== */
@media (max-width: 768px) {
    .ai-hub-section,
    .ai-hub-section > *,
    .container,
    .chat-interface,
    .access-gate,
    .donation-section,
    .donation-section-inline {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    #messageInput,
    #chatInput,
    input,
    textarea {
        max-width: 100% !important;
    }
}
/* ===== ADDITIONAL MISSING STYLES ===== */

/* Responsive Access Card */
@media (max-width: 768px) {
    .access-card {
        padding: 2rem 1.5rem;
    }
    
    .access-card h1 {
        font-size: 2rem;
    }
    
    .access-subtitle {
        font-size: 1rem;
    }
    
    .requirement-box {
        padding: 1.5rem;
    }
    
    .requirement-box i {
        font-size: 2.5rem;
    }
    
    .requirement-box h3 {
        font-size: 1.3rem;
    }
    
    .requirement-box p {
        font-size: 1rem;
    }
    
    .access-steps {
        gap: 1.5rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon-img {
        width: 70px;
        height: 70px;
    }
    
    .security-notice {
        padding: 1.5rem;
    }
    
    .security-header {
        gap: 0.75rem;
    }
    
    .security-header i {
        font-size: 1.5rem;
    }
    
    .security-header h4 {
        font-size: 1.3rem;
    }
    
    .security-points {
        gap: 0.75rem;
    }
    
    .security-points li {
        font-size: 0.9rem;
    }
    
    .coco-mascot img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .access-gate {
        padding: 1rem 0.5rem;
    }
    
    .access-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .access-card h1 {
        font-size: 1.5rem;
    }
    
    .access-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .requirement-box {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .requirement-box i {
        font-size: 2rem;
    }
    
    .requirement-box h3 {
        font-size: 1.1rem;
    }
    
    .requirement-box p {
        font-size: 0.9rem;
    }
    
    .access-steps {
        gap: 1rem;
    }
    
    .step {
        min-width: 100px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .step-icon-img {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    .security-notice {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .security-header {
        flex-direction: column;
        text-align: center;
    }
    
    .security-header i {
        font-size: 1.3rem;
    }
    
    .security-header h4 {
        font-size: 1.1rem;
    }
    
    .security-points li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .security-points li i {
        font-size: 1rem;
    }
    
    .buy-tokens-cta {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .buy-tokens-cta p {
        font-size: 0.9rem;
    }
    
    .coco-mascot img {
        width: 120px;
    }
}

/* Admin Panel Additional Styles */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.admin-stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.admin-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

.admin-user-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-user-wallet {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.admin-user-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-user-actions button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-user-actions .ban-btn {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.admin-user-actions .ban-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.admin-user-actions .unban-btn {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.admin-user-actions .unban-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(10, 10, 20, 0.98);
    border: 2px solid;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: notificationSlideIn 0.3s ease;
}

.notification.success {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(10, 10, 20, 0.98) 100%);
}

.notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(10, 10, 20, 0.98) 100%);
}

.notification.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(10, 10, 20, 0.98) 100%);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-content {
    text-align: center;
}

.loading-content i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 20, 0.98);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(6, 182, 212, 0.3);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.badge.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.badge.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9000;
    animation: fadeIn 0.3s ease;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(6, 182, 212, 0.1);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
    margin-bottom: 1.5rem;
}

.tab-nav-item {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-nav-item:hover {
    color: var(--text-primary);
}

.tab-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.6);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox,
.form-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #ef4444;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.switch input:checked + .switch-slider {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: #10b981; }
.text-error { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-info { color: #3b82f6; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }

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

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

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes zoomOut {
    from { transform: scale(1); }
    to { transform: scale(0); }
}

/* Print Styles */
@media print {
    .no-print,
    .navbar,
    .mobile-menu-toggle,
    .chat-input-container,
    .whale-chat-input-container,
    .admin-controls,
    .message-admin-controls {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .chat-messages,
    .whale-chat-messages {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ffff;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Override */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #0a0a14;
    }
}

/* Light Mode Override */
@media (prefers-color-scheme: light) {
    .ai-hub-section {
        background: linear-gradient(180deg, #f0f0f0 0%, #ffffff 100%);
        color: #333;
    }
    
    .chat-container,
    .news-card,
    .whale-chat-card,
    .donation-card {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(0, 0, 0, 0.1);
        color: #333;
    }
}

/* END OF ai-hub.css */
