:root {
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-cyan: #00f5ff;
    --neon-purple: #8b5cf6;
    --neon-blue: #3b82f6;
    --neon-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at top, #1a1f35 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.glass-nav {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.brand-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-glass-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-glass-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glass-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.6);
    color: #000;
}

.btn-glass-primary:hover::before {
    opacity: 1;
}

.btn-glass-primary span,
.btn-glass-primary svg {
    position: relative;
    z-index: 1;
}

.btn-glass-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-glass-outline:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 45%),
        radial-gradient(circle at 85% 35%, rgba(20, 184, 166, 0.2), transparent 40%),
        linear-gradient(135deg, rgba(6, 13, 27, 0.95), rgba(10, 26, 50, 0.92), rgba(6, 12, 24, 0.98));
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    bottom: -100px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-content {
    padding: 3rem 3rem;
    background: rgba(8, 16, 32, 0.58);
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 35px 80px rgba(5, 10, 20, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 20px 45px rgba(5, 10, 25, 0.6);
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 12px 30px rgba(5, 10, 25, 0.55);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-glass-primary:hover .btn-icon {
    transform: translateX(5px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 1.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 50px rgba(5, 10, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.78);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2.25rem 1.5rem;
    }
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.features-section,
.target-audience-section,
.cta-section {
    padding: 6rem 0;
    position: relative;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-12px) rotateX(2deg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.feature-icon svg {
    stroke: var(--neon-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 1rem;
    color: var(--neon-purple);
}

.audience-card {
    height: 100%;
    text-align: center;
    transition: all 0.4s ease;
}

.audience-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 92, 246, 0.3);
}

.audience-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.5));
}

.audience-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.audience-list {
    list-style: none;
    padding: 0;
}

