/* ===================================================
   REINA.AI - Main Design System
   Premium SaaS UI with dark mode
   =================================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* --- Colors (AI Futuristic Theme) --- */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.7);
    --bg-card-hover: rgba(36, 36, 66, 0.9);
    --bg-glass: rgba(22, 22, 42, 0.7);

    --text-primary: #f8f9fa;
    --text-secondary: #a3aed1;
    --text-muted: #64748b;
    --text-accent: #00d2ff;

    --accent-primary: #00ffcc; /* Neon Cyan */
    --accent-secondary: #b829ff; /* Neon Purple */
    --accent-tertiary: #A855F7;
    --accent-glow: rgba(0, 255, 204, 0.2);
    --accent-purple-glow: rgba(184, 41, 255, 0.2);

    --accent-gradient: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    --accent-gradient-hover: linear-gradient(135deg, #d45cff, #33ffdb);

    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 255, 204, 0.3);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-purple-glow);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 64px;
    --sidebar-width: 300px;
    --max-width: 1400px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    outline: none;
    background: none;
}

input, select, textarea {
    font-family: var(--font-main);
    font-size: var(--text-base);
}

/* --- Utility Classes --- */
.hidden { display: none !important; }
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-block { width: 100%; }
.center-title { text-align: center; }

/* --- Domain Sale Banner --- */
.domain-banner {
    background: linear-gradient(90deg, #6C5CE7, #A855F7, #00D2FF);
    background-size: 200% 200%;
    animation: bannerShimmer 4s ease infinite;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.domain-banner.hidden {
    display: none;
}

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

.domain-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    flex-wrap: wrap;
}

.domain-banner-pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.domain-banner-icon {
    font-size: var(--text-lg);
}

.domain-banner-text {
    color: white;
    font-size: var(--text-sm);
}

.domain-banner-cta {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.domain-banner-cta:hover {
    background: rgba(255,255,255,0.35);
    color: white;
}

.domain-banner-close {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-xl);
    padding: 0 4px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.domain-banner-close:hover {
    color: white;
}

/* --- Header --- */
.main-header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-height);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent-secondary);
}

.main-nav {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-toggle {
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.search-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    display: none;
    z-index: 800;
}

.search-overlay.active {
    display: block;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-md);
}

.search-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-close {
    color: var(--text-secondary);
    font-size: var(--text-2xl);
    padding: 0 8px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn-lg { padding: 12px 24px; font-size: var(--text-base); }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: var(--space-4xl) var(--space-lg);
    text-align: center;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-accent);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* --- General Layout --- */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.content-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: var(--space-2xl);
    align-items: start;
}

/* Make sidebars sticky to balance asymmetrical layout */
.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* --- Sidebar Styles --- */
.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    transition: border-color var(--transition-base);
}

.sidebar-section:hover {
    border-color: var(--border-hover);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
}

.section-title svg {
    color: var(--accent-secondary);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.section-title-sm {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* News Tabs */
.news-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
    overflow-x: auto;
    scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar { display: none; }

.news-tab {
    padding: 6px 12px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.news-tab.active,
.news-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

.news-item {
    display: block;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.news-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.news-item-category {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
    margin-bottom: 4px;
}

.news-item-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 11px;
    color: var(--text-muted);
}

.news-loading {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

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

.sidebar-view-all {
    display: block;
    text-align: center;
    padding: var(--space-md) 0 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-secondary);
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 210, 255, 0.1));
    border-color: rgba(108, 92, 231, 0.3);
    text-align: center;
}

.sidebar-cta-card .cta-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.sidebar-cta-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.sidebar-cta-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.newsletter-form-mini {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.newsletter-form-mini input {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.cta-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Directory Categories --- */
.directory-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.directory-cat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.directory-cat-card:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.cat-icon {
    font-size: var(--text-xl);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.cat-name {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

.cat-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Featured Listing */
.featured-listing {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(108, 92, 231, 0.12));
    border-color: rgba(168, 85, 247, 0.25);
    position: relative;
    overflow: hidden;
}

.sponsored-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-tertiary);
    background: rgba(168, 85, 247, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.featured-listing-card {
    text-align: center;
}

.fl-icon {
    font-size: 36px;
    margin-bottom: var(--space-sm);
}

.fl-name {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.fl-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

/* Trending List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.trending-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.trending-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.trending-rank {
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--accent-primary);
    width: 24px;
    text-align: center;
}

.trending-info {
    flex: 1;
}

.trending-name {
    font-size: var(--text-sm);
    font-weight: 600;
    display: block;
}

.trending-category {
    font-size: 11px;
    color: var(--text-muted);
}

.trending-arrow {
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: transform var(--transition-fast);
}

.trending-item:hover .trending-arrow {
    transform: translateX(3px);
    color: var(--accent-secondary);
}

/* Ad Slot */
.ad-slot {
    text-align: center;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.ad-placeholder {
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.ad-placeholder a {
    display: block;
    margin-top: var(--space-sm);
    font-weight: 600;
}

/* --- Center Content --- */
/* Featured Article */
.featured-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    position: relative;
    transition: border-color var(--transition-base);
}

.featured-article:hover {
    border-color: var(--border-hover);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 1;
    background: var(--accent-gradient);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-placeholder svg {
    color: var(--text-muted);
}

.featured-content {
    padding: var(--space-lg);
}

.featured-category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.featured-title {
    font-size: var(--text-xl);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.featured-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Knowledge Hub Tabs */
.knowledge-hub-header {
    margin-bottom: var(--space-xl);
}

.hub-filter-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);
}

.hub-filter-tabs::-webkit-scrollbar { display: none; }

.hub-tab {
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.hub-tab.active,
.hub-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.article-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card-hover));
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-body {
    padding: var(--space-md);
}

.article-card-category {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
    margin-bottom: 6px;
}

.article-card-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.load-more-container {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* Tools Showcase */
.tools-showcase {
    margin-bottom: var(--space-2xl);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.tool-card-icon {
    font-size: 28px;
    margin-bottom: var(--space-sm);
}

.tool-card-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.tool-card-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.tool-card-badge {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 10px;
    font-weight: 600;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* --- Inquiry Section --- */
.inquiry-section {
    background: var(--bg-secondary);
    padding: var(--space-4xl) var(--space-lg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.inquiry-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.inquiry-info h2 {
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.inquiry-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.inquiry-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.inquiry-feature {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.inquiry-feature span {
    color: var(--success);
    margin-right: var(--space-sm);
}

.inquiry-also {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.inquiry-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.inquiry-form h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b80' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.form-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: var(--space-4xl) var(--space-lg);
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.newsletter-section h2 {
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.newsletter-form {
    margin-bottom: var(--space-lg);
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-md);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input-group input {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    outline: none;
}

.newsletter-input-group input:focus {
    border-color: var(--accent-primary);
}

.newsletter-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-links h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--text-accent);
}

/* ==========================================================================
   Micro-Animations (AI Theme)
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 255, 204, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 204, 0.8); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 204, 0.4); }
}

@keyframes neonBorder {
    0% { border-color: var(--accent-primary); }
    50% { border-color: var(--accent-secondary); }
    100% { border-color: var(--accent-primary); }
}

.hero-orb {
    animation: float 6s ease-in-out infinite;
}

.btn-primary:hover, .btn-secondary:hover {
    animation: pulseGlow 1.5s infinite;
}

.featured-article:hover {
    animation: neonBorder 2s infinite;
}
