/**
 * JORGE IA 3.0 Next-Gen - Design System & UI/UX Styling
 * Cyber-Civic Glassmorphism, 3D Hologram HUD, Territory Vector Visualizer & Dynamic Interaction Design
 */

:root {
    --bg-main: #060d17;
    --bg-darker: #03070d;
    --card-bg: rgba(12, 24, 41, 0.8);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-hover: rgba(19, 36, 61, 0.9);
    
    --primary: #ff7a18;
    --primary-light: #ff9e3b;
    --primary-glow: rgba(255, 122, 24, 0.4);
    
    --accent-green: #00c9a7;
    --accent-green-glow: rgba(0, 201, 167, 0.35);
    --accent-blue: #38bdf8;
    --accent-blue-glow: rgba(56, 189, 248, 0.35);
    --accent-purple: #a855f7;
    
    --danger: #ff5c5c;
    --warning: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    
    --shadow-glow: 0 10px 40px -10px var(--primary-glow);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(255, 122, 24, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 201, 167, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(12, 24, 41, 0.9) 0%, var(--bg-main) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================================
   TOP NAVIGATION BAR
   ============================================================= */
.top-nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    background: rgba(6, 13, 23, 0.75);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo b {
    color: var(--primary);
}

.v-badge {
    font-size: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #0c0804;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px var(--primary-glow);
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.brand-sub b {
    color: var(--text-main);
}

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

.nav-chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-chip-btn:hover {
    background: rgba(255, 122, 24, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 0 16px var(--primary-glow);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid rgba(0, 201, 167, 0.3);
    color: var(--accent-green);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.25); }
}

.admin-link-btn {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.admin-link-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

/* =============================================================
   INTERACTIVE NAVIGATION TABS STRIP
   ============================================================= */
.interactive-tab-bar {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.tab-scroller {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px;
    scrollbar-width: none;
}
.tab-scroller::-webkit-scrollbar { display: none; }

.tab-btn {
    position: relative;
    background: rgba(12, 24, 41, 0.7);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.4);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(255, 158, 59, 0.15));
    border-color: var(--primary);
    box-shadow: 0 6px 20px -6px var(--primary-glow);
}

.tab-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 700;
}

.tab-badge.pulse {
    background: rgba(255, 122, 24, 0.25);
    color: var(--primary-light);
    animation: badgePulse 2s infinite;
}

.tab-badge.live-badge {
    background: rgba(0, 201, 167, 0.2);
    color: var(--accent-green);
}

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

/* Tab Panels Switching */
.tab-panel {
    display: none;
    animation: fadeInTab 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
    display: block;
}

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

/* =============================================================
   MAIN HERO LAYOUT (TAB 1: ASISTENTE & AVATAR)
   ============================================================= */
.hero-container {
    max-width: 1280px;
    margin: 20px auto 40px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
    align-items: start;
}

.avatar-card-container, .ask-card-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.15;
    pointer-events: none;
}

.badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.verified-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid rgba(0, 201, 167, 0.25);
    padding: 5px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
}

.ai-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* 3D Hologram & Particle Stage */
.avatar-stage {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.9) 0%, rgba(3, 7, 13, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hologram-stage {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-wave-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hologram-hud-overlay {
    position: absolute;
    inset: 12px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(0, 201, 167, 0.5);
}
.hud-corner.tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.hud-corner.tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.hud-corner.br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

.hologram-meta {
    text-align: center;
    margin-top: auto;
    padding-bottom: 6px;
    z-index: 2;
}

.hologram-meta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 122, 24, 0.4);
}

.hologram-meta p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dynamic Live Subtitle Bar */
.live-subtitle-bar {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    background: rgba(6, 13, 23, 0.88);
    border: 1px solid rgba(0, 201, 167, 0.4);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: popIn 0.3s ease-out;
}

