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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-50);
    min-height: 100vh;
    color: var(--gray-800);
}

/* ===== ANIMACOES GLOBAIS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}

.animate-delay-7 {
    animation-delay: 0.7s;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
    opacity: 0.6;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
    opacity: 0.4;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.login-header h1 {
    font-size: 22px;
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    padding-left: 52px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    background: var(--gray-50);
    color: var(--gray-800);
}

.input-group::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.input-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.input-group input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

/* ===== BARRA SAQUE PENDENTE ===== */
.saque-pendente-bar {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.saque-pendente-bar svg {
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

.saque-pendente-bar strong {
    font-weight: 700;
    font-size: 16px;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== PAINEL PAGE ===== */
.painel-page {
    background: var(--gray-50);
}

.painel-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    padding-bottom: 100px;
}

/* Header */
.painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.header-logo-icon:hover {
    transform: scale(1.05);
}

.header-logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.header-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
}

.header-logo-text span {
    color: var(--primary);
}

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

.avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.user-details h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.user-code {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.btn-logout {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-light);
    transform: scale(1.05);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botao de Notificacoes */
.btn-notificacoes {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.3s ease;
    position: relative;
}

.btn-notificacoes:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-50);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: pulse-badge 2s infinite;
}

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

/* Dropdown de Notificacoes */
.notificacoes-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 400px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: none;
    margin-top: 10px;
}

