/* --- EVENT ACTION SYSTEM BESPOKE STYLES --- */

/* Reset & Base Scoping */
.events-page-main {
    position: relative;
    background: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- HERO SECTION: LOGIC FLOW --- */
.events-hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
}

.events-hero::before {
    content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 123, 255, 0.05) 40%, transparent 70%);
    z-index: 0; pointer-events: none;
}

.events-hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.events-hero-text {
    flex: 1.2;
    text-align: left;
}

.events-hero-text h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.events-hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 90%;
}

/* --- Simulated Sequence UI in Hero --- */
.events-hero-visual {
    flex: 1;
    position: relative;
}

.mock-sequence-list {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(168, 85, 247, 0.05);
    position: relative;
    z-index: 1;
}

/* The vertical connecting line (Mathematically Centered & Contained) */
.mock-sequence-list::before {
    content: ''; 
    position: absolute; 
    
    /* Left calculation: 
       Container padding (2rem) + Item Left padding (1.5rem) + Half of circle width (17.5px) - Half of line width (1px) */
    left: calc(2rem + 1.5rem + 16.5px); 
    
    /* Top & Bottom calculation: 
       Container padding (2rem) + Item Top padding (1rem) + Half of circle height (17.5px) */
    top: calc(2rem + 1rem + 17.5px); 
    bottom: calc(2rem + 1rem + 17.5px); 
    
    width: 2px;
    background: linear-gradient(to bottom, #2ea043, var(--primary), #a855f7, var(--gold));
    opacity: 0.4;
    z-index: -1; /* Puts the line behind the items inside this container */
}

.mock-seq-item {
    display: flex; align-items: center; gap: 1.5rem;
    margin-bottom: 1.5rem; position: relative;
    background: rgba(255,255,255,0.02);
    padding: 1rem 1.5rem; border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2; /* Keeps items above the connecting line */
}

.mock-seq-item:last-child { margin-bottom: 0; }

/* Dynamic Hover & JS Animation State using the HTML inline variable */
.mock-seq-item:hover, 
.mock-seq-item.active-seq { 
    border-color: var(--item-color); 
    transform: translateX(10px); 
    background: rgba(255,255,255,0.04);
}

.seq-number {
    width: 35px; height: 35px; border-radius: 50%;
    background: #050608; /* Solid background hides the line behind it */
    border: 2px solid var(--item-color);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.9rem; z-index: 2;
    flex-shrink: 0;
}

.seq-info h4 { font-size: 1.05rem; margin-bottom: 0.2rem; color: #fff; }
.seq-info p { font-size: 0.8rem; margin: 0; color: #8b949e; }

/* --- SECTION HEADERS --- */
.events-section {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.events-section-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 4rem;
}

.events-section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.events-section-header p { font-size: 1.05rem; color: var(--text-muted); }

/* --- TRIGGERS GRID --- */
.triggers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trigger-card {
    background: rgba(13, 17, 22, 0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 2.5rem;
    transition: all 0.3s ease;
}

.trigger-card:hover {
    background: rgba(13, 17, 22, 0.8);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.1);
}

.trigger-icon {
    font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem;
    display: inline-block; filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.4));
}

.trigger-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #fff; }
.trigger-card p { font-size: 0.95rem; color: #8b949e; line-height: 1.6; }

/* --- SPLIT FEATURE (STACKING & HALTS) --- */
.feature-split {
    display: flex; align-items: center; gap: 4rem;
    margin-bottom: 6rem;
}

.feature-split.reverse { flex-direction: row-reverse; }
.feature-split-text { flex: 1; }
.feature-split-visual { flex: 1; }

.feature-list-custom { list-style: none; padding: 0; margin: 2rem 0; }
.feature-list-custom li {
    display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
    font-size: 1rem; color: #cbd5e1;
}
.feature-list-custom iconify-icon { color: #a855f7; font-size: 1.2rem; }

/* Code Terminal Mockup for Compare Variable */
.logic-terminal {
    background: #0d1116; border: 1px solid #30363d;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.terminal-header {
    background: #161b22; padding: 10px 15px; border-bottom: 1px solid #30363d;
    display: flex; align-items: center; gap: 8px; font-family: monospace; font-size: 0.8rem; color: #8b949e;
}
.terminal-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-body { padding: 1.5rem; font-family: monospace; font-size: 0.9rem; line-height: 1.8; }
.keyword { color: #ff7b72; font-weight: bold; }
.variable { color: #79c0ff; }
.string { color: #a5d6ff; }
.comment { color: #8b949e; font-style: italic; }
.action-good { color: #2ea043; }
.action-halt { color: #f85149; font-weight: bold; }

/* --- DATA & FILE OPS GRID --- */
.file-ops-container {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px; padding: 4rem; text-align: center;
}
.file-ops-icons {
    display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; flex-wrap: wrap;
}
.file-type {
    background: #050608; border: 1px solid #30363d; border-radius: 12px;
    padding: 1.5rem 2.5rem; transition: all 0.3s ease;
}
.file-type:hover { border-color: #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); transform: scale(1.05); }
.file-type iconify-icon { font-size: 2.5rem; color: #a855f7; margin-bottom: 0.5rem; }
.file-type span { display: block; font-weight: bold; color: #fff; font-size: 1.1rem; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .events-hero-split { flex-direction: column; text-align: center; }
    .events-hero-text h1 { font-size: 3rem; }
    .events-hero-text p { margin: 0 auto 2rem; }
    
    .mock-seq-item { text-align: left; } /* Keep sequence text left-aligned on mobile */
    
    .triggers-grid { grid-template-columns: 1fr; }
    .feature-split, .feature-split.reverse { flex-direction: column; text-align: center; }
    .feature-list-custom li { justify-content: center; }
    .file-ops-container { padding: 2rem; }
}

/* --- TRIGGERS INTERACTIVE GRID --- */
.triggers-interactive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Base Card Styling */
.trigger-node-card {
    background: rgba(13, 17, 22, 0.6);
    border-radius: 16px;
    position: relative;
    padding: 1px; /* Creates the space for the glowing border */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trigger-node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Inner content area (sits above the glowing border) */
.trigger-node-content {
    background: #0d1116; /* Solid background to hide inner glow */
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* Mouse-tracking border glow base */
.card-border-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        var(--mouse-glow, rgba(0, 123, 255, 0.4)), 
        transparent 40%
    );
}

.trigger-node-card:hover .card-border-glow {
    opacity: 1;
}

/* --- THE RADAR PULSE ICON --- */
.trigger-icon-pulse {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--pulse-color);
    z-index: 2;
}

/* The continuous pulsing rings */
.trigger-icon-pulse::before,
.trigger-icon-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--pulse-color);
    z-index: -1;
    animation: triggerPulse 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.trigger-icon-pulse::after {
    animation-delay: 1.5s;
}

@keyframes triggerPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Typography specifics */
.trigger-node-content h3 { font-size: 1.35rem; margin-bottom: 1rem; color: #fff; }
.trigger-node-content p { font-size: 0.95rem; color: #8b949e; line-height: 1.6; margin: 0; }

/* --- DEV EDITION PINNED BADGE --- */
.dev-edition-card {
    /* Slight purple hue for the whole card border by default */
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.2) 0%, rgba(255,255,255,0.05) 100%);
}

.dev-corner-badge {
    position: absolute;
    top: 0;
    right: 2rem; /* Indented slightly from the right */
    background: #a855f7;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 0 0 8px 8px; /* Flat top, rounded bottom */
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .triggers-interactive-grid { grid-template-columns: 1fr; }
    .dev-corner-badge { right: 1.5rem; }
}

/* --- INTERACTIVE DIALOG MOCKUP --- */
.interactive-dialog-mockup {
    background: #0b0c0e;
    border: 1px solid #2a2b30;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    color: #eeeeee;
    width: 100%;
    height: 550px; /* Fixed height to match screenshot proportions */
    text-align: left;
    user-select: none; /* Prevents text highlighting while dragging */
}

/* Header */
.mock-dialog-header {
    height: 55px; background: #0f1114;
    border-bottom: 1px solid #2a2b30;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; flex-shrink: 0;
}
.mock-dialog-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; color: #fff; }
.mock-dialog-title iconify-icon { color: #2979ff; font-size: 20px; }
.mock-dialog-close { color: #888; font-size: 20px; cursor: pointer; }

/* Body Layout */
.mock-dialog-body { flex: 1; display: flex; overflow: hidden; }

/* Sidebar */
.mock-dialog-sidebar { width: 220px; background: #0f1114; border-right: 1px solid #2a2b30; display: flex; flex-direction: column; }
.mock-sidebar-header { padding: 15px 20px; font-size: 10px; font-weight: 700; color: #555; border-bottom: 1px solid #2a2b30; letter-spacing: 1px; }
.mock-sidebar-list { list-style: none; padding: 10px; margin: 0; }
.mock-sidebar-list li { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 6px; font-size: 13px; color: #888; margin-bottom: 5px; cursor: pointer; }
.mock-sidebar-list li.active { background: rgba(41, 121, 255, 0.1); border: 1px solid rgba(41, 121, 255, 0.3); color: #fff; }
.mock-sidebar-list li.active iconify-icon { color: #2979ff; }

/* Content Area */
.mock-dialog-content { flex: 1; display: flex; flex-direction: column; background: #121418; }
.mock-content-toolbar { padding: 15px 20px; border-bottom: 1px solid #2a2b30; display: flex; justify-content: space-between; align-items: center; }
.mock-flow-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #888; }
.mock-flow-title span { color: #00e5ff; font-weight: 600; }
.mock-flow-desc { font-size: 11px; color: #666; margin-top: 4px; }

/* Buttons */
.mock-btn { padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; display: flex; align-items: center; gap: 6px; }
.mock-btn-primary { background: #2979ff; color: #fff; }

/* Scroll Area & Flow Line */
.mock-scroll-area { flex: 1; overflow-y: auto; padding: 25px; position: relative; }
.mock-flow-line { position: absolute; left: 45px; top: 25px; bottom: 25px; width: 2px; background: #2a2b30; z-index: 0; }

#interactive-action-list { position: relative; z-index: 1; }

/* Action Cards */
.mock-action-card { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; cursor: grab; }
.mock-action-card:active { cursor: grabbing; }

.mock-step-badge {
    width: 40px; height: 40px; background: #18191c; border: 2px solid #2a2b30;
    border-radius: 50%; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 700; color: #888; flex-shrink: 0; transition: 0.2s;
}

.mock-card-inner {
    flex: 1; background: #18191c; border: 1px solid #2a2b30; border-radius: 8px;
    padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; transition: 0.2s;
}

.mock-action-name { font-weight: 500; font-size: 13px; color: #eee; }
.mock-controls { display: flex; gap: 8px; color: #444; }

/* Hover States for Interactive Feel */
.mock-action-card:hover .mock-card-inner { border-color: #444; transform: translateX(2px); }
.mock-action-card:hover .mock-step-badge { border-color: #2979ff; color: #fff; }

/* SortableJS Classes - Animates the drag and drop */
.sortable-ghost { opacity: 0.4; }
.sortable-drag .mock-card-inner {
    background: #1e2025;
    border-color: #2979ff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transform: scale(1.02);
}
.sortable-drag .mock-step-badge {
    border-color: #2979ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(41, 121, 255, 0.4);
}

/* Footer */
.mock-dialog-footer { height: 60px; background: #0b0c0e; border-top: 1px solid #2a2b30; display: flex; align-items: center; justify-content: flex-end; padding: 0 20px; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .interactive-dialog-mockup { height: 500px; }
    .mock-dialog-sidebar { display: none; } /* Hide sidebar on mobile to keep it clean */
}

/* --- NEW STACKED LAYOUT --- */
.feature-stacked-visual {
    max-width: 900px;
    margin: 0 auto;
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin-top: 3rem;
    text-align: left;
}

.feature-grid-3 li {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.feature-grid-3 iconify-icon {
    display: block;
    color: #a855f7;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

/* --- THE GHOST CURSOR --- */
#ghost-cursor {
    position: absolute;
    z-index: 100;
    pointer-events: none; /* Crucial: Lets the user click through it */
    top: 0;
    left: 0;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}

#ghost-cursor.visible { opacity: 1; }
#ghost-cursor.grabbing svg { transform: scale(0.85); transition: transform 0.1s; }

/* Smoothly animate DOM cards when the ghost is dragging them */
.mock-action-card.demo-animating {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
    .feature-grid-3 { grid-template-columns: 1fr; text-align: center; }
    .feature-grid-3 iconify-icon { margin: 0 auto 0.8rem; }
}

/* --- DEV POWER CARDS (Electric Blue Theme) --- */
.dev-power-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.dev-power-card {
    background: var(--bg-card); 
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle top glow base that appears on hover */
.dev-power-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}

/* Hover Animation: Lift, Glow, and Border */
.dev-power-card:hover {
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0, 123, 255, 0.08);
    background: rgba(13, 17, 22, 0.8);
}

.dev-power-card:hover::before {
    opacity: 1;
}

/* The Icon Box */
.dev-power-card .card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.dev-power-card .card-icon iconify-icon {
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

/* Make the icon box turn solid electric blue on hover */
.dev-power-card:hover .card-icon {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}
.dev-power-card:hover .card-icon iconify-icon {
    color: #fff;
}

/* Text Styling */
.dev-power-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.dev-power-card p {
    font-size: 0.9rem;
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .dev-power-cards { grid-template-columns: 1fr; }
}

/* --- EDIT ACTION DIALOG MOCKUP --- */
.mock-theme-dialog {
    background-color: #1E1E1E;
    border: 1px solid #434343;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #ffffff;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
}

.mock-dialog-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #434343;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1E1E1E;
}

.mock-dialog-header h2 { margin: 0; font-size: 1rem; font-weight: 600; color: #ffffff; }
.mock-dialog-close { background: none; border: none; color: #9f9f9f; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; }

.mock-dialog-body {
    padding: 1.5rem;
    background-color: #1E1E1E;
}

.mock-dialog-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mock-dialog-row.checkbox-row {
    grid-template-columns: 170px auto 1fr;
}

.mock-dialog-row label {
    font-size: 14px;
    color: #9f9f9f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-icon {
    color: #434343;
    font-size: 16px;
}

.mock-dialog-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #2A2A2A;
    color: #FFFFFF;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.mock-dialog-description {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
    padding: 1rem;
    background: #2A2A2A;
    border: 1px solid #434343;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Compare Hint Card */
.mock-compare-hint {
    margin: 0.5rem 0 1.5rem 170px; /* Aligns with the input column */
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(120,120,120,.25);
    background: linear-gradient(180deg, rgba(100,100,110,.12), rgba(60,60,70,.12));
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
}

.hint-label { font-weight: 600; opacity: .85; }
.chip { padding: 2px 8px; border-radius: 99px; border: 1px solid transparent; font-weight: 600; }
.chip-var { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); color: #93c5fd; }
.chip-op { background: rgba(147,197,253,.12); border-color: rgba(147,197,253,.35); color: #bfdbfe; }
.chip-val { background: rgba(132,204,22,.12); border-color: rgba(132,204,22,.35); color: #d9f99d; }
.chip-not { background: rgba(244,63,94,.14); border-color: rgba(244,63,94,.4); color: #fecdd3; }

.badge-halt {
    margin-left: auto;
    background: rgba(251,191,36,.15);
    border: 1px solid rgba(251,191,36,.35);
    color: #fde68a;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
}

.mock-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #434343;
    background-color: #1E1E1E;
}

.mock-btn-save, .mock-btn-cancel {
    padding: 0 1.5rem;
    height: 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.mock-btn-save { background-color: #007ACC; color: #fff; }
.mock-btn-save:hover { background-color: #0099ff; }
.mock-btn-cancel { background-color: #A94F4F; color: #fff; }
.mock-btn-cancel:hover { background-color: #c06565; }

/* Responsive */
@media (max-width: 768px) {
    .mock-dialog-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .mock-compare-hint { margin-left: 0; }
}

/* --- PIXEL-PERFECT DIALOG MOCKUP --- */
.glc-mock-dialog {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.glc-mock-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #333;
    background: #1e1e1e;
    border-radius: 8px 8px 0 0;
}

.glc-mock-header h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.glc-mock-close { color: #888; font-size: 20px; cursor: pointer; }

.glc-mock-body {
    padding: 20px;
    display: block; /* Forces vertical stacking */
    box-sizing: border-box;
}

.glc-mock-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

.glc-mock-row label {
    width: 160px; /* Fixed width prevents squashing */
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    color: #8b949e; font-size: 13.5px; font-weight: 500;
}

.glc-help-icon {
    color: #2979ff; 
    font-size: 16px;
}

.glc-mock-select-wrapper,
.glc-mock-input {
    flex-grow: 1;
    width: 100%;
}

.glc-mock-input {
    background: #2a2a2a; 
    border: 1px solid #3a3a3a;
    color: #fff; 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.glc-mock-input:disabled { opacity: 0.8; }

.glc-mock-select-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.glc-mock-desc-box {
    background: #2a2a2a; 
    border: 1px solid #3a3a3a; 
    border-radius: 6px;
    padding: 12px 16px; 
    color: #c9d1d9; 
    font-size: 13px; 
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Custom Checkboxes */
.glc-mock-row-checkbox { justify-content: flex-start; }
.glc-mock-checkbox {
    appearance: none; width: 18px; height: 18px;
    background: #2a2a2a; border: 1px solid #8b949e;
    border-radius: 3px; cursor: pointer; position: relative;
    margin: 0; flex-shrink: 0;
}
.glc-mock-checkbox:checked {
    background: #fff; border-color: #fff;
}
.glc-mock-checkbox:checked::after {
    content: "✔"; color: #000; font-size: 12px;
    position: absolute; top: 0px; left: 3px; font-weight: bold;
}

/* Evaluates Logic Bar */
.glc-mock-eval-bar {
    background: #18191c;
    border: 1px solid #333;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.glc-eval-title { font-size: 13px; font-weight: 600; color: #fff; margin-right: 4px; }
.glc-pill { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.glc-pill-var { background: rgba(41, 121, 255, 0.2); color: #80bfff; border-color: rgba(41, 121, 255, 0.4); }
.glc-pill-val { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); }
.glc-pill-not { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border-color: rgba(231, 76, 60, 0.4); }

/* Replace .glc-pill-circle with this dynamic operator pill */
.glc-pill-op { 
    font-size: 12px; 
    font-weight: 600; 
    padding: 4px 10px; 
    border-radius: 20px; 
    border: 1px solid transparent; 
    transition: all 0.2s ease;
}

.glc-pill-op.op-eq { background: rgba(147,197,253,.12); border-color: rgba(147,197,253,.35); color: #bfdbfe; }
.glc-pill-op.op-neq { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.35); color: #fecaca; }
.glc-pill-op.op-contains { background: rgba(217,70,239,.12); border-color: rgba(217,70,239,.35); color: #f0abfc; }
.glc-pill-op.op-gt { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: #86efac; }
.glc-pill-op.op-lt { background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.35); color: #99f6e4; }
.glc-pill-op.op-empty, 
.glc-pill-op.op-notempty { background: rgba(156,163,175,.12); border-color: rgba(156,163,175,.35); color: #e5e7eb; }

.glc-badge-halt {
    margin-left: auto;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fde68a;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}

/* Footer Buttons */
.glc-mock-footer {
    padding: 16px 20px; 
    border-top: 1px solid #333;
    display: flex; 
    justify-content: space-between;
    background: #1e1e1e;
    border-radius: 0 0 8px 8px;
}
.glc-btn { 
    padding: 8px 20px; 
    border-radius: 6px; 
    font-size: 13.5px; 
    font-weight: 600; 
    cursor: pointer; 
    font-family: inherit;
    transition: 0.2s ease;
}
.glc-btn-cancel { 
    background: transparent; 
    border: 1px solid #A94F4F; 
    color: #A94F4F; 
}
.glc-btn-cancel:hover { background: rgba(169, 79, 79, 0.1); }

.glc-btn-save { 
    background: #1c4b82; 
    border: 1px solid #1c4b82; 
    color: #fff; 
}
.glc-btn-save:hover { background: #235b9c; border-color: #235b9c; }

/* Responsive Wrap */
@media (max-width: 576px) {
    .glc-mock-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .glc-mock-row label { width: 100%; }
    .glc-badge-halt { margin-left: 0; margin-top: 4px; }
}

/* --- LOGIC FEATURE STACK CARDS --- */
.logic-feature-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logic-stack-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: rgba(13, 17, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.logic-stack-card:hover {
    background: rgba(13, 17, 22, 0.8);
    border-color: rgba(0, 123, 255, 0.2);
    transform: translateX(5px);
}

.logic-stack-card .logic-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logic-stack-card .logic-icon iconify-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.logic-stack-card:hover .logic-icon {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.logic-stack-card:hover .logic-icon iconify-icon {
    color: #fff;
}

.logic-stack-card .logic-text h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.logic-stack-card .logic-text p {
    font-size: 0.85rem;
    color: #8b949e;
    margin: 0;
    line-height: 1.5;
}

/* Ensure paragraph spacing remains clean above the cards */
.feature-split-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* --- BENTO DATA GRID --- */
.bento-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: rgba(13, 17, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-span-2 { grid-column: span 2; }

/* Subtle inner glow on hover */
.bento-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 123, 255, 0.05), transparent 40%);
    opacity: 0; transition: opacity 0.3s ease; z-index: -1; pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 123, 255, 0.05);
    background: rgba(18, 22, 28, 0.8);
}
.bento-card:hover::after { opacity: 1; }

/* Background Watermark Icons */
.bento-bg-icons {
    position: absolute;
    top: -20px; right: -20px;
    display: flex; gap: 10px;
    opacity: 0.03;
    font-size: 150px;
    z-index: -1;
    transform: rotate(15deg);
    transition: all 0.5s ease;
}
.bento-bg-icons.right-align { right: auto; left: -20px; transform: rotate(-15deg); }
.bento-card:hover .bento-bg-icons { opacity: 0.06; transform: rotate(10deg) scale(1.05); }
.bento-card:hover .bento-bg-icons.right-align { transform: rotate(-10deg) scale(1.05); }

/* Card Content */
.bento-content { position: relative; z-index: 2; }

.bento-icon {
    width: 45px; height: 45px; border-radius: 10px;
    background: rgba(0, 123, 255, 0.1); border: 1px solid rgba(0, 123, 255, 0.2);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}

.bento-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: #fff; }
.bento-card p { font-size: 0.95rem; color: #8b949e; line-height: 1.6; margin-bottom: 1.5rem; }

/* The Action Tags */
.bento-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.bento-tags span {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8b949e;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-tags span {
    background: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
    color: #a5d6ff;
}

/* Responsive */
@media (max-width: 992px) {
    .events-hero-text {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the pill */
        text-align: center;
    }
    .events-hero-text h1, 
    .events-hero-text p {
        text-align: center; /* Centers the text */
    }
}