/* 
 * Ignite Panel - Next Gen Design System 
 * Full Page Scroll & High-End Aesthetics
 */

:root {
    /* --- Deep Space Palette --- */
    --bg-void: #000000;
    --bg-depth: #050505;
    --bg-card: #0a0a0a;

    /* Neon Accents */
    --neon-blue: #2563eb;
    --neon-purple: #7c3aed;
    --neon-cyan: #06b6d4;
    --neon-glow: rgba(59, 130, 246, 0.6);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    /* Clean, modern sans */

    /* Layout */
    --header-height: 80px;
    --section-spacing: 120px;
}

/* RTL Override */
[dir="rtl"] {
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

body {
    background-color: var(--bg-void);
    color: #ffffff;
    font-family: var(--font-body);
    overflow: hidden;
    /* Prevent normal scroll, rely on container */
    height: 100vh;
    width: 100vw;
}

/* Scroll Snap Container */
.main-scroller {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
}

/* Common Section Styles */
.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Background Gradients */
.bg-gradient-hero {
    background: radial-gradient(circle at 50% 50%, #0a0a1a 0%, #000000 70%);
}

.bg-gradient-features {
    background-color: #07080a;
}

.bg-gradient-store {
    background-color: #07080a;
}

.bg-gradient-gallery {
    background-color: #07080a;
}

/* --- Quick Board Showcase Layout --- */
.quickboard-showcase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1600px;
    width: 100%;
    padding: 0 40px;
}

.quickboard-video-col {
    flex: 1.5;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.quickboard-video {
    max-width: 100%;
    width: 850px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quickboard-text-col {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.quickboard-text-col .hero-title {
    font-size: 3rem !important;
}

.quickboard-text-col .hero-subtitle {
    font-size: 1.2rem;
}

.quickboard-text-col ul {
    font-size: 1.1rem !important;
}

[dir="rtl"] .quickboard-text-col {
    text-align: right;
}

[dir="rtl"] .quickboard-text-col li i {
    margin-right: 0;
    margin-left: 10px;
}

@media (max-width: 900px) {
    .quickboard-showcase-container {
        flex-direction: column;
        gap: 40px;
        padding: 80px 20px;
    }

    .quickboard-text-col {
        text-align: center;
        max-width: 100%;
    }

    .quickboard-video {
        width: 100%;
        max-width: 400px;
    }
}

/* --- Hero Split Layout --- */
.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1500px;
    width: 100%;
    padding: 0 40px;
}

.hero-text-col {
    flex: 1;
    max-width: 550px;
    text-align: left;
}

[dir="rtl"] .hero-text-col {
    text-align: right;
}

.hero-text-col .hero-title {
    margin-bottom: 20px;
}

.hero-text-col .hero-subtitle {
    margin: 0 0 20px;
}

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

.hero-interface-img {
    max-width: 100%;
    width: 750px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 900px) {
    .hero-split-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 100px 20px 40px;
    }

    .hero-text-col {
        text-align: center;
        max-width: 100%;
    }

    .hero-text-col .anim-entry {
        justify-content: center;
    }

    .hero-interface-img {
        width: 100%;
        max-width: 400px;
    }
}

/* --- Components --- */

/* Floating Navbar */
.nav-fixed {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.16), transparent 55%), rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.profile-menu-container {
    position: relative;
}

.nav-fixed:hover {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.22), transparent 55%), rgba(12, 12, 12, 0.96);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85);
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s, transform 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--neon-blue);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.25), transparent 60%);
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-lang:hover {
    border-color: rgba(248, 250, 252, 0.9);
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent 62%);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

/* ... existing code ... */

/* Feature Text Styles */
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.feature-desc {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Typography */
h1.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    /* Optimized from 800 */
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

p.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    color: #9ca3af;
    max-width: 700px;
    margin: 10px auto 36px;
    line-height: 1.6;
}

html[lang="ar"] h1.hero-title {
    line-height: 1.6;
    margin-bottom: 28px;
}

html[lang="ar"] p.hero-subtitle {
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    background: white;
    color: black;
    padding: 16px 40px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #e5e7eb;
    padding: 15px 36px;
    border-radius: 100px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.22), transparent 60%);
    border-color: rgba(226, 232, 240, 0.95);
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(148, 163, 184, 0.5);
}

