/* BestRobloxScripts - Main Stylesheet */

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

:root {
    /* Primary Colors */
    --trust-blue: #2563EB;
    --hover-blue: #1D4ED8;
    --deep-navy: #0F172A;
    --page-bg: #F1F5F9;
    --card-white: #FFFFFF;
    --border-gray: #E2E8F0;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    
    /* Status Colors */
    --success-green: #22C55E;
    --warning-amber: #F59E0B;
    --danger-red: #EF4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Particle System */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Animated Gradient Mesh Background */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.mesh-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: meshMove 20s ease-in-out infinite;
}

.mesh-gradient:nth-child(1) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.mesh-gradient:nth-child(2) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.mesh-gradient:nth-child(3) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

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

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFlow 30s linear infinite;
    pointer-events: none;
}

@keyframes gridFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Orbs */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
    animation: float 15s infinite ease-in-out;
    backdrop-filter: blur(2px);
}

.orb:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.orb:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.orb:nth-child(3) {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 25%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.orb:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(90deg); }
    50% { transform: translate(0, -100px) rotate(180deg); }
    75% { transform: translate(-50px, -50px) rotate(270deg); }
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--trust-blue), var(--hover-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--trust-blue);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--trust-blue);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-cta {
    background: var(--trust-blue) !important;
    color: var(--card-white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-cta::before {
    display: none !important;
}

.nav-cta:hover {
    background: var(--hover-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Trust Bar */
.trust-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    margin-top: 0;
    padding-top: 1.5rem;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease backwards;
}

.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }
.trust-item:nth-child(4) { animation-delay: 0.4s; }

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

.trust-icon {
    color: var(--success-green);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Hero Section */
.hero-premium {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    margin-top: 73px;
}

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    margin-top: 73px;
}

.hero-small {
    padding: 3rem 2rem 2rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent);
    border-radius: 50%;
    animation: heroGlow 4s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-small h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .highlight {
    color: var(--trust-blue);
    position: relative;
    display: inline-block;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(37, 99, 235, 0.2);
    z-index: -1;
    animation: underline 1.5s ease 0.8s backwards;
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-small p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--trust-blue);
    color: var(--card-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--hover-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--trust-blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--trust-blue);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    max-width: 1400px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--trust-blue);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--trust-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

/* Section */
.section {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--trust-blue);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.subsection {
    margin-bottom: 4rem;
}

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

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

.game-card {
    background: var(--card-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.game-card-image {
    height: 140px;
    background: linear-gradient(135deg, var(--trust-blue), var(--hover-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-icon {
    font-size: 3rem;
}

.popular-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--warning-amber);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-card-content {
    padding: 1.25rem;
}

.game-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-card:hover .game-card-title {
    color: var(--trust-blue);
}

.game-card-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.game-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Scripts Grid */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.script-card {
    background: var(--card-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.script-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.script-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--trust-blue), var(--hover-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.script-icon-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.script-game-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.script-game-icon-emoji {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge,
.community-badge,
.unverified-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.verified-badge {
    background: var(--success-green);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.community-badge {
    background: var(--trust-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.unverified-badge {
    background: var(--warning-amber);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.script-content {
    padding: 1.5rem;
}

.script-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.script-card:hover .script-title {
    color: var(--trust-blue);
}

.script-description {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.meta-icon {
    font-size: 1rem;
}

.script-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--trust-blue);
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.tag-small {
    padding: 0.25rem 0.6rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--trust-blue);
    font-weight: 600;
}

.script-card:hover .tag {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--trust-blue);
}

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

.script-game {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-btn {
    color: var(--trust-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

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

.article-card {
    background: var(--card-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--trust-blue);
}

.article-card-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card:hover .article-card-title {
    color: var(--trust-blue);
}

.article-card-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
}

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.category-icon {
    font-size: 3rem;
    margin: -2rem -2rem 1rem -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 200px;
    width: calc(100% + 4rem);
    background: linear-gradient(135deg, var(--trust-blue), var(--hover-blue));
}

.category-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card:hover .category-icon {
    transform: scale(1.2);
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--trust-blue);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Trust Section */
.trust-section {
    background: var(--card-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--trust-blue), var(--hover-blue));
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trust-feature {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: var(--page-bg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--trust-blue);
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-feature:hover .trust-feature-icon {
    transform: scale(1.2);
}

.trust-feature h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* Page Header */
.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1.5rem;
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 1;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
    opacity: 0.5;
}

.breadcrumb-list a {
    color: var(--trust-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
}

.breadcrumb-list a:hover {
    background: rgba(37, 99, 235, 0.15);
    text-decoration: none;
}

.breadcrumb-list .current {
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    background: var(--page-bg);
    border-radius: 6px;
}

/* Anchor offset for sticky nav */
:target {
    scroll-margin-top: 100px;
}

#script-code {
    scroll-margin-top: 100px;
}

/* Script Hero Section */
.script-hero {
    background: var(--card-white);
    padding: 6rem 2rem 2rem;
    margin-top: 73px;
    position: relative;
    border-bottom: 1px solid var(--border-gray);
}

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

/* Breadcrumb */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.hero-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    color: var(--trust-blue);
}

.breadcrumb-sep {
    color: var(--border-gray);
}

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-working {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-community {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-unverified {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-difficulty {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-key {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Hero Title */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Hero Description */
.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-text a {
    color: var(--text-primary);
    text-decoration: none;
}

.stat-text a:hover {
    color: var(--trust-blue);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--hover-blue) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, var(--hover-blue) 0%, #1e40af 100%);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--page-bg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--border-gray);
    border-color: var(--text-secondary);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Legacy Page Header Banner (for other pages) */
.page-header-banner {
    background: var(--card-white);
    padding: 8rem 2rem 3rem;
    margin-top: 73px;
    border-bottom: 1px solid var(--border-gray);
}

.page-header-banner .header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header-banner .page-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-header-banner .page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Scripts Page Header - Clean & Minimal */
.scripts-page-header {
    background: var(--card-white);
    padding: 2rem 2rem 1.5rem;
    margin-top: 73px;
}

.scripts-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.scripts-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.scripts-page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Section Headers - Left Aligned */
.section-header-left {
    margin-bottom: 1.5rem;
}

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

/* View Game Hub Link */
.view-game-hub {
    margin-top: 2rem;
    text-align: center;
}

/* Sticky Filter Bar */
.filter-bar {
    background: var(--card-white);
    padding: 2rem;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 73px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--page-bg);
}

.search-box:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: var(--border-gray);
    border-radius: 2px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--trust-blue);
    border-radius: 2px;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background: var(--card-white);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.category-tab:hover {
    border-color: var(--trust-blue);
    color: var(--trust-blue);
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--trust-blue);
    color: white;
    border-color: var(--trust-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Content Area */
.main-content {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Category Sections */
.category-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.category-section.active {
    display: block;
}

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

/* Section Header Left Aligned */
.section-header-left {
    margin-bottom: 2rem;
}

.section-title-left {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* Game Stats Bar */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-white);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--trust-blue);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
}

/* View Game Hub Link */
.view-game-hub {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

/* Legacy Filters (for game hub pages) */
.filters-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
}

.filter-bar-simple {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-large {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.search-section {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--trust-blue);
}

/* Script Detail Page */
.script-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.script-main {
    background: var(--card-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.script-status-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-verified {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-green);
}

.status-community {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
}

.status-unverified {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-amber);
}

.difficulty-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--page-bg);
    color: var(--text-secondary);
}

.difficulty-beginner {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-green);
}

.difficulty-intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-amber);
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.script-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.script-ctas {
    margin-bottom: 2rem;
}

.script-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.script-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.feature-list,
.requirements-list {
    list-style: none;
    padding: 0;
}

.feature-list li,
.requirements-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-gray);
}

.feature-list li:last-child,
.requirements-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.requirements-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--trust-blue);
    font-weight: bold;
}

.setup-steps {
    padding-left: 1.5rem;
}

.setup-steps li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-gray);
}

.setup-steps li:last-child {
    border-bottom: none;
}

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

.faq-item {
    background: var(--page-bg);
    padding: 1.25rem;
    border-radius: 8px;
}

.faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Table of Contents */
.toc-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.toc-nav li a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--card-white);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-gray);
}

.toc-nav li a:hover {
    background: var(--trust-blue);
    color: white;
    transform: translateX(4px);
}

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

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--page-bg);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.feature-icon {
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Requirements Box */
.requirements-box {
    background: var(--page-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
}

/* Setup Steps Enhanced */
.setup-container {
    background: var(--page-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
}

.setup-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.setup-steps li {
    padding: 0;
    border-bottom: 1px solid var(--border-gray);
}

.setup-steps li:last-child {
    border-bottom: none;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--trust-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Script Code Box - Bottom of Page */
.script-code-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem !important;
    margin-top: 2rem;
    border: 2px solid var(--trust-blue) !important;
}

.script-code-section h2 {
    color: white !important;
    margin-bottom: 1rem;
}

.script-code-intro {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.script-code-box {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    padding: 1.5rem;
}

.script-code-box code {
    color: #79c0ff;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
    background: none;
    padding: 0;
}

.script-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.script-code-label {
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--trust-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--hover-blue);
    transform: scale(1.02);
}

.copy-btn.copied {
    background: var(--success-green);
}

.script-code-content {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c9d1d9;
    background: #0d1117;
    white-space: pre-wrap;
    word-break: break-all;
}

.script-code-content code {
    font-family: inherit;
    color: inherit;
    background: none;
}

.script-code-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--warning-amber);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
}

.script-code-note a {
    color: var(--trust-blue);
    text-decoration: underline;
}

/* Quick Navigation Sidebar */
.sticky-nav {
    position: sticky;
    top: 100px;
}

.quick-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav li {
    margin-bottom: 0.5rem;
}

.quick-nav li:last-child {
    margin-bottom: 0;
}

.quick-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quick-nav a:hover {
    background: var(--page-bg);
    color: var(--trust-blue);
}

.quick-nav a.highlight {
    background: var(--trust-blue);
    color: white;
    font-weight: 600;
}

.quick-nav a.highlight:hover {
    background: var(--hover-blue);
}

/* Page Meta (Author, Date) - Top position */
.page-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.page-meta-top .last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-meta-top .meta-separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-meta-top .author-credit {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-meta-top .author-credit a {
    color: var(--trust-blue);
    text-decoration: none;
    font-weight: 600;
}

.page-meta-top .author-credit a:hover {
    text-decoration: underline;
}

/* Overview Content */
.overview-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.overview-content p {
    margin-bottom: 1rem;
}

/* Script Content Body Enhanced */
.script-content-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.script-content-body h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gray);
    clear: both;
}

.script-content-body h2:first-child {
    margin-top: 0;
}

.script-content-body h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    clear: both;
}

