/* =========================================
   1. THEME DEFINITIONS & VARIABLES
   ========================================= */

:root {
    /* --- CORE SETTINGS (Base Geometry & Fonts) --- */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --backdrop-blur: 16px;
    --transition-speed: 0.2s;
    
    /* --- DEFAULT THEME (Dark Blue/Slate) --- */
    --bg-app: radial-gradient(circle at top left, #1e1b4b, #0f172a 40%, #020617);
    --bg-panel: rgba(30, 41, 59, 0.65);
    --bg-panel-solid: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.9);
    
    --border-color: rgba(148, 163, 184, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-inverse: #fff;

    --accent-primary: #38bdf8;   /* Blue/Cyan */
    --accent-secondary: #a855f7; /* Purple */
    --accent-danger: #ef4444;
    --accent-success: #22c55e;

    /* Node Specifics */
    --node-bg: rgba(15, 23, 42, 0.95);
    --node-border: rgba(255, 255, 255, 0.15);
    --node-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --node-selected-glow: 0 0 0 2px var(--accent-primary), 0 20px 40px rgba(0,0,0,0.6);

    /* Canvas Grid */
    --grid-color: rgba(255, 255, 255, 0.1);

    /* Semantic Colors (Service Types) */
    --col-client: #4ade80;
    --col-lb: #a855f7;
    --col-service: #38bdf8;
    --col-db: #fb923c;
    --col-cache: #f472b6;
    --col-queue: #facc15;
    --col-external: #94a3b8;

    /* Button Styles (Abstracted) */
    --btn-primary-bg: linear-gradient(135deg, var(--accent-primary), #0ea5e9);
    --btn-primary-text: #fff;
    --btn-primary-shadow: none;
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-hover: rgba(255, 255, 255, 0.1);
}

/* =========================================
   2. GLOBAL RESETS
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, color 0.3s ease;
}

/* App (área logada) continua travado, sem scroll global */
body[data-context="app"] {
    overflow: hidden;
}

/* Landing com scroll normal e sem barra horizontal */
body[data-context="landing"] {
    overflow-x: hidden;
    overflow-y: auto;
}

.hidden { display: none !important; }

/* =========================================
   3. UI COMPONENT CLASSES (Theme Agnostic)
   ========================================= */

/* Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Inputs & Forms */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.input-group input, 
.properties-panel input,
.properties-panel select,
.app-controls button,
.app-controls select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 12px;
    outline: none;
    transition: var(--transition-speed);
}

.input-group input:focus,
.properties-panel input:focus,
.properties-panel select:focus,
.app-controls button:focus,
.app-controls select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Buttons */
button { font-family: var(--font-main); cursor: pointer; }

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-shadow);
    border: 1px solid transparent; 
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-secondary {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--accent-primary);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 28px;
}

.btn-pill {
    border-radius: 999px;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-pill:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}
.btn-pill:disabled { opacity: 0.5; cursor: default; transform: none; }

.btn-pill-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}
.btn-pill-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}
.btn-pill-muted {
    color: var(--text-muted);
}

.btn-action {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--accent-danger) !important;
    color: var(--accent-danger) !important;
}

/* =========================================
   4. LOGIN SCREEN
   ========================================= */
.login-screen {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-app);
}
.login-card {
    width: 360px; max-width: 90vw; padding: 32px;
    display: flex; flex-direction: column; gap: 20px;
    border-radius: 24px;
}
.login-header h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.login-header p { font-size: 13px; color: var(--text-muted); }
.beta-tag {
    font-size: 20px; background: var(--accent-secondary); color: #fff;
    padding: 2px 6px; border-radius: 4px; vertical-align: middle; opacity: 0.9;
}
.login-divider { text-align: center; font-size: 12px; color: var(--text-muted); margin: -5px 0; }
.login-error { min-height: 18px; font-size: 12px; color: var(--accent-danger); text-align: center; }

/* =========================================
   5. LAYOUT STRUCTURE
   ========================================= */
.app-container { display: flex; flex-direction: column; width: 100%; height: 100vh; }

/* Header */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; z-index: 10; border-bottom: 0;
}
.app-title-block h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-main); }
.app-title-block p { font-size: 16px; color: var(--text-muted); }
.app-controls { display: flex; align-items: center; gap: 8px; }
.control-group { display: flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 11px; color: var(--text-muted); }
.separator { width: 1px; height: 20px; background: var(--border-color); margin: 0 6px; }

/* Main Grid */
.app-main {
    flex: 1; display: grid; grid-template-columns: 260px 1fr 280px;
    overflow: hidden; transition: grid-template-columns 0.3s ease;
}
.app-main.palette-collapsed { grid-template-columns: 50px 1fr 280px; }
.app-main.properties-collapsed { grid-template-columns: 260px 1fr 50px; }
.app-main.palette-collapsed.properties-collapsed { grid-template-columns: 50px 1fr 50px; }

/* Common Panel Styles */
.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.panel-header h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    color: var(--text-muted); white-space: nowrap;
}
.panel-toggle-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    width: 24px; height: 24px; border-radius: 6px; padding: 0; display: flex; align-items: center; justify-content: center;
}
.panel-toggle-btn:hover { color: var(--text-main); border-color: var(--accent-primary); }

/* Palette */
.palette { padding: 16px; display: flex; flex-direction: column; z-index: 5; border-right: var(--glass-border); }
.palette-content-wrapper { flex: 1; overflow-y: auto; }
.palette.collapsed { padding: 16px 0; align-items: center; }
.palette.collapsed .palette-content-wrapper, .palette.collapsed .panel-header h3 { display: none; }
.palette.collapsed .panel-header { border-bottom: none; margin: 0; padding: 0; justify-content: center; width: 100%; }

.palette-section { margin-bottom: 20px; }
.palette-section h4 {
    font-size: 10px; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 8px; opacity: 0.7;
}
.palette-item {
    width: 100%; display: block; background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; text-align: left;
    color: var(--text-main); font-size: 12px; transition: all 0.2s;
}
.palette-item:hover {
    background: rgba(255,255,255,0.1); border-color: var(--accent-primary); transform: translateX(2px);
}
.palette-connection-btn.active {
    background: rgba(34, 197, 94, 0.15); border-color: var(--accent-success); color: var(--accent-success);
}
.connection-status {
    margin-top: 8px; font-size: 10px; text-align: center; padding: 4px; border-radius: 4px;
    background: rgba(0,0,0,0.2); color: var(--accent-primary);
}
.palette .btn-pill { width: 100%; margin-top: 4px; }

/* Properties Panel */
.properties-panel { border-left: var(--glass-border); padding: 0; display: flex; flex-direction: column; z-index: 5; }
.properties-header { padding: 16px 16px 0 16px; }
.properties-content { padding: 16px; overflow-y: auto; flex: 1; }
.properties-panel.collapsed { padding-top: 16px; align-items: center; }
.properties-panel.collapsed .properties-content, .properties-panel.collapsed .panel-header h3 { display: none; }
.properties-panel.collapsed .panel-header { margin: 0; border: 0; }
.properties-panel.collapsed .properties-header { padding: 0; width: 100%; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 10px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }

/* Analysis Panel */
.analysis-panel {
    position: absolute; right: 20px; bottom: 20px; width: 400px; max-height: 60vh;
    display: flex; flex-direction: column; border-radius: 16px; z-index: 50;
    box-shadow: var(--glass-shadow);
}
.analysis-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    cursor: grab; user-select: none; /* Permite arrastar */
}
.analysis-header:active { cursor: grabbing; }

