/**
 * ZEDEC.AI Main Stylesheet
 * 33-Layer Nested Algorithm Portal
 */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-primary: #00ff88;
    --accent-secondary: #00ccff;
    --accent-tertiary: #ff00aa;
    --accent-gold: #ffd700;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00ccff 50%, #ff00aa 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body.loading {
    overflow: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.vortex-spinner {
    width: 150px;
    height: 150px;
    position: relative;
    margin: 0 auto 30px;
}

.vortex-spinner .ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: vortex-spin 2s linear infinite;
}

.vortex-spinner .ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-primary);
    animation-duration: 3s;
}

.vortex-spinner .ring-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-right-color: var(--accent-secondary);
    animation-duration: 2s;
    animation-direction: reverse;
}

.vortex-spinner .ring-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-bottom-color: var(--accent-tertiary);
    animation-duration: 1.5s;
}

.vortex-spinner .core {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes vortex-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.loading-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.loading-status {
    margin-bottom: 15px;
}

.loading-status .layer-num {
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 10px auto;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-message {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding: 20px;
    z-index: 9990; /* Below music player to avoid overlap */
    transform: translateY(0);
    transition: transform 0.5s ease;
}

/* Mobile: Stack cookie banner below music player */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 70px; /* Above mobile nav, below floating elements */
        z-index: 9980;
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-icon {
        display: none;
    }
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-glow {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.05) 0%, 
        transparent 50%, 
        rgba(0, 204, 255, 0.05) 100%);
    pointer-events: none;
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-ai {
    color: var(--accent-primary);
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 10px 18px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.btn-donate {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.nav-link.btn-donate:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    box-shadow: var(--shadow-deep);
}

.dropdown-menu.mega-menu {
    min-width: 400px;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.mega-menu .menu-section {
    flex: 1;
}

.mega-menu .menu-section h4 {
    color: var(--accent-primary);
    font-size: 0.8rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.mega-menu .dropdown-item {
    padding: 8px 10px;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .dropdown-menu.mega-menu {
        min-width: 280px;
        flex-direction: column;
        gap: 15px;
    }
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover, .dropdown-item.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
}

.nav-status {
    display: flex;
    gap: 20px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 30px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#vortex-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.subsite-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--theme-accent);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   ALGORITHM STATUS BAR
   ============================================ */

.algorithm-bar {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.algo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.algo-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.algo-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-secondary);
}

.algo-item.live {
    flex-direction: row;
    gap: 8px;
}

.algo-item.live .algo-label {
    color: var(--accent-primary);
    font-weight: 700;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

/* ============================================
   CONTENT STREAM
   ============================================ */

.content-stream {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
}

.stream-header {
    text-align: center;
    margin-bottom: 40px;
}

.stream-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.stream-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.stream-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.content-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: var(--shadow-glow);
}

.content-card:hover::before {
    opacity: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-score {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-primary);
}

.card-title a:hover {
    color: var(--accent-primary);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-source {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.placeholder-pulse {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.stream-footer {
    text-align: center;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-load-more:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.load-icon {
    display: inline-block;
    transition: transform 0.5s ease;
}

.btn-load-more:hover .load-icon {
    transform: rotate(360deg);
}

/* ============================================
   BIOZEDEC SECTION
   ============================================ */

.biozedec-section {
    background: var(--bg-secondary);
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.dna-helix {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 800px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        var(--accent-primary) 20px,
        var(--accent-primary) 22px
    );
    animation: dna-rotate 20s linear infinite;
}

@keyframes dna-rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.biozedec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.biozedec-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.biozedec-info p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 10px;
}

.feature-icon {
    color: var(--accent-primary);
    margin-right: 10px;
}

.feature-list strong {
    color: var(--text-primary);
}

.feature-list span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.architecture-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-family: var(--font-display);
}

.architecture-badge span {
    color: var(--bg-primary);
    font-weight: 700;
}

.architecture-badge .multiplier {
    background: var(--bg-primary);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.audio-player {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.audio-artwork {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.artwork-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glow);
    animation: pulse 2s ease-in-out infinite;
}

.artwork-icon {
    font-size: 3rem;
    z-index: 1;
}

.audio-info {
    text-align: center;
    margin-bottom: 20px;
}

.audio-info h4 {
    font-family: var(--font-display);
    margin-bottom: 5px;
}

.audio-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.audio-progress {
    flex: 1;
    min-width: 200px;
}

.time-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.download-btn {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.download-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.audio-specs {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 25px;
}

.audio-specs h4 {
    font-family: var(--font-display);
    margin-bottom: 20px;
    font-size: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
}

.transformation-stages h3 {
    text-align: center;
    font-family: var(--font-display);
    margin-bottom: 30px;
}

.stages-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

.stage {
    flex-shrink: 0;
    padding: 15px 25px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.stage:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
}

.stage::before {
    content: attr(data-freq) ' Hz';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

/* ============================================
   DONATE SECTION
   ============================================ */

.donate-section {
    padding: 100px 30px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.donate-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.donate-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.donate-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.donate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.donate-card {
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-fast);
    display: block;
}

.donate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.donate-card.cashapp {
    border-color: #00d632;
}

.donate-card.cashapp:hover {
    box-shadow: 0 0 30px rgba(0, 214, 50, 0.3);
}

.donate-card.wise {
    border-color: #9fe870;
}

.donate-card.wise:hover {
    box-shadow: 0 0 30px rgba(159, 232, 112, 0.3);
}

.donate-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cashapp .donate-icon {
    color: #00d632;
}

.wise .donate-icon {
    color: #9fe870;
}

.donate-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.donate-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.donate-btn {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.donate-card:hover .donate-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.donate-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 100px 30px;
    background: var(--bg-secondary);
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.about-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.institutions-preview {
    max-width: 1200px;
    margin: 0 auto;
}

.institutions-preview h3 {
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 30px;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.institution-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.institution-card:hover {
    border-color: var(--inst-color, var(--accent-primary));
    transform: translateY(-3px);
}

.institution-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.institution-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 30px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.footer-brand .logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.trust-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .biozedec-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-status {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .algorithm-bar {
        gap: 20px;
        padding: 10px 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WEB APPLICATIONS SECTION
   ============================================ */

.apps-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.apps-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.apps-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.apps-section .section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.apps-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-section .section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.app-card {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.app-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.app-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-section h2 {
        font-size: 2rem;
    }
}

/* ============================================
   HERO SEARCH BAR
   ============================================ */

.hero-search {
    margin: 30px 0;
    width: 100%;
    max-width: 600px;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    transition: all var(--transition-medium);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    padding: 12px 10px;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-top: 10px;
    display: none;
    z-index: 100;
}

.search-suggestions.active {
    display: block;
}

/* ============================================
   STREAM FILTERS - SECONDARY ROW
   ============================================ */

.stream-filters.secondary {
    margin-top: 10px;
    opacity: 0.8;
}

.stream-filters.secondary .filter-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* ============================================
   MARKET SECTION
   ============================================ */

.market-section {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.market-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.market-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.market-widget {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
}

.market-widget h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.market-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.market-item:last-child {
    border-bottom: none;
}

.market-item .price {
    font-family: var(--font-mono);
    font-weight: bold;
}

.market-item .price.positive {
    color: #00ff88;
}

.market-item .price.negative {
    color: #ff4444;
}

@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.trust-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius);
    padding: 30px;
}

.trust-icon {
    font-size: 3rem;
}

.trust-content h3 {
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.trust-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.trust-id {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.trust-label {
    color: var(--text-muted);
}

.trust-code {
    background: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 5px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-badges .badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 5px 12px;
    border-radius: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .trust-card {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
}

/* ============================================
   AI CIRCUIT SECTION - PRIMARY INTERFACE
   ============================================ */

.ai-circuit-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, #0a0a12 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.ai-circuit-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.1);
}

.circuit-header {
    text-align: center;
    margin-bottom: 25px;
}

.circuit-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 15px;
    margin-bottom: 10px;
}

.circuit-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.circuit-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.circuit-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.circuit-input-row input {
    flex: 1;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.circuit-input-row input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.circuit-input-row select {
    padding: 15px;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
}

.circuit-submit {
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.circuit-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.circuit-response {
    display: none;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 15px;
    line-height: 1.6;
    border-left: 3px solid var(--accent-primary);
}

.circuit-response.active {
    display: block;
}

.circuit-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.circuit-status .live-indicator {
    color: #00ff88;
    animation: pulse 1.5s infinite;
}

.quick-apps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.quick-app {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.quick-app:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .circuit-input-row {
        flex-direction: column;
    }
    
    .quick-apps {
        flex-direction: column;
        align-items: center;
    }
}

.quick-app.featured {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* ============================================
   AUDIO PHARMA FEATURED SECTION
   ============================================ */

.audio-pharma-featured {
    padding: 50px 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #1a0a2e 100%);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.pharma-header {
    text-align: center;
    margin-bottom: 30px;
}

.feature-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 15px;
    margin-bottom: 10px;
}

.pharma-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pharma-header p {
    color: var(--text-secondary);
}

.pharma-quick-player {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 25px;
}

.freq-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.freq-btn {
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 100px;
}

.freq-btn:hover, .freq-btn.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: scale(1.05);
}

.freq-btn small {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.8;
}

.pharma-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pharma-play-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pharma-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.pharma-full-btn {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 30px;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.pharma-full-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8b5cf6;
}

.pharma-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Swarm Response Themes */
.circuit-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
}

.theme-label, .neg-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.theme {
    padding: 4px 12px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #a78bfa;
}

/* Negative Space Analysis */
.negative-space {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 100, 100, 0.3);
    align-items: center;
}

.neg-item {
    padding: 4px 12px;
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #ff9999;
}

@media (max-width: 768px) {
    .freq-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pharma-controls {
        flex-direction: column;
    }
    
    .pharma-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ============================================
   AI SEARCH SECTION
   ============================================ */

.ai-search-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0d0d15 100%);
}

.ai-search-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.ai-search-box {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
}

.ai-input-row {
    display: flex;
    gap: 10px;
}

.ai-input-row input {
    flex: 1;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
}

.ai-input-row input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.ai-input-row select {
    padding: 15px;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
}

.ai-submit {
    padding: 15px 25px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.ai-response {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 10px;
    display: none;
    white-space: pre-wrap;
    line-height: 1.6;
}

.ai-response.active {
    display: block;
}

.ai-providers {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.provider-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.provider-tag {
    padding: 5px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .ai-input-row {
        flex-direction: column;
    }
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */

.community-section {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.community-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.community-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-medium);
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.community-card.telegram:hover { border-color: #0088cc; }
.community-card.discord:hover { border-color: #5865F2; }
.community-card.matrix:hover { border-color: #0DBD8B; }
.community-card.github:hover { border-color: #fff; }

.community-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.community-card h3 {
    margin-bottom: 5px;
}

.community-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.platforms-section {
    margin-top: 40px;
    text-align: center;
}

.platforms-section h3 {
    margin-bottom: 10px;
}

.platforms-section > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.platform-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.platform-cat {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 20px;
}

.platform-cat h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.platform-tags span {
    padding: 5px 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MEDIA SEARCH STYLES
   ============================================ */

.media-search-menu {
    min-width: 450px;
    max-width: 600px;
}

.media-search-header {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
}

.media-search-header h4 {
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.media-search-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.media-search-form {
    padding: 15px;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.media-search-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.media-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.weight-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.weight-slider {
    width: 80px;
    accent-color: var(--accent-primary);
}

.weight-value {
    min-width: 20px;
    text-align: center;
    color: var(--accent-gold);
    font-weight: bold;
}

.add-search-row-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px dashed rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.add-search-row-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.remove-row-btn {
    padding: 5px 10px;
    background: rgba(255, 0, 0, 0.2);
    border: none;
    border-radius: 5px;
    color: #ff6666;
    cursor: pointer;
}

.platform-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.platform-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
}

.platform-filters input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.media-search-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.media-search-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.media-search-results {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-container {
    text-align: left;
}

.search-query-info {
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.ai-suggestions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-suggestions ul {
    margin: 5px 0 0 20px;
    color: var(--accent-secondary);
}

.category-section {
    margin-bottom: 15px;
}

.category-section h5 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.platform-link:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 1.1rem;
}

.search-tips {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.search-loading {
    text-align: center;
    color: var(--accent-secondary);
    padding: 20px;
}

.search-error {
    text-align: center;
    color: #ff6666;
    padding: 20px;
}

/* Community card styles for new platforms */
.community-card.instagram {
    border-color: #E1306C;
}

.community-card.instagram:hover {
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.3);
}

.community-card.soundcloud {
    border-color: #FF5500;
}

.community-card.soundcloud:hover {
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

.community-card.suno {
    border-color: #8B5CF6;
}

.community-card.suno:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
