/* ========================================
   C. RANGEL — SISTEMA REATIVO
   styles.css v27
   Bioma Reativo 365
   Mobile simples + Hoje + Radar + Missões
======================================== */

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

/* ========================================
   RESET E VARIÁVEIS
======================================== */

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

:root {
    --primary: #d97706;
    --primary-light: #f59e0b;
    --primary-dark: #92400e;

    --danger: #dc2626;
    --danger-light: #ef4444;
    --danger-dark: #991b1b;

    --bg-black: #000000;
    --bg-deep: #030712;
    --bg-panel: #070b14;
    --bg-card: rgba(17, 24, 39, 0.64);
    --bg-card-hover: rgba(31, 41, 55, 0.72);

    --border: #1f2937;
    --border-soft: rgba(31, 41, 55, 0.75);
    --border-primary: rgba(217, 119, 6, 0.46);
    --border-danger: rgba(220, 38, 38, 0.42);

    --text-white: #ffffff;
    --text-strong: #e5e7eb;
    --text-normal: #d1d5db;
    --text-soft: #9ca3af;
    --text-muted: #6b7280;
    --text-dead: #4b5563;

    --shadow-primary: 0 18px 55px rgba(217, 119, 6, 0.13);
    --shadow-danger: 0 18px 55px rgba(220, 38, 38, 0.12);
    --shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.62);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --transition-fast: 0.18s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.55s ease;
}

/* ========================================
   BASE
======================================== */

html {
    scroll-behavior: smooth;
    background: var(--bg-black);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.06), transparent 32%),
        radial-gradient(circle at bottom right, rgba(127, 29, 29, 0.07), transparent 34%),
        var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    letter-spacing: 0.25px;
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

/* ========================================
   SCROLLBAR
======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* ========================================
   ANIMAÇÕES
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 18px rgba(217, 119, 6, 0.25);
        opacity: 0.75;
    }

    50% {
        box-shadow: 0 0 34px rgba(217, 119, 6, 0.55);
        opacity: 1;
    }
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.75s ease-out both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.55s ease-out both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ========================================
   LOADING
======================================== */

#loadingScreen {
    backdrop-filter: blur(10px);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#loadingScreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   AUTH
======================================== */

#authScreen,
#passwordResetScreen {
    background:
        radial-gradient(circle at top, rgba(217, 119, 6, 0.08), transparent 38%),
        radial-gradient(circle at bottom right, rgba(127, 29, 29, 0.10), transparent 40%),
        #000;
}

#authScreen input,
#passwordResetScreen input {
    width: 100%;
}

/* ========================================
   LAYOUT
======================================== */

.app-shell,
body > .flex.h-screen {
    min-height: 100vh;
}

#sidebar {
    min-width: 18rem;
}

.sidebar-premium {
    position: relative;
    z-index: 40;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.55);
}

.sidebar-premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(217, 119, 6, 0.38),
        transparent 45%,
        rgba(217, 119, 6, 0.12)
    );
}

main {
    min-width: 0;
}

/* ========================================
   NAVEGAÇÃO DESKTOP
======================================== */

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 8px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    text-decoration: none;
    transition:
        color var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal),
        transform var(--transition-normal),
        opacity var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.nav-item:hover {
    color: var(--text-white);
    background: rgba(217, 119, 6, 0.09);
    transform: translateX(2px);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(217, 119, 6, 0.14);
    border-left-color: var(--primary);
}

.nav-item .icon {
    font-size: 16px;
    opacity: 0.86;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item.active .icon {
    opacity: 1;
}

/* ========================================
   MOBILE HEADER E MENU
======================================== */

.mobile-header {
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.48);
}

.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    font-size: 24px;
    line-height: 1;
    color: var(--text-normal);
    background: rgba(3, 7, 18, 0.88);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition:
        color var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal);
}

.mobile-menu-button:hover {
    border-color: rgba(217, 119, 6, 0.75);
    color: var(--primary-light);
    background: rgba(217, 119, 6, 0.08);
}

.mobile-menu-panel {
    display: none;
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.99);
    border-top: 1px solid var(--border);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-menu-panel:not(.hidden) {
    display: grid;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    min-height: 52px;
    width: 100%;
    padding: 12px 14px;
    margin: 0;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(3, 7, 18, 0.94);
    color: var(--text-normal);
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;

    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;

    transition:
        background var(--transition-normal),
        border-color var(--transition-normal),
        color var(--transition-normal);
}

.mobile-nav-link:hover {
    background: rgba(217, 119, 6, 0.09);
    border-color: rgba(217, 119, 6, 0.42);
    color: var(--text-white);
}

