/* Módulo técnico TekPrax: estilos globais, responsividade e componentes visuais. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    z-index: 1;
}

main {
    flex: 1 0 auto;
}

.nowrap {
    white-space: nowrap;
}

.empty-state {
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 65px;
    min-height: 65px;
    flex-shrink: 0;
    background: #0a2540;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-brand {
    color: #0ea5e9;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-desktop-elements {
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
}

.desktop-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.desktop-nav-link.active-link {
    color: #0ea5e9;
    font-weight: bold;
}

.nav-icon-wrapper {
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-wrapper:hover {
    transform: scale(1.1);
}

.nav-badge {
    display: none;
    position: absolute;
    top: -5px;
    right: -8px;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-green {
    background: #10b981;
}

.badge-blue {
    background: #0ea5e9;
}

.badge-red {
    background: #ef4444;
}

.nav-mobile-elements {
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 15px;
    top: 60px;
    background: white;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.dropdown-content.show {
    display: flex;
}

.mobile-nav-link {
    padding: 15px 20px;
    text-decoration: none;
    color: #0f172a;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link:hover {
    background: #f8fafc;
    color: #0ea5e9;
}

.split-layout {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh;
}

.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #0a2540 0%, #154c79 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.brand-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.brand-header h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin: 0;
}

.brand-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 450px;
    opacity: 0.9;
    margin: 0 auto;
}

.atom-logo {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

.atom-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.atom-orbit::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px white;
}

.orbit-1 {
    transform: rotateZ(45deg) rotateX(70deg);
    animation: spinOrbit1 3s linear infinite;
}

.orbit-2 {
    transform: rotateZ(-45deg) rotateX(70deg);
    animation: spinOrbit2 3s linear infinite;
}

.atom-nucleus {
    width: 17px;
    height: 17px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d4ff;
    z-index: 10;
}

@keyframes spinOrbit1 {
    0% {
        transform: rotateZ(45deg) rotateX(70deg) rotateZ(0deg);
    }

    100% {
        transform: rotateZ(45deg) rotateX(70deg) rotateZ(360deg);
    }
}

@keyframes spinOrbit2 {
    0% {
        transform: rotateZ(-45deg) rotateX(70deg) rotateZ(0deg);
    }

    100% {
        transform: rotateZ(-45deg) rotateX(70deg) rotateZ(360deg);
    }
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tabs button {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.3s;
}

.tabs button.active {
    color: #0a2540;
    border-bottom: 3px solid #0ea5e9;
}

form h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

form p {
    color: #64748b;
    margin-bottom: 2rem;
}

.active-form {
    display: block;
}

.hidden-form {
    display: none;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
    background: white;
    color: #0f172a;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 12px 20px;
    background-color: #0a2540;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #154c79;
}

.btn-primary:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: #0a2540;
    border: 1px solid #cbd5e1;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #f1f5f9;
}

.btn-outline,
.btn-primary {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 100 !important;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
    color: #334155;
}

.btn-icon:hover {
    transform: rotate(90deg);
}

.form-msg {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.msg-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.msg-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.feed-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1 0 auto;
    width: 100%;
}

.main-wrapper {
    display: flex;
    flex: 1 0 auto;
    max-width: 1300px;
    margin: 20px auto;
    width: 100%;
    gap: 20px;
    padding: 0 20px;
}

.left-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.sidebar-menu {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.sidebar-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.sidebar-menu-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.sidebar-menu-item.active {
    background: #e0f2fe;
    color: #0369a1;
    border-left-color: #0284c7;
}

.sidebar-badge {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #64748b;
}

.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.feed-header-flex h2 {
    color: #0f172a;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.search-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.calendar-widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: #0f172a;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-day {
    padding: 5px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.calendar-day:hover {
    background: #f1f5f9;
}

.calendar-day.today {
    border: 1px solid #0ea5e9;
    font-weight: bold;
    color: #0284c7;
}

.calendar-day.has-event {
    position: relative;
    font-weight: bold;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #10b981;
}

.calendar-day.event-urgent::after {
    background: #f59e0b;
}

.calendar-day.event-overdue::after {
    background: #ef4444;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    align-items: stretch;
}

.projeto-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.card-title-clamp {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.35 !important;
    min-height: calc(1.35em * 3);
    max-height: calc(1.35em * 3);
    overflow-wrap: anywhere;
    flex: 1;
}

.projeto-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.card-actions-slot,
.card-actions-bottom {
    margin-top: auto !important;
}

.projeto-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-client-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-client-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.card-status-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    margin-right: 25px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.projeto-card h3 {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
    cursor: pointer;
    transition: 0.2s;
}

.projeto-card h3:hover {
    color: #0284c7;
}

.proj-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.card-btn-group {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.btn-icon-action {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
}

.btn-icon-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-icon-action.favorite.active {
    color: #f59e0b;
    background: #fef3c7;
    border-color: #fde047;
}

.btn-quick-chat {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.wallet-hero {
    background: linear-gradient(135deg, #0a2540 0%, #154c79 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.2);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.wallet-hero::after {
    content: '🪙';
    position: absolute;
    font-size: 15rem;
    right: -20px;
    bottom: -50px;
    opacity: 0.05;
    pointer-events: none;
}

.wallet-hero-brl {
    background: linear-gradient(135deg, #064e3b 0%, #166534 100%);
}

.wallet-hero-brl::after {
    content: '💵';
}

.wallet-hero-gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.frozen-funds-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.package-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.package-popular {
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.package-ilimitado {
    border: 2px solid #10b981;
    background: #ecfdf5;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-item:hover {
    background: #f8fafc;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tx-in {
    background: #dcfce7;
    color: #166534;
}

.tx-out {
    background: #fee2e2;
    color: #991b1b;
}

.tx-sys {
    background: #e0f2fe;
    color: #0369a1;
}

.tx-warn {
    background: #fef3c7;
    color: #b45309;
}

.admin-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.config-item {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 15px;
    border-radius: 8px;
}

.config-item label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #475569;
    display: block;
    margin-bottom: 5px;
}

.pagination-btn {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 12px 12px;
    color: #0ea5e9;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.pagination-btn:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.admin-tab-btn {
    flex: 1 1 auto;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    background: #e2e8f0;
}

.admin-tab-btn.active {
    background: #0a2540;
    color: white;
    border-color: #0a2540;
}

.admin-tab-content {
    display: none;
}

.master-tab {
    display: none;
}

.section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0a2540;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.notif-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notif-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.notif-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.notif-unread {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
}

.notif-read {
    border-left: 4px solid transparent;
    opacity: 0.85;
}

.notif-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.notif-msg {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.notif-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.notif-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-mark-read {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: bold;
}

.btn-mark-read:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-delete {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

.notif-card:hover .btn-delete {
    opacity: 1;
}

.tabs-notif {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    color: #64748b;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #0ea5e9;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0ea5e9;
    border-radius: 3px 3px 0 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modern-viewer-overlay.active {
    display: flex;
}

.viewer-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 100001;
}

.viewer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.viewer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.viewer-btn.close {
    background: #ef4444;
    border-color: #f87171;
}

.viewer-content-area {
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.viewer-content-area img,
.viewer-content-area iframe {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    cursor: grab;
}

.viewer-content-area img:active {
    cursor: grabbing;
}

.btn-floating-support {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background-color: #0ea5e9 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 65px !important;
    height: 65px !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    touch-action: none !important;
    transition: background-color 0.2s !important;
}

.btn-floating-support:hover {
    background-color: #0284c7 !important;
}

.btn-floating-support:active {
    cursor: grabbing !important;
    background-color: #0369a1 !important;
}

.btn-floating-support svg {
    transition: transform 0.2s;
}

.btn-floating-support:hover svg {
    transform: scale(1.15);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 5%;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.chat-layout {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 20px;
    align-items: stretch;
    padding-bottom: 20px;
}

.chat-sidebar {
    width: 350px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.chat-tabs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.chat-tab-btn {
    flex: 1;
    padding: 10px 4px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.chat-tab-btn.active {
    background: #0a2540;
    color: white;
    border-color: #0a2540;
}

.chat-box {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chat-input-area {
    display: flex !important;
    align-items: flex-end;
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 999;
}

.msg-balao {
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    max-width: 80%;
    word-break: break-word;
    line-height: 1.4;
    font-size: 0.95rem;
    position: relative;
}

.msg-enviada {
    background: #0ea5e9;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.msg-recebida {
    background: #f1f5f9;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #e2e8f0;
}

.msg-censurada {
    background: #fef2f2;
    color: #991b1b;
    border: 1px dashed #fca5a5;
    font-style: italic;
}

.msg-meta {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.8;
    text-align: right;
}

.btn-icon-send {
    display: none !important;
}

.btn-text {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.file-drop-zone {
    transition: all 0.2s ease;
    position: relative;
}

.drag-active {
    border: 2px dashed #0ea5e9 !important;
    background-color: #f0f9ff !important;
    transform: scale(1.02);
    border-radius: 8px;
    padding-bottom: 10px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
}

.chat-box .drag-active::after {
    content: 'Solte o arquivo aqui para inspecionar...';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 249, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0ea5e9;
    font-weight: bold;
    z-index: 9999;
    border-radius: inherit;
    pointer-events: none;
}

.drag-active * {
    pointer-events: none;
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #0f172a;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
        min-height: 60px;
    }

    .nav-desktop-elements {
        display: none !important;
    }

    .nav-mobile-elements {
        display: flex;
        align-items: center;
        position: relative;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        color: white;
    }

    .dropdown-content {
        position: fixed;
        top: 60px;
        right: 15px;
        width: 260px;
    }

    #btn-logout-mobile {
        color: #ef4444 !important;
        text-align: center;
        justify-content: center;
    }

    .split-layout {
        flex-direction: column;
    }

    .brand-section {
        padding: 4rem 2rem;
    }

    .brand-header {
        flex-direction: column;
        gap: 10px;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .left-sidebar {
        width: 100%;
        display: none;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    .feed-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .feed-header-flex .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .projeto-card {
        display: flex;
    }

    .projeto-card h3 {
        margin-top: 15px;
        padding-right: 0;
    }

    .chat-container {
        padding: 0 !important;
    }

    .chat-layout {
        gap: 0 !important;
        padding-bottom: 0 !important;
    }

    .chat-sidebar {
        width: 100% !important;
        border-radius: 0 !important;
        border-top: none;
    }

    .chat-sidebar.hidden-mobile {
        display: none !important;
    }

    .chat-box {
        border-radius: 0 !important;
        border-top: none;
        display: none !important;
    }

    .chat-box.active-mobile {
        display: flex !important;
    }

    .btn-icon-send {
        display: flex !important;
    }

    .btn-text {
        display: none !important;
    }

    .site-footer {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .public-navbar {
        height: auto !important;
        min-height: 64px !important;
        padding: 9px 12px !important;
        gap: 10px;
    }

    .public-navbar .nav-brand {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .public-navbar-actions {
        gap: 6px !important;
    }

    .public-navbar-help {
        order: 3;
        flex-basis: 100%;
        text-align: right;
        padding: 2px 3px !important;
        font-size: .76rem !important;
    }

    .public-navbar-login,
    .public-navbar-signup {
        width: auto !important;
        min-height: 36px;
        padding: 7px 10px !important;
        font-size: .78rem;
        white-space: nowrap;
    }

    .wallet-hero {
        padding: 25px 15px !important;
    }
}

.public-navbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-navbar-help {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    padding: 8px 6px;
}

.public-navbar-help:hover { color: #fff; }
.public-navbar-login { width: auto; border-color: rgba(255,255,255,.3); color: #fff; padding: 8px 15px; }
.public-navbar-signup { width: auto; background: #10b981; border: 0; padding: 8px 15px; }

@keyframes tekpraxUrgentePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .16); }
    50% { box-shadow: 0 0 0 7px rgba(239, 68, 68, .08); }
}

.notificacao-urgente-sla {
    animation: tekpraxUrgentePulse 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .notificacao-urgente-sla { animation: none; }
}

.nav-badge {
    min-width: 18px !important;
    width: auto !important;
    height: 18px !important;
    padding: 0 5px !important;
    line-height: 18px !important;
    border-radius: 999px !important;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

#btn-alterar-foto-1.btn-icon {
    transition: transform .18s ease, box-shadow .18s ease !important;
}

#btn-alterar-foto-1.btn-icon:hover {
    transform: scale(1.10) !important;
    box-shadow: 0 4px 10px rgba(14, 165, 233, .30);
}


/* Auth TekPrax: painel de marca fixo e rolagem exclusiva no formulário. */
.auth-layout {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.auth-layout .brand-section {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    height: 100vh;
    min-height: 100vh;
    align-self: flex-start;
    overflow: hidden;
}

.auth-layout .form-section {
    flex: 0 0 50%;
    width: 50%;
    height: 100vh;
    min-height: 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 2rem;
}

.auth-layout .form-container {
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 4rem) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* O rodapé não cria rolagem global na autenticação; termos e contato seguem disponíveis na interface. */
.auth-layout ~ .site-footer {
    display: none;
}

@media (max-width: 900px) {
    .auth-layout {
        flex-direction: column;
    }

    .auth-layout .brand-section {
        flex: 0 0 30vh;
        width: 100%;
        height: 30vh;
        min-height: 205px;
        padding: 1.4rem 1.5rem;
        justify-content: center;
    }

    .auth-layout .brand-header {
        flex-direction: row;
        gap: 14px;
        margin-bottom: 12px;
    }

    .auth-layout .brand-header h1 {
        font-size: clamp(2.6rem, 9vw, 3.6rem);
    }

    .auth-layout .atom-logo {
        width: 62px;
        height: 62px;
    }

    .auth-layout .brand-section p {
        font-size: 1rem;
    }

    .auth-layout .form-section {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0 1.25rem;
    }

    .auth-layout .form-container {
        padding: 1.75rem 0 2.5rem;
    }
}

@media (max-width: 480px) {
    .auth-layout .brand-section {
        flex-basis: 26vh;
        height: 26vh;
        min-height: 176px;
    }

    .auth-layout .brand-header h1 {
        font-size: 2.55rem;
    }

    .auth-layout .atom-logo {
        width: 54px;
        height: 54px;
    }

    .auth-layout .brand-section p {
        font-size: .92rem;
    }
}