.notificacoes-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.notif-dropdown-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.btn-marcar-lidas {
    font-size: 12px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-marcar-lidas:hover {
    text-decoration: underline;
}

.notif-dropdown-lista {
    max-height: 320px;
    overflow-y: auto;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

.notif-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-50);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notif-dropdown-item:hover {
    background: var(--gray-50);
}

.notif-dropdown-item.lida {
    opacity: 0.6;
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item-icon.normal {
    background: var(--primary-50);
    color: var(--primary);
}

.notif-item-icon.aviso {
    background: var(--warning-light);
    color: #b45309;
}

.notif-item-icon.alerta {
    background: var(--danger-light);
    color: var(--danger);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-content .notif-item-titulo {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.notif-item-content .notif-item-mensagem {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-content .notif-item-data {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 6px;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Painel Header position relative para dropdown */
.painel-header {
    position: relative;
}

/* ===== NAVEGACAO POR ABAS ===== */
.tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--white);
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    justify-content: space-between;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px;
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-500);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tab-btn span {
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.tab-btn.active svg {
    transform: scale(1.1);
}

/* ===== CONTEUDO DAS ABAS ===== */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

/* Welcome Card */
.welcome-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.welcome-text h3 {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 4px;
}

.welcome-text p {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.welcome-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-icon:hover {
    background: var(--primary-100);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.welcome-icon:active {
    transform: scale(0.98);
}

/* Saldo Total Card */
.saldo-total-card {
    background: var(--white);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.saldo-total-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.saldo-total-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saldo-total-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.saldo-total-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.saldo-total-info span {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.saldo-total-info strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

/* Saldo Card */
.saldo-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 28px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.saldo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.saldo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.saldo-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.saldo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.saldo-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.saldo-label svg {
    opacity: 0.8;
}

.badge-atualizado {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.saldo-valor {
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.saldo-valor .moeda {
    font-size: 22px;
    font-weight: 600;
    vertical-align: top;
    margin-right: 4px;
    opacity: 0.9;
}

.saldo-valor .valor {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.stats-row {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.stat-box:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon.entrada-icon {
    background: rgba(16, 185, 129, 0.3);
}

.stat-icon.saque-icon {
    background: rgba(239, 68, 68, 0.3);
}

.stat-icon.lucro-icon {
    background: rgba(245, 158, 11, 0.3);
}

.stat-value {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Botoes Acoes */
.btns-acoes {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-saque,
.btn-deposito {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.btn-saque {
    color: var(--primary);
}

.btn-deposito {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border-color: var(--success);
}

.btn-saque:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-deposito:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-saque:active,
.btn-deposito:active {
    transform: translateY(0);
}

.btn-saque svg,
.btn-deposito svg {
    transition: all 0.3s ease;
}

.btn-saque:hover svg,
.btn-deposito:hover svg {
    transform: translateY(-2px);
}

/* Historico */
.historico-section {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.historico-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
}

.historico-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
    flex: 0 0 auto;
}

.historico-title span {
    white-space: nowrap;
}

.historico-title svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.historico-count {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-50);
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex: 0 0 auto;
}

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

.historico-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.historico-vazio svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.historico-vazio p {
    font-size: 14px;
    font-weight: 500;
}

.historico-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    animation: slideUp 0.4s ease-out forwards;
    opacity: 0;
}

.historico-item:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.historico-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.historico-icon svg {
    width: 20px;
    height: 20px;
}

.historico-item:hover .historico-icon {
    transform: scale(1.08);
}

.historico-icon.lucro {
    background: var(--warning-light);
    color: var(--warning);
}

.historico-icon.entrada {
    background: var(--success-light);
    color: var(--success);
}

.historico-icon.saque {
    background: var(--danger-light);
    color: var(--danger);
}

.historico-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.historico-tipo {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.historico-desc {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.historico-valores {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.historico-valor {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.historico-valor.positivo {
    color: var(--success);
}

.historico-valor.negativo {
    color: var(--danger);
}

.historico-data {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
}

/* Status Pendente */
.historico-item.pendente {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    position: relative;
    overflow: hidden;
}

.historico-item.pendente::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--warning);
}

.historico-item.pendente .historico-icon {
    background: #fef3c7;
    color: var(--warning);
}

.historico-tipo-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.pendente {
    background: var(--warning);
    color: white;
    animation: pulse 2s infinite;
}

.historico-item.pendente .historico-valor {
    color: var(--warning);
}

/* ===== PAGINA DE MANUTENCAO ===== */
.manutencao-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.manutencao-icon {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.manutencao-icon svg {
    color: var(--primary);
    z-index: 1;
}

.manutencao-icon.deposito-icon svg {
    color: var(--success);
}

.manutencao-icon-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--primary-100);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.manutencao-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: var(--primary-50);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.manutencao-icon-pulse.success {
    background: var(--success-light);
}

.manutencao-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.manutencao-container p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 24px;
}

.manutencao-progress {
    width: 200px;
    height: 6px;
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.manutencao-progress-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: shimmer 2s linear infinite;
}

.manutencao-status {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===== PAGINA DE CONTA ===== */
.conta-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conta-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.conta-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.conta-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

.conta-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.conta-header p {
    font-size: 14px;
    opacity: 0.9;
}

.conta-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.conta-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.conta-card-header svg {
    color: var(--primary);
}

.conta-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

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

.btn-conta-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    margin-top: 8px;
}

.btn-conta-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-conta-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

/* ===== PAGINA DE BALANCO ===== */
.balanco-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.balanco-header {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.balanco-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.balanco-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.balanco-header p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.balanco-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.balanco-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.balanco-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.balanco-card.verde {
    border-left: 4px solid var(--success);
}

.balanco-card.azul {
    border-left: 4px solid var(--primary);
}

.balanco-card.laranja {
    border-left: 4px solid var(--warning);
}

.balanco-card.roxo {
    border-left: 4px solid var(--purple);
}

.balanco-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.balanco-card:hover .balanco-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.balanco-card.verde .balanco-card-icon {
    background: var(--success-light);
    color: var(--success);
}

.balanco-card.azul .balanco-card-icon {
    background: var(--primary-50);
    color: var(--primary);
}

.balanco-card.laranja .balanco-card-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.balanco-card.roxo .balanco-card-icon {
    background: var(--purple-light);
    color: var(--purple);
}

.balanco-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balanco-card-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.balanco-card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.balanco-grafico-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.balanco-grafico-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

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

.balanco-grafico-header h3 {
    margin-bottom: 0;
}

.grafico-periodo-btns {
    display: flex;
    gap: 6px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 10px;
}

.periodo-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
}

.periodo-btn:hover {
    color: var(--gray-700);
}

.periodo-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.grafico-container {
    height: 250px;
    position: relative;
}

.grafico-container.grafico-pizza {
    height: 280px;
}

.balanco-stats-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.balanco-stats-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.stat-item-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-item-value {
    font-size: 16px;
    font-weight: 700;
}

.stat-item-value.verde {
    color: var(--success);
}

.stat-item-value.azul {
    color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    width: 38px;
    height: 38px;
    background: var(--gray-100);
    border: none;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
    transform: rotate(90deg);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input[readonly] {
    background: var(--gray-100);
    cursor: not-allowed;
    color: var(--gray-500);
}

.btn-confirmar-saque {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    margin-top: 8px;
}

.btn-confirmar-saque:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

/* ===== NOTIFICACOES DE LUCRO ===== */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    pointer-events: none;
}

.lucro-notification {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 2px solid var(--primary-light);
}

.lucro-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.lucro-notification-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lucro-notification-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    animation: bounce 1s ease-in-out infinite;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.lucro-notification-info {
    flex: 1;
}

.lucro-notification-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.lucro-notification-info p {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 6px;
}

.lucro-notification-valor {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    animation: scaleIn 0.6s ease-out;
}

.lucro-notification-close {
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lucro-notification-close:hover {
    background: rgba(37, 99, 235, 0.2);
}

.lucro-notification-progress {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    animation: progress-bar 6s linear forwards;
}

@keyframes progress-bar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ===== ANIMACAO DE SALDO ===== */
.saldo-card.saldo-animando {
    animation: glow-saldo 0.5s ease-in-out infinite alternate;
}

@keyframes glow-saldo {
    from {
        box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    }
    to {
        box-shadow: 0 8px 50px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3);
    }
}

.saldo-card.saldo-animando .valor {
    animation: scale-valor 0.3s ease-in-out infinite alternate;
}

@keyframes scale-valor {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.03);
    }
}

/* ===== POPUP DE LUCRO (AO ENTRAR) ===== */
.lucro-modal-overlay {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.lucro-popup {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-50) 100%);
    border-radius: 28px;
    padding: 0;
    width: 100%;
    max-width: 360px;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.3);
    overflow: hidden;
    border: 2px solid var(--primary-100);
}

.lucro-modal-overlay.active .lucro-popup {
    transform: translateY(0) scale(1);
}

.lucro-popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.lucro-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.lucro-popup-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.lucro-popup-icon-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.lucro-popup-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.lucro-popup-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.lucro-popup-sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.lucro-popup-sparkles span:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.lucro-popup-sparkles span:nth-child(2) {
    top: 50%;
    right: -20px;
    animation-delay: 0.3s;
}

.lucro-popup-sparkles span:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 0.6s;
}

.lucro-popup-sparkles span:nth-child(4) {
    top: 50%;
    left: -20px;
    animation-delay: 0.9s;
}

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

.lucro-popup-content {
    padding: 32px;
    text-align: center;
}

.lucro-popup-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.lucro-popup-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.lucro-popup-valor {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.lucro-popup-moeda {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.lucro-popup-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--success);
    animation: pulse 1s ease-in-out infinite;
}

.lucro-popup-date {
    font-size: 13px;
    color: var(--gray-400);
}

.lucro-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.lucro-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

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

/* ===== MODAL CONFIRMACAO/SUCESSO ===== */
.modal-confirmacao,
.modal-sucesso {
    text-align: center;
    padding: 40px 32px;
}

.confirmacao-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease-out;
}

.confirmacao-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.confirmacao-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.modal-confirmacao h3,
.modal-sucesso h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.confirmacao-texto {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ===== FORM GROUP SELECT ===== */
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-800);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-100);
}

/* Responsive */
@media (max-width: 400px) {
    .painel-container {
        padding: 16px 12px;
        padding-bottom: 100px;
    }

    .login-box {
        padding: 36px 24px;
    }

    .saldo-valor .valor {
        font-size: 36px;
    }

    .stat-box {
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .logo-text,
    .header-logo-text {
        font-size: 18px;
    }

    .tabs-nav {
        padding: 5px;
        gap: 3px;
    }

    .tab-btn {
        padding: 6px 4px;
    }

    .tab-btn svg {
        width: 16px;
        height: 16px;
    }

    .tab-btn span {
        font-size: 8px;
    }

    .historico-section {
        padding: 16px;
    }

    .historico-header {
        gap: 6px;
    }

    .historico-title {
        font-size: 13px;
        gap: 6px;
    }

    .historico-title svg {
        width: 16px;
        height: 16px;
    }

    .historico-count {
        font-size: 10px;
        padding: 3px 6px;
    }

    .lucro-popup {
        max-width: 320px;
        margin: 0 16px;
    }

    .lucro-popup-header {
        padding: 32px 24px;
    }

    .lucro-popup-icon {
        width: 70px;
        height: 70px;
    }

    .lucro-popup-icon svg {
        width: 32px;
        height: 32px;
    }

    .lucro-popup-content {
        padding: 24px;
    }

    .lucro-popup-content h2 {
        font-size: 18px;
    }

    .lucro-popup-amount {
        font-size: 40px;
    }

    .lucro-popup-moeda {
        font-size: 20px;
    }

    .lucro-popup-btn {
        width: calc(100% - 32px);
        margin: 0 16px 16px;
        padding: 16px;
        font-size: 15px;
    }

    .balanco-cards {
        grid-template-columns: 1fr;
    }

    .balanco-card {
        flex-direction: row;
        align-items: center;
    }

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

    .grafico-periodo-btns {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SISTEMA DE SAQUE ===== */
.saque-container {
    width: 100%;
    min-height: 400px;
}

.saque-form-container {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.saque-header {
    text-align: center;
    margin-bottom: 32px;
}

.saque-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--warning) 0%, #e58e0a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.saque-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.saque-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.saque-form .form-group {
    margin-bottom: 20px;
}

.saque-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.saque-form .form-group label svg {
    color: var(--gray-400);
}

.saque-form .form-group input,
.saque-form .form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-800);
}

.saque-form .form-group input:focus,
.saque-form .form-group select:focus {
    border-color: var(--warning);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.saque-form .form-group input::placeholder {
    color: var(--gray-400);
}

.saque-form .form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-400);
}

.btn-saque-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--warning) 0%, #e58e0a 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    margin-top: 10px;
}

.btn-saque-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

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

/* Tela de Processamento */
.saque-processando {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.processando-content {
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.processando-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--warning);
    animation: spin 1.2s linear infinite;
}

.spinner-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--primary);
    animation-duration: 1s;
    animation-direction: reverse;
}

.spinner-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--success);
    animation-duration: 0.8s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.processando-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.processando-content p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 30px;
}