.subtitle-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-green);
    background: rgba(0, 201, 167, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.subtitle-text {
    font-size: 12px;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaking-indicator {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 201, 167, 0.15);
    border: 1px solid rgba(0, 201, 167, 0.4);
    color: var(--accent-green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.wave-bar {
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 999px;
    animation: waveBounce 1s infinite ease-in-out;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveBounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.avatar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 10px;
}

.avatar-status-badge {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-circle {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
}

.avatar-quick-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 122, 24, 0.15);
    border-color: var(--primary);
}

/* =============================================================
   QUESTION & CONSOLE SECTION
   ============================================================= */
.card-header .eyebrow-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #fff;
}

.lead-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.lead-desc b {
    color: #fff;
}

/* Territory Filter Toolbar */
.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.select-wrapper {
    flex: 1;
}

.custom-select {
    width: 100%;
    background: rgba(6, 13, 23, 0.85);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Chips List */
.chips-container {
    margin-bottom: 20px;
}

.chips-title {
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip:hover {
    background: rgba(255, 122, 24, 0.16);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px -3px var(--primary-glow);
}

/* Input Console */
.input-console {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.textarea-wrapper {
    position: relative;
    background: rgba(6, 13, 23, 0.85);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px 28px;
    transition: var(--transition);
}

.textarea-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

textarea::placeholder {
    color: var(--text-subtle);
}

.char-count {
    position: absolute;
    bottom: 8px;
    right: 14px;
    font-size: 11px;
    color: var(--text-subtle);
}

.console-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: var(--transition);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #0c0804;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px var(--primary-glow);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-mic {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-mic:hover {
    background: rgba(0, 201, 167, 0.15);
    border-color: var(--accent-green);
}

.btn-mic.listening {
    background: rgba(0, 201, 167, 0.2);
    border-color: var(--accent-green);
    color: #5eead4;
}

.btn-mic.listening .mic-pulse {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-green);
    animation: livePulse 1.2s infinite;
}

/* =============================================================
   RESULT CARD & STREAMING
   ============================================================= */
.result-box {
    background: rgba(8, 18, 32, 0.85);
    border: 1px solid rgba(255, 122, 24, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 22px;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.result-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.conf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.result-confidence.conf-alta .conf-dot { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.result-confidence.conf-alta { color: var(--accent-green); }
.result-confidence.conf-media .conf-dot { background: var(--warning); }
.result-confidence.conf-media { color: var(--warning); }
.result-confidence.conf-baja .conf-dot { background: var(--danger); }
.result-confidence.conf-baja { color: var(--danger); }

.result-meta-tags {
    display: flex;
    gap: 6px;
}

.mode-tag, .cat-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.mode-tag {
    background: rgba(255, 122, 24, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255, 122, 24, 0.3);
}

.cat-tag {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.answer-content {
    font-size: 15px;
    line-height: 1.7;
    color: #f1f5f9;
    margin-bottom: 16px;
    white-space: pre-line;
}

.source-info {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.source-title {
    font-weight: 700;
    color: #fff;
}

.result-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-pill-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.action-pill-btn.story-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(255, 122, 24, 0.25));
    border-color: var(--accent-purple);
    color: #f3e8ff;
}
.action-pill-btn.story-btn:hover {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.action-pill-btn.share-wa {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #4ade80;
}

.feedback-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.feedback-label {
    font-size: 12px;
    color: var(--text-subtle);
}

.fb-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.fb-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feedback-msg {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 700;
}

/* Follow-up Suggestions Ribbon */
.follow-ups-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.follow-ups-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.follow-ups-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.follow-up-chip {
    background: rgba(255, 122, 24, 0.08);
    border: 1px solid rgba(255, 122, 24, 0.25);
    color: #ffd8b2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.follow-up-chip:hover {
    background: rgba(255, 122, 24, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: #fff;
}

.ethical-disclosure {
    font-size: 11px;
    color: var(--text-subtle);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

/* =============================================================
   TAB 2: TERRITORY INTERACTIVE MAP
   ============================================================= */
.territory-container, .simulator-container, .myplan-container, .poll-container {
    max-width: 1280px;
    margin: 20px auto 40px;
    padding: 0 24px;
}

.territory-header, .simulator-header, .myplan-header, .poll-header {
    text-align: center;
    margin-bottom: 28px;
}

.territory-header .eyebrow-tag, .simulator-header .eyebrow-tag, .myplan-header .eyebrow-tag, .poll-header .eyebrow-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.territory-header h2, .simulator-header h2, .myplan-header h2, .poll-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.territory-header p, .simulator-header p, .myplan-header p, .poll-header p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.territory-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.map-stage-card, .map-details-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card);
}

.map-visual-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.map-legend-dot.urban { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.map-legend-dot.rural { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green-glow); }

.interactive-map-svg-wrap {
    width: 100%;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 50%, rgba(12, 24, 41, 0.95) 0%, #03070d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.neiva-svg-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-zone-poly {
    cursor: pointer;
    transition: var(--transition);
    stroke-width: 1.5;
}

.map-zone-poly.urban {
    fill: rgba(255, 122, 24, 0.18);
    stroke: rgba(255, 122, 24, 0.6);
}

.map-zone-poly.rural {
    fill: rgba(0, 201, 167, 0.15);
    stroke: rgba(0, 201, 167, 0.6);
}

.map-zone-poly:hover, .map-zone-poly.active {
    fill: rgba(255, 122, 24, 0.55);
    stroke: #fff;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.map-zone-poly.rural:hover, .map-zone-poly.rural.active {
    fill: rgba(0, 201, 167, 0.5);
    stroke: #fff;
    filter: drop-shadow(0 0 12px var(--accent-green-glow));
}

.map-zone-label {
    fill: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.map-pin-btn {
    cursor: pointer;
    transition: var(--transition);
}
.map-pin-btn:hover {
    filter: brightness(1.25);
    transform: scale(1.05);
}

.map-interactive-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-subtle);
    margin-top: 10px;
}

/* Zone Details Drawer */
.zone-details-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.zone-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 122, 24, 0.15);
    border: 1px solid rgba(255, 122, 24, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 6px;
}

.zone-details-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    color: #fff;
}

.zone-barrios {
    font-size: 12px;
    color: var(--text-muted);
}

.zone-flagships-box {
    margin-bottom: 18px;
}
.zone-flagships-box h4, .zone-quick-questions h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
}

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

.flagship-list li {
    font-size: 13px;
    color: #f1f5f9;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 6px;
}

.zone-chips-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.zone-chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: #ffd8b2;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.zone-chip-btn:hover {
    background: rgba(255, 122, 24, 0.16);
    border-color: var(--primary);
    color: #fff;
}

.zone-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =============================================================
   TAB 3: SIMULATOR STYLING
   ============================================================= */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.simulator-sliders-card, .simulator-results-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card);
}

