/* ==========================================================================
   InnerMap — Modern CSS Stylesheet
   Design System, Glassmorphism, Layouts & Animations
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette — Serene, Clean & Immersive Zen Aesthetics */
    --color-bg-dark: #090c15;              /* Deep Slate Indigo */
    --color-bg-card: rgba(18, 24, 40, 0.5);
    --color-bg-card-hover: rgba(28, 36, 60, 0.65);
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-glow: rgba(45, 212, 191, 0.25);
    
    --color-primary: #2dd4bf;      /* Soft Zen Mint Teal — Relaxing & Clear */
    --color-primary-glow: rgba(45, 212, 191, 0.35);
    --color-secondary: #c084fc;    /* Soft Meditative Lavender */
    --color-accent: #38bdf8;       /* Calm Sky Blue */
    --color-accent-glow: rgba(56, 189, 248, 0.25);
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #090c15;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* Cosmic Quantum Background (Floating energy field) */
.quantum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #0e1526 0%, var(--color-bg-dark) 100%);
}

.quantum-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.1;
    animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--color-primary);
    top: -10%;
    left: 10%;
    animation-duration: 20s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -10%;
    right: 10%;
    animation-duration: 28s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    top: 40%;
    left: 60%;
    animation-duration: 22s;
    opacity: 0.08;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -40px) scale(1.1);
    }
    100% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    line-height: 1.2;
}

p {
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.header-nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 9, 19, 0.7);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.logo-container:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.logo-svg {
    width: 2.2rem;
    height: 2.2rem;
    animation: rotate-quantum 12s infinite linear;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text-main) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    background: rgba(102, 252, 241, 0.08);
}

.nav-link-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-inverse) !important;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
}

.nav-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.4);
}

@keyframes rotate-quantum {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Site Sections (Landing Page)
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(102, 252, 241, 0.07);
    border: 1px solid var(--color-border-glow);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 20%, var(--color-primary) 60%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 20px rgba(102, 252, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 252, 241, 0.45);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

/* Info Section (Como funciona) */
.info-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.workflow-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-smooth);
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-glow);
    background: var(--color-bg-card-hover);
}

.workflow-card:hover::before {
    opacity: 1;
}

.workflow-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, rgba(102, 252, 241, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.workflow-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   App Workspace Layout (WIZARD CARD)
   ========================================================================== */
.app-section {
    padding: 4rem 0 6rem;
}

.app-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.app-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

/* Screens Transition Framework */
.app-screen {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Step Headers */
.step-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Screen 1: Input and Examples */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.label-text {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.textarea-quantum {
    width: 100%;
    height: 120px;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-main);
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.textarea-quantum:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.15);
    background: rgba(7, 9, 19, 0.8);
}

.input-quantum {
    width: 100%;
    height: 48px;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-main);
    padding: 0 1.25rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-quantum:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.15);
    background: rgba(7, 9, 19, 0.8);
}

.examples-container {
    margin-bottom: 2.5rem;
}

.examples-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

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

.example-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.example-tag:hover {
    background: rgba(102, 252, 241, 0.08);
    border-color: var(--color-primary-glow);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Spinner animation inside buttons */
.spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Screen 2: Leitura Informacional */
.response-block {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--color-secondary);
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.response-block-accent {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
}

.response-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.response-text {
    font-size: 1.05rem;
}

/* Screen 3: Comandos HQI (Core) */
.category-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C79CFF;
    margin-bottom: 1.5rem;
}

.hqi-flow-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.hqi-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hqi-item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hqi-text-box {
    background: rgba(13, 17, 39, 0.6);
    border: 1px solid rgba(102, 252, 241, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
}

.hqi-text-box-fortify {
    background: rgba(13, 17, 39, 0.6);
    border: 1px solid rgba(0, 250, 154, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
}

.hqi-text-box::before {
    content: '“';
    position: absolute;
    top: 5px;
    left: 8px;
    font-family: serif;
    font-size: 2rem;
    color: rgba(102, 252, 241, 0.25);
}

.hqi-text-box-fortify::before {
    content: '“';
    position: absolute;
    top: 5px;
    left: 8px;
    font-family: serif;
    font-size: 2rem;
    color: rgba(0, 250, 154, 0.25);
}

.action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border-left: 4px solid var(--color-accent);
}

/* Timer Bar */
.timer-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    height: 4px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 1s linear;
}

/* Pulse animation for active button */
.pulse-glow {
    animation: pulse-glow-ani 2s infinite;
}

@keyframes pulse-glow-ani {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 252, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(102, 252, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 252, 241, 0);
    }
}

/* Screen 4: Registro */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.rating-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.rating-option:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-primary);
}

.rating-option.selected {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.15);
}