.script-content-body p {
    margin-bottom: 1.25rem;
    text-align: left;
}

.script-content-body ul,
.script-content-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.script-content-body li {
    margin-bottom: 0.5rem;
}

.script-content-body strong {
    color: var(--text-primary);
}

.script-content-body code {
    background: var(--page-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: var(--trust-blue);
}

.script-content-body pre {
    background: #1a1a2e;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.script-content-body pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
}

/* Responsive for new elements */
@media (max-width: 768px) {
    .toc-nav ul {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .script-code-section {
        padding: 1.5rem !important;
    }
    
    .script-code-content {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* Sidebar */
.script-sidebar,
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--card-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gray);
}

.game-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--page-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.game-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-info {
    list-style: none;
    padding: 0;
}

.quick-info li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-gray);
}

.quick-info li:last-child {
    border-bottom: none;
}

.quick-info strong {
    color: var(--text-primary);
}

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

.related-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--trust-blue);
    text-decoration: none;
    font-weight: 500;
}

.related-list a:hover {
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.disclaimer-low {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.disclaimer-medium {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.disclaimer-high {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.disclaimer-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.disclaimer-low .disclaimer-content h4 {
    color: var(--trust-blue);
}

.disclaimer-medium .disclaimer-content h4 {
    color: var(--warning-amber);
}

.disclaimer-high .disclaimer-content h4 {
    color: var(--danger-red);
}

.disclaimer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Article Detail */
.article-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.article-main {
    background: var(--card-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.article-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 1rem;
    vertical-align: middle;
}

.article-summary {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.article-body {
    color: var(--text-primary);
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body code {
    background: var(--page-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--deep-navy);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-tags-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.article-tags-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-link {
    display: block;
    padding: 0.75rem;
    background: var(--page-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--trust-blue);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* SEO Content */
.seo-content {
    background: var(--card-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
}

.seo-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--deep-navy);
    margin-top: 6rem;
    padding: 4rem 2rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--trust-blue), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--card-white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--trust-blue);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--card-white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--trust-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--hover-blue);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .script-detail-grid,
    .article-detail-grid {
        grid-template-columns: 1fr;
    }

    .script-sidebar,
    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-gray);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .trust-container {
        gap: 1.5rem;
    }

    .scripts-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* ========================================
   Game Page Hero Section
   ======================================== */
.game-hero {
    background: var(--card-white);
    padding: 1.5rem 2rem 2rem;
    padding-top: 90px;
    margin-top: 0;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    z-index: 1;
}

.game-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.game-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.game-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.game-breadcrumb a:hover {
    color: var(--trust-blue);
}

.game-breadcrumb .breadcrumb-sep {
    color: var(--border-gray);
}

.game-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

.game-hero-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: center;
}

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

.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-badge-scripts {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.game-badge-popular {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.game-badge-updated {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.game-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
}

.game-hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.game-hero-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    margin: 0.5rem 0;
}

.game-stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.game-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trust-blue);
}

.game-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-game-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--hover-blue) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-game-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.game-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-thumbnail {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--card-white);
    outline: 1px solid var(--border-gray);
}

.game-thumbnail-placeholder {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--hover-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
}

.game-thumbnail-placeholder .game-icon {
    font-size: 4rem;
}

/* Game SEO Content Section */
.game-seo-section {
    background: var(--page-bg);
    padding: 2rem;
}

.game-seo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.game-seo-content {
    background: var(--card-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.game-seo-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.game-seo-content h2:first-child {
    margin-top: 0;
}

.game-seo-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.game-seo-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.game-seo-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.game-seo-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 600;
}

.game-seo-content strong {
    color: var(--text-primary);
}

/* Game Page Responsive */
@media (max-width: 900px) {
    .game-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-hero-image {
        order: -1;
    }
    
    .game-hero-title {
        font-size: 2rem;
    }
    
    .game-hero-stats {
        gap: 1.5rem;
    }
    
    .game-thumbnail-placeholder {
        width: 250px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .game-hero {
        padding: 5rem 1rem 1.5rem;
    }
    
    .game-hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .game-stat {
        min-width: 80px;
    }
}

/* ========================================
   Legal Pages (Privacy, Terms, FAQ, etc.)
   ======================================== */
.legal-page {
    padding-top: 100px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-content {
    background: var(--card-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--trust-blue);
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section li strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--trust-blue);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Warning Box */
.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h3 {
    color: #dc2626;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.warning-box p,
.warning-box li {
    color: var(--text-primary);
}

.warning-box ul {
    margin-bottom: 0;
}

/* FAQ Items */
.faq-item {
    background: var(--page-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-gray);
}

.faq-item h3 {
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0.75rem;
}

.faq-item p:last-child,
.faq-item ul:last-child,
.faq-item ol:last-child {
    margin-bottom: 0;
}

/* Contact Page */
.contact-card {
    display: flex;
    gap: 1.5rem;
    background: var(--page-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-gray);
}

.contact-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.contact-info h3 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--trust-blue);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.support-card {
    background: var(--page-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    text-align: center;
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.support-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link.discord {
    background: #5865F2;
    color: #fff;
}

.social-link.discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.25rem;
}

/* Legal Page Responsive */
@media (max-width: 768px) {
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ADVANCED ARTICLES PAGE STYLING
   ============================================ */

.articles-section {
    margin-top: 3rem;
}

/* Articles Toolbar */
.articles-toolbar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
    background: var(--card-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.toolbar-search {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input-advanced {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--page-bg);
    transition: all 0.3s ease;
}

.search-input-advanced:focus {
    outline: none;
    border-color: var(--trust-blue);
    background: var(--card-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toolbar-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select-advanced {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--page-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-select-advanced:hover {
    border-color: var(--trust-blue);
    background: var(--card-white);
}

.filter-select-advanced:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-reset-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-reset-filters:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #dc2626;
}

.btn-reset-filters svg {
    width: 18px;
    height: 18px;
}

/* Categories Showcase */
.categories-showcase {
    margin-bottom: 3rem;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--card-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    gap: 0.75rem;
}

.category-tile:hover {
    border-color: var(--trust-blue);
    background: rgba(37, 99, 235, 0.02);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-tile-icon {
    font-size: 2.5rem;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-tile:hover .category-tile-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-tile-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.category-tile-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--page-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Articles Stats */
.articles-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--trust-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Articles Grid Advanced */
.articles-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Advanced Article Card */
.article-card-advanced {
    display: flex;
    flex-direction: column;
    background: var(--card-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.article-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trust-blue), var(--hover-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card-advanced:hover::before {
    transform: scaleX(1);
}

.article-card-advanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    gap: 1rem;
}

.article-category-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-read-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.article-card-body {
    flex: 1;
    padding: 1.5rem;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card-advanced:hover .article-card-title {
    color: var(--trust-blue);
}

.article-card-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray);
    gap: 1rem;
    flex-wrap: wrap;
}

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

.article-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.icon-small {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.article-tags-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--trust-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.article-card-advanced:hover .tag-badge {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--trust-blue);
}

.tag-more {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.article-card-arrow {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--trust-blue);
}

.article-card-advanced:hover .article-card-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-white);
    border-radius: 12px;
    border: 2px dashed var(--border-gray);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Responsive Articles */
@media (max-width: 1024px) {
    .articles-grid-advanced {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .articles-toolbar {
        flex-direction: column;
    }
    
    .toolbar-search {
        width: 100%;
    }
    
    .toolbar-filters {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .articles-grid-advanced {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-toolbar {
        padding: 1rem;
        gap: 1rem;
    }
    
    .search-input-advanced {
        font-size: 16px;
    }
    
    .filter-select-advanced {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .category-tile {
        padding: 1rem 0.75rem;
    }
    
    .category-tile-icon {
        font-size: 2rem;
    }
    
    .category-tile-name {
        font-size: 0.85rem;
    }
    
    .article-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .articles-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PREMIUM NAVBAR STYLING (v2)
   ============================================ */

.nav-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.nav-premium.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container-premium {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.logo-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-premium:hover {
    transform: scale(1.05);
}

.logo-icon-premium {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--trust-blue), var(--hover-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text-premium {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links-premium {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    flex: 1;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.nav-links-premium a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links-premium a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--trust-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links-premium a:hover,
.nav-links-premium a.nav-link-active {
    color: var(--trust-blue);
}

.nav-links-premium a:hover::before,
.nav-links-premium a.nav-link-active::before {
    width: 100%;
}

.nav-actions-premium {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-btn-secondary,
.nav-btn-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.nav-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-gray);
}

.nav-btn-secondary:hover {
    background: var(--page-bg);
    border-color: var(--trust-blue);
    color: var(--trust-blue);
}

.nav-btn-primary {
    background: var(--trust-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-btn-primary:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-menu-toggle-premium {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle-premium span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .nav-links-premium {
        gap: 1.5rem;
    }
    
    .nav-actions-premium {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container-premium {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .nav-links-premium {
        display: none;
    }
    
    .nav-actions-premium {
        display: none;
    }
    
    .mobile-menu-toggle-premium {
        display: flex;
    }
}

/* ============================================
   PREMIUM HERO SECTION WITH PARTICLES
   ============================================ */

.hero-premium {
    position: relative;
    padding: 8rem 2rem 6rem;
    margin-top: 73px;
    text-align: center;
    overflow: hidden;
}

.hero-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    animation: floatParticle var(--duration) ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    --delay: 0s;
}

.hero-particle:nth-child(2) {
    top: 40%;
    right: 15%;
    --delay: 2s;
}

.hero-particle:nth-child(3) {
    top: 60%;
    left: 20%;
    --delay: 4s;
}

.hero-particle:nth-child(4) {
    top: 30%;
    right: 25%;
    --delay: 6s;
}

.hero-particle:nth-child(5) {
    top: 70%;
    left: 30%;
    --delay: 8s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) translateX(-20px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-30px) translateX(30px);
        opacity: 0.5;
    }
}

.hero-content-premium {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title-premium {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle-premium {
    font-size: 1.1rem;
    color: var(--trust-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-description-premium {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    animation: fadeInUp 1s ease 0.6s backwards;
}

@media (max-width: 768px) {
    .hero-premium {
        padding: 5rem 1.5rem 4rem;
        margin-top: 73px;
    }
    
    .hero-title-premium {
        font-size: 2.25rem;
    }
    
    .hero-description-premium {
        font-size: 1rem;
    }
}

/* ============================================
   PREMIUM 4-CARD CATEGORY GRID
   ============================================ */

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card-premium {
    background: var(--card-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.category-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trust-blue), var(--hover-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card-premium:hover::before {
    transform: scaleX(1);
}

.category-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.category-card-icon {
    font-size: 3rem;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card-premium:hover .category-card-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.category-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.category-card-cta {
    padding: 0.75rem 1.5rem;
    background: var(--trust-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-card-cta:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .category-card-premium {
        padding: 1.5rem;
    }
    
    .category-card-icon {
        font-size: 2.5rem;
    }
    
    .category-card-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   PREMIUM ARTICLES TOOLBAR (v2)
   ============================================ */

.articles-toolbar-v2 {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
    background: var(--card-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.toolbar-search-v2 {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-v2 {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input-v2 {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--page-bg);
    transition: all 0.3s ease;
}

.search-input-v2:focus {
    outline: none;
    border-color: var(--trust-blue);
    background: var(--card-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toolbar-filters-v2 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select-v2 {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--page-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-select-v2:hover {
    border-color: var(--trust-blue);
    background: var(--card-white);
}

.filter-select-v2:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-reset-filters-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-reset-filters-v2:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #dc2626;
}

.btn-reset-filters-v2 svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .articles-toolbar-v2 {
        flex-direction: column;
    }
    
    .toolbar-search-v2 {
        width: 100%;
    }
    
    .toolbar-filters-v2 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .articles-toolbar-v2 {
        padding: 1rem;
        gap: 1rem;
    }
    
    .search-input-v2 {
        font-size: 16px;
    }
    
    .filter-select-v2 {
        font-size: 16px;
    }
}

/* ============================================
   PREMIUM ARTICLE CARDS (v2) WITH BADGES
   ============================================ */

.articles-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--card-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.article-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trust-blue), var(--hover-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card-v2:hover::before {
    transform: scaleX(1);
}

.article-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.article-card-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    gap: 1rem;
}

.article-badges-v2 {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-updated-2026,
.badge-verified,
.badge-safe {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-updated-2026 {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-safe {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.article-read-time-v2 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.article-card-v2-body {
    flex: 1;
    padding: 1.5rem;
}

.article-category-v2 {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.article-card-v2-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.75rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card-v2:hover .article-card-v2-title {
    color: var(--trust-blue);
}

.article-card-v2-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.article-card-v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray);
    gap: 1rem;
    flex-wrap: wrap;
}

.article-meta-v2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-date-v2 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.platform-badge-v2 {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--trust-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.article-tags-v2 {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-v2 {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--trust-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.article-card-v2:hover .tag-v2 {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--trust-blue);
}

.empty-state-v2 {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-white);
    border-radius: 12px;
    border: 2px dashed var(--border-gray);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-v2 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-v2 p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary-v2 {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--trust-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
}

.btn-primary-v2:hover {
    background: var(--hover-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-small-v2 {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .articles-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-grid-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card-v2-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-card-v2-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   PREMIUM ARTICLE DETAIL PAGE STYLING
   ============================================ */

.article-header-premium {
    background: var(--card-white);
    padding: 3rem 2rem 2rem;
    margin-top: 80px;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    clear: both;
    z-index: 10;
}

.article-header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category-badge-premium {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-updated-badge svg {
    width: 16px;
    height: 16px;
}

.article-title-premium {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.article-lead-premium {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1.5rem 0 0;
    max-width: 800px;
}

.article-trust-signals {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
    flex-wrap: wrap;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.trust-signal svg {
    width: 20px;
    height: 20px;
    color: var(--success-green);
}

.article-detail-premium {
    padding: 3rem 2rem;
}

.article-detail-grid-premium {
    max-width: 900px;
    margin: 0 auto;
    display: block;
}

/* Table of Contents Sidebar - Hidden */
.article-toc-sidebar {
    display: none;
}

.toc-card {
    background: var(--card-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

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

.toc-nav {
    margin: 0;
    padding: 0;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    color: var(--trust-blue);
    background: rgba(37, 99, 235, 0.05);
}

.toc-list a.active {
    color: var(--trust-blue);
    background: rgba(37, 99, 235, 0.1);
    border-left-color: var(--trust-blue);
    font-weight: 600;
}

/* Main Article Content */
.article-main-premium {
    min-width: 0;
}

.article-body-premium {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body-premium h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
    scroll-margin-top: 100px;
}

.article-body-premium h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-body-premium h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    scroll-margin-top: 100px;
}

.article-body-premium p {
    margin: 1rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-body-premium ul,
.article-body-premium ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    color: var(--text-secondary);
}

.article-body-premium ul li {
    list-style: disc;
}

.article-body-premium ol li {
    list-style: decimal;
}

.article-body-premium li {
    margin: 0.75rem 0;
    line-height: 1.8;
}

.article-body-premium code {
    background: var(--page-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d73a49;
}

.article-body-premium pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-gray);
}

.article-body-premium pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-body-premium blockquote {
    border-left: 4px solid var(--trust-blue);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body-premium table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
}

.article-body-premium th {
    background: var(--page-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-gray);
}

.article-body-premium td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-secondary);
}

.article-body-premium tr:last-child td {
    border-bottom: none;
}

.article-tags-section-premium {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.article-tags-section-premium h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tag-list-premium {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag-premium {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Right Sidebar - Hidden */
.article-sidebar-premium {
    display: none;
}

.sidebar-card-premium {
    background: var(--card-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card-premium h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-link-premium {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link-premium:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateX(4px);
}

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

.platform-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--trust-blue);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.related-list-premium {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-list-premium li {
    margin: 0;
}

.related-list-premium a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--trust-blue);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.related-list-premium a:hover {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: var(--trust-blue);
    transform: translateX(4px);
}

@media (max-width: 1200px) {
    .article-detail-grid-premium {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .article-header-premium {
        padding: 2rem 1.5rem;
    }
    
    .article-title-premium {
        font-size: 1.75rem;
    }
    
    .article-detail-grid-premium {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .article-body-premium h2 {
        font-size: 1.5rem;
        margin: 2rem 0 0.75rem;
    }
    
    .article-body-premium h3 {
        font-size: 1.2rem;
    }
    
    .article-trust-signals {
        gap: 1rem;
    }
}

/* ============================================
   EXECUTORS PAGE STYLING
   ============================================ */

.executors-section {
    padding: 3rem 2rem;
}

.executors-toolbar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
    background: var(--card-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.toolbar-search {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--page-bg);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--trust-blue);
    background: var(--card-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toolbar-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--page-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-select:hover {
    border-color: var(--trust-blue);
    background: var(--card-white);
}

.filter-select:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-reset-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-reset-filters:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #dc2626;
}

.btn-reset-filters svg {
    width: 18px;
    height: 18px;
}

.executors-table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
    background: var(--card-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.executors-table {
    width: 100%;
    border-collapse: collapse;
}

.executors-table thead {
    background: var(--page-bg);
    border-bottom: 2px solid var(--border-gray);
}

.executors-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.executors-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.executors-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

.executors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.executor-card {
    display: flex;
    flex-direction: column;
    background: var(--card-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    height: 100%;
}

.executor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trust-blue), var(--hover-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.executor-card:hover::before {
    transform: scaleX(1);
}

.executor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--trust-blue);
}

.executor-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.executor-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.executor-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-free,
.badge-paid,
.badge-verified,
.badge-updated {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-free {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-paid {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-updated {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.executor-card-body {
    flex: 1;
    padding: 1.5rem;
}

.executor-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.executor-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray);
}

/* Executor Details Section */
.executors-details {
    padding: 3rem 2rem;
}

.executor-detail-card {
    background: var(--card-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
}

.executor-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.executor-detail-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.executor-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.executor-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.detail-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.executor-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.executor-features {
    background: var(--page-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.executor-features h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.executor-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.executor-features li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.executor-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--trust-blue);
    font-weight: 700;
}

/* Safety & Setup Guide */
.executors-guide {
    padding: 3rem 2rem;
}

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

.guide-card {
    background: var(--card-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    text-align: center;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.guide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.hero-test-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .executors-toolbar {
        flex-direction: column;
    }
    
    .toolbar-search {
        width: 100%;
    }
    
    .toolbar-filters {
        width: 100%;
    }
}

/* ============================================
   COMPACT EXECUTORS PAGE REDESIGN
   ============================================ */

.executors-section {
    padding: 2rem 2rem;
}

.executors-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.executor-card-compact {
    background: var(--card-white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.executor-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--trust-blue), var(--hover-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.executor-card-compact:hover::before {
    transform: scaleX(1);
}

.executor-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--trust-blue);
}

.executor-card-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.executor-card-compact-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.executor-card-compact-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.executor-card-compact-badges .badge-free,
.executor-card-compact-badges .badge-paid,
.executor-card-compact-badges .badge-verified {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.executor-card-compact-badges .badge-free {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.executor-card-compact-badges .badge-paid {
    background: rgba(37, 99, 235, 0.1);
    color: var(--trust-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.executor-card-compact-badges .badge-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.executor-card-compact-platforms {
    display: flex;
    gap: 0.5rem;
}

.platform-icon {
    font-size: 1.25rem;
    display: inline-block;
}

.executor-card-compact-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--trust-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.executor-card-compact-link:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

.executors-cta {
    padding: 2rem;
}

.cta-box {
    background: var(--card-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cta-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

@media (max-width: 1024px) {
    .executors-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .executors-section,
    .executors-cta {
        padding: 1.5rem;
    }
    
    .executors-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .executor-card-compact {
        padding: 1rem;
    }
    
    .executor-card-compact-header h3 {
        font-size: 1rem;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.1rem;
    }
}

/* ============================================
   ADSENSE OPTIMIZATION & PLACEMENT
   ============================================ */

/* AdSense Container Styling */
.adsense-container {
    margin: 2rem auto;
    padding: 1rem 0;
    text-align: center;
    overflow: hidden;
}

/* Top Banner Ad (Above Fold) */
.adsense-top {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: var(--card-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* In-Content Ad (After Sections) */
.adsense-inline {
    margin: 2rem auto;
    max-width: 728px;
    background: var(--card-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Sidebar Ad (Desktop Only) */
.adsense-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .adsense-sidebar {
        display: block;
        float: right;
        margin: 0 0 2rem 2rem;
        width: 300px;
        background: var(--card-white);
        border-radius: 8px;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }
}

/* Bottom Ad (Before Footer) */
.adsense-bottom {
    margin: 3rem auto 2rem;
    background: var(--card-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-gray);
}

/* AdSense Responsive Styling */
.adsense-container ins {
    display: block;
    margin: 0 auto;
}

/* Prevent Layout Shift (CLS Optimization) */
.adsense-container {
    min-height: 90px;
    position: relative;
}

/* ============================================
   CORE WEB VITALS OPTIMIZATION
   ============================================ */

/* LCP (Largest Contentful Paint) Optimization */
h1, h2, h3 {
    font-display: swap;
}

/* FID (First Input Delay) Optimization */
button, a, input, select, textarea {
    touch-action: manipulation;
}

/* CLS (Cumulative Layout Shift) Prevention */
img, video, iframe {
    display: block;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
}

/* Prevent Image Layout Shift */
img[width], img[height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Smooth Scrolling (No Layout Shift) */
html {
    scroll-behavior: smooth;
}

/* Prevent Font Swap Layout Shift */
body {
    font-display: swap;
}

/* Optimize Animations (Reduce CLS) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Lazy Loading Images */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Ad Optimization */
@media (max-width: 768px) {
    .adsense-container {
        margin: 1.5rem auto;
        padding: 0.5rem 0;
    }
    
    .adsense-top,
    .adsense-inline,
    .adsense-bottom {
        padding: 0.75rem;
    }
    
    .adsense-sidebar {
        display: none !important;
    }
}

/* Prevent Ad Overflow */
.adsense-container {
    max-width: 100%;
    word-break: break-word;
}

/* Ad Container Spacing (No Clutter) */
.section .adsense-inline {
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   INTERNAL LINKING & RELATED CONTENT
   ============================================ */

.related-content,
.related-scripts,
.related-articles {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-white);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
}

.related-header {
    margin-bottom: 2rem;
}

.related-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.related-card {
    display: block;
    padding: 1.5rem;
    background: var(--page-bg);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.related-card:hover {
    background: var(--card-white);
    border-color: var(--trust-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--trust-blue);
}

.related-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-content,
    .related-scripts,
    .related-articles {
        margin: 2rem 0;
        padding: 1.5rem;
    }
}

/* ============================================
   IMAGE ALT TEXT & ACCESSIBILITY
   ============================================ */

/* Ensure all images have proper spacing */
img {
    margin: 1rem 0;
    border-radius: 8px;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background-color: var(--border-gray);
}

/* Image figure styling */
figure {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--page-bg);
    border-radius: 8px;
    text-align: center;
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ============================================
   HEADING HIERARCHY & H1 OPTIMIZATION
   ============================================ */

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--text-secondary);
}

/* Ensure proper spacing after headings */
h1 + p,
h2 + p,
h3 + p {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}