.audience-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.audience-list li::before {
    content: '✓';
    color: var(--neon-cyan);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cta-card {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid var(--glass-border);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-section {
    background: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-glass-primary,
    .btn-glass-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
}

.page-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(139, 92, 246, 0.1));
    filter: blur(80px);
    z-index: -1;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

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

.category-filter {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.news-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.news-image-placeholder {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.news-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 245, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.news-image-placeholder svg {
    position: relative;
    z-index: 1;
    opacity: 0.3;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.news-category {
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
}

.news-date {
    color: var(--text-muted);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--neon-cyan);
}

.news-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.news-views {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.job-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.job-card.premium {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

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

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.job-header-content {
    flex-grow: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.job-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: var(--neon-cyan);
}

.company-name {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.premium-badge {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-type,
.job-location,
.job-level {
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.job-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.job-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.content-section {
    min-height: 60vh;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .category-filter {
        padding: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .premium-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.course-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-type {
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.course-price {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.course-price.free {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.course-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: var(--neon-cyan);
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.course-instructor {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.course-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.event-card {
    position: relative;
    padding-left: 100px;
    min-height: 150px;
}

.event-date-badge {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
}

.event-day {
    font-size: 1.75rem;
    line-height: 1;
}

.event-month {
    font-size: 0.875rem;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.event-type {
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
}

.event-time {
    color: var(--text-secondary);
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--neon-cyan);
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.event-info {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.community-post {
    padding: 2rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.post-author {
    display: flex;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 1.5rem;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-badge {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.post-type-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.topic-item {
    color: var(--neon-cyan);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.topic-item:hover {
    background: rgba(0, 245, 255, 0.15);
    transform: translateX(5px);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span {
    color: var(--text-secondary);
}

.stat-row strong {
    color: var(--neon-cyan);
    font-size: 1.25rem;
}

.showcase-section {
    position: relative;
}

.showcase-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transition: all 0.4s ease;
}

.showcase-card:hover {
    transform: translateY(-10px);
}

.showcase-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.showcase-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.showcase-placeholder svg {
    stroke: var(--neon-cyan);
    opacity: 0.6;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.3));
}

.showcase-placeholder p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.showcase-content {
    padding: 2rem;
}

.showcase-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.showcase-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.auth-card {
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
}

.auth-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.5));
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.auth-form {
    margin-top: 2rem;
}

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

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    color: var(--text-primary);
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-muted);
}

.form-select.glass-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300f5ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select.glass-input option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.form-check-input:checked {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.form-check-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 0.25rem rgba(0, 245, 255, 0.25);
}

.form-check-label {
    color: var(--text-secondary);
}

.text-cyan {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-cyan:hover {
    color: var(--neon-purple);
    text-decoration: underline;
}

.glass-alert {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.alert-danger.glass-alert {
    border-color: rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.alert-success.glass-alert {
    border-color: rgba(0, 245, 255, 0.3);
    color: var(--neon-cyan);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    position: relative;
    background: var(--bg-dark);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.social-login {
    margin-top: 1.5rem;
}

.social-login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* User Panel */
.user-panel-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.user-panel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 245, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.2), transparent 42%),
        linear-gradient(135deg, rgba(7, 14, 30, 0.95), rgba(8, 20, 42, 0.88), rgba(5, 12, 28, 0.98));
    z-index: 0;
}

.user-panel-hero .container {
    position: relative;
    z-index: 1;
}

.panel-hero-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    align-items: center;
}

.panel-hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 800;
    margin: 1rem 0 1.25rem;
}

.panel-hero-content p {
    color: rgba(226, 232, 240, 0.78);
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(0, 245, 255, 0.14);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel-user-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: 26px;
    background: rgba(10, 20, 40, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(5, 10, 22, 0.45);
}

.panel-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-weight: 700;
    font-size: 1.5rem;
    overflow: hidden;
}

.panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-tag {
    display: inline-flex;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.18);
    color: #5eead4;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

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

.user-panel-content {
    padding: 70px 0 120px;
    background: radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.12), transparent 35%);
}

.panel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.75rem;
}

.panel-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 18px 40px rgba(5, 10, 22, 0.35);
}

.panel-stat-card span {
    color: var(--text-secondary);
    font-weight: 500;
}

.panel-stat-card strong {
    font-size: 1.8rem;
    font-weight: 800;
}

.panel-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.panel-summary-card {
    background: rgba(8, 16, 32, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.75rem;
}

.panel-summary-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.panel-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.panel-summary-item:last-child {
    border-bottom: none;
}

.panel-summary-item strong {
    color: var(--text-primary);
}

.panel-quick-links {
    display: grid;
    gap: 0.8rem;
}

.panel-quick-links a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: all 0.3s ease;
}

.panel-quick-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 245, 255, 0.2);
    color: var(--neon-cyan);
}

.panel-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.panel-list-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.75rem;
}

.panel-list-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.panel-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(10, 20, 40, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.panel-list h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.panel-list p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.panel-list a {
    text-decoration: none;
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .panel-hero-grid {
        grid-template-columns: 1fr;
    }

    .panel-user-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .user-panel-hero {
        padding: 110px 0 60px;
    }

    .panel-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
}

/* ===== AI Panel (collapsible below navbar) ===== */
.ai-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.ai-panel.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.ai-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ai-panel-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 80px auto 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(10, 14, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px 32px 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: panelSlideIn 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px;
}

.ai-panel-header .ai-badge {
    margin-bottom: 0 !important;
}

.ai-panel-close {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.05) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s, color 0.15s;
}

.ai-panel-close:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.ai-panel .ai-chat-area {
    display: block !important;
    margin-bottom: 16px;
}

.ai-panel .ai-input-wrapper {
    margin-bottom: 20px;
}

.ai-toggle-icon {
    font-size: 0.9rem;
}

/* Windows 11 overrides for AI panel */
[data-theme="windows11"] .ai-panel-inner {
    background: rgba(255,255,255,0.97) !important;
    border-color: #e0e0e0 !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18) !important;
}

[data-theme="windows11"] .ai-panel-close {
    background: #f0f0f0 !important;
    border-color: #e0e0e0 !important;
    color: #666 !important;
}

[data-theme="windows11"] .ai-panel-close:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
}

/* AI Panel Mobile */
@media (max-width: 768px) {
    .ai-panel-inner {
        margin: 60px 8px 0;
        padding: 20px 16px 24px;
        max-height: calc(100vh - 70px);
        border-radius: 16px;
    }
}

/* ===== AI Chat Hero ===== */
.ai-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.ai-badge-icon { font-size: 1rem; }
.ai-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 6px #22c55e !important;
    display: inline-block;
}

/* Chat area */
.ai-chat-area {
    max-width: 700px;
    margin: 0 auto 1.2rem;
    display: none;
}
.ai-chat-area.visible { display: block !important; }

.ai-messages {
    max-height: 340px;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ai-msg {
    padding: 14px 18px;
    border-radius: 16px !important;
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: left;
    animation: msgIn 0.3s ease;
    word-wrap: break-word;
}

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

.ai-msg.user {
    background: rgba(0,245,255,0.08) !important;
    border: 1px solid rgba(0,245,255,0.15) !important;
    align-self: flex-end;
    max-width: 85%;
    color: #e2e8f0;
    box-shadow: none !important;
}

.ai-msg.assistant {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    align-self: flex-start;
    max-width: 95%;
    color: #cbd5e1;
    box-shadow: none !important;
}

.ai-msg.assistant strong { color: #fff; }
.ai-msg.assistant code {
    background: rgba(0,245,255,0.08);
    padding: 2px 6px;
    border-radius: 4px !important;
    font-size: 0.85em;
    color: #00f5ff;
}

.ai-msg.assistant ul, .ai-msg.assistant ol {
    padding-left: 1.2rem;
    margin: 6px 0;
}

.ai-msg-typing {
    display: flex !important;
    gap: 5px;
    padding: 16px 20px;
    align-self: flex-start;
}
.ai-msg-typing span {
    width: 8px; height: 8px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.25) !important;
    animation: typingDot 1.4s infinite;
}
.ai-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.3); }
}

/* Input box */
.ai-input-wrapper {
    max-width: 700px;
    margin: 0 auto 2rem;
    width: 100%;
}

.ai-input-box {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 0 !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    padding: 6px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    width: 100% !important;
}

.ai-input-box:focus-within {
    border-color: rgba(0,245,255,0.3) !important;
    box-shadow: 0 0 20px rgba(0,245,255,0.06) !important;
}

.ai-input-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 12px !important;
    border: none !important;
    background: rgba(255,255,255,0.05) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.ai-input-icon:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    transform: none !important;
}

.ai-input {
    flex: 1 1 auto !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 0.95rem;
    padding: 10px 14px !important;
    min-width: 0 !important;
    width: auto !important;
    box-shadow: none !important;
}
.ai-input::placeholder { color: var(--text-muted) !important; }

.ai-send-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(135deg, #00f5ff, #3b82f6) !important;
    color: #0a0e1a !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.ai-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,245,255,0.3) !important;
}
.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Tool cards */
.ai-tools-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
}