.simulator-sliders-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}

.slider-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.sim-slider-group {
    margin-bottom: 16px;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.slider-label-row b {
    color: var(--primary);
}

.sim-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    cursor: pointer;
    transition: transform 0.1s ease;
}
.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.score-circle-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 201, 167, 0.3);
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.score-gauge {
    min-width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.2) 0%, rgba(6, 13, 23, 0.9) 70%);
    border: 3px solid var(--accent-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-green-glow);
}

.score-num {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.score-den {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 700;
}

.score-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.score-msg {
    font-size: 13px;
    color: var(--text-main);
    margin-top: 4px;
}

.unlocked-projects-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.unlocked-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.unlocked-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.unlocked-icon {
    font-size: 16px;
}

.unlocked-item b {
    display: block;
    font-size: 13px;
    color: #fff;
}

.unlocked-item small {
    font-size: 11px;
    color: var(--text-muted);
}

/* =============================================================
   TAB 4: MI PLAN CIUDADANO WIZARD
   ============================================================= */
.wizard-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.wizard-step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(24px);
}

.step-num {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 122, 24, 0.15);
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.wizard-step-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: #fff;
    margin-bottom: 14px;
}

.role-grid, .priority-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-pill, .prio-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.role-pill:hover, .prio-pill:hover {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.3);
    color: var(--text-main);
}

.role-pill.active, .prio-pill.active {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(255, 158, 59, 0.15));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 14px var(--primary-glow);
}

.wizard-note {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 10px;
}

.custom-dossier-card {
    background: linear-gradient(180deg, rgba(12, 24, 41, 0.95) 0%, rgba(6, 13, 23, 0.95) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-glow);
}