.processando-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.processando-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--warning) 0%, var(--primary) 50%, var(--success) 100%);
    border-radius: 10px;
    animation: progress-saque 5s ease-in-out forwards;
}

@keyframes progress-saque {
    0% {
        width: 0%;
    }
    30% {
        width: 30%;
    }
    60% {
        width: 60%;
    }
    90% {
        width: 90%;
    }
    100% {
        width: 100%;
    }
}

.processando-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.step-item.active {
    background: var(--warning-light);
    color: var(--warning);
}

.step-item.completed {
    background: var(--success-light);
    color: var(--success);
}

.step-check {
    width: 24px;
    height: 24px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-check svg {
    opacity: 0;
    transition: all 0.3s ease;
}

.step-item.active .step-check {
    background: var(--warning);
    animation: pulse 1s ease-in-out infinite;
}

.step-item.completed .step-check {
    background: var(--success);
}

.step-item.completed .step-check svg {
    opacity: 1;
    color: white;
}

/* Tela de Manutencao Saque */
.saque-manutencao {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.manutencao-aviso {
    text-align: center;
    max-width: 360px;
}

.manutencao-aviso-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--warning-light) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--warning);
    animation: float 3s ease-in-out infinite;
}

.manutencao-aviso h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.manutencao-aviso p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.manutencao-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 14px;
    text-align: left;
    margin-bottom: 24px;
    border: 1px solid var(--gray-100);
}

