/* NEXUS PAY - Main Stylesheet */
/* Tema: Dark com acentos amarelos/dourados inspirado na Knuckles Pay */

:root {
    --primary: #f59e0b;
    --primary-light: #fbbf24;
    --primary-dark: #d97706;
    --primary-rgb: 245, 158, 11;
    --secondary: #fbbf24;
    --bg-main: #0a0a0a;
    --bg-card: #121212;
    --bg-sidebar: #0f0f0f;
    --bg-input: #1a1a1a;
    --border-color: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #f59e0b, #d97706);
    --sidebar-surface: rgba(255, 255, 255, 0.03);
    --sidebar-surface-strong: rgba(var(--primary-rgb), 0.12);
    --sidebar-hover: rgba(255, 255, 255, 0.055);
    --sidebar-submenu-bg: rgba(255, 255, 255, 0.022);
    --sidebar-submenu-border: rgba(var(--primary-rgb), 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* Layout Geral */
.sidebar {
    width: 260px;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.09), transparent 34%),
        linear-gradient(180deg, #101010 0%, #090909 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1001;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.35);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.main-content {
    margin-left: 260px;
    padding: 32px 48px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Header Dashboard */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 24px; justify-content: flex-end; overflow: visible; }

.meta-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    padding: 12px 16px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 12px;
}
.meta-text { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.meta-bar { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 10px; overflow: hidden; }
.meta-progress { height: 100%; background: var(--primary); width: 0%; border-radius: 10px; }

.notification-icon { font-size: 20px; color: var(--text-secondary); cursor: pointer; position: relative; transition: color 0.2s; }
.notification-icon:hover { color: var(--text-primary); }
.notification-badge { position: absolute; top: -8px; right: -8px; background: var(--primary); color: #000; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 50%; min-width: 20px; text-align: center; }

.profile-trigger { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #000; font-weight: 800; font-size: 16px; transition: transform 0.2s; }
.profile-trigger:hover .avatar { transform: scale(1.05); }

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.profile-trigger.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-dropdown-item:last-child { border-bottom: none; }
.profile-dropdown-item:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.profile-dropdown-item i { font-size: 18px; width: 20px; text-align: center; }

/* Sidebar Nav */
.sidebar-brand { padding: 0 20px 20px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.sidebar-brand h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.sidebar-top { justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 12px; }
.sidebar-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}
.sidebar-close:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); }
.sidebar-nav { list-style: none; flex: 1; overflow-y: auto; padding: 0 12px 18px; }
.sidebar-section { padding: 16px 24px 8px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav li { margin-bottom: 6px; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 16px;
    color: #d7d7d7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.22s ease;
    border-radius: 15px;
    border: 1px solid transparent;
    background: transparent;
}
.sidebar-nav li a i {
    margin-right: 0;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}
.sidebar-nav li a:hover {
    color: var(--text-primary);
    background: var(--sidebar-hover);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}
.sidebar-nav li a:hover i { color: rgba(255, 255, 255, 0.95); }
.sidebar-nav li a.active {
    color: #1a1204;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.3));
    border-color: rgba(var(--primary-rgb), 0.28);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(245, 158, 11, 0.12);
}
.sidebar-nav li a.active i { color: #1a1204; }

/* Submenu de Transferências */
.sidebar-nav__item-with-submenu { margin-bottom: 6px; }
.sidebar-nav__toggle {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: left;
}
.sidebar-nav__toggle i:first-child {
    margin-right: 0;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}
.sidebar-nav__toggle-icon { margin-left: auto; font-size: 10px; color: rgba(255, 255, 255, 0.55); transition: transform 0.22s ease, color 0.22s ease; }
.sidebar-nav__toggle[aria-expanded="true"] .sidebar-nav__toggle-icon { transform: rotate(180deg); }
.sidebar-nav__toggle:hover {
    color: var(--text-primary);
    background: var(--sidebar-hover);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}
.sidebar-nav__toggle:hover i:first-child,
.sidebar-nav__toggle:hover .sidebar-nav__toggle-icon { color: rgba(255, 255, 255, 0.95); }
.sidebar-nav__toggle.active,
.sidebar-nav__toggle[aria-expanded="true"] {
    color: #f6c56a;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.06));
    border-color: rgba(var(--primary-rgb), 0.18);
}
.sidebar-nav__toggle.active i:first-child,
.sidebar-nav__toggle[aria-expanded="true"] i:first-child,
.sidebar-nav__toggle.active .sidebar-nav__toggle-icon,
.sidebar-nav__toggle[aria-expanded="true"] .sidebar-nav__toggle-icon {
    color: #f6c56a;
}
.sidebar-nav__submenu {
    list-style: none;
    margin: 8px 0 4px;
    padding: 10px 0 6px 18px;
    overflow: hidden;
    transition: max-height 0.25s ease;
    max-height: 500px;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-nav__submenu[hidden] { display: none; }
.sidebar-nav__submenu li { margin-bottom: 0; }
.sidebar-nav__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0), rgba(var(--primary-rgb), 0.35), rgba(var(--primary-rgb), 0));
}
.sidebar-nav__submenu li a {
    position: relative;
    min-height: 42px;
    padding: 10px 14px 10px 18px;
    font-size: 13px;
    color: #b7b7b7;
    border-radius: 12px;
    background: transparent;
}
.sidebar-nav__submenu li a::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%);
    transition: all 0.22s ease;
}
.sidebar-nav__submenu li a i {
    margin-right: 0;
    font-size: 13px;
    width: 14px;
    color: rgba(255, 255, 255, 0.62);
}
.sidebar-nav__submenu li a:hover {
    color: var(--text-primary);
    background: var(--sidebar-submenu-bg);
    border-color: transparent;
    transform: translateX(2px);
}
.sidebar-nav__submenu li a:hover::before {
    background: rgba(var(--primary-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
.sidebar-nav__submenu li a.active {
    color: #f7d18a;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.04));
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    font-weight: 600;
}
.sidebar-nav__submenu li a.active::before {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}
.sidebar-nav__submenu li a.active i { color: #f7d18a; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); }

/* Landing Page Responsive */
.nav-container { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; }
.hero { padding: 100px 0 60px; text-align: left; position: relative; overflow: hidden; }
.hero-content { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero h1 { font-size: 56px; font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 500px; }

/* Cards & Components */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.balance-card { background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%); border: 1px solid var(--border-color); border-radius: 24px; padding: 40px; margin-bottom: 32px; position: relative; }
.balance-card .value { font-size: 48px; font-weight: 900; color: #fff; margin-bottom: 32px; }

/* Grid System */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--primary); color: #000; }
.btn-secondary { background: #1f1f1f; color: var(--text-primary); border: 1px solid #333; }
.btn-outline { background: transparent; border: 1px solid #333; color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Dashboard e Admin */
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.page-header p { color: var(--text-secondary); font-size: 14px; }

.balance-card .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.balance-card .footer {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(15, 15, 15, 0.98));
    border: 1px solid var(--border-color);
    border-top: 2px solid rgba(var(--primary-rgb), 0.9);
    border-radius: 22px;
    padding: 24px;
    min-height: 190px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 22px;
}

.stat-value {
    font-size: clamp(28px, 2vw, 40px);
    line-height: 1.1;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-word;
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.table th,
.table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table td {
    font-size: 14px;
    color: var(--text-primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-success { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
.badge-danger { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.badge-warning { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.badge-info { background: rgba(59, 130, 246, 0.14); color: #93c5fd; }


/* Auth Pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #050505; padding: 20px; }
.auth-card { background: #111; border: 1px solid #222; border-radius: 24px; padding: 48px; width: 100%; max-width: 480px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.auth-logo { text-align: center; margin-bottom: 40px; }
.auth-card h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-link { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 24px; }
.auth-link a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-control { width: 100%; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 10px; padding: 12px 16px; color: #fff; font-size: 14px; transition: all 0.2s; outline: none; }
.form-control:focus { border-color: var(--primary); background: #222; }

.alert { padding: 16px; border-radius: 12px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.2); }

/* Etapas do cadastro */
.status-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #181818;
    border: 1px solid #2a2a2a;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-step.active .step-dot,
.status-step.completed .step-dot {
    background: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--primary);
}

.status-step.completed .step-label,
.status-step.active .step-label {
    color: var(--text-primary);
}
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }

/* Chat */
.chat-room-card {
    display: flex;
    flex-direction: column;
    min-height: 720px;
}

.chat-room-card--wide {
    min-width: 0;
}

.chat-room-sidebar {
    position: sticky;
    top: 24px;
}

.chat-summary-list,
.chat-admin-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-summary-item,
.chat-admin-stats__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.chat-summary-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chat-inline-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.chat-inline-status--info {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.chat-inline-status--success {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.chat-inline-status--error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.chat-ban-banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
    font-size: 14px;
}

.chat-ban-banner[hidden] {
    display: none;
}

.chat-messages {
    flex: 1;
    min-height: 420px;
    max-height: 520px;
    overflow-y: auto;
    padding: 8px 4px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-messages--admin {
    max-height: 560px;
    margin-bottom: 20px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.chat-message--own {
    align-items: flex-end;
}

.chat-message__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: var(--text-secondary);
    font-size: 12px;
}

.chat-message__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-message__meta-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.chat-message__author span {
    color: var(--text-muted);
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.26), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.chat-avatar--sm {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.chat-avatar--xs {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.chat-message__bubble {
    max-width: min(100%, 720px);
    padding: 14px 16px;
    border-radius: 16px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chat-message--own .chat-message__bubble {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.24), rgba(var(--primary-rgb), 0.12));
    border-color: rgba(var(--primary-rgb), 0.28);
}

.chat-message--highlight .chat-message__bubble {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.22);
}

.chat-message__action {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chat-message__action:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    transform: translateY(-1px);
}

.chat-compose {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.chat-reply-preview {
    margin-bottom: 14px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-radius: 14px;
    border-left: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.chat-reply-preview[hidden] {
    display: none;
}

.chat-reply-preview__content {
    min-width: 0;
}

.chat-reply-preview__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.chat-reply-preview__content strong {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-reply-preview__content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-reply-preview__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
}

.chat-reply-chip {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border: 0;
    border-radius: 12px;
    border-left: 3px solid rgba(var(--primary-rgb), 0.9);
    background: rgba(255, 255, 255, 0.045);
    color: inherit;
    cursor: pointer;
}

.chat-reply-chip div {
    min-width: 0;
}

.chat-reply-chip strong,
.chat-reply-chip span {
    display: block;
}

.chat-reply-chip strong {
    color: var(--text-primary);
    font-size: 12px;
}

.chat-reply-chip span {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-compose__textarea {
    min-height: 120px;
    resize: vertical;
}

.chat-compose__footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

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

.chat-empty-state,
.chat-empty-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.chat-empty-state i {
    font-size: 32px;
    color: var(--primary);
}

.chat-online-counter {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.chat-online-counter strong {
    font-size: 36px;
    line-height: 1;
}

.chat-online-counter span {
    color: var(--text-secondary);
    font-size: 13px;
}

.chat-online-list,
.chat-admin-conversations,
.chat-ban-list,
.chat-admin-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-online-user,
.chat-admin-conversation,
.chat-ban-item,
.chat-admin-feed__item {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

.chat-online-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-online-user__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
    flex-shrink: 0;
}

.chat-online-user strong,
.chat-admin-conversation strong,
.chat-ban-item strong,
.chat-admin-feed__header strong {
    display: block;
    color: var(--text-primary);
}

.chat-online-user span,
.chat-admin-conversation span,
.chat-ban-item span,
.chat-admin-feed__header span {
    color: var(--text-secondary);
    font-size: 12px;
}

.chat-admin-conversation {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chat-admin-conversation:hover,
.chat-admin-conversation.is-active {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.24);
    background: rgba(var(--primary-rgb), 0.08);
}

.chat-admin-conversation small,
.chat-ban-item small,
.chat-admin-feed__header small {
    color: var(--text-muted);
    font-size: 11px;
}

.chat-ban-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-ban-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.chat-ban-item p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.chat-admin-feed {
    max-height: 720px;
    overflow-y: auto;
}

.chat-admin-feed__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-admin-feed__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.chat-admin-feed__body {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

/* Media Queries */
@media (max-width: 1024px) {
    body.sidebar-open { overflow: hidden; }
    .sidebar {
        width: min(280px, 82vw);
        transform: translateX(-100%);
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    .sidebar.active { transform: translateX(0); }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    .main-content { margin-left: 0; padding: 20px; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        font-size: 18px;
    }
    .sidebar-close { display: inline-flex; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { order: 1; }
    .hero-image { order: 2; width: 100%; justify-content: center; margin-top: 40px; }
    .hero h1 { font-size: 40px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .dash-header { gap: 16px; align-items: flex-start; flex-direction: column; }
    .header-right { width: 100%; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .balance-card { padding: 24px; }
    .balance-card .value { font-size: 36px; }
    .page-header h1 { font-size: 24px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .stat-card { min-height: auto; }
    .auth-card { padding: 32px 24px; }
    .status-steps { grid-template-columns: repeat(2, 1fr); }
    .chat-room-card { min-height: auto; }
    .chat-room-sidebar { position: static; }
    .chat-ban-item,
    .chat-admin-feed__header { flex-direction: column; }
}

@media (max-width: 640px) {
    .nav-container { padding: 16px; }
    .hero { padding: 64px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; margin-bottom: 28px; }
    .meta-container { width: 100%; }
    .balance-card .actions { flex-direction: column; }
    .balance-card .actions .btn { width: 100%; }
    .balance-card .footer { flex-direction: column; gap: 10px; }
    .nav-secondary-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: #0a0a0a;
        border-bottom: 1px solid #1f1f1f;
        padding: 8px 16px;
        z-index: 999;
        box-shadow: 0 16px 32px rgba(0,0,0,0.4);
    }
    .nav-secondary-links.mobile-open { display: flex !important; }
    .nav-secondary-links a { padding: 12px 4px; }
    .nav-links { gap: 8px !important; }
    .nav-links .btn { padding: 8px 14px !important; font-size: 13px !important; }
    .menu-toggle { display: inline-flex !important; }
    .sidebar-brand h2 { font-size: 18px; }
    .sidebar-nav li a { font-size: 15px; }
    .chat-compose__footer,
    .chat-message__meta,
    .chat-message__meta-right,
    .chat-reply-preview { flex-direction: column; align-items: flex-start; }
    .chat-message--own .chat-message__meta { align-items: flex-end; }
    .chat-message__bubble { max-width: 100%; }
}


/* Modal: Fale com seu Gerente */
body.gerente-modal-open {
    overflow: hidden;
}

.gerente-modal[hidden] {
    display: none;
}

.gerente-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.gerente-modal.is-open {
    opacity: 1;
}

.gerente-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.gerente-modal__content {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid rgba(126, 34, 206, 0.35);
    border-radius: 22px;
    background: linear-gradient(180deg, #11162d 0%, #0d1226 100%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.18s ease;
}

.gerente-modal.is-open .gerente-modal__content {
    transform: translateY(0) scale(1);
}

.gerente-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gerente-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.gerente-modal__heading {
    padding: 22px 48px 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gerente-modal__heading h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.gerente-modal__body {
    padding: 22px;
    text-align: center;
}

.gerente-modal__body h3 {
    margin: 0 0 18px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.gerente-modal__body p {
    display: none;
}

.gerente-modal__whatsapp {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #a61cff 0%, #7d2ae8 100%);
    box-shadow: none;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gerente-modal__whatsapp:hover {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.gerente-modal__whatsapp span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .gerente-modal {
        align-items: end;
        padding: 6px;
    }

    .gerente-modal__content {
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .gerente-modal__heading {
        padding: 18px 42px 14px 18px;
    }

    .gerente-modal__body {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gerente-modal,
    .gerente-modal__content,
    .gerente-modal__whatsapp,
    .gerente-modal__close {
        transition: none;
    }
}


/* Modal: Transferência Interna */
.internal-transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.internal-transfer-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.internal-transfer-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.internal-transfer-modal__content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}
.internal-transfer-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}
.internal-transfer-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.internal-transfer-modal__heading {
    padding: 22px 48px 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.internal-transfer-modal__heading h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}
.internal-transfer-modal__body {
    padding: 22px;
    flex: 1;
}

/* Form Styles */
.internal-transfer-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.input-with-prefix:focus-within {
    border-color: var(--primary);
}
.input-prefix {
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.input-with-prefix input {
    flex: 1;
    padding: 12px 12px;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}
.input-with-prefix input::placeholder {
    color: var(--text-muted);
}
.form-group textarea {
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* PIN Input Group */
.pin-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pin-input {
    width: 50px;
    height: 50px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}
.pin-input:focus {
    outline: none;
    border-color: var(--primary);
}
.pin-input::placeholder {
    color: var(--text-muted);
}

/* Button Styles */
.btn {
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.btn-block {
    width: 100%;
}

@media (max-width: 480px) {
    .internal-transfer-modal {
        align-items: flex-end;
        padding: 6px;
    }
    .internal-transfer-modal__content {
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
    }
    .internal-transfer-modal__heading {
        padding: 18px 42px 14px 18px;
    }
    .internal-transfer-modal__body {
        padding: 18px;
    }
    .pin-input-group {
        gap: 6px;
    }
    .pin-input {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .internal-transfer-modal,
    .internal-transfer-modal__content,
    .btn-primary,
    .internal-transfer-modal__close {
        transition: none;
    }
}

/* Estilos para Infrações e Retenções */
.infracoes-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.infracoes-tab {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
}

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

.infracoes-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.infracoes-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.infracoes-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.infracoes-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.infracoes-stat-card .label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.infracoes-stat-card .value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.infracoes-stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
}