.mobile-nav-link.active {
    background: rgba(120, 53, 15, 0.34);
    border-color: rgba(217, 119, 6, 0.85);
    color: var(--text-white);
}

.mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    min-width: 22px;

    color: var(--primary);
    font-size: 16px;
    line-height: 1;

    opacity: 1;
    visibility: visible;
}

.mobile-nav-text {
    display: inline-block;
    color: inherit;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    opacity: 1;
    visibility: visible;

    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    width: auto;
    height: auto;
    text-indent: 0;
}

.mobile-nav-link.active .mobile-nav-icon {
    color: var(--primary-light);
}

.mobile-nav-link.active .mobile-nav-text {
    color: var(--text-white);
}

/* ========================================
   SEÇÕES
======================================== */

.section-content {
    display: none;
    animation: fadeIn 0.55s ease-out both;
}

.section-content.active {
    display: block;
}

/* ========================================
   CARDS GERAIS
======================================== */

.card-premium,
.protocol-card,
.profile-card,
.level-card,
.today-dossier-card,
.index-card,
.mission-card,
.risk-card,
.radar-category-card,
.mission-list-card {
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.48), rgba(17, 24, 39, 0.24)),
        rgba(3, 7, 18, 0.50);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal),
        box-shadow var(--transition-normal);
}

.card-premium,
.protocol-card,
.profile-card,
.level-card,
.index-card,
.mission-card,
.risk-card,
.radar-category-card,
.mission-list-card {
    padding: 24px;
}

.today-dossier-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.today-dossier-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(127, 29, 29, 0.08), transparent 40%);
    pointer-events: none;
    opacity: 0.8;
}

.today-dossier-card > * {
    position: relative;
    z-index: 1;
}

.card-premium {
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.12), transparent);
    transition: left var(--transition-slow);
    z-index: 0;
}

.card-premium > * {
    position: relative;
    z-index: 1;
}

.card-premium:hover,
.protocol-card:hover,
.level-card:hover,
.today-dossier-card:hover,
.index-card:hover,
.mission-card:hover,
.risk-card:hover,
.radar-category-card:hover,
.mission-list-card:hover {
    border-color: var(--border-primary);
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.68), rgba(17, 24, 39, 0.44)),
        rgba(3, 7, 18, 0.74);
    box-shadow: var(--shadow-primary);
    transform: translateY(-4px);
}

.card-premium:hover::before {
    left: 120%;
}

.profile-card {
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.profile-card:hover {
    border-color: var(--border-danger);
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.68), rgba(17, 24, 39, 0.44)),
        rgba(3, 7, 18, 0.74);
    box-shadow: var(--shadow-danger);
    transform: translateY(-4px);
}

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

.level-card.active {
    border-color: var(--border-primary);
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.13), rgba(217, 119, 6, 0.045)),
        rgba(3, 7, 18, 0.65);
    box-shadow: 0 0 28px rgba(217, 119, 6, 0.13);
}

/* ========================================
   HOJE
======================================== */

.daily-number-box {
    min-width: 92px;
    height: 92px;
    border-radius: 18px;
    border: 1px solid rgba(217, 119, 6, 0.45);
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.daily-number-box strong {
    color: var(--primary-light);
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.command-box {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(217, 119, 6, 0.28);
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.10), rgba(0, 0, 0, 0.25)),
        rgba(0, 0, 0, 0.35);
}

.briefing-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(31, 41, 55, 0.95);
    background: rgba(0, 0, 0, 0.38);
    min-height: 150px;
}

.briefing-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.briefing-card p:last-child {
    color: var(--text-normal);
    font-size: 14px;
    line-height: 1.55;
}

.index-card {
    border-color: rgba(217, 119, 6, 0.30);
}

.mission-card {
    border-color: rgba(220, 38, 38, 0.30);
}

.risk-card {
    border-color: rgba(107, 114, 128, 0.32);
}

/* ========================================
   RADAR
======================================== */

.radar-category-card {
    position: relative;
    overflow: hidden;
}

.radar-category-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.06);
    pointer-events: none;
}

.radar-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition:
        border-color var(--transition-normal),
        background var(--transition-normal);
}

.radar-check-row:hover {
    border-color: rgba(217, 119, 6, 0.45);
    background: rgba(217, 119, 6, 0.06);
}

.radar-check-row input {
    margin-top: 4px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.radar-check-row span {
    color: var(--text-normal);
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   MISSÕES
======================================== */

.mission-list-card {
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.mission-list-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.10), transparent 35%);
    pointer-events: none;
}

/* ========================================
   ORÁCULO
======================================== */