.manutencao-info-box svg {
    flex-shrink: 0;
    color: var(--primary);
}

.manutencao-info-box span {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.btn-voltar-saque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-voltar-saque:hover {
    background: var(--gray-200);
}

/* Responsivo Saque */
@media (max-width: 400px) {
    .saque-form-container {
        padding: 24px 20px;
    }

    .saque-header h2 {
        font-size: 20px;
    }

    .saque-header-icon {
        width: 60px;
        height: 60px;
    }

    .saque-processando,
    .saque-manutencao {
        padding: 24px;
        min-height: 400px;
    }

    .manutencao-aviso-icon {
        width: 80px;
        height: 80px;
    }

    .manutencao-aviso-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ===== SISTEMA DE DEPOSITO ===== */
.deposito-container {
    width: 100%;
    min-height: 400px;
}

.deposito-form-container {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.deposito-header {
    text-align: center;
    margin-bottom: 32px;
}

.deposito-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.deposito-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.deposito-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.deposito-form .form-group {
    margin-bottom: 20px;
}

.deposito-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.deposito-form .form-group label svg {
    color: var(--gray-400);
}

.deposito-form .form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-800);
}

.deposito-form .form-group input:focus {
    border-color: var(--success);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.deposito-form .form-group input::placeholder {
    color: var(--gray-400);
}

.deposito-form .form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-400);
}

.btn-deposito-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    margin-top: 10px;
}

.btn-deposito-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

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