.rating-custom-box {
    margin-bottom: 2rem;
}

.rating-custom-input-field {
    width: 100%;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-main);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.rating-custom-input-field:focus {
    border-color: var(--color-primary);
}

/* ==========================================================================
   Library Workspace Layout (Coleção)
   ========================================================================== */
.library-section {
    padding: 4rem 0 6rem;
}

.library-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.library-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.library-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.library-category-group {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 2rem;
}

.library-category-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.library-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.library-item-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.library-item-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--color-bg-card-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.card-status-pill {
    font-size: 0.85rem;
    padding: 0.2rem 0.65rem;
    background: rgba(102, 252, 241, 0.15);
    border: 1px solid rgba(102, 252, 241, 0.3);
    border-radius: 100px;
    color: var(--color-primary);
}

.card-phrase {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.card-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1rem 0;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-section p {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.hqi-box {
    background: rgba(7, 9, 19, 0.3);
    border-left: 2px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 0 6px 6px 0;
}

.action-box {
    background: rgba(7, 9, 19, 0.3);
    border-left: 2px solid var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 0 6px 6px 0;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
}

.btn-toggle-details:hover {
    color: var(--color-accent);
}

/* Sidebar (Dashboard Stats) */
.library-sidebar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

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

.stats-categories {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stats-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.stats-category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-category-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-cat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.stat-cat-name {
    color: var(--color-text-main);
}

.stat-cat-count {
    color: var(--color-text-muted);
}

.stat-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 100px;
}

.empty-stats {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 1rem 0;
}

/* ==========================================================================
   Toast Notification CSS
   ========================================================================== */
.toast-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 50px);
    opacity: 0;
    background: rgba(13, 17, 39, 0.85);
    border: 1px solid var(--color-primary-glow);
    color: var(--color-primary);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.toast-message.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-quantum {
    margin-top: 8rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    backdrop-filter: blur(5px);
    background: rgba(7, 9, 19, 0.5);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 968px) {
    .library-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .library-sidebar {
        position: static;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 600px) {
    .header-nav {
        padding: 0.8rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .app-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .hqi-text-box, .hqi-text-box-fortify {
        font-size: 1.05rem;
        padding: 1rem 1.25rem;
    }
    
    .ratings-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .library-category-group {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   RAG Simulator Console Styles
   ========================================================================== */
.rag-console-card {
    background: #090B17;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    margin-top: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
}

.console-header {
    background: #11152B;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.console-title {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    letter-spacing: 0.05em;
}

.console-body {
    padding: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #060811;
    text-align: left;
}

.console-placeholder {
    color: #4A566E;
    font-style: italic;
    font-size: 0.95rem;
}

.console-log-line {
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    color: var(--color-text-main);
    margin: 0;
}

.color-cyan { color: var(--color-primary); }
.color-green { color: var(--color-accent); }
.color-yellow { color: #FFBD2E; }
.color-grey { color: #6272A4; }

.console-code-block {
    background: #11152B;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #E2E8F0;
    font-size: 0.8rem;
    overflow-x: auto;
    line-height: 1.4;
    white-space: pre;
    margin: 0.5rem 0;
}

/* ==========================================================================
   InnerMap Sub-wizard Questionnaire Transitions
   ========================================================================== */
.sub-screen-container {
    display: none;
}
.sub-screen-container.active {
    display: block;
    animation: subFadeIn 0.3s ease-out;
}

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

.btn-secondary.active {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
}

/* ==========================================================================
   Autenticação (Auth Card)
   ========================================================================== */
.auth-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 16px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.auth-tab-link {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 0.75rem;
}

.auth-tab-link.active {
    color: var(--color-primary);
}

.auth-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-muted);
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-divider span {
    padding: 0 0.75rem;
}

.btn-google {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-muted);
    transform: translateY(-1px);
}

.google-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   Planos de Assinatura (Paywall)
   ========================================================================== */
.paywall-container {
    max-width: 850px;
    margin: 2.5rem auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.plan-card.recommended {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.15);
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(102, 252, 241, 0.3);
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.plan-price .value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text-main);
}

.plan-price .cents {
    font-size: 1.2rem;
    font-weight: 600;
}

.plan-price .period {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-left: 0.25rem;
}

.plan-price-total {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

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

.plan-features li {
    font-size: 0.9rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Checkout Modal Overlay
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-card {
    max-width: 480px;
    width: 90%;
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Therapist Dashboard & Table Styles */
.dash-tab {
    position: relative;
}
.dash-tab.active {
    color: var(--color-primary) !important;
}
.table-container table th {
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.table-container table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--color-text-main);
    vertical-align: middle;
}
.table-container table tr:last-child td {
    border-bottom: none;
}
.table-container table tr:hover {
    background: rgba(255, 255, 255, 0.015);
}
.badge-status {
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-status.active {
    background: rgba(52, 168, 83, 0.15);
    color: #34A853;
    border: 1px solid rgba(52, 168, 83, 0.3);
}
.badge-status.trial {
    background: rgba(251, 188, 5, 0.15);
    color: #FBBC05;
    border: 1px solid rgba(251, 188, 5, 0.3);
}
.badge-status.inactive {
    background: rgba(234, 67, 53, 0.15);
    color: #EA4335;
    border: 1px solid rgba(234, 67, 53, 0.3);
}
.practice-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition-smooth);
    margin-bottom: 0.75rem;
}
.practice-item-card:hover {
    border-color: var(--color-primary-glow);
    background: rgba(255, 255, 255, 0.03);
}

/* Layout Limpo e Focado para Usuários Logados (SaaS Mode) */
body.user-logged-in .hero-section,
body.user-logged-in .info-section,
body.user-logged-in .footer-quantum {
    display: none !important;
}

/* Customizações Exclusivas para o Painel do Terapeuta */
body.mode-therapist .header-quantum {
    display: none !important;
}

body.mode-therapist #reorganizer-tool {
    max-width: 1400px;
    width: 95%;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

body.mode-therapist .main-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Day Buttons for 15-Day Daily Practice Agenda */
.agenda-day-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.agenda-day-btn:hover {
    border-color: var(--color-primary-glow);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
}
.agenda-day-btn.completed {
    background: rgba(102, 252, 241, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.15);
}

/* Sentiment Tags */
.sentiment-tag {
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}
.sentiment-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-main);
}
.sentiment-tag.selected {
    background: rgba(102, 252, 241, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 6px rgba(102, 252, 241, 0.1);
}

.level-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.level-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background-color 0.3s ease;
}
.level-card.active {
    border-color: var(--color-primary) !important;
    background: rgba(102, 252, 241, 0.04) !important;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.1);
}
.level-card.active::after {
    background-color: var(--color-primary);
}
.level-card:hover:not(.active) {
    border-color: rgba(102, 252, 241, 0.3) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.level-icon-svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.level-card.active .level-icon-svg {
    color: var(--color-primary-glow);
    filter: drop-shadow(0 0 6px var(--color-primary));
}
.level-card:hover:not(.active) .level-icon-svg {
    color: var(--color-primary-glow);
}

/* ==========================================================================
   Mobile Bottom Navigation Bar Styles
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 12, 22, 0.95);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    flex: 1;
    height: 100%;
    gap: 0.25rem;
}

.mobile-nav-svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--color-primary-glow);
}

.mobile-nav-item:hover .mobile-nav-svg, .mobile-nav-item.active .mobile-nav-svg {
    color: var(--color-primary-glow);
}

.mobile-nav-item.active .mobile-nav-svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 5px var(--color-primary));
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    header.header-nav .desktop-nav-only {
        display: none !important;
    }
    
    header.header-nav {
        justify-content: space-between !important;
        padding: 0.8rem 1rem !important;
        background: rgba(10, 12, 22, 0.95);
        border-bottom: 1px solid var(--color-border);
    }

    body.user-logged-in header.header-nav .user-nav-container {
        display: flex !important;
        gap: 0.5rem !important;
        align-items: center;
    }
    
    header.header-nav .user-email {
        display: inline-block !important;
        font-size: 0.72rem !important;
        color: var(--color-text-muted) !important;
        max-width: 90px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    header.header-nav .user-status-badge {
        display: none !important; /* Esconde badge no celular para economizar espaço */
    }
    
    header.header-nav .btn-logout {
        font-size: 0.78rem !important;
        padding: 0.35rem 0.65rem !important;
        background: rgba(234, 67, 53, 0.1) !important;
        border: 1px solid rgba(234, 67, 53, 0.25) !important;
        color: #EA4335 !important;
        border-radius: 6px !important;
        cursor: pointer;
        display: inline-block !important;
    }
    
    /* Layout Lado a Lado (horizontal) nos Níveis de Profundidade no mobile */
    .level-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    
    .level-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.6rem 0.2rem !important;
        border-radius: 8px !important;
    }
    
    .level-card .level-icon-svg {
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 0.25rem !important;
    }
    
    .level-card span {
        margin: 0 !important;
        font-size: 9px !important; /* Tamanho reduzido para caber 100% sem cortar */
        letter-spacing: -0.4px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        display: block !important;
        text-align: center;
        width: 100%;
    }
    
    .main-content {
        padding-bottom: 95px;
        padding-top: 1rem;
    }
    
    .app-section {
        padding: 1rem 0 3rem;
    }

    .app-container {
        padding: 1.25rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(15, 17, 33, 0.6);
        box-shadow: none;
        margin: 0 10px;
    }

    .textarea-quantum, .input-quantum, select, input[type="text"], input[type="email"], input[type="password"] {
        font-size: 16px !important; /* Prevents auto-zooming on iOS Safari */
        padding: 0.75rem;
        height: auto;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.92rem;
    }
    
    .step-title {
        font-size: 1.35rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .step-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    /* Remove standard browser tap highlight color on mobile touch */
    .btn, .mobile-nav-item, .sentiment-tag, .choice-btn, .btn-level, .level-card, .btn-outline, .btn-secondary {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    /* Sub-screens layouts optimizations */
    .sub-screen-container {
        padding: 0.5rem 0;
    }

    .glass-card {
        padding: 1.25rem !important;
        margin: 1rem 0 !important;
    }

    /* Adjust lists and tags on mobile */
    .sentiments-grid {
        gap: 0.5rem;
    }
    
    .sentiment-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

.label-icon-svg, .chip-icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Objective Selector Grid & Cards */
.objective-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.objective-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.objective-card:hover {
    border-color: rgba(102, 252, 241, 0.4);
    background: rgba(102, 252, 241, 0.05);
}

.objective-card.active {
    border-color: var(--color-primary);
    background: rgba(102, 252, 241, 0.12);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.15);
}

.objective-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.objective-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.objective-info small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

/* Fact & Sentiment Interactive Editor */
.fact-edit-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem;
}

.fact-edit-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    box-sizing: border-box;
    font-family: inherit;
}