.oracle-warning {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.16), rgba(0, 0, 0, 0.28)),
        rgba(3, 7, 18, 0.55);
}

/* ========================================
   BOTÕES
======================================== */

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal),
        color var(--transition-normal),
        opacity var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #b45309);
    color: #000;
    padding: 14px 32px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 14px;
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.27);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(217, 119, 6, 0.38);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border: 1px solid rgba(217, 119, 6, 0.88);
    font-size: 13px;
}

.btn-secondary:hover {
    color: #fbbf24;
    background: rgba(217, 119, 6, 0.10);
    border-color: var(--primary-light);
    box-shadow: 0 0 22px rgba(217, 119, 6, 0.18);
}

.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   FORMULÁRIOS
======================================== */

input,
textarea,
select {
    color: var(--text-white);
    background: rgba(3, 7, 18, 0.84);
    border: 1px solid var(--border);
    outline: none;
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--primary);
}

::placeholder {
    color: #4b5563;
}

/* ========================================
   MODAIS
======================================== */

.modal,
[data-system-modal="true"] {
    backdrop-filter: blur(7px);
}

[data-system-modal="true"] > div {
    box-shadow: var(--shadow-dark);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.94), rgba(17, 24, 39, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 620px;
    width: 92%;
    max-height: 82vh;
    overflow-y: auto;
    animation: fadeIn 0.35s ease-out both;
    box-shadow: var(--shadow-dark);
}

/* ========================================
   NOTIFICAÇÕES
======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(217, 119, 6, 0.95);
    color: #000;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    animation: slideDown 0.4s ease-out;
    backdrop-filter: blur(10px);
    max-width: 360px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38);
}

/* ========================================
   TIPOGRAFIA
======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    letter-spacing: 0.35px;
}

h2 {
    line-height: 1.18;
}

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

/* ========================================
   UTILITÁRIOS E COMPATIBILIDADE
======================================== */

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gray-800 {
    border-color: var(--border);
}

.bg-gray-950 {
    background-color: #030712;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-black {
    background-color: var(--bg-black);
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-amber-600 {
    color: var(--primary);
}

.text-red-600 {
    color: var(--danger);
}

.hidden {
    display: none;
}

/* ========================================
   ESTADOS DINÂMICOS
======================================== */

[data-progress-bar],
.progress-bar {
    transition: width 0.45s ease;
}

[data-action="protocol"]:disabled {
    color: var(--text-muted);
    border-color: #374151;
}

.plan-locked {
    position: relative;
    filter: grayscale(0.35);
}

.plan-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.10), rgba(127, 29, 29, 0.12));
}

.plan-lock-badge {
    display: inline-block;
    margin-left: auto;
    color: var(--danger-light);
}

/* ========================================
   TABELAS ADMIN
======================================== */

table {
    border-collapse: collapse;
}

th,
td {
    vertical-align: middle;
}

.admin-plan-select {
    min-width: 110px;
}

/* ========================================
   LOGOUT
======================================== */

.logout-button {
    position: fixed;
}

/* ========================================
   RESPONSIVO DESKTOP MENOR
======================================== */

@media (max-width: 1279px) {
    #sidebar {
        width: 16rem;
        min-width: 16rem;
    }
}

/* ========================================
   MOBILE E TABLET
======================================== */