/* Tela de Processamento Deposito */
.deposito-processando {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.deposito-spinner .spinner-circle:first-child {
    border-top-color: var(--success);
}

.deposito-spinner .spinner-circle:nth-child(2) {
    border-top-color: var(--primary);
}

.deposito-spinner .spinner-circle:nth-child(3) {
    border-top-color: var(--warning);
}

.deposito-progress-bar {
    background: linear-gradient(90deg, var(--success) 0%, var(--primary) 50%, var(--warning) 100%);
}

/* Tela de Manutencao Deposito */
.deposito-manutencao {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.deposito-aviso-icon {
    background: linear-gradient(135deg, var(--success-light) 0%, rgba(16, 185, 129, 0.2) 100%);
    color: var(--success);
}

.btn-voltar-deposito {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-voltar-deposito:hover {
    background: var(--gray-200);
}

/* Responsivo Deposito */
@media (max-width: 400px) {
    .deposito-form-container {
        padding: 24px 20px;
    }

    .deposito-header h2 {
        font-size: 20px;
    }

    .deposito-header-icon {
        width: 60px;
        height: 60px;
    }

    .deposito-processando,
    .deposito-manutencao {
        padding: 24px;
        min-height: 400px;
    }
}

/* ===== ABA SISTEMAS ===== */
.sistemas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sistemas-header {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.sistemas-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.sistemas-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.sistemas-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sistemas-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.sistemas-header p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Grid de Sistemas */
.sistemas-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card de Sistema */
.sistema-card {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sistema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sistema-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.sistema-card:active {
    transform: translateY(-4px);
}

/* Badges dos Sistemas */
.sistema-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    z-index: 2;
}

.sistema-card-badge .live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.sistema-card-badge.trending {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.sistema-card-badge.auto {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.sistema-card-badge.sync {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Icone do Sistema */
.sistema-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.sistema-card:hover .sistema-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Cores por tipo de sistema */
.sistema-card.ao-vivo .sistema-card-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #ef4444;
}

.sistema-card.ao-vivo {
    border-left: 4px solid #ef4444;
}

.sistema-card.dobrando .sistema-card-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success);
}

.sistema-card.dobrando {
    border-left: 4px solid var(--success);
}

.sistema-card.automatico .sistema-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: #8b5cf6;
}

.sistema-card.automatico {
    border-left: 4px solid #8b5cf6;
}

.sistema-card.linear .sistema-card-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(8, 145, 178, 0.1) 100%);
    color: #06b6d4;
}

.sistema-card.linear {
    border-left: 4px solid #06b6d4;
}

/* Titulo e Descricao */
.sistema-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.sistema-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

/* Features do Sistema */
.sistema-card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.sistema-card-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.sistema-card-features span svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Botao do Card */
.sistema-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sistema-card.ao-vivo .sistema-card-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.sistema-card.dobrando .sistema-card-btn {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.sistema-card.automatico .sistema-card-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.sistema-card.linear .sistema-card-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.sistema-card:hover .sistema-card-btn {
    transform: translateY(-2px);
}

.sistema-card-btn svg {
    transition: transform 0.3s ease;
}

.sistema-card:hover .sistema-card-btn svg {
    transform: translateX(4px);
}

/* ===== MODAL SISTEMA EM ATUALIZACAO ===== */
.modal-sistema-atualizacao {
    text-align: center;
    padding: 40px 32px;
    max-width: 380px;
}

.sistema-modal-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sistema-modal-icon-inner {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    position: relative;
}

.sistema-modal-icon-inner svg {
    animation: sistema-gear-rotate 6s linear infinite;
}

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

.sistema-modal-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-radius: 28px;
    animation: sistema-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes sistema-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

.sistema-modal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(37, 99, 235, 0.25);
    border-radius: 50%;
    animation: sistema-ring-rotate 20s linear infinite;
    z-index: 0;
}

@keyframes sistema-ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-sistema-atualizacao h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.sistema-modal-desc {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.sistema-modal-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.sistema-modal-progress-bar {
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 50%, var(--primary) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: shimmer 2s linear infinite;
}

.sistema-modal-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 14px;
    text-align: left;
    margin-bottom: 24px;
    border: 1px solid var(--primary-100);
}

.sistema-modal-info svg {
    flex-shrink: 0;
    color: var(--primary);
}

.sistema-modal-info span {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

.sistema-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.sistema-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

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

/* Responsivo Sistemas */
@media (max-width: 400px) {
    .sistemas-header {
        padding: 24px 16px;
    }

    .sistemas-header h2 {
        font-size: 20px;
    }

    .sistemas-header-icon {
        width: 60px;
        height: 60px;
    }

    .sistema-card {
        padding: 20px;
    }

    .sistema-card h3 {
        font-size: 18px;
    }

    .sistema-card p {
        font-size: 13px;
    }

    .sistema-card-icon {
        width: 60px;
        height: 60px;
    }

    .sistema-card-icon svg {
        width: 28px;
        height: 28px;
    }

    .modal-sistema-atualizacao {
        padding: 32px 24px;
    }

    .modal-sistema-atualizacao h3 {
        font-size: 20px;
    }
}