.fact-edit-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.sentiment-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sentiment-tag-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sentiment-tag-toggle.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* Voice Audio Input & Output Controls */
.input-with-mic-container {
    position: relative;
    display: block;
    width: 100%;
}

.btn-mic-input {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(102, 252, 241, 0.1);
    border: 1px solid rgba(102, 252, 241, 0.3);
    color: var(--color-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    font-size: 1rem;
}

.btn-mic-input:hover {
    background: rgba(102, 252, 241, 0.25);
    transform: scale(1.08);
}

.btn-mic-input.listening {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.8);
    color: #ef4444;
    animation: micPulse 1.2s infinite alternate;
}

@keyframes micPulse {
    from { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); transform: scale(1); }
    to { box-shadow: 0 0 16px rgba(239, 68, 68, 0.8); transform: scale(1.1); }
}

.btn-tts-speak {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(102, 252, 241, 0.08);
    border: 1px solid rgba(102, 252, 241, 0.3);
    color: var(--color-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-tts-speak:hover {
    background: rgba(102, 252, 241, 0.2);
}

.btn-tts-speak.speaking {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    animation: ttsPulse 1s infinite alternate;
}

@keyframes ttsPulse {
    from { opacity: 0.85; }
    to { opacity: 1; filter: brightness(1.2); }
}

/* MGI Text Box Styling */
.hqi-text-box-mgi {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--color-text);
    font-size: 0.93rem;
    line-height: 1.7;
    white-space: pre-line;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.05);
}