.analysis-title-group h3 { font-size: 13px; font-weight: 600; color: var(--text-main); pointer-events: none; }
.analysis-results { flex: 1; overflow-y: auto; padding: 12px; }
.analysis-item {
    background: var(--bg-input); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
    font-size: 12px; line-height: 1.4; border-left: 3px solid transparent; color: var(--text-main);
}
.chip {
    display: inline-block; font-size: 9px; font-weight: 700; padding: 2px 6px;
    border-radius: 4px; margin-bottom: 4px; text-transform: uppercase;
}
.chip-subtype {
    opacity: 0.8; font-weight: 500; margin-left: 3px;
}
.chip.latency { color: #60a5fa; background: rgba(37, 99, 235, 0.2); border-left-color: #60a5fa; }
.chip.cost { color: #fb923c; background: rgba(234, 88, 12, 0.2); border-left-color: #fb923c; }
.chip.reliability { color: #c084fc; background: rgba(147, 51, 234, 0.2); border-left-color: #c084fc; }
.chip.complexity { color: #4ade80; background: rgba(22, 163, 74, 0.2); border-left-color: #4ade80; }

/* =========================================
   6. CANVAS & VISUALIZATION
   ========================================= */
.canvas-panel { 
    position: relative; 
    background: transparent; 
    overflow: hidden; 
    cursor: grab;
    background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    will-change: background-position;
    user-select: none;          /* Padrão moderno */
    -webkit-user-select: none;  /* Safari / Chrome antigos */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE / Edge */
}

.canvas-panel:active {
    cursor: grabbing;
}

.canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px; 
    height: 1px; 
    overflow: visible;
    
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
    
    background-image: none;
}

.group-layer, 
.node-layer, 
.order-layer { 
    position: absolute; 
    inset: 0; 
    pointer-events: none; 
    overflow: visible;
}

.edge-layer { 
    position: absolute; 
    top: 0; 
    left: 0; 
    overflow: visible !important; 
    z-index: 10; 
    pointer-events: none; 
    /* Evita 0x0 */
    width: 1px; 
    height: 1px;
}

.edge-layer .edge, .edge-layer .edge-arrow { pointer-events: auto; }
.node-layer .node { pointer-events: auto; }

.animation-layer {
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible !important;
    z-index: 30;
    pointer-events: none;
    /* Evita 0x0 */
    width: 1px; 
    height: 1px;
}

.resizer {
    display: none;
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--accent-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    right: -7px;
    bottom: -7px;
    cursor: se-resize;
}

.node.selected .resizer {
    display: block;
}

.resizer[data-corner="se"] {
    right: -6px;
    bottom: -6px;
    cursor: se-resize;
}


.node.client { border-top: 3px solid var(--col-client); }
.node.loadbalancer { border-top: 3px solid var(--col-lb); border-style: solid; }
.node.service { border-top: 3px solid var(--col-service); }
.node.database { border-top: 3px solid var(--col-db); }
.node.cache { border-top: 3px solid var(--col-cache); }
.node.queue { border-top: 3px solid var(--col-queue); border-radius: 24px; }
.node.external { border-top: 3px solid var(--col-external); border-style: dashed; }

.node.resource-group {
    z-index: 1 !important; background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color); box-shadow: none;
    justify-content: flex-start;
}

.node.selected {
    border-color: var(--text-inverse);
    box-shadow: var(--node-selected-glow);
}

.node:active { z-index: 100 !important; }

.node-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.node-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.9; }
.node-title {
    font-size: 13px; font-weight: 600; color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.node-subtitle { font-size: 10px; color: var(--text-muted); line-height: 1.3; }

/* --- EDGES --- */
.edge { stroke-width: 2; stroke: var(--text-muted); transition: stroke 0.2s; }
.edge.rest { stroke: var(--col-service); }
.edge.message { stroke: var(--col-queue); stroke-dasharray: 5, 3; }
.edge.db-cache { stroke: var(--col-db); stroke-dasharray: 2, 4; }
.edge.selected { stroke: var(--text-main); stroke-width: 3; filter: drop-shadow(0 0 5px var(--accent-primary)); }

.edge-arrow { fill: var(--text-muted); }
.edge-arrow.rest { fill: var(--col-service); }
.edge-arrow.message { fill: var(--col-queue); }
.edge-arrow.db-cache { fill: var(--col-db); }

.call-order-label {
    position: absolute; transform: translate(-50%, -50%);
    background: var(--bg-panel-solid); color: var(--text-main);
    border: 1px solid var(--border-color); padding: 2px 6px; border-radius: 10px;
    font-size: 10px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    cursor: pointer; 
    z-index: 20;
    pointer-events: auto !important;
}

.token {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.8);
    z-index: 30; pointer-events: none;
}
.token.rest { background: var(--col-service); box-shadow: 0 0 8px var(--col-service); }
.token.producer { background: var(--col-client); }
.token.consumer { background: var(--accent-danger); }
.token.db-cache { background: var(--col-db); }

/* =========================================
   7. MODALS
   ========================================= */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 200;
}
.modal {
    width: 600px; background: var(--bg-panel-solid);
    border: 1px solid var(--border-color); border-radius: 16px;
    display: flex; flex-direction: column;
}
.modal-header {
    padding: 16px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; color: var(--text-main);
}
.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
#export-json {
    width: 100%; height: 200px; background: var(--bg-input);
    border: 1px solid var(--border-color); color: var(--text-main);
    border-radius: 8px; padding: 8px; font-family: monospace; font-size: 11px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.close-modal-btn { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }

.stat-error {
    color: var(--accent-danger) !important;
    font-weight: 700;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Storage Alert Bar Styles */
.storage-alert-container {
    margin-top: 6px;
    width: 100%;
}

.storage-alert-label {
    font-size: 9px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.storage-alert-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.storage-alert-fill {
    height: 100%;
    background: #f59e0b; /* Orange Warning */
    transition: width 0.3s ease;
}

.storage-alert-fill.critical {
    background: #ef4444; /* Red Critical */
    animation: pulse-bar 1.5s infinite;
}

@keyframes pulse-bar {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* =========================================
   8. LANDING PAGE STYLES (NEW)
   ========================================= */

.landing-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: #020617;
    z-index: 50;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

/* --- Nav Improved --- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-main);
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 22px;
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

/* Container dos links estilo "Pílula" flutuante */
.nav-links {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 8px;
    border-radius: 100px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botão de texto "Entrar" mais limpo */
#nav-login-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
}

#nav-login-btn:hover {
    color: var(--text-main);
}

/* Ajuste específico para o botão secundário caso exista na nav */
.nav-actions .btn-secondary {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 12px;
}
.nav-actions .btn-secondary:hover {
    color: var(--text-main);
    background: transparent;
    text-decoration: underline;
}

/* Botão de Assinar no Header - Destaque */
.nav-actions .hotmart-fb {
    padding: 10px 20px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

/* --- Hero --- */
.landing-hero {
    position: relative;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.hero-bg-grid {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.hero-title {
    font-size: 78px; line-height: 1.1; font-weight: 800; margin-bottom: 20px; color: var(--text-main); letter-spacing: -1px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #a855f7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 auto 24px;
    max-width: 600px;
    padding: 0 12px;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
}

/* --- HERO BUTTONS (Larger & Highlighted) --- */
.hero-buttons { 
    display: flex; 
    gap: 20px; /* Increased gap */
    justify-content: center; 
    margin-bottom: 60px; 
    flex-wrap: wrap;
}

.btn-primary.large,
.btn-secondary.large,
.hotmart-fb.btn-primary.large,
a.hotmart-fb.hotmart__button-checkout.large {
    padding: 18px 48px !important; /* Significantly larger padding */
    font-size: 18px !important;    /* Larger font */
    border-radius: 16px !important; /* Slightly more rounded */
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    min-width: 220px; /* Ensure minimum width */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Highlight for primary action */
.btn-primary.large.glow-effect,
.hotmart-fb.btn-primary.large.glow-effect {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4), 0 4px 6px rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-primary.large.glow-effect:hover,
.hotmart-fb.btn-primary.large.glow-effect:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.6), 0 10px 20px rgba(0,0,0,0.3) !important;
}

.btn-secondary.large {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Sections --- */
.landing-section { padding: 80px 20px; max-width: 1000px; margin: 0 auto; }
.landing-section.alt-bg { background: rgba(255,255,255,0.01); width: 100%; max-width: none; display: flex; flex-direction: column; align-items: center; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: var(--text-main); margin-bottom: 12px; font-weight: 700; }
.section-header p { color: var(--text-muted); font-size: 16px; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card { padding: 24px; border-radius: 16px; background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255,255,255,0.05); transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent-primary); }
.icon-box { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; color: var(--text-main); margin-bottom: 10px; }
.feature-card p, .feature-card li { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.feature-card ul { padding-left: 20px; margin-top: 10px; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); gap: 32px; justify-content: center; width: 100%; max-width: 900px; }
.pricing-card {
    padding: 32px; border-radius: 20px; background: var(--bg-panel); display: flex; flex-direction: column; position: relative;
}
.pricing-card.featured { border: 1px solid var(--accent-primary); background: rgba(56, 189, 248, 0.05); }
.featured-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent-primary); color: #000; padding: 4px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.price { font-size: 36px; font-weight: 800; color: var(--text-main); margin: 16px 0; }
.price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.features-list { list-style: none; margin: 24px 0; flex: 1; }
.features-list li { margin-bottom: 12px; font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.full-width { width: 100%; margin-top: auto; }

/* Footer */
.landing-footer { text-align: center; padding: 40px; color: var(--text-muted); font-size: 12px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; }

/* Modal Override */
.modal-close-wrapper { display: flex; justify-content: flex-end; }
.close-modal-btn { font-size: 24px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.slide-up-anim { animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Ajuste para Grid de Preço Único --- */
.pricing-grid.single-plan {
    display: flex;
    justify-content: center;
}
.pricing-card {
    width: 100%;
    max-width: 350px; /* Tamanho fixo para não esticar demais */
}


.mockup-window:hover {
    transform: rotateX(0deg) scale(1.02);
}

/* Barra de Título (estilo macOS Dark) */
.mockup-header {
    padding: 16px 20px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.dot.red { background: #ef4444; } 
.dot.yellow { background: #facc15; } 
.dot.green { background: #22c55e; }

/* Corpo do Mockup - Layout Expansivo */
.mockup-body {
    flex: 1;
    padding: 30px 40px; /* Mais padding horizontal, menos vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    gap: 10px; /* Reduzir um pouco o gap vertical */
}

/* Nodes (Componentes Genéricos) */
.mockup-node {
    background: rgba(20, 20, 20, 0.9);
    padding: 10px 20px; /* Reduzir um pouco o padding para ficar mais compacto */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e2e8f0;
    width: 130px; /* Reduzir um pouco a largura dos nodes */
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Clientes */
.mockup-node.client { 
    border-top: 2px solid var(--col-client); 
    box-shadow: 0 -5px 15px -5px rgba(74, 222, 128, 0.3);
}
.mockup-node.client.web {
    border-top: 2px solid #8e44ad;
    box-shadow: 0 -5px 15px -5px rgba(142, 68, 173, 0.3);
}

.mockup-node.lb { 
    border-top: 2px solid var(--col-lb); 
    box-shadow: 0 -5px 15px -5px rgba(168, 85, 247, 0.3);
}
.mockup-node.service { 
    border-top: 2px solid var(--col-service); 
    box-shadow: 0 -5px 15px -5px rgba(56, 189, 248, 0.3);
}
.mockup-node.service.api-gateway {
    border-top: 2px solid var(--col-service);
    box-shadow: 0 -5px 15px -5px rgba(56, 189, 248, 0.3);
}

/* Novos Nodes Específicos */
.mockup-node.service.user-service { border-top: 2px solid #2ecc71; box-shadow: 0 -5px 15px -5px rgba(46, 204, 113, 0.3); }
.mockup-node.db.user-db { border-top: 2px solid #e67e22; box-shadow: 0 -5px 15px -5px rgba(230, 126, 34, 0.3); }

.mockup-node.service.order-service { border-top: 2px solid #f1c40f; box-shadow: 0 -5px 15px -5px rgba(241, 196, 15, 0.3); }
.mockup-node.queue.order-queue { border-top: 2px solid #3498db; box-shadow: 0 -5px 15px -5px rgba(52, 152, 219, 0.3); }
.mockup-node.cache.order-cache { border-top: 2px solid #e74c3c; box-shadow: 0 -5px 15px -5px rgba(231, 76, 60, 0.3); }

.mockup-node.service.payment-service { border-top: 2px solid #9b59b6; box-shadow: 0 -5px 15px -5px rgba(155, 89, 182, 0.3); }
.mockup-node.db.payment-db { border-top: 2px solid #34495e; box-shadow: 0 -5px 15px -5px rgba(52, 73, 94, 0.3); }

.mockup-node.external.reporting-service { 
    border-top: 2px solid #7f8c8d; 
    box-shadow: 0 -5px 15px -5px rgba(127, 140, 141, 0.3); 
    background: rgba(40, 40, 40, 0.9);
}

/* Linhas de Conexão (Estilo Circuito) */
.mockup-line {
    width: 2px;
    height: 18px; /* Reduzir a altura das linhas verticais */
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.4));
    margin: 0; /* Remover margin vertical extra */
    position: relative;
}

.mockup-line.split {
    height: 12px; /* Ajustar altura da linha split */
    width: 140px; /* Manter largura */
    background: transparent;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-left: 2px solid rgba(255,255,255,0.2);
    border-right: 2px solid rgba(255,255,255,0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 0;
}

/* Linha Split de 3 vias */
.mockup-line.split-3-way {
    height: 15px;
    width: 500px; /* Aumentar a largura para conectar os 3 serviços mais espaçados */
    background: transparent;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    border-left: 2px solid rgba(255,255,255,0.2);
    border-right: 2px solid rgba(255,255,255,0.2);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: -5px;
}

.mockup-line.horizontal {
    width: 300px; /* Aumentar largura da linha horizontal */
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.4));
    margin: 15px 0;
}

/* Layout Colunas */
.mockup-row.services-row {
    display: flex;
    justify-content: space-around; /* Distribuir uniformemente */
    width: 100%;
    gap: 40px; /* Aumentar o espaço entre as colunas de serviço */
    margin-top: 10px;
}

.mockup-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduzir o gap dentro da coluna */
    position: relative;
}

/* Alertas de Análise (Estilo Popover Flutuante) */
.mockup-analysis {
    position: absolute;
    background: rgba(15, 10, 10, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
    padding: 8px 12px; /* Padding um pouco menor */
    border-radius: 6px;
    font-size: 9px; /* Fonte um pouco menor */
    font-weight: 600;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    
    display: flex;
    align-items: center;
    gap: 6px; /* Gap menor */
    z-index: 10;
    
    animation: floatIn 1s ease-out forwards, pulseBorder 3s infinite;
}

/* Conectores */
.mockup-analysis::before {
    content: '';
    position: absolute;
    height: 1px;
    width: 15px; /* Comprimento do conector */
    background: #ef4444;
    opacity: 0.7;
    left: -15px; /* Posiciona à esquerda do alerta */
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}
.mockup-analysis::after {
    content: '';
    position: absolute;
    width: 5px; /* Tamanho do ponto */
    height: 5px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
    left: -20px; /* Posiciona o ponto na extremidade da linha */
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

@keyframes floatIn {
    0% { opacity: 0; transform: translateY(10px) translateX(10px); }
    100% { opacity: 1; transform: translateY(0) translateX(0); }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 5px 20px rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 5px 30px rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 1); }
    100% { box-shadow: 0 5px 20px rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.5); }
}

/* Posicionamento Específico dos Alertas para o layout horizontalizado */
.user-db-alert {
    bottom: -10px; /* Mais próximo do DB */
    left: calc(100% + 15px); /* Desloca mais para a direita para não colidir */
    transform: none; /* Remove a transformação de centralização */
    border-color: rgba(230, 126, 34, 0.5);
    border-left-color: #e67e22;
}
.user-db-alert::before, .user-db-alert::after {
    left: -15px; /* Ajusta conector para o novo deslocamento */
    transform: translateY(-50%) rotate(0deg);
}

.order-cache-alert {
    top: -10px; /* Acima do Order Cache */
    left: -15px; /* À esquerda da coluna */
    transform: none;
    border-color: rgba(231, 76, 60, 0.5);
    border-left-color: #e74c3c;
}
.order-cache-alert::before {
    left: auto; /* Desliga o left padrão */
    right: -15px; /* Conector saindo pela direita do alerta */
    transform: translateY(-50%) rotate(0deg);
}
.order-cache-alert::after {
    left: auto;
    right: -20px; /* Ponto saindo pela direita do alerta */
    transform: translateY(-50%) rotate(0deg);
}


.payment-db-alert {
    bottom: -10px; /* Abaixo do Payment DB */
    left: calc(100% + 15px); /* Desloca mais para a direita */
    transform: none;
    border-color: rgba(52, 73, 94, 0.5);
    border-left-color: #34495e;
}
.payment-db-alert::before, .payment-db-alert::after {
    left: -15px;
    transform: translateY(-50%) rotate(0deg);
}

.reporting-alert {
    top: -10px; /* Um pouco mais acima do Reporting Service */
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(127, 140, 141, 0.5);
    border-left-color: #7f8c8d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(127, 140, 141, 0.3);
}
.reporting-alert::before, .reporting-alert::after {
    left: 50%;
    top: 100%;
    transform: translateY(0%) translateX(-50%) rotate(90deg);
}

/* =========================================
   10. RESPONSIVIDADE (MEDIA QUERIES OTIMIZADA)
   ========================================= */

/* Tablet & Small Laptops */
@media (max-width: 1024px) {
    .landing-hero { padding: 60px 20px; }
    .hero-title { font-size: 40px; }
    .mockup-window { width: 90%; }
    /* Ajusta a largura das linhas para telas médias */
    .mockup-line.split-3-way { width: 100%; max-width: 400px; } 
    .mockup-row.services-row { gap: 10px; }
    
    .app-main { grid-template-columns: 200px 1fr 50px; }
    .app-main.properties-collapsed { grid-template-columns: 200px 1fr 50px; }
    .properties-panel:not(.collapsed) { 
        position: absolute; right: 0; top: 0; bottom: 0; 
        width: 280px; background: var(--bg-panel-solid); 
        z-index: 100; box-shadow: -5px 0 20px rgba(0,0,0,0.5); 
    }
}

@media (max-width: 768px) {
  body[data-context="landing"] {
    overflow-x: hidden;
  }

  .landing-nav {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 16px;
  }

  .nav-actions .btn-primary,
  .nav-actions .btn-secondary {
    padding: 6px 12px;
    font-size: 11px;
  }

  .landing-hero {
    padding: 40px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 24px;
    gap: 12px;
  }

  .hero-buttons .btn-primary.large,
  .hero-buttons .btn-secondary.large,
  .hero-buttons .hotmart-fb.btn-primary.large,
  .hero-buttons a.hotmart-fb.hotmart__button-checkout {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .hero-benefits {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-benefit-item {
    font-size: 12px;
  }

  .landing-section {
    padding: 48px 16px;
  }

  .pricing-grid.single-plan {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-card {
    width: 100%;
    max-width: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-banner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cta-banner-text {
    font-size: 12px;
  }
}


.canvas-panel {
    cursor: default; 
}

.canvas-panel:active {
    cursor: grabbing; 
}

.canvas-panel.panning {
    cursor: grabbing !important;
}

.canvas-panel.selecting {
    cursor: crosshair !important;
}

.badge-pill {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 19px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.hero-benefit-item {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    white-space: nowrap;
}

.cta-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.98));
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.cta-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    /* Esconde elementos complexos no app mobile */
    .app-header {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
    .app-title-block { 
        justify-content: center; 
        text-align: center; 
    }
    .app-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .app-controls .control-group {
        display: none; /* Esconde controles secundários (zoom/cloud) para limpar tela */
    }
    /* Mostra apenas botões essenciais */
    #btn-run-toggle, #clean-flow-btn, #clear-btn {
        font-size: 11px;
        padding: 8px;
    }
    
    .app-main {
        flex-direction: column;
    }
    
    /* Palette vira uma barra horizontal inferior ou superior */
    .palette {
        width: 100%;
        height: 140px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        order: 2; /* Joga pro final se quiser estilo "dock" */
    }
    .palette-content-wrapper {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }
    .palette-section {
        min-width: 120px;
        margin-bottom: 0;
    }
    .palette-section h4 { display: none; } /* Remove títulos para economizar espaço */
    
    .canvas-panel {
        order: 1;
        height: calc(100vh - 250px); /* Resto da tela */
    }
    
    .properties-panel {
        display: none; /* Esconde propriedades inicialmente no mobile */
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 50%;
        background: var(--bg-panel-solid);
        z-index: 100;
        border-top: 1px solid var(--accent-primary);
    }
    /* Classe utilitária para mostrar propriedades via JS se necessário */
    .properties-panel.mobile-visible { display: flex; }
}

.cta-banner-text strong {
    font-size: 13px;
}

.cta-banner-text span {
    color: var(--text-muted);
}

.cta-banner .btn-primary.small {
    padding: 8px 18px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

  

    .hero-benefit-item {
        white-space: normal;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-banner .btn-primary.small {
        width: 100%;
        text-align: center;
    }
}

body[data-context="app"].auth-checking {
    background-color: var(--bg-main, #020617);
}

body[data-context="app"].auth-checking #app-root,
body[data-context="app"].auth-checking #admin-panel-container,
body[data-context="app"].auth-checking #notification-container {
    display: none !important;
}


@media (max-width: 768px) {
    .landing-hero {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    /* O bloco .hero-buttons já está sendo tratado na regra anterior, mas reforçamos aqui */
    
    .landing-section,
    .landing-section.alt-bg {
        padding: 48px 16px;
        max-width: 100%;
    }

    .features-grid,
    .timeline-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-banner .btn-primary.small {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .badge-pill {
        font-size: 14px;
        padding: 4px 10px;
        gap: 4px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .badge-pill {
        font-size: 13px;
        padding: 3px 8px;
        gap: 3px;
        margin-bottom: 14px;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 14px;
        max-width: 90%;
        padding: 0 10px;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 13px;
        max-width: 95%;
        padding: 0 8px;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .hero-bg-grid {
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
}

.hotmart-fb.btn-primary,
.hotmart-fb.hotmart__button-checkout {
    /* Cores e Fundo */
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    
    /* Forma e Borda */
    border: 1px solid transparent !important;
    border-radius: 12px !important;

    /* Tamanho PADRÃO (Ajuste principal para o botão "Fechar assinatura agora") */
    padding: 12px !important; 
    font-size: 14px !important;
    
    /* Efeitos e Transições */
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s !important;
    font-weight: 600 !important;
    font-family: var(--font-main) !important;
}

/* Reaplicar o Box Shadow e o estado hover/active */
.hotmart-fb.btn-primary:hover, 
.hotmart-fb.hotmart__button-checkout:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px) !important;
}

.hotmart-fb.glow-effect {
    box-shadow: var(--btn-primary-shadow), 0 0 20px rgba(56, 189, 248, 0.3) !important;
}

/* ESTILOS ESPECÍFICOS PARA BOTÕES GRANDES E DESTACADOS NA HERO */
.hotmart-fb.btn-primary.large,
.btn-primary.large,
.btn-secondary.large,
a.hotmart-fb.hotmart__button-checkout.large {
    padding: 18px 48px !important; /* Aumentado significativamente */
    font-size: 18px !important;    /* Fonte maior */
    border-radius: 16px !important; /* Arredondamento mais moderno */
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    min-width: 220px; /* Largura mínima para consistência */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary.large.glow-effect,
.hotmart-fb.btn-primary.large.glow-effect,
a.hotmart-fb.hotmart__button-checkout.large.glow-effect {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4), 0 4px 6px rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-primary.large.glow-effect:hover,
.hotmart-fb.btn-primary.large.glow-effect:hover,
a.hotmart-fb.hotmart__button-checkout.large.glow-effect:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.6), 0 10px 20px rgba(0,0,0,0.3) !important;
}

.hotmart-fb.btn-primary.small {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

.locked-feature {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
}

.locked-feature:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.node {
    position: absolute; 
    border-radius: 12px;
    background: var(--node-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--node-border);
    box-shadow: var(--node-shadow);
    padding: 10px; 
    cursor: move;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    overflow: visible !important; 
    pointer-events: auto !important;
    z-index: 20;
    transition: box-shadow 0.2s, border-color 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.node input,
.node textarea,
.node select {
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text;
}

.call-order-label {
    user-select: none;
    -webkit-user-select: none;
}

.node-title {
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text-main);
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.node-subtitle { 
    font-size: 11px; 
    color: var(--text-muted); 
    line-height: 1.3; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.node.connecting {
    border-color: var(--accent-success);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.connection-line {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2px;
    fill: none;
    pointer-events: none;
}

.traffic-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    pointer-events: none;
    z-index: 100;
}

.locked-feature {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
}


.node.firewall {
    /* Removemos o background branco forçado */
    /* Usamos border-top para consistência com os outros nós */
    border-top: 3px solid #ef4444; 
}

/* Ajuste do ícone para vermelho */
.node.firewall .node-icon svg {
    stroke: #ef4444;
}

/* Ajuste da conexão */
.edge.waf {
    stroke: #ef4444;
    stroke-width: 2px; /* Espessura padrão para não ficar grosseiro */
}

.edge-arrow.waf {
    fill: #ef4444;
}

/* Token da animação */
.token.waf {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* =========================================
   ADMIN PANEL STYLES (FULL & CORRECTED)
   ========================================= */

/* ADMIN PANEL STYLES (FULL & CORRECTED)
   ========================================= */

#admin-panel-container {
    position: fixed;
    top: 100px;
    left: 100px;
    width: 1000px !important;
    height: 600px !important;
    min-width: 400px;
    min-height: 300px;

    resize: both;
    overflow: hidden;

    z-index: 9999;
    background: #0d1117;
    border: 1px solid #30363d;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
    border-radius: 12px;

    display: flex;
    flex-direction: column;

    font-family: 'Inter', system-ui, sans-serif;
    color: #c9d1d9;
    backdrop-filter: blur(20px);

    transition: box-shadow 0.2s ease;
}

/* Estado Minimizado – vira um "chip" no header (canto direito) */
#admin-panel-container.minimized {
    top: 10px;
    right: 16px;
    left: auto;

    width: 230px !important;
    height: 40px !important;

    resize: none;
    overflow: hidden;
    background: rgba(13, 17, 23, 0.98);
    border-color: #30363d;
}

/* Esconde o conteúdo quando minimizado */
#admin-panel-container.minimized #admin-panel-content {
    display: none !important;
}

/* Header (Arrastável) */
#admin-panel-header {
    flex-shrink: 0;
    padding: 0 16px;
    height: 40px;

    background: linear-gradient(to bottom, #161b22, #0d1117);
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}
#admin-panel-header:active {
    cursor: grabbing;
    background: #161b22;
}

.admin-title {
    font-size: 13px;
    font-weight: 700;
    color: #f0f6fc;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-controls {
    display: flex;
    gap: 8px;
}

.admin-controls button {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    font-size: 13px;
    cursor: pointer;
}
.admin-controls button:hover {
    background: #21262d;
    color: #58a6ff;
}

/* Conteúdo Principal */
#admin-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

#admin-toggle-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Tabela de Usuários (Layout DataGrid) */
.user-list-header {
    display: grid;
    /* Definição das colunas: Avatar | Email | Key | Info | Actions */
    grid-template-columns: 40px 2fr 1.5fr 1fr 80px;
    padding: 8px 16px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    font-size: 11px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    flex-shrink: 0;
}

.admin-user-list {
    flex: 1;
    overflow-y: auto;
    background: #0d1117;
}

.user-row {
    display: grid;
    grid-template-columns: 40px 2fr 1.5fr 1fr 80px;
    padding: 10px 16px;
    border-bottom: 1px solid #21262d;
    align-items: center;
    transition: background 0.15s;
    font-size: 13px;
    color: #c9d1d9;
}
.user-row:hover { background: #161b22; }
.user-row.is-new { 
    background: rgba(46, 160, 67, 0.05); 
    border-left: 3px solid #2ea043; 
    padding-left: 13px; 
}

/* Estilos das Colunas */
.col-avatar { display: flex; justify-content: center; }
.user-avatar { 
    width: 24px; height: 24px; 
    background: #21262d; border: 1px solid #30363d; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 10px; color: #8b949e; 
}

.col-main { display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding-right: 10px; }
.u-email { font-weight: 600; color: #f0f6fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-meta { font-size: 11px; color: #8b949e; display: flex; gap: 8px; }

.col-key span { 
    font-family: monospace; 
    font-size: 11px; 
    color: #a5d6ff; 
    background: rgba(56,139,253,0.1); 
    padding: 2px 6px; 
    border-radius: 4px; 
    cursor: pointer;
}
.col-key span:hover { background: rgba(56,139,253,0.2); }

.col-info { 
    font-size: 11px; 
    color: #8b949e; 
    display: flex; 
    flex-direction: column; 
    text-align: right; 
    justify-content: center; 
    padding-right: 10px; 
}

.col-actions { display: flex; justify-content: flex-end; }
.btn-view-details {
    background: #21262d; 
    border: 1px solid #30363d; 
    color: #c9d1d9;
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    cursor: pointer; 
    transition: all 0.2s;
}
.btn-view-details:hover { border-color: #8b949e; color: #fff; }

/* Área de Broadcast no Rodapé */
.admin-broadcast-area {
    padding: 12px;
    background: #161b22;
    border-top: 1px solid #30363d;
    flex-shrink: 0;
}

/* Modal JSON Viewer (Overlay interno) */
.admin-detail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}
.admin-detail-header {
    padding: 12px 16px;
    border-bottom: 1px solid #30363d;
    display: flex; justify-content: space-between; align-items: center;
    background: #161b22;
}
.admin-detail-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    color: #c9d1d9;
}
.json-viewer {
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}
.json-key { color: #79c0ff; }
.json-string { color: #a5d6ff; }
.json-number { color: #d2a8ff; }
.json-boolean { color: #ff7b72; }
.json-null { color: #ff7b72; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


.node.note {
    background: #fef9c3;
    border: 1px solid #facc15;
    color: #333;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
    z-index: 15; 
}

[data-theme="neon"] .node.note, 
[data-theme="predator-vision"] .node.note {
    background: rgba(255, 255, 0, 0.1);
    border: 1px dashed #facc15;
    color: #facc15;
}

.note-header {
    background: rgba(0,0,0,0.05);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    text-transform: uppercase;
    color: inherit;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.note-content {
    flex: 1;
    background: transparent;
    border: none;
    resize: none;
    padding: 8px;
    font-family: 'Inter', sans-serif; 
    font-size: 12px;
    color: inherit;
    outline: none;
    width: 100%;
}

.palette { 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    z-index: 5; 
    border-right: var(--glass-border);
    height: 100%;
    overflow: hidden; 
}

.palette-content-wrapper { 
    flex: 1; 
    overflow-y: auto; 
    min-height: 0;    
    padding-right: 4px; 
}

#connect-generic-btn.active {
    background: rgba(156, 163, 175, 0.15);
    border-color: #9ca3af;
    color: #e5e7eb;
}



.node-quick-actions {
    display: none;
    position: absolute;
    top: -45px; 
    right: 0;
    background: var(--bg-panel);
    padding: 6px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 100;
    gap: 8px; 
    backdrop-filter: blur(12px);
    animation: fadeIn 0.2s ease-out;
}

.node:hover .node-quick-actions {
    display: flex;
}

.quick-action-btn {
    width: 34px; 
    height: 34px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    font-size: 16px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; 
}

.quick-action-btn:hover {
    transform: translateY(-2px) scale(1.1); 
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.quick-action-btn::after {
    content: attr(data-label);
    position: absolute;
    bottom: 120%; 
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 200;
}

.quick-action-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-action-btn.rest { border-color: rgba(59, 130, 246, 0.3); }
.quick-action-btn.rest:hover { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; }
.quick-action-btn.rest::after { border-color: #3b82f6; }

.quick-action-btn.msg { border-color: rgba(245, 158, 11, 0.3); }
.quick-action-btn.msg:hover { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; }
.quick-action-btn.msg::after { border-color: #f59e0b; }

.quick-action-btn.db { border-color: rgba(236, 72, 153, 0.3); }
.quick-action-btn.db:hover { background: rgba(236, 72, 153, 0.2); border-color: #ec4899; }
.quick-action-btn.db::after { border-color: #ec4899; }

.quick-action-btn.waf { border-color: rgba(239, 68, 68, 0.3); }
.quick-action-btn.waf:hover { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; }
.quick-action-btn.waf::after { border-color: #ef4444; }

.quick-action-btn.generic { border-color: rgba(156, 163, 175, 0.3); }
.quick-action-btn.generic:hover { background: rgba(156, 163, 175, 0.2); border-color: #9ca3af; }


@keyframes creationPulse {
    0% { 
        transform: scale(0.2); 
        opacity: 0; 
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
        box-shadow: 0 0 50px 20px rgba(56, 189, 248, 0); 
    }
    70% { 
        transform: scale(0.95); 
    }
    100% { 
        transform: scale(1); 
    }
}

.node.just-created {
    animation: creationPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-color: var(--accent-primary);
    z-index: 100; 
}

.node.just-created::after {
    content: "NOVO!";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    animation: fadeOutBadge 2s forwards;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes fadeOutBadge {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.openapi-wrapper {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}

.openapi-shot {
    flex: 1;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: rgba(15, 15, 20, 0.95);
    box-shadow: 0 0 40px -15px rgba(124, 58, 237, 0.4);
}

.openapi-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .openapi-wrapper {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .openapi-shot {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
  body[data-context="landing"] {
    overflow-x: hidden;
  }

  .landing-nav {
    padding: 12px 16px;
  }

  .landing-hero {
    padding: 72px 16px 32px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
    padding: 0;
  }

  .hero-buttons {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 24px;
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn-primary.large,
  .hero-buttons .btn-secondary.large,
  .hero-buttons .hotmart-fb.btn-primary.large,
  .hero-buttons a.hotmart-fb.hotmart__button-checkout {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    justify-content: center;
  }

  .hero-benefits {
    justify-content: flex-start;
    max-width: 100%;
  }

  

  .cta-banner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}


.hero-visual {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
}

.hero-visual-media {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 30px auto;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(56, 189, 248, 0.1);
    overflow: hidden;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-visual-media .hero-gif-video {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-window {
    width: 100%;
    max-width: 1100px;
    min-height: 520px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotateX(1.5deg);
    transition: transform 0.5s ease;
    perspective: 1200px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(56, 189, 248, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 768px) {
    body[data-context="landing"] {
        overflow-x: hidden;
    }

    .landing-nav {
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
    }

    .landing-hero {
        padding: 40px 16px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 16px;
        gap: 10px;
    }

    .hero-buttons .btn-primary.large,
    .hero-buttons .btn-secondary.large,
    .hero-buttons .hotmart-fb.btn-primary.large,
    .hero-buttons a.hotmart-fb.hotmart__button-checkout.large {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        justify-content: center;
        display: flex;
    }

    .hero-benefits {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .hero-benefit-item {
        font-size: 12px;
        white-space: normal;
    }

    .hero-visual {
        display: none;
    }

    .landing-section,
    .landing-section.alt-bg {
        padding: 48px 16px;
        max-width: 100%;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cta-banner .btn-primary.small {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
  body[data-context="landing"] {
    overflow-x: hidden;
  }

  body[data-context="landing"] .landing-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  body[data-context="landing"] .landing-nav {
    padding: 12px 16px;
  }

  body[data-context="landing"] .nav-links {
    display: none;
  }

  body[data-context="landing"] .landing-hero {
    padding: 40px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body[data-context="landing"] .badge-pill {
    font-size: 14px;
    padding: 4px 10px;
    margin-bottom: 16px;
  }

  body[data-context="landing"] .hero-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  body[data-context="landing"] .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
    padding: 0 8px;
    margin-bottom: 16px;
  }

  body[data-context="landing"] .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 16px;
    gap: 10px;
  }

  body[data-context="landing"] .hero-buttons .btn-primary.large,
  body[data-context="landing"] .hero-buttons .btn-secondary.large,
  body[data-context="landing"] .hero-buttons .hotmart-fb.btn-primary.large,
  body[data-context="landing"] .hero-buttons a.hotmart-fb.hotmart__button-checkout.large {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    justify-content: center;
    display: flex;
  }

  body[data-context="landing"] .hero-benefits {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    max-width: 100%;
  }

  body[data-context="landing"] .hero-benefit-item {
    font-size: 12px;
    white-space: normal;
  }

  body[data-context="landing"] .hero-visual {
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body[data-context="landing"] .hero-visual-media {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(10, 10, 10, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  body[data-context="landing"] .hero-visual-media .hero-gif-video {
    width: 100%;
    height: auto;
    display: block;
  }

  body[data-context="landing"] .mockup-window {
    width: 100%;
    max-width: 100%;
    min-height: 380px;
    margin: 0;
    transform: none;
  }

  body[data-context="landing"] .mockup-body {
    padding: 20px 16px;
  }

  body[data-context="landing"] .mockup-row.services-row {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  body[data-context="landing"] .mockup-line.split-3-way,
  body[data-context="landing"] .mockup-line.horizontal {
    width: 100%;
    max-width: 100%;
  }

  body[data-context="landing"] .landing-section,
  body[data-context="landing"] .landing-section.alt-bg {
    padding: 48px 16px;
    max-width: 100%;
  }

  body[data-context="landing"] .features-grid,
  body[data-context="landing"] .pricing-grid {
    grid-template-columns: 1fr;
  }

  body[data-context="landing"] .cta-banner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body[data-context="landing"] .cta-banner .btn-primary.small {
    width: 100%;
    justify-content: center;
  }
}


.token.trace-packet {
    background: #fff;
    width: 14px;
    height: 14px;
    border: 2px solid #00ff9d;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff9d, 0 0 5px #fff;
    z-index: 200;
    transition: transform 0.1s linear;
}

/* Painel Flutuante Global */
#trace-stats-panel {
    position: fixed !important; /* Força sair de qualquer contexto relativo */
    top: 100px;
    left: 20px;
    width: 400px;
    height: 500px;
    min-width: 320px;
    min-height: 200px;
    
    display: flex;
    flex-direction: column;
    
    background: rgba(10, 15, 25, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid #334155;
    border-top: 3px solid #00ff9d; /* Topo verde neon da marca */
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9); /* Sombra pesada para destacar */
    
    color: #e2e8f0;
    font-family: 'Inter', monospace;
    z-index: 2147483647; /* Z-Index Máximo possível no navegador */
    
    resize: both;
    overflow: hidden;
    
    animation: slideInFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trace-header {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab; /* Cursor de mão aberta para indicar que pode arrastar */
    user-select: none;
    flex-shrink: 0;
}

.trace-header:active {
    cursor: grabbing; /* Mão fechada ao arrastar */
    background: rgba(255, 255, 255, 0.08);
}

.trace-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #00ff9d;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none; /* Deixa o clique passar para o header */
}

.trace-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trace-header button {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.trace-header button:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Corpo com Scroll */
.trace-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    background: rgba(0,0,0,0.2);
    gap: 10px; /* Espaço entre os cards */
}

/* Custom Scrollbar */
.trace-body::-webkit-scrollbar { width: 6px; }
.trace-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* --- ITEM DE LOG (Card com Borda Laranja) --- */
.trace-step {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    
    /* BORDA LARANJA PEDIDA */
    border: 1px solid rgba(249, 115, 22, 0.5); /* Orange border */
    border-left: 4px solid #f97316; /* Borda esquerda mais grossa */
    background: rgba(249, 115, 22, 0.08); /* Fundo sutilmente laranja */
    
    border-radius: 6px;
    animation: fadeInStep 0.3s ease-out;
    gap: 12px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.trace-step:hover {
    transform: translateX(2px);
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.trace-step-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}

.trace-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trace-step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trace-step-title {
    font-weight: 700;
    color: #fdba74; /* Texto laranja claro (orange-300) para contraste */
    font-size: 13px;
}

/* BADGES DE TECNOLOGIA */
.tech-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.tech-badge.java { background: #e76f00; border-color: #e76f00; }
.tech-badge.go { background: #00add8; border-color: #00add8; }
.tech-badge.node { background: #68a063; border-color: #68a063; }
.tech-badge.python { background: #306998; border-color: #ffd43b; color: #fff; }

.trace-step-detail {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* BADGES DE PROTOCOLO */
.trace-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}
.trace-badge.rest { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: #38bdf8; }
.trace-badge.db { background: rgba(219, 39, 119, 0.15); color: #f472b6; border-color: #f472b6; }
.trace-badge.producer { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: #4ade80; }
.trace-badge.consumer { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: #fb923c; }

/* LATÊNCIA */
.trace-step-latency {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: auto;
}
.trace-step-latency.warning { color: #facc15; border: 1px solid #facc15; font-weight: bold; }
.trace-step-latency.danger { color: #ef4444; border: 1px solid #ef4444; font-weight: bold; animation: pulse-latency 1.5s infinite; }

@keyframes pulse-latency {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.trace-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.edge.trace-path {
    stroke: #00ff9d !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.6));
    transition: stroke 0.3s ease;
    z-index: 100;
}

.node.trace-visited {
    border-color: #00ff9d !important;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3) !important;
}

@keyframes slideInFloat { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInStep { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }


.trace-details-overlay {
    position: absolute;
    top: 50px; 
    left: 0;
    width: 100%;
    height: calc(100% - 80px); 
    background: #0f172a; 
    z-index: 20;
    transform: translateX(100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.trace-details-overlay.active {
    transform: translateX(0); 
}

.details-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.btn-back:hover { background: rgba(255,255,255,0.1); border-color: white; }

.details-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CARD GENÉRICO DE DETALHE */
.detail-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
}

.detail-card h5 {
    margin: 0 0 10px 0;
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

/* GRID DE ATRIBUTOS (CPU, RAM, ETC) */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-item label {
    font-size: 10px;
    color: #64748b;
}

.detail-item span {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

/* TAGS DE CRITICIDADE E RESILIÊNCIA */
.meta-tag {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.meta-tag.high { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.meta-tag.medium { background: rgba(245, 158, 11, 0.2); color: #fb923c; border: 1px solid rgba(245, 158, 11, 0.4); }
.meta-tag.low { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }

.resilience-tag {
    font-size: 9px;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* CARD DE ORIGEM (Destaque visual) */
.detail-card.source-card {
    border-left: 2px solid #38bdf8; /* Azul para origem */
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
}

.detail-card.target-card {
    border-left: 2px solid #00ff9d; /* Verde para destino */
}

/* Indicadores de Status */
.bottleneck-indicator {
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.status-good { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-warn { background: rgba(250, 204, 21, 0.15); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.3); }
.status-bad { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); animation: pulse-border 2s infinite; }

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.trace-step {
    cursor: pointer;
    position: relative;
    transition: transform 0.1s, background 0.1s;
}
.trace-step:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}
.trace-step:active { transform: scale(0.98); }


.trace-origin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.trace-origin-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.trace-origin-item:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00ff9d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.15);
}

.trace-origin-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.trace-origin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trace-origin-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.trace-origin-type {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.trace-origin-item::after {
    content: 'START';
    position: absolute;
    right: -10px;
    bottom: -5px;
    font-size: 40px;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
}

#btn-open-trace-menu {
    border-color: #00ff9d !important;
    color: #00ff9d !important;
    background: rgba(0, 255, 157, 0.05) !important;
    font-weight: 700;
}

#btn-open-trace-menu:hover {
    background: rgba(0, 255, 157, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3) !important;
}
#selection-box {
    position: fixed; /* Fixed relative to viewport works better with mouse coords */
    border: 1px solid var(--accent-primary);
    background-color: rgba(56, 189, 248, 0.15); /* Azul translúcido */
    border-radius: 4px;
    pointer-events: none; /* Allows mouseup to trigger on canvas underneath */
    z-index: 9999;
}

.node.multi-selected {
    border-color: var(--accent-secondary) !important; /* Roxo para diferenciar */
    box-shadow: 0 0 0 2px var(--accent-secondary), 0 0 15px rgba(168, 85, 247, 0.4) !important;
    z-index: 50 !important;
}

.node.selected.multi-selected {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px #fff, 0 0 20px var(--accent-primary) !important;
}

.edge.multi-selected {
    stroke: var(--accent-secondary) !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 5px var(--accent-secondary));
}

.palette-item.locked.locked-purple { border-color: #a855f7 !important; color: #a855f7 !important; box-shadow: 0 0 8px rgba(168, 85, 247, 0.2); }
.palette-item.locked.locked-blue { border-color: #3b82f6 !important; color: #3b82f6 !important; box-shadow: 0 0 8px rgba(59, 130, 246, 0.2); }
.palette-item.locked.locked-yellow { border-color: #facc15 !important; color: #facc15 !important; box-shadow: 0 0 8px rgba(250, 204, 21, 0.2); }
.palette-item.locked.locked-pink { border-color: #ec4899 !important; color: #ec4899 !important; box-shadow: 0 0 8px rgba(236, 72, 153, 0.2); }
.palette-item.locked.locked-gray { border-color: #64748b !important; color: #94a3b8 !important; }

.badge-soon { 
    font-size: 8px; 
    background: rgba(0,0,0,0.2); 
    color: inherit; 
    padding: 2px 5px; 
    border-radius: 4px; 
    margin-left: 6px; 
    text-transform: uppercase;
    border: 1px solid currentColor;
    font-weight: 800;
}

/* =========================================
   9. MOUSE MODE CONTEXT MENU
   ========================================= */
#mouse-mode-context-menu {
    position: fixed;
    z-index: 9999;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    padding: 4px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.context-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.context-item:hover {
    background: rgba(255,255,255,0.1);
}

.context-item .icon {
    font-size: 14px;
}

.edge-layer circle {
    pointer-events: all !important;
    cursor: grab;
    transition: r 0.2s, fill 0.2s;
}
.edge-layer circle:hover {
    r: 8px; /* Aumenta quando passa o mouse */
    fill: var(--accent-secondary) !important;
}
.edge-layer circle:active {
    cursor: grabbing;
}

/* =========================================
   PERFORMANCE & VISUAL FIX (DRAG)
   ========================================= */

.canvas-panel.is-dragging .node {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important; 
    will-change: transform, left, top; 
}


.canvas-panel.is-dragging .node.selected,
.canvas-panel.is-dragging .node.multi-selected {
    background: var(--bg-panel-solid) !important; 
    opacity: 1 !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.7) !important;
    z-index: 1000 !important;
    border-color: var(--accent-primary) !important;
}

/* =========================================
   SHEET TABS (Draw.io Style)
   ========================================= */

.sheet-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; 
    /* Ajuste para não sobrepor o painel de propriedades se estiver aberto, 
       mas geralmente queremos que ele fique na base do canvas-panel */
    height: 36px;
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 40; /* Acima do canvas, abaixo de modais */
    gap: 5px;
    user-select: none;
}

.sheet-list {
    display: flex;
    align-items: flex-end;
    overflow-x: auto;
    max-width: calc(100% - 40px);
    height: 100%;
    gap: 2px;
}

/* Esconde scrollbar da lista de abas */
.sheet-list::-webkit-scrollbar { height: 0px; }

.sheet-tab {
    padding: 0 16px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    min-width: 80px;
    position: relative;
    transition: all 0.2s;
    margin-bottom: 2px; /* Pequeno espaço da borda inferior */
    user-select: none;
}

.sheet-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.sheet-tab.active {
    background: var(--bg-input); /* Cor de destaque */
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--bg-input); /* Conecta com o fundo */
    font-weight: 600;
    height: 34px; /* Levemente mais alto */
    margin-bottom: -1px; /* Cobre a borda da barra */
    z-index: 10;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.sheet-tab input {
    background: transparent;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
}

.sheet-close-btn {
    margin-left: 8px;
    font-size: 10px;
    opacity: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sheet-tab:hover .sheet-close-btn,
.sheet-tab.active .sheet-close-btn {
    opacity: 0.6;
}

.sheet-close-btn:hover {
    background: var(--accent-danger);
    color: #fff;
    opacity: 1 !important;
}

.add-sheet-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    margin-left: 5px;
}

.add-sheet-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.sheet-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    pointer-events: none; 
}
.sheet-rename-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: 2px solid var(--accent-primary); 
    background: var(--bg-input);
    color: var(--text-main);
    text-align: center;
    font-size: inherit;
    font-weight: inherit;
    padding: 0 4px;
    border-radius: 4px;
    z-index: 20;
}
.sheet-name-text.hidden,
.sheet-rename-input.hidden {
    display: none;
}


.vision-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.vision-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vision-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.vision-content .highlight-vision {
    color: var(--lp-success); 
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.vision-content p {
    font-size: 18px;
    color: var(--lp-text-muted);
    margin-bottom: 30px;
}

.pain-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.pain-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s;
}
.pain-item:hover {
    transform: translateX(10px);
    border-color: var(--lp-accent);
    background: rgba(56, 189, 248, 0.05);
}

.pain-icon {
    font-size: 20px;
    background: rgba(255,255,255,0.1);
    width: 40px; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


.vision-visual {
    position: relative;
    height: 500px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 24px;
    border: 1px solid var(--lp-border);
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
    overflow: hidden;
}


.vision-grid-bg {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}


.radar-scan {
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 197, 94, 0.1) 60deg, transparent 60.1deg);
    transform: translate(-50%, -50%);
    animation: radarSpin 4s linear infinite;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes radarSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.eco-node {
    position: absolute;
    background: #0f172a;
    border: 1px solid var(--lp-accent);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--lp-accent);
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.eco-node::before {
    content: ''; width: 8px; height: 8px; background: var(--lp-accent); border-radius: 50%;
    box-shadow: 0 0 10px var(--lp-accent);
}

.eco-line {
    position: absolute;
    height: 1px;
    background: var(--lp-accent);
    opacity: 0.3;
    transform-origin: 0 0;
}


.new-dev-avatar {
    position: absolute;
    bottom: 30px; left: 30px;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 30px white;
    z-index: 20;
    display: flex; align-items: center; gap: 10px;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 900px) {
    .vision-container { grid-template-columns: 1fr; }
    .vision-visual { height: 400px; order: -1; } 
    .vision-content h2 { font-size: 32px; }
}

.cases-section {
    padding: 80px 20px;
    position: relative;
    background: #020617; /* Fundo escuro para destacar os cases */
}

/* Título da Seção */
.cases-header {
    text-align: center;
    margin-bottom: 60px;
}
.cases-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}
.cases-header p {
    color: var(--lp-text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Principal (Netflix) */
.case-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: var(--lp-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.case-card.netflix:hover { border-color: #e50914; }

/* Cabeçalho do Card (Imagem/Cor) */
.case-thumb {
    height: 160px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--lp-border);
}

.netflix-logo {
    font-size: 40px; 
    font-weight: 900; 
    color: #e50914; 
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.uber-logo { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -1px; }
.instagram-logo { 
    font-size: 30px; font-weight: 700; 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.play-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.case-card:hover .play-overlay { opacity: 1; }
.play-btn {
    width: 50px; height: 50px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: black; font-size: 20px; box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Corpo do Card */
.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.case-badge {
    display: inline-block; padding: 4px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    margin-bottom: 12px; width: fit-content;
}
.bg-red { background: rgba(229, 9, 20, 0.15); color: #e50914; border: 1px solid rgba(229, 9, 20, 0.3); }
.bg-gray { background: rgba(255,255,255,0.1); color: #94a3b8; }

.case-title { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.case-desc { font-size: 13px; color: var(--lp-text-muted); line-height: 1.5; margin-bottom: 20px; }

/* Tech Stack Icons */
.tech-stack { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.tech-pill {
    font-size: 10px; color: #94a3b8; background: #0f172a;
    padding: 4px 8px; border-radius: 4px; border: 1px solid var(--lp-border);
}

/* Locked State */
.case-card.locked { opacity: 0.6; pointer-events: none; }
.case-card.locked .case-thumb { filter: grayscale(1); }
.lock-icon { font-size: 24px; color: #94a3b8; margin-bottom: 10px; }

/* Botão CTA do Card */
.case-cta {
    margin-top: 20px;
    display: flex; align-items: center; justify-content: center;
    padding: 10px; border-radius: 8px;
    background: transparent; border: 1px solid var(--lp-border);
    color: white; font-size: 12px; font-weight: 600; text-decoration: none;
    transition: all 0.2s;
}
.case-card:hover .case-cta {
    background: var(--lp-accent); border-color: var(--lp-accent); color: black;
}
.case-card.netflix:hover .case-cta {
    background: #e50914; border-color: #e50914; color: white;
}

.hero-highlight {
    color: var(--lp-accent); /* Azul do tema */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 5px;
    background: rgba(56, 189, 248, 0.1); /* Fundo sutil */
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}