.dossier-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.custom-dossier-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.dossier-solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dossier-solution-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.dossier-solution-card h4 {
    font-size: 14px;
    color: var(--accent-green);
    margin-bottom: 6px;
}

.dossier-solution-card p {
    font-size: 13px;
    color: #e2e8f0;
}

.dossier-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================================
   TAB 5: PULSO CIUDADANO EN VIVO
   ============================================================= */
.poll-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.poll-card, .poll-insights-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card);
}

.poll-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.poll-live-indicator {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.poll-total-votes {
    font-size: 12px;
    color: var(--text-muted);
}

.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.poll-option-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 122, 24, 0.06);
}

.poll-option-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.poll-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.poll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-status {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 201, 167, 0.15);
    border: 1px solid var(--accent-green);
    color: #5eead4;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
}

.poll-insights-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.trend-rank {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.trend-body b {
    display: block;
    font-size: 13px;
    color: #fff;
}

.trend-body small {
    font-size: 11px;
    color: var(--text-muted);
}

/* =============================================================
   STORY / SOCIAL MEDIA CARD MODAL
   ============================================================= */
.story-modal-box {
    max-width: 580px;
    text-align: center;
}

.story-canvas-preview-wrap {
    width: 100%;
    margin: 16px 0 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: #000;
}

.story-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.story-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* AI Co-Pilot Badge in Buzón Modal */
.ai-copilot-badge {
    margin-top: 8px;
    font-size: 12px;
    color: #ffd8b2;
    background: rgba(255, 122, 24, 0.1);
    border: 1px solid rgba(255, 122, 24, 0.25);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============================================================
   MODAL DIALOGS
   ============================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 13, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    animation: fadeInTab 0.25s ease-out;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    width: min(640px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(6, 13, 23, 0.85);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-status {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.form-status.success {
    background: rgba(0, 201, 167, 0.15);
    border: 1px solid var(--accent-green);
    color: #5eead4;
}
.form-status.error {
    background: rgba(255, 92, 92, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

/* =============================================================
   ADMIN SHELL STYLING
   ============================================================= */
.admin-body {
    background: #050a12;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: rgba(6, 13, 23, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-brand {
    margin-bottom: 28px;
}

.admin-brand small {
    font-size: 11px;
    color: var(--text-subtle);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
    color: #fff;
    background: rgba(255, 122, 24, 0.15);
}

.admin-nav a.active {
    border-left: 3px solid var(--primary);
    color: var(--primary-light);
}

.nav-external {
    color: var(--accent-blue) !important;
}

.nav-logout {
    color: var(--danger) !important;
}

.admin-user-badge {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-subtle);
}

.admin-main-content {
    padding: 32px 40px;
    max-width: 1300px;
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title-row h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    color: #fff;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 28px;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
}

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

.chart-box {
    height: 260px;
    position: relative;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    padding: 10px 14px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.badge-cat {
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-pill-table {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-approved, .conf-alta {
    background: rgba(0, 201, 167, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 201, 167, 0.3);
}

.status-draft, .conf-media {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-review, .conf-baja {
    background: rgba(255, 92, 92, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 92, 92, 0.3);
}

.btn-table-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-table-action:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-table-action.ai-action {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(0, 201, 167, 0.2));
    border-color: var(--primary);
    color: #ffd8b2;
}

.btn-table-action.danger {
    color: #ff9d9d;
    background: rgba(255, 92, 92, 0.12);
}

.table-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 10px 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.help-text {
    font-size: 12px;
    color: var(--text-subtle);
    display: block;
    margin-top: 4px;
}

.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.alert-box.success {
    background: rgba(0, 201, 167, 0.15);
    border: 1px solid var(--accent-green);
    color: #5eead4;
}

.alert-box.error {
    background: rgba(255, 92, 92, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: min(440px, 100%);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(24px);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
}

.login-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    font-size: 13px;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-container, .territory-layout, .simulator-grid, .poll-grid, .wizard-steps-grid, .dossier-solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-shell {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .filter-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-nav-actions .brand-sub {
        display: none;
    }
    
    .console-actions {
        flex-direction: column;
    }
    
    .result-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .feedback-group {
        margin-left: 0;
        justify-content: center;
        margin-top: 8px;
    }
}