.ai-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

button.ai-tool-card,
.ai-tool-card {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 20px 12px 16px !important;
    cursor: pointer;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    color: inherit !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
}

.ai-tool-card:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.15) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

.ai-tool-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ai-tool-name {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ai-tool-desc {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Windows 11 theme overrides for AI */
[data-theme="windows11"] .ai-badge {
    background: rgba(255,255,255,0.85) !important;
    border-color: #e0e0e0 !important;
    color: #555 !important;
}
[data-theme="windows11"] .ai-input-box {
    background: rgba(255,255,255,0.9) !important;
    border-color: #d0d0d0 !important;
}
[data-theme="windows11"] .ai-input-box:focus-within {
    border-color: #0067c0 !important;
    box-shadow: 0 0 0 3px rgba(0,103,192,0.1) !important;
}
[data-theme="windows11"] .ai-input { color: #1a1a1a !important; }
[data-theme="windows11"] .ai-input::placeholder { color: #999 !important; }
[data-theme="windows11"] .ai-input-icon {
    background: #f0f0f0 !important;
    color: #666 !important;
}
[data-theme="windows11"] .ai-send-btn {
    background: #0067c0 !important;
    color: #fff !important;
}
[data-theme="windows11"] .ai-tool-card {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="windows11"] .ai-tool-card:hover {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(0,103,192,0.3) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
[data-theme="windows11"] .ai-tool-name { color: #1a1a1a !important; }
[data-theme="windows11"] .ai-tool-desc { color: #666 !important; }
[data-theme="windows11"] .ai-msg.user {
    background: rgba(0,103,192,0.08) !important;
    border-color: rgba(0,103,192,0.15) !important;
    color: #1a1a1a !important;
}
[data-theme="windows11"] .ai-msg.assistant {
    background: rgba(255,255,255,0.8) !important;
    border-color: #e8e8e8 !important;
    color: #333 !important;
}
[data-theme="windows11"] .ai-msg.assistant strong { color: #000 !important; }
[data-theme="windows11"] .ai-msg.assistant code {
    background: rgba(0,103,192,0.08) !important;
    color: #0067c0 !important;
}

/* AI Mobile */
@media (max-width: 991px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .ai-panel-inner {
        padding: 20px 16px 24px !important;
    }
}

@media (max-width: 768px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    button.ai-tool-card,
    .ai-tool-card {
        padding: 14px 10px 12px !important;
        border-radius: 12px !important;
    }
    .ai-tool-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 10px !important;
    }
    .ai-tool-name { font-size: 0.78rem !important; }
    .ai-tool-desc { font-size: 0.68rem !important; }
    .ai-input-box { border-radius: 12px !important; }
    .ai-send-btn, .ai-input-icon { width: 38px !important; height: 38px !important; min-width: 38px !important; }
    .ai-messages { max-height: 260px; }
    .ai-input-wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    button.ai-tool-card,
    .ai-tool-card {
        padding: 12px 8px 10px !important;
        gap: 5px !important;
    }
    .ai-tool-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .ai-tool-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .ai-tool-name { font-size: 0.72rem !important; }
    .ai-tool-desc { font-size: 0.62rem !important; }
    .ai-panel-inner {
        margin: 56px 6px 0 !important;
        padding: 16px 12px 20px !important;
        border-radius: 14px !important;
    }
}

/* Theme Switcher - Compact */
.ts-wrapper {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
}

.ts-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border, rgba(255,255,255,0.15));
    background: rgba(15, 15, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    padding: 0;
}

.ts-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.ts-btn:active { transform: scale(0.95); }

.ts-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
    border-radius: 12px;
    padding: 6px;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.95);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.ts-wrapper.open .ts-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ts-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.ts-item:hover { background: rgba(255,255,255,0.08); }

.ts-item.active {
    background: rgba(0, 245, 255, 0.12);
    color: #00f5ff;
}

.ts-item-icon { font-size: 1rem; line-height: 1; }
.ts-item-name { font-weight: 500; }

/* Windows 11 theme overrides */
[data-theme="windows11"] .ts-btn {
    background: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-theme="windows11"] .ts-btn:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

[data-theme="windows11"] .ts-dropdown {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

[data-theme="windows11"] .ts-item {
    color: #1a1a1a;
}

[data-theme="windows11"] .ts-item:hover {
    background: #f0f0f0;
}

[data-theme="windows11"] .ts-item.active {
    background: rgba(0, 103, 192, 0.1);
    color: #0067c0;
}

/* Mobile */
@media (max-width: 768px) {
    .ts-wrapper {
        bottom: 1rem;
        right: 1rem;
    }

    .ts-btn {
        width: 34px;
        height: 34px;
    }

    .ts-dropdown {
        right: 0;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .event-card {
        padding-left: 1.5rem;
        padding-top: 100px;
    }
    
    .event-date-badge {
        left: 50%;
        transform: translateX(-50%);
        top: 1rem;
    }
    
    .community-post {
        padding: 1.5rem;
    }
    
    .post-header {
        flex-direction: column;
        gap: 1rem;
    }
}

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