/* ==========================================================================
   PLAYER DE ÁUDIO FLUTUANTE (NARRADOR GUIADO)
   ========================================================================== */
.floating-player-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    z-index: 99999;
    background: rgba(9, 12, 21, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 212, 191, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(45, 212, 191, 0.25);
    border-radius: 20px;
    padding: 10px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .floating-player-bar {
        bottom: 75px;
        width: 92%;
    }
}

.player-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.player-icon {
    font-size: 1.2rem;
}

.player-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary, #2dd4bf);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.82rem;
}

.btn-player-action:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.5);
    color: #2dd4bf;
}

.btn-player-main {
    background: #2dd4bf;
    color: #090c15;
    border: none;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
}

.btn-player-main:hover {
    background: #14b8a6;
    color: #090c15;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.6);
}

.btn-player-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    padding: 4px 6px;
}

.btn-player-close:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.player-progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2dd4bf, #c084fc);
    transition: width 0.3s linear;
}

/* ==========================================================================
   F.A.Q & CENTRO DE CONHECIMENTO TEÓRICO (INNERMAP)
   ========================================================================== */
.faq-section {
    margin: 3.5rem auto 2rem auto;
    max-width: 780px;
    padding: 0 1rem;
    text-align: left;
}

.faq-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 0.5rem;
}

.faq-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(45, 212, 191, 0.04);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-header {
    width: 100%;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-header:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.faq-item.active .faq-body {
    max-height: 600px;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

/* Modal de Dúvidas Técnicas dentro do App */
.btn-theory-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-theory-trigger:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
}