.features-store-btn {
    padding: 18px 48px;
    font-size: 1rem;
    border-color: rgba(37, 99, 235, 0.7);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
}

.features-store-btn:hover {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.7), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.7);
}

/* Feature Cards (Bento) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 20px;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.feature-card-desc {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

.feature-icon {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
}

/* --- New Layouts (User Request) --- */

/* 1. Features: Central Image Layout */
.feature-layout-central {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

.feature-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    /* Keep features On Top of image glow */
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--neon-blue);
    min-width: 40px;
    margin-top: 5px;
}

[dir="rtl"] .feature-item {
    text-align: right;
}

/* ... existing code ... */

/* Marquee Scroller */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    /* Ensure no constraints */
    padding: 20px 0;
    /* Removed mask to go edge-to-edge per user request */
}

.marquee-row {
    display: flex;
    gap: 24px;
    width: max-content;
    /* will-change: transform; */
    /* Optimization if needed */
}

.marquee-move-left {
    animation: marquee-left 80s linear infinite;
}

.marquee-move-right {
    animation: marquee-right 80s linear infinite;
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Pause on hover */
.marquee-row:hover {
    animation-play-state: paused;
}

.feature-center-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    /* Reduced glow, removed float animation */
    box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* animation: float 8s ease-in-out infinite; -- RE MOVED */
    position: relative;
    z-index: 1;
    /* Ensure behind features if overlap occurs, or manage via layout gap */
}

/* 2. Plugin Store: Tactile Cards */
.plugin-card-new {
    background: #0f0f15;
    /* Dark surface */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    width: 340px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent shrinking in flex container */
    margin: 10px 0;
    /* Add vertical margin to account for transform */
}

[dir="rtl"] #store .plugin-card-new,
[dir="rtl"] #store .plugin-header,
[dir="rtl"] #store .plugin-info,
[dir="rtl"] #store .plugin-desc-text {
    direction: ltr;
    text-align: left;
}

#dashboardSection .plugin-card-new,
#dashboardSection .plugin-header,
#dashboardSection .plugin-info,
#dashboardSection .plugin-desc-text {
    direction: ltr;
    text-align: left;
}

.plugin-card-new:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* "Button Square" Icon Container */
.plugin-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e1e24, #121216);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.3);
    /* Tactile drop shadow */
}

.plugin-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.plugin-version {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-block;
    margin-left: 8px;
}

.plugin-desc-text {
    font-size: 1.05rem;
    color: #9ca3af;
    line-height: 1.6;
    text-align: left;
}

/* Mobile Responsive Override */
@media (max-width: 1024px) {
    .feature-layout-central {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .feature-center-img {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Animation Classes (Entry) */
.anim-entry {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-active .anim-entry {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        padding-bottom: 100px;
        /* Space for scroll */
    }

    .snap-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }

    .nav-fixed {
        bottom: 20px;
        top: auto;
        width: 90%;
        justify-content: center;
    }

    body {
        /* Allow scroll overflow on mobile if needed */
        overflow: auto;
    }

    .main-scroller {
        height: auto;
        scroll-snap-type: none;
        /* Disable forced snap on mobile for betting feels */
        overflow-y: visible;

    }
}

/* Global Dev Page Background */
.dev-body {
    background-color: #030305;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: top center, center top, center top;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    position: relative;
}

.dev-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #000 120%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is clickable and above the vignette */
.dev-container {
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.dev-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

/* Card Actions (Delete Button) */
.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Add Plugin Input Section */
.tools-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.dev-input-group {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.dev-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.dev-input:focus {
    outline: none;
}

.btn-add {
    background: var(--neon-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    /* Optimized from 600 */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #1d4ed8;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.btn-refresh {
    background: #0f0f15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Removed absolute positioning */
    height: 50px;
    /* Match input height roughly */
}

.btn-refresh:hover {
    border-color: var(--neon-blue);
    color: white;
}

/* Responsive refresh button */
@media (max-width: 768px) {
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
}

/* --- Connect / Developer Section for Home --- */
.bg-developer-modern {
    background-color: #030305;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: top center, center, center;
    position: relative;
    overflow: hidden;
}

.bg-developer-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #000 100%);
    pointer-events: none;
}

.connect-card {
    background: linear-gradient(135deg, #0f0f15 0%, #050505 100%);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.connect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}
