/* ============================================================
   style.css — INNOCENT AI TOOLS
   Premium Next-Level Dark Cosmic UI Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@500;700;800&display=swap');

/* ============================================================
   RESET & ROOT VARIABLES
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark:        #070714;
    --bg-card:        rgba(255, 255, 255, 0.03);
    --bg-card-hover:  rgba(255, 255, 255, 0.06);
    --card-border:    rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(99, 102, 241, 0.4);

    --text-primary:   #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted:     #71717a;

    --neon-cyan:    #00f0ff; 
    --neon-magenta: #ff0055; 
    --neon-purple:  #7f00ff; 
    --neon-green:   #00ffaa;

    --gradient-main:  linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-cyan:  linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
    --gradient-hero:  linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #00f0ff 100%);

    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.15);
    --glow-cyan:    0 0 20px rgba(0, 240, 255, 0.2);
    --glow-magenta: 0 0 20px rgba(255, 0, 85, 0.2);

    --font-body:    'Inter', sans-serif;
    --font-accent:  'Outfit', sans-serif;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --transition-fast:   0.2s ease;
    --transition-base:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

.emoji-3d {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin: -2px 4px 0 0;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

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

/* ============================================================
   COSMIC BACKGROUND ELEMENTS
   ============================================================ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    top: -250px; left: -250px;
    animation: orbit1 28s infinite linear;
}

.glow-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    bottom: -200px; right: -200px;
    animation: orbit2 34s infinite linear;
}

@keyframes orbit1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(120px, 80px) scale(1.12); }
    66%  { transform: translate(40px, 160px) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbit2 {
    0%   { transform: translate(0, 0) scale(1.1); }
    50%  { transform: translate(-120px, -80px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1.1); }
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.container {
    position: relative;
    z-index: 2;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.glass-nav {
    position: sticky;
    top: 16px;
    z-index: 200;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    margin-top: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
    transition: all 0.4s ease;
}

.glass-nav.scrolled {
    background: rgba(9, 9, 11, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    width: 40px; height: 40px;
    border-radius: 11px;
    border: 1.5px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transition: transform var(--transition-base);
}

.nav-logo:hover img { transform: scale(1.1) rotate(-3deg); }

.nav-logo span {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #ffffff 40%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-links a.active {
    color: #fff;
    background: rgba(107, 143, 101, 0.8);
    border: 1px solid rgba(107, 143, 101, 1);
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-btn, .auth-btn-outline {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-btn {
    color: #fff !important;
    background: rgba(107, 143, 101, 0.4);
    border: 1px solid rgba(107, 143, 101, 0.6);
}

.auth-btn:hover {
    background: rgba(107, 143, 101, 0.8);
    border-color: rgba(107, 143, 101, 1);
    transform: translateY(-1px);
}

.auth-btn-outline {
    color: var(--text-secondary) !important;
    background: transparent;
    border: 1px solid var(--card-border);
}

.auth-btn-outline:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Hamburger Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    transition: background var(--transition-fast);
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 300;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.mobile-nav-overlay.show { opacity: 1; }

.mobile-nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(10, 10, 28, 0.98);
    border-left: 1px solid var(--card-border);
    z-index: 400;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition-bounce);
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-drawer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.08);
}

.mobile-nav-close {
    position: absolute;
    top: 22px; right: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.mobile-nav-close:hover { color: #fff; background: rgba(99,102,241,0.15); }

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    animation: heroFadeIn 1s ease-out both;
}

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

/* Animated Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: heroFadeIn 1s 0.1s ease-out both;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    animation: pulseDot 2s ease-in-out infinite;
}

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

/* Hero Title */
.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 14px;
    animation: heroFadeIn 1s 0.2s ease-out both;
}

.hero-gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2));
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.6;
    font-weight: 400;
    animation: heroFadeIn 1s 0.3s ease-out both;
}