@media (max-width: 1023px) {
    body {
        background:
            radial-gradient(circle at top, rgba(217, 119, 6, 0.07), transparent 32%),
            var(--bg-black);
    }

    .app-shell,
    body > .flex.h-screen {
        height: auto;
        min-height: 100vh;
        display: block;
    }

    #sidebar {
        display: none;
    }

    main {
        width: 100%;
        min-height: 100vh;
        padding-top: 64px;
    }

    .mobile-header {
        z-index: 9998;
    }

    .section-content {
        padding: 28px 20px 96px !important;
    }

    h2,
    .text-4xl {
        font-size: 2rem !important;
    }

    .text-5xl,
    .md\:text-7xl,
    .md\:text-6xl {
        font-size: 2.55rem !important;
        line-height: 1.12 !important;
    }

    .grid {
        gap: 18px;
    }

    .card-premium,
    .protocol-card,
    .profile-card,
    .level-card,
    .today-dossier-card,
    .index-card,
    .mission-card,
    .risk-card,
    .radar-category-card,
    .mission-list-card {
        padding: 20px;
    }

    .daily-number-box {
        width: 86px;
        height: 86px;
    }

    .daily-number-box strong {
        font-size: 30px;
    }

    .briefing-card {
        min-height: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    [data-system-modal="true"] {
        padding: 16px;
    }

    [data-system-modal="true"] > div,
    .modal-content {
        padding: 24px;
        max-height: 84vh;
    }

    .notification {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }

    #logoutButton,
    .logout-button {
        top: auto !important;
        right: 16px !important;
        bottom: 18px !important;
        z-index: 9999 !important;
        padding: 10px 18px !important;
        font-size: 12px !important;
        border-radius: 999px !important;
        background: rgba(0, 0, 0, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        width: auto !important;
    }

    #mobileMenuButton,
    .mobile-menu-button {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 10000 !important;
    }
}

/* ========================================
   MOBILE PEQUENO
======================================== */

@media (max-width: 480px) {
    .section-content {
        padding: 22px 16px 92px !important;
    }

    .text-5xl,
    .md\:text-7xl,
    .md\:text-6xl {
        font-size: 2.15rem !important;
    }

    h2,
    .text-4xl {
        font-size: 1.75rem !important;
    }

    .text-3xl {
        font-size: 1.55rem !important;
    }

    .text-2xl {
        font-size: 1.35rem !important;
    }

    .card-premium,
    .protocol-card,
    .profile-card,
    .level-card,
    .today-dossier-card,
    .index-card,
    .mission-card,
    .risk-card,
    .radar-category-card,
    .mission-list-card {
        padding: 18px;
    }

    .mobile-menu-panel {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .mobile-nav-link {
        min-height: 48px;
        font-size: 13px;
    }

    .command-box {
        padding: 18px;
    }

    .daily-number-box {
        width: 78px;
        height: 78px;
    }

    .daily-number-box strong {
        font-size: 26px;
    }
}

/* ========================================
   ACESSIBILIDADE
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body,
    .section-content,
    .card-premium,
    .protocol-card,
    .profile-card,
    .level-card,
    .today-dossier-card,
    .index-card,
    .mission-card,
    .risk-card,
    .radar-category-card,
    .mission-list-card,
    .nav-item,
    .mobile-nav-link,
    .btn-primary,
    .btn-secondary,
    #loadingScreen,
    .notification {
        animation: none;
        transition: none;
    }
}

/* ========================================
   UPGRADE INTERNO
======================================== */

.upgrade-hero {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.13), transparent 38%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(3, 7, 18, 0.72));
    overflow: hidden;
}

.upgrade-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.09);
    pointer-events: none;
}

.upgrade-status-card,
.upgrade-comparison,
.upgrade-plan-card {
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.52), rgba(17, 24, 39, 0.28)),
        rgba(3, 7, 18, 0.58);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal);
}

.upgrade-status-card:hover,
.upgrade-comparison:hover,
.upgrade-plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-primary);
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.72), rgba(17, 24, 39, 0.44)),
        rgba(3, 7, 18, 0.82);
}

.upgrade-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.upgrade-lock-list {
    display: grid;
    gap: 12px;
}

.upgrade-lock-list div {
    padding: 14px 16px;
    border: 1px solid rgba(31, 41, 55, 0.92);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.32);
}

.upgrade-lock-list span {
    display: block;
    color: var(--primary);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.upgrade-lock-list strong {
    display: block;
    color: var(--text-normal);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.upgrade-plan-card {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.upgrade-plan-card.featured {
    border-color: rgba(220, 38, 38, 0.42);
    box-shadow: 0 18px 55px rgba(220, 38, 38, 0.10);
}

.upgrade-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.42);
    color: #ef4444;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.upgrade-feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0 0 28px 0;
    padding: 0;
    flex: 1;
}

.upgrade-feature-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-normal);
    font-size: 14px;
    line-height: 1.45;
}

.upgrade-feature-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 11px;
}

@media (max-width: 1023px) {
    .upgrade-comparison {
        grid-template-columns: 1fr;
    }

    .upgrade-plan-card {
        min-height: auto;
    }

    .upgrade-hero {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .upgrade-status-card,
    .upgrade-comparison,
    .upgrade-plan-card,
    .upgrade-hero {
        padding: 18px;
    }

    .upgrade-badge {
        position: static;
        display: inline-block;
        margin-bottom: 18px;
    }
}

/* ========================================
   BIOMA REATIVO 365 — FASE 1 v33
   Tela Hoje como centro da transformação
======================================== */

.today-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.today-hero-copy {
    padding: 28px;
    border: 1px solid rgba(31, 41, 55, 0.72);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.10), transparent 38%),
        rgba(3, 7, 18, 0.56);
}