/* Hero Search */
.hero-search-wrapper {
    display: flex;
    justify-content: center;
    animation: heroFadeIn 1s 0.4s ease-out both;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 500px;
    max-width: 100%;
    padding: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.search-box:focus-within {
    border-color: var(--neon-cyan);
    background: rgba(13, 13, 30, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 12px 30px rgba(0,0,0,0.4);
}

.search-icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}
.search-box:focus-within .search-icon { color: var(--neon-cyan); }

.search-input {
    width: 100%;
    padding: 14px 44px 14px 50px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
}
.search-input::placeholder { color: var(--text-muted); }

.search-clear {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.search-clear:hover {
    background: var(--neon-magenta);
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-header-title {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    padding-left: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header-title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-main);
    border-radius: 4px;
}

.section-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Search Info Bar */
.search-info {
    display: flex;
    margin-bottom: 20px;
}
.search-info-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.12);
    padding: 8px 16px;
    border-radius: 50px;
}
.search-info-content svg { color: var(--neon-cyan); flex-shrink: 0; }

/* ============================================================
   CATEGORY SELECTOR
   ============================================================ */
.category-tabs-container {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-tabs-container::-webkit-scrollbar {
    display: none;
}
.category-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}
.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.category-tab svg {
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}
.category-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.category-tab:hover svg {
    opacity: 1;
}
.category-tab.active {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.category-tab.active svg {
    color: #818cf8;
    opacity: 1;
}

/* ============================================================
   TOOLS GRID — PREMIUM CARDS
   ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 80px;
    perspective: 1200px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 26px 22px 26px;

    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: cardReveal 0.5s ease-out both;
}

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

/* Category Badge in card */
.tool-card-category-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -2px; /* reduce gap to logo */
    transition: all var(--transition-fast);
    z-index: 2;
}
.tool-card:hover .tool-card-category-badge {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Top shimmer line */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

/* Inner glow ring (hidden until hover) */
.card-glow-ring {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: var(--gradient-main);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
    filter: blur(8px);
}

/* Shine overlay — animated by JS mousemove */
.card-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at -100% -100%, rgba(255,255,255,0.1) 0%, transparent 75%);
    pointer-events: none;
    z-index: 3;
    border-radius: inherit;
}

.tool-card:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.15);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .card-glow-ring { opacity: 0.15; }

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

/* Tool Logo */
.tool-logo {
    width: 68px; height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition-bounce), border-color var(--transition-base), box-shadow var(--transition-base);
    flex-shrink: 0;
}

.tool-logo-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.tool-card:hover .tool-logo {
    transform: translateZ(16px) scale(1.08);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--glow-cyan);
}

.tool-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.tool-desc-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: rgba(99, 102, 241, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.tool-card:hover .card-footer {
    color: var(--neon-cyan);
    gap: 8px;
}

.arrow-icon {
    transition: transform var(--transition-base);
    flex-shrink: 0;
}
.tool-card:hover .arrow-icon { transform: translateX(5px); }

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-xl);
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-results-icon {
    color: var(--neon-magenta);
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

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

.btn-clear-search {
    margin-top: 8px;
    padding: 10px 24px;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}
.btn-clear-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   AI NEWS SECTION
   ============================================================ */
.news-section { margin-top: 60px; }

.news-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 80px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.news-img-wrapper {
    height: 190px;
    position: relative;
    overflow: hidden;
}

.news-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-img { transform: scale(1.08); }

.news-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(7,7,20,0.7) 100%);
    pointer-events: none;
}

.news-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.news-date svg { opacity: 0.7; }

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.42;
}

.news-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(99, 102, 241, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-top: 4px;
}
.news-card:hover .news-read-more {
    color: var(--neon-magenta);
    gap: 10px;
}
.news-read-more svg { transition: transform var(--transition-base); }
.news-card:hover .news-read-more svg { transform: translateX(4px); }

/* Sponsored / Ad Card */
.sponsored-card {
    background: rgba(99, 102, 241, 0.02);
    border: 1px dashed rgba(99, 102, 241, 0.2) !important;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.sponsored-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.ad-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.04);
}

/* ============================================================
   MODAL — TOOL DETAILS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(7, 7, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--transition-base);
}

.modal-content {
    background: linear-gradient(145deg, #0e0e25 0%, #0a0a1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    max-width: 860px;
    width: 100%;
    position: relative;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 60px rgba(99, 102, 241, 0.08);
    animation: scaleUp var(--transition-bounce);
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar */
.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(127,0,255,0.4); border-radius: 4px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleUp {
    from { transform: scale(0.88) translateY(24px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    right: 22px; top: 22px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.modal-close-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99,102,241,0.25);
    color: #fff;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    margin-top: 10px;
}

.modal-left { display: flex; flex-direction: column; gap: 18px; }

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.modal-logo {
    width: 72px; height: 72px;
    border-radius: 18px;
    border: 2px solid rgba(99, 102, 241, 0.35);
    box-shadow: var(--glow-cyan);
    object-fit: cover;
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-body);
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.modal-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--neon-purple);
    background: rgba(127,0,255,0.1);
    border: 1px solid rgba(127,0,255,0.25);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-section-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.3px;
}

.modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pros-box, .cons-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
}
.pros-box { border-color: rgba(0, 255, 170, 0.12); }
.cons-box { border-color: rgba(255, 51, 102, 0.12); }

.pros-box h4, .cons-box h4 {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}
.pros-box h4 { color: var(--neon-green); }
.cons-box h4 { color: #ff4477; }

.pros-cons-list {
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pros-cons-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}
.pros-box li::before { content: '✓'; position: absolute; left: 0; color: var(--neon-green); font-weight: bold; }
.cons-box li::before { content: '×'; position: absolute; left: 0; color: #ff4477; font-weight: bold; }

/* Modal Right */
.modal-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-ad-box {
    background: rgba(0,0,0,0.35);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-launch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn-launch:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.4);
}
.btn-launch:hover::before { opacity: 1; }

@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: -400px; left: 20px; right: 20px;
    z-index: 999;
    background: rgba(10, 10, 28, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.4), 0 20px 60px rgba(0,0,0,0.5);
    transition: bottom 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show { bottom: 20px; }

.cookie-content {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 75%;
}
.cookie-content svg { color: var(--neon-cyan); flex-shrink: 0; }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn-accept {
    padding: 10px 22px;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(127,0,255,0.3);
}
.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.cookie-btn-decline {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.footer-logo img {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1.5px solid rgba(0,240,255,0.3);
}
.footer-logo span {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #fff 40%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 300px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col-title {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    width: fit-content;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--neon-cyan); }

/* ============================================================
   PARTICLE KEYFRAME (used in script.js)
   ============================================================ */
@keyframes float {
    0%   { transform: translateY(0) translateX(0); }
    25%  { transform: translateY(-30px) translateX(15px); }
    50%  { transform: translateY(-60px) translateX(-10px); }
    75%  { transform: translateY(-30px) translateX(-20px); }
    100% { transform: translateY(0) translateX(0); }
}

/* ============================================================
   RESPONSIVE — TABLETS & MOBILE
   ============================================================ */
@media (min-width: 1200px) {
    .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .news-feed-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
}

@media (max-width: 899px) and (min-width: 640px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .news-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 639px) {
    .container { padding: 0 16px 40px; }
    .tools-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .news-feed-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-section { padding: 40px 10px 30px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .glass-nav { top: 10px; margin-top: 10px; }
    .nav-container { padding: 10px 16px; }
    .section-header-title { font-size: 1.45rem; }

    /* Category tabs scroll horizontally on mobile */
    .category-tabs-container { margin: 20px auto; }
    .category-tabs { gap: 4px; padding: 4px; }
    .category-tab { padding: 7px 12px; font-size: 0.78rem; }
    .category-tab svg { display: none; }

    .cookie-banner {
        flex-direction: column;
        padding: 18px;
        gap: 14px;
    }
    .cookie-content { max-width: 100%; flex-direction: column; text-align: center; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; }

    .pros-cons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PREMIUM AI ORB ANIMATION
   ============================================================ */
.hero-ai-orb {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 60px;
    height: 60px;
    background: var(--gradient-cyan);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--neon-cyan), 0 0 80px rgba(99, 102, 241, 0.4);
    animation: orbPulse 3s ease-in-out infinite;
    z-index: 5;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-magenta);
}

.ring-1 {
    width: 120px; height: 120px;
    animation: ringSpin 8s linear infinite;
}
.ring-2 {
    width: 170px; height: 170px;
    animation: ringSpin 12s linear infinite reverse;
    opacity: 0.7;
}
.ring-3 {
    width: 220px; height: 220px;
    animation: ringSpin 18s linear infinite;
    opacity: 0.4;
    border-style: dashed;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 60px var(--neon-cyan), 0 0 100px rgba(99, 102, 241, 0.6); }
}

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