.today-journey-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(217, 119, 6, 0.36);
    background: rgba(217, 119, 6, 0.08);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.today-hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.32);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.09), rgba(0, 0, 0, 0.18)),
        rgba(3, 7, 18, 0.78);
    box-shadow: var(--shadow-primary);
}

.today-hero-panel > div {
    min-height: 112px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 55, 0.84);
    background: rgba(0, 0, 0, 0.34);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.today-hero-panel span {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.today-hero-panel strong {
    color: var(--text-white);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 300;
    line-height: 1.05;
}

.milestone-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(217, 119, 6, 0.30);
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 42%),
        rgba(3, 7, 18, 0.58);
}

@media (max-width: 1024px) {
    .today-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .today-hero-copy,
    .today-hero-panel {
        padding: 18px;
    }

    .today-hero-panel {
        grid-template-columns: 1fr;
    }

    .today-hero-panel > div {
        min-height: 88px;
    }
}


/* V34 Jornada 365 */
.today-journey-label{font-size:16px;font-weight:800}
.today-hero-panel{border:2px solid rgba(217,119,6,.45)}
.today-dossier-card{box-shadow:0 20px 60px rgba(0,0,0,.35)}
.word-safe,.briefing-card,.mission-card,.risk-card{overflow-wrap:break-word;word-break:break-word}
.next-evolution-card{
padding:24px;border-radius:20px;
border:1px solid rgba(217,119,6,.35);
background:linear-gradient(135deg,rgba(217,119,6,.12),rgba(0,0,0,.2));
}


/* V36 HERO REFINEMENT */
.today-hero-copy{
  border:1px solid rgba(217,119,6,.28)!important;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.today-journey-label{
  font-size:14px!important;
  font-weight:800!important;
}
.today-dossier-card{
  overflow:hidden;
}
.briefing-card,
.command-box,
.mission-card,
.risk-card{
  overflow-wrap:break-word;
  word-break:break-word;
}
@media(max-width:768px){
  .today-hero-panel{
    grid-template-columns:1fr!important;
  }
}


/* V37 */
.today-hero-copy::after{
content:'NÍVEL: OBSERVADOR • Faltam 19 pontos para Investigador';
display:block;
margin-top:14px;
color:#f59e0b;
font-weight:700;
font-size:14px;
}
.index-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
}
.progress-365{
height:10px;
border-radius:999px;
background:#1f2937;
overflow:hidden;
margin-top:12px;
}
.progress-365::before{
content:'';
display:block;
width:1.4%;
height:100%;
background:#f59e0b;
}
@media(max-width:768px){
.stat-grid,.hero-stats,.top-stats{
grid-template-columns:repeat(2,1fr)!important;
}
}


/* V38 MOBILE-FIRST */
@media(max-width:768px){

.today-hero-copy{
padding:20px!important;
min-height:auto!important;
}

.today-hero-copy h1,
.today-hero-copy h2{
font-size:56px!important;
line-height:1!important;
margin-bottom:12px!important;
}

.hero-stats,
.top-stats,
.stats-grid{
display:grid!important;
grid-template-columns:1fr 1fr!important;
gap:10px!important;
}

.index-card,
.stat-card{
min-height:120px!important;
padding:18px!important;
}

.sidebar-toggle{
position:fixed!important;
right:16px!important;
top:92px!important;
z-index:9999!important;
}

}

.progress-journey-v38{
height:12px;
background:#1f2937;
border-radius:999px;
overflow:hidden;
margin-top:14px;
}
.progress-journey-v38:before{
content:'';
display:block;
height:100%;
width:1.4%;
background:#f59e0b;
}

.next-level-banner{
margin-top:16px;
padding:14px 18px;
border-radius:14px;
background:rgba(245,158,11,.08);
border:1px solid rgba(245,158,11,.25);
color:#f59e0b;
font-weight:700;
}


/* V39 */
.today-hero-copy h2{
font-size:clamp(42px,6vw,84px)!important;
font-weight:800!important;
}
.today-journey-label{
background:rgba(245,158,11,.12);
border:1px solid rgba(245,158,11,.25);
padding:10px 14px;
border-radius:14px;
display:inline-block;
font-weight:700;
}
.today-hero-panel{
display:grid!important;
grid-template-columns:repeat(2,1fr)!important;
gap:12px!important;
}
.daily-number-box{
min-width:90px!important;
height:auto!important;
padding:12px!important;
border-radius:14px!important;
}
.daily-number-box strong{
font-size:32px!important;
}
@media(max-width:768px){
.today-hero-panel{
grid-template-columns:1fr 1fr!important;
}
.today-hero{
margin-bottom:20px!important;
}
.today-hero-copy p:last-of-type{
font-size:14px!important;
}
}
