/* ============================================================================================================ */
/* BUY PAGE */
/* ============================================================================================================ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

/* ============================================================================================================ */
/* PAGE LOAD ANIMATIONS - Entrada suave de elementos */
/* ============================================================================================================ */

/* Animação de entrada com scale (pump) */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animação de entrada com slide da esquerda */
@keyframes fadeInSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animação de entrada com slide de baixo */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe base para animações - aplicar nos elementos */
.animate-fade-in {
    animation: fadeInScale 0.3s ease-out forwards;
}

.animate-slide-left {
    animation: fadeInSlideLeft 0.25s ease-out forwards;
}

.animate-slide-up {
    animation: fadeInSlideUp 0.25s ease-out forwards;
}

/* Cards de overview - animação escalonada */
#overview-cards > div {
    opacity: 0;
    animation: fadeInScale 0.3s ease-out forwards;
}

#overview-cards > div:nth-child(1) { animation-delay: 0.05s; }
#overview-cards > div:nth-child(2) { animation-delay: 0.1s; }
#overview-cards > div:nth-child(3) { animation-delay: 0.15s; }
#overview-cards > div:nth-child(4) { animation-delay: 0.2s; }

/* Cards de contas - animação escalonada */
#accounts-container > div > div {
    opacity: 0;
    animation: fadeInSlideUp 0.3s ease-out forwards;
}

#accounts-container > div > div:nth-child(1) { animation-delay: 0.05s; }
#accounts-container > div > div:nth-child(2) { animation-delay: 0.1s; }
#accounts-container > div > div:nth-child(3) { animation-delay: 0.15s; }
#accounts-container > div > div:nth-child(4) { animation-delay: 0.2s; }
#accounts-container > div > div:nth-child(5) { animation-delay: 0.25s; }
#accounts-container > div > div:nth-child(6) { animation-delay: 0.3s; }
#accounts-container > div > div:nth-child(n+7) { animation-delay: 0.35s; }

/* Dashboard cards - animação escalonada */
.dashboard-main-container > div > .rounded-lg,
.dashboard-main-container > div > .rounded-xl {
    opacity: 0;
    animation: fadeInScale 0.3s ease-out forwards;
}

.dashboard-main-container > div > .rounded-lg:nth-child(1),
.dashboard-main-container > div > .rounded-xl:nth-child(1) { animation-delay: 0.05s; }
.dashboard-main-container > div > .rounded-lg:nth-child(2),
.dashboard-main-container > div > .rounded-xl:nth-child(2) { animation-delay: 0.1s; }
.dashboard-main-container > div > .rounded-lg:nth-child(3),
.dashboard-main-container > div > .rounded-xl:nth-child(3) { animation-delay: 0.15s; }
.dashboard-main-container > div > .rounded-lg:nth-child(4),
.dashboard-main-container > div > .rounded-xl:nth-child(4) { animation-delay: 0.2s; }
.dashboard-main-container > div > .rounded-lg:nth-child(n+5),
.dashboard-main-container > div > .rounded-xl:nth-child(n+5) { animation-delay: 0.25s; }

/* Calendário - animação de entrada */
.calendar-container {
    opacity: 0;
    animation: fadeInScale 0.35s ease-out 0.1s forwards;
}

/* Calendário stats grid - animação escalonada */
.calendar-stats-grid > div {
    opacity: 0;
    animation: fadeInSlideUp 0.25s ease-out forwards;
}

.calendar-stats-grid > div:nth-child(1) { animation-delay: 0.05s; }
.calendar-stats-grid > div:nth-child(2) { animation-delay: 0.08s; }
.calendar-stats-grid > div:nth-child(3) { animation-delay: 0.11s; }
.calendar-stats-grid > div:nth-child(4) { animation-delay: 0.14s; }
.calendar-stats-grid > div:nth-child(5) { animation-delay: 0.17s; }
.calendar-stats-grid > div:nth-child(6) { animation-delay: 0.2s; }

/* Tools page - animação de tabs */
.tools-main-container [role="tabpanel"] > div {
    opacity: 0;
    animation: fadeInSlideUp 0.25s ease-out forwards;
}

/* Profile page - animação de seções */
.profile-main-container > div > .rounded-lg {
    opacity: 0;
    animation: fadeInSlideLeft 0.3s ease-out forwards;
}

.profile-main-container > div > .rounded-lg:nth-child(1) { animation-delay: 0.05s; }
.profile-main-container > div > .rounded-lg:nth-child(2) { animation-delay: 0.1s; }
.profile-main-container > div > .rounded-lg:nth-child(3) { animation-delay: 0.15s; }

/* ============================================================================================================ */
/* CHART LINE DRAW ANIMATION - Animação de desenho de linha do gráfico */
/* ============================================================================================================ */

/* Animação para linhas de gráfico SVG */
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animação para pontos do gráfico */
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Classe para linha animada */
.chart-line-animated {
    stroke-dasharray: var(--line-length, 1000);
    stroke-dashoffset: var(--line-length, 1000);
    animation: drawLine 0.8s ease-out forwards;
}

/* Classe para segmentos de linha animados */
.chart-segment-animated {
    stroke-dasharray: var(--segment-length, 100);
    stroke-dashoffset: var(--segment-length, 100);
    animation: drawLine 0.6s ease-out forwards;
}

/* Classe para pontos animados */
.chart-point-animated {
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    animation: popIn 0.2s ease-out forwards;
}

/* Animação de fade para área do gráfico */
@keyframes fadeInArea {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.chart-area-animated {
    opacity: 0;
    animation: fadeInArea 0.5s ease-out 0.3s forwards;
}

/* ============================================================================================================ */
/* Estados iniciais para elementos com data-animate (antes da animação ser aplicada) */
/* ============================================================================================================ */

/* Barras começam escondidas (escala 0) */
[data-animate="chart-bar-animated"] {
    transform: scaleY(0);
    transform-origin: bottom center;
}

[data-animate="chart-bar-animated"].negative {
    transform-origin: top center;
}

/* Setores começam escondidos */
[data-animate="chart-sector-animated"] {
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center;
}

/* Linhas começam escondidas */
[data-animate="chart-line-animated"] {
    stroke-dasharray: var(--line-length, 1000);
    stroke-dashoffset: var(--line-length, 1000);
}

/* Pontos começam escondidos */
[data-animate="chart-point-animated"] {
    opacity: 0;
    transform: scale(0);
}

/* ============================================================================================================ */
/* Animações de gráficos */
/* ============================================================================================================ */

/* Animação para barras de gráfico */
@keyframes growBar {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.chart-bar-animated {
    transform-origin: bottom center;
    animation: growBar 0.4s ease-out forwards;
}

/* Barras negativas crescem de cima para baixo */
.chart-bar-animated.negative {
    transform-origin: top center;
}

/* Animação para setores de gráfico de pizza/rosca */
@keyframes revealSector {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chart-sector-animated {
    opacity: 0;
    transform-origin: center;
    animation: revealSector 0.4s ease-out forwards;
}

/* ============================================================================================================ */
/* SIDEBAR OVERLAY - Comportamento diferenciado Mobile vs Desktop */
/* ============================================================================================================ */

/* Mobile: overlay escuro quando sidebar aberta */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
}

/* Mobile: o espaçador da sidebar deve ter width 0 quando expandida (conteúdo não é empurrado) */
@media (max-width: 767px) {
    .group.peer[data-state="expanded"]:not([data-collapsible="offcanvas"]) > .duration-200.relative.h-svh {
        width: 0 !important;
    }
}

/* Desktop: sidebar empurra o conteúdo, sem overlay */
@media (min-width: 768px) {
    /* No desktop, o overlay nunca aparece */
    .sidebar-overlay,
    .sidebar-overlay.active {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Desktop: o espaçador mantém a largura da sidebar (empurra o conteúdo) */
    .group.peer[data-state="expanded"]:not([data-collapsible="offcanvas"]) > .duration-200.relative.h-svh {
        width: var(--sidebar-width) !important;
    }
}

/* ============================================================================================================ */
/* TOOLS PAGE - RESPONSIVE BREAKPOINT FOR XS (EXTRA SMALL) */
/* ============================================================================================================ */

/* XS breakpoint: 480px - for very small mobile devices */
@media (min-width: 480px) {
    .xs\:inline {
        display: inline !important;
    }

    .xs\:hidden {
        display: none !important;
    }
}

@media (max-width: 479px) {
    .xs\:inline {
        display: none !important;
    }

    .xs\:hidden {
        display: inline !important;
    }

    /* Make buttons more touch-friendly on very small screens */
    button[role="tab"] {
        min-height: 44px !important;
    }

    /* Reduce form field sizes for better mobile fit */
    input[type="number"] {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }
}

/* ============================================================================================================ */
/* CALENDAR RESPONSIVE LAYOUT */
/* ============================================================================================================ */

/* Oculta o painel lateral do calendário (removido em favor do modal) */
/* Desktop: Mostrar resumo lateral, esconder resumo mobile */
@media (min-width: 1280px) {
    .calendar-week-summary-desktop {
        display: flex !important;
        flex-direction: column !important;
    }

    .calendar-week-summary-mobile {
        display: none !important;
    }

    /* Garantir que o resumo semanal tenha a mesma altura do calendário */
    .calendar-week-summary-desktop>div:last-child {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .calendar-week-summary-desktop>div:last-child>div {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Fazer cada semana ocupar espaço igual */
    .calendar-week-summary-desktop>div:last-child>div>div {
        flex: 1 !important;
        min-height: 0 !important;
    }
}

/* Mobile: Esconder resumo lateral, mostrar resumo mobile */
@media (max-width: 1279px) {
    .calendar-week-summary-desktop {
        display: none !important;
    }

    .calendar-week-summary-mobile {
        display: block !important;
    }
}

/* ============================================================================================================ */
/* CALENDAR DAY CELLS - MOBILE RESPONSIVE */
/* ============================================================================================================ */

/* Desktop: Garante que as informações sejam totalmente visíveis */
@media (min-width: 641px) {
    .calendar-day-number {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }

    .calendar-day-pnl {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }

    .calendar-day-meta {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }

    /* Altura adequada para desktop */
    .grid.grid-cols-7.border-collapse > div {
        min-height: 120px !important;
        height: 120px !important;
    }

    /* Padding adequado para desktop */
    .grid.grid-cols-7.border-collapse > div > div {
        padding: 0.75rem !important;
        overflow: visible !important;
    }
}

/* Layout responsivo para os dias do calendário em mobile */
@media (max-width: 640px) {
    /* Remove padding do container principal em mobile */
    main .flex.flex-1.flex-col.gap-3.sm\:gap-4.p-4 {
        padding: 0.5rem !important;
    }

    /* Remove espaçamento do card do calendário */
    .rounded-lg.border.bg-card.text-card-foreground.shadow-sm.p-6 {
        padding: 0.75rem !important;
    }

    /* Ajusta header do calendário */
    .flex.items-center.justify-between.p-6.bg-gradient-to-r {
        padding: 0.75rem !important;
    }

    /* Reduz gap entre calendário e resumo semanal */
    .flex.gap-6.min-h-\[600px\] {
        gap: 0 !important;
        min-height: auto !important;
    }

    /* Altura dos dias em mobile */
    .grid.grid-cols-7.border-collapse > div {
        min-height: 85px !important;
        height: 85px !important;
    }

    /* Ajusta padding interno das células - compacto */
    .grid.grid-cols-7.border-collapse > div > div {
        padding: 0.375rem !important;
        overflow: hidden !important;
    }

    /* Layout compacto para informações do dia */
    .calendar-day-info {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
        width: 100%;
        overflow: hidden;
    }

    /* Número do dia - muito compacto */
    .calendar-day-number {
        font-size: 0.5rem !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        margin-bottom: 0.0625rem;
    }

    /* Valor principal (PnL) - muito compacto */
    .calendar-day-pnl {
        font-size: 0.5rem !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip !important;
        max-width: 100%;
    }

    /* RR e número de trades - ultra compacto */
    .calendar-day-meta {
        font-size: 0.4375rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip !important;
        max-width: 100%;
    }

    /* Ajusta header dos dias da semana */
    .w-full.bg-gradient-to-r.from-muted\/50.to-muted\/30.rounded-t-2xl.border-b.border-border\/30 {
        padding: 0.5rem !important;
    }

    /* Remove padding excessivo do grid do calendário */
    .bg-card\/50.rounded-b-2xl.border.border-border\/30.overflow-hidden.flex-1 {
        padding: 0 !important;
    }

    /* Empilha informações verticalmente em telas muito pequenas */
    @media (max-width: 380px) {
        .grid.grid-cols-7.border-collapse > div {
            min-height: 80px !important;
            height: 80px !important;
        }

        .grid.grid-cols-7.border-collapse > div > div {
            padding: 0.25rem !important;
        }

        .calendar-day-number {
            font-size: 0.4375rem !important;
        }

        .calendar-day-pnl {
            font-size: 0.4375rem !important;
        }

        .calendar-day-meta {
            font-size: 0.375rem !important;
        }
    }

    /* Oculta resumo do mês em mobile para dar mais espaço */
    .rounded-lg.bg-card.text-card-foreground.mb-4.sm\:mb-6 {
        margin-bottom: 0.75rem !important;
    }

    /* Reduz padding do cabeçalho da página */
    .flex.flex-col.sm\:flex-row.justify-between.items-start.sm\:items-center.gap-4.mb-2 h1 {
        font-size: 1.5rem !important;
    }
}

/* Tablets pequenos - ajuste intermediário */
@media (min-width: 641px) and (max-width: 768px) {
    .grid.grid-cols-7.border-collapse > div {
        min-height: 110px !important;
        height: 110px !important;
    }

    .calendar-day-number {
        font-size: 1rem !important;
    }

    .calendar-day-pnl {
        font-size: 0.875rem !important;
    }

    .calendar-day-meta {
        font-size: 0.8125rem !important;
    }
}

/* ============================================================================================================ */
/* BUY PAGE - FAQ */
/* ============================================================================================================ */

.faq-content {
    max-height: 500px;
    /* Ajuste conforme necessário */
    opacity: 1;
    padding-top: 0;
    padding-bottom: 1rem;
}

.faq-button svg {
    transition: transform 0.3s ease-out;
}

.faq-button svg.rotate-180 {
    transform: rotate(180deg);
}

html {
    scroll-behavior: smooth;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-content.open {
    max-height: 500px;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 1rem;
}

.faq-button svg {
    transition: transform 0.3s ease-out;
}

.faq-button svg.rotate-180 {
    transform: rotate(180deg);
}

/* ============================================================================================================ */
/* DASHBOARD - AI INSIGHTS CAROUSEL */
/* ============================================================================================================ */

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.animate-slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

/* Animação para os indicadores do carrossel */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.carousel-indicator-active {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================================================ */
/* BUY PAGE */
/* ============================================================================================================ */

/* ============================================================================================================ */
/* MODAL ANIMATIONS */
/* ============================================================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.2s ease-out forwards;
}

.animate-modal-scale {
    animation: modalScale 0.3s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.2s ease-out forwards;
}

.animate-scaleOut {
    animation: scaleOut 0.2s ease-out forwards;
}

/* ============================================================================================================ */
/* BUY PAGE */
/* ============================================================================================================ */

/* Reset apenas para o componente de preços */
.pricing-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pricing-section {
    color: #000000; /* Preto no modo claro */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dark .pricing-section {
    color: #ffffff; /* Branco no modo escuro */
}

.pricing-container {
    max-width: 1200px;
    width: 100%;
}

.pricing-main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #000000; /* Preto no modo claro */
}

.dark .pricing-main-title {
    color: #ffffff; /* Branco no modo escuro */
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280; /* Cinza escuro no modo claro */
    margin-bottom: 50px;
}

.dark .pricing-subtitle {
    color: #a0aec0; /* Cinza claro no modo escuro */
}

.pricing-plans-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.pricing-plan-card {
    background: rgba(255, 255, 255, 0.8); /* Fundo claro no modo claro */
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 380px;
    border: 2px solid rgba(0, 0, 0, 0.1); /* Borda escura no modo claro */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #000000; /* Texto preto no modo claro */
}

.dark .pricing-plan-card {
    background: rgba(255, 255, 255, 0.05); /* Fundo escuro no modo escuro */
    border: 2px solid rgba(255, 255, 255, 0.1); /* Borda clara no modo escuro */
    color: #ffffff; /* Texto branco no modo escuro */
}

.pricing-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pricing-plan-card--annual {
    border: 2px solid #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: #ffffff; /* Texto branco no badge */
}

.pricing-plan-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000000; /* Preto no modo claro */
}

.dark .pricing-plan-title {
    color: #ffffff; /* Branco no modo escuro */
}

.pricing-plan-discount {
    text-align: center;
    color: #22c55e;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.pricing-price {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000; /* Preto no modo claro */
}

.dark .pricing-price-amount {
    color: #ffffff; /* Branco no modo escuro */
}

.pricing-price-period {
    font-size: 1rem;
    color: #6b7280; /* Cinza escuro no modo claro */
}

.dark .pricing-price-period {
    color: #a0aec0; /* Cinza claro no modo escuro */
}

.pricing-features-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-feature-item {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #000000; /* Preto no modo claro */
}

.dark .pricing-feature-item {
    color: #ffffff; /* Branco no modo escuro */
}

.pricing-feature-item::before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-btn--monthly {
    background: rgba(0, 0, 0, 0.1); /* Fundo escuro no modo claro */
    color: #000000; /* Texto preto no modo claro */
}

.dark .pricing-btn--monthly {
    background: rgba(255, 255, 255, 0.15); /* Fundo claro no modo escuro */
    color: #ffffff; /* Texto branco no modo escuro */
}

.pricing-btn--monthly:hover {
    background: rgba(0, 0, 0, 0.2); /* Fundo mais escuro no hover modo claro */
}

.dark .pricing-btn--monthly:hover {
    background: rgba(255, 255, 255, 0.25); /* Fundo mais claro no hover modo escuro */
}

.pricing-btn--annual {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-btn--annual:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: scale(1.02);
}

.pricing-footer-text {
    text-align: center;
    margin-top: 40px;
}

.pricing-footer-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000000; /* Preto no modo claro */
}

.dark .pricing-footer-title {
    color: #ffffff; /* Branco no modo escuro */
}

.pricing-brand-name {
    color: #1989df;
    font-weight: 700;
}

.pricing-footer-description {
    color: #6b7280; /* Cinza escuro no modo claro */
    font-size: 1rem;
}

.dark .pricing-footer-description {
    color: #a0aec0; /* Cinza claro no modo escuro */
}

@media (max-width: 768px) {
    .pricing-main-title {
        font-size: 1.8rem;
    }

    .pricing-plans-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================================================================ */
/* IMAGE MODAL STYLES */
/* ============================================================================================================ */

.cursor-pointer {
    cursor: pointer;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}



/* css do datatables */
/* Estilos customizados para DataTables no tema dark */
        .dark .dataTables_wrapper {
            color: hsl(var(--foreground));
        }

        .dark .dataTables_wrapper table.dataTable thead th,
        .dark .dataTables_wrapper table.dataTable thead td {
            border-bottom: 1px solid hsl(var(--border));
            color: hsl(var(--foreground));
        }

        .dark .dataTables_wrapper table.dataTable tbody tr {
            background-color: hsl(var(--card));
        }

        .dark .dataTables_wrapper table.dataTable tbody tr:hover {
            background-color: hsl(var(--accent));
        }

        .dark .dataTables_wrapper table.dataTable tbody td {
            border-bottom: 1px solid hsl(var(--border));
            color: hsl(var(--foreground));
        }

        .dark .dataTables_wrapper .dataTables_length,
        .dark .dataTables_wrapper .dataTables_filter,
        .dark .dataTables_wrapper .dataTables_info,
        .dark .dataTables_wrapper .dataTables_paginate {
            color: hsl(var(--foreground));
        }

        .dark .dataTables_wrapper .dataTables_paginate .paginate_button {
            color: hsl(var(--foreground)) !important;
        }

        .dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: hsl(var(--accent));
            color: hsl(var(--foreground)) !important;
        }

        .dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background: hsl(var(--primary));
            color: hsl(var(--primary-foreground)) !important;
        }

        .dark .dataTables_wrapper input[type="search"] {
            background-color: hsl(var(--background));
            border: 1px solid hsl(var(--border));
            color: hsl(var(--foreground));
            padding: 0.5rem;
            border-radius: 0.375rem;
        }

        .dark .dataTables_wrapper select {
            background-color: hsl(var(--background));
            border: 1px solid hsl(var(--border));
            color: hsl(var(--foreground));
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
        }

        /* Estilos para inputs editáveis na tabela */
        .subscription-status-select,
        .subscription-plan-select,
        .subscription-date-input,
        .subscription-price-input {
            font-size: 0.75rem;
            min-width: 120px;
        }

        .subscription-price-input {
            min-width: 90px;
        }

        .subscription-status-select:focus,
        .subscription-plan-select:focus,
        .subscription-date-input:focus,
        .subscription-price-input:focus {
            outline: 2px solid hsl(var(--ring));
            outline-offset: 2px;
        }

        .save-subscription-btn {
            transition: all 0.2s;
        }

        .save-subscription-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        }

        .save-subscription-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

/* ============================================================================================================ */
/* SIDEBAR TOOLTIPS */
/* ============================================================================================================ */

/* Sidebar Info Icon */
.sidebar-info-icon {
    position: relative;
}

/* Tooltip criado via JavaScript */
.sidebar-info-tooltip {
    min-width: 200px;
    max-width: 280px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.sidebar-info-tooltip.visible {
    opacity: 1;
}

.sidebar-info-tooltip p {
    margin: 0;
}

/* ============================================================================================================ */
/* RESPONSIVE LAYOUT - CALENDAR, DASHBOARD, ACCOUNTS */
/* ============================================================================================================ */

/* Mobile padding adjustments */
@media (max-width: 640px) {
    /* Ajusta padding do container principal */
    .responsive-container {
        padding: 0.5rem !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Ajusta padding interno dos cards */
    .responsive-card {
        padding: 0.75rem !important;
    }
    
    /* Títulos menores em mobile */
    .responsive-title {
        font-size: 1.5rem !important;
    }
    
    /* Cards de métricas em 1 coluna no mobile */
    .responsive-metrics-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduz tamanho dos valores nos cards */
    .responsive-metric-value {
        font-size: 1.25rem !important;
    }
    
    /* Cards de overview em coluna única em mobile pequeno */
    @media (max-width: 480px) {
        .responsive-metrics-grid {
            grid-template-columns: 1fr !important;
        }
    }
}

/* CALENDAR - Mobile adjustments */
@media (max-width: 640px) {
    /* Header do calendário mais compacto */
    .calendar-header-nav {
        padding: 0.5rem !important;
    }
    
    .calendar-header-nav button {
        height: 2.5rem !important;
        width: 2.5rem !important;
    }
    
    .calendar-period-title {
        font-size: 1.125rem !important;
    }
    
    /* Cards de estatísticas do calendário */
    .calendar-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    .calendar-stats-grid > div {
        padding: 0.75rem !important;
        overflow: hidden;
    }
    
    .calendar-stats-grid p[data-stat],
    .calendar-stats-grid .calendar-stat-value {
        font-size: 0.95rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .calendar-stats-grid .text-\[11px\] {
        font-size: 0.5625rem !important;
    }
    
    /* Painel lateral do calendário */
    .calendar-summary-panel {
        display: none !important;
    }
    
    /* Grid do calendário */
    .calendar-main-content {
        grid-template-columns: 1fr !important;
    }
    
    /* Células dos dias do calendário */
    .calendar-day-cell {
        min-height: 50px !important;
        padding: 0.25rem !important;
    }
    
    /* Modal de trades do dia */
    .day-trades-modal {
        max-width: 95vw !important;
        max-height: 85vh !important;
        margin: 0.5rem !important;
    }
    
    .day-trades-modal .trade-card {
        padding: 0.75rem !important;
    }
    
    /* Grid de screenshots no modal */
    .trade-screenshots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    /* Esconder botão "Ver Ano" em mobile */
    #toggleYearViewBtn {
        display: none !important;
    }
}

/* DASHBOARD - Mobile adjustments */
@media (max-width: 640px) {
    /* Cards de métricas do dashboard - 1 coluna em mobile */
    .dashboard-hero-metrics {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .dashboard-hero-metrics > div {
        padding: 0.75rem !important;
        overflow: hidden;
    }
    
    /* Valores dos hero metrics não devem sair da div */
    .dashboard-hero-metrics [data-metric] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Valores do calendário do dashboard não devem sair da div */
    [data-calendar-container] .font-semibold.text-\[11px\],
    [data-calendar-container] .font-medium.text-\[9px\],
    [data-calendar-container] .text-\[8px\] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Gráficos empilhados */
    .dashboard-charts-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Título menor */
    .dashboard-title {
        font-size: 1.25rem !important;
    }
    
    /* Altura dos gráficos ajustada para mobile */
    #dashboard-equity-chart,
    #dashboard-daily-chart {
        height: 200px !important;
    }
    
    /* Cards de gráficos com padding reduzido e largura máxima */
    .rounded-2xl.p-5,
    .backdrop-blur-xl.bg-card\/80 {
        padding: 0.75rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Tabela de análise por ativo scroll horizontal */
    #asset-analysis-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    #asset-analysis-table table {
        min-width: 600px;
    }
    
    /* Padding dos cards internos */
    .p-6.pt-0 {
        padding: 0.75rem !important;
        padding-top: 0 !important;
    }
    
    /* Prevenir scroll horizontal no body */
    body, 
    html,
    #root,
    main {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Cards com conteúdo largo - forçar wrap */
    .lg\:col-span-1,
    .lg\:col-span-2,
    .lg\:col-span-3 {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Gauge e gráficos circulares menores em mobile */
    .dashboard-hero-metrics svg[width="65"],
    .dashboard-hero-metrics svg[width="40"] {
        transform: scale(0.85);
    }
    
    /* Barra RR menor em mobile */
    .dashboard-hero-metrics .w-40 {
        width: 6rem !important;
    }
    
    /* Calendário do dashboard */
    [data-calendar-container] {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Card do calendário no dashboard */
    .lg\:col-span-2 .rounded-lg.border {
        max-width: 100% !important;
    }
    
    /* Performance por dia da semana */
    #weekday-performance-container {
        max-width: 100% !important;
    }

    /* ========== DASHBOARD CALENDAR HEADER - Nav arrows fix ========== */
    /* Header do calendário no dashboard - permitir wrap */
    [data-lov-name="CardHeader"] .flex.items-center.justify-between {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    /* Controles do calendário (toggle + nav) */
    [data-calendar-toggle] {
        min-height: 28px !important;
        min-width: auto !important;
        height: 28px !important;
        padding: 0 0.5rem !important;
        font-size: 0.625rem !important;
    }

    [data-calendar-toggle] svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Botões prev/next do dashboard calendar - menores */
    [data-calendar-prev],
    [data-calendar-next] {
        min-height: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        width: 28px !important;
    }

    /* Período label do dashboard calendar */
    [data-calendar-period] {
        min-width: 90px !important;
        font-size: 0.65rem !important;
    }

    /* ========== DASHBOARD CALENDAR YEAR VIEW - Smaller cells ========== */
    /* Yearly view: grid 3 cols container - cells must stay tiny */
    [data-calendar-container] .grid.grid-cols-3 .grid.grid-cols-7 > div {
        height: 14px !important;
        width: 14px !important;
        min-height: 14px !important;
        padding: 0 !important;
    }

    [data-calendar-container] .grid.grid-cols-3 .grid.grid-cols-7 > div span {
        font-size: 4px !important;
        line-height: 1 !important;
    }

    [data-calendar-container] .grid.grid-cols-3 .text-\[10px\] {
        font-size: 8px !important;
    }

    [data-calendar-container] .grid.grid-cols-3 .text-\[7px\] {
        font-size: 5px !important;
    }

    [data-calendar-container] .grid.grid-cols-3 {
        gap: 0.375rem !important;
        padding: 0.25rem !important;
    }

    [data-calendar-container] .grid.grid-cols-3 > div {
        padding: 0.25rem !important;
    }

    /* ========== DASHBOARD CALENDAR CELLS - Match calendar.php ========== */
    /* Células do calendário do dashboard (month view only) - responsivas como calendar.php */
    [data-calendar-container] > .grid.grid-cols-7 > div {
        height: 52px !important;
        min-height: 52px !important;
        padding: 0.125rem !important;
    }

    /* Número do dia no dashboard calendar */
    [data-calendar-container] .absolute.top-1.left-1 {
        font-size: 7px !important;
        top: 2px !important;
        left: 2px !important;
    }

    /* Valor monetário no dashboard calendar */
    [data-calendar-container] .text-\[11px\] {
        font-size: 7px !important;
        line-height: 1.1 !important;
    }

    /* RR no dashboard calendar */
    [data-calendar-container] .text-\[9px\] {
        font-size: 6px !important;
        line-height: 1.1 !important;
    }

    /* Trades count no dashboard calendar */
    [data-calendar-container] .text-\[8px\] {
        font-size: 5px !important;
        line-height: 1.1 !important;
    }

    /* Espaçamento vertical dos dados no dia */
    [data-calendar-container] .flex.flex-col.items-center.justify-center.space-y-0\.5 {
        gap: 0px !important;
    }

    [data-calendar-container] .space-y-0\.5 > * + * {
        margin-top: 0px !important;
    }
}

/* Tablet - Dashboard 3 colunas em vez de 5 */
@media (min-width: 641px) and (max-width: 1024px) {
    .dashboard-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    /* Valores dos hero metrics não devem sair da div em tablet */
    .dashboard-hero-metrics [data-metric] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Calendário do dashboard - prevenir overflow dos valores nos dias */
    [data-calendar-container] .font-semibold.text-\[11px\],
    [data-calendar-container] .font-medium.text-\[9px\] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* ACCOUNTS - Mobile adjustments */
@media (max-width: 640px) {
    /* Remove padding extra em mobile */
    .accounts-main-container {
        padding: 0.5rem !important;
    }
    
    .accounts-main-container > div {
        padding: 0 !important;
    }
    
    /* Cards de overview em 2 colunas */
    .accounts-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    .accounts-overview-grid > div > div {
        padding: 0.75rem !important;
    }
    
    .accounts-overview-grid .text-2xl {
        font-size: 1.125rem !important;
    }
    
    /* Título menor */
    .accounts-title {
        font-size: 1.5rem !important;
    }
    
    /* Botões de ordenação e visualização */
    .accounts-filter-row {
        flex-direction: column !important;
    }
    
    .accounts-filter-row > div:first-child {
        width: 100% !important;
    }
    
    /* Botões em linha */
    .accounts-view-buttons {
        justify-content: flex-end !important;
    }
}

/* Small mobile - single column for accounts */
@media (max-width: 480px) {
    .accounts-overview-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================================================ */
/* MODALS - Responsive adjustments */
/* ============================================================================================================ */

@media (max-width: 640px) {
    /* Modais ocupam quase toda a tela em mobile */
    [role="dialog"],
    .modal-content,
    .dialog-content {
        max-width: calc(100vw - 1rem) !important;
        max-height: 90vh !important;
        margin: 0 auto !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* Modais de conta específicos */
    #accountModal [role="dialog"],
    #accountDetailModal [role="dialog"] {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: 90vh !important;
        padding: 1rem !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        overflow-y: auto !important;
    }
    
    /* Padding interno dos modais */
    [role="dialog"] > div,
    .modal-body {
        padding: 1rem !important;
    }
    
    /* Título do modal menor */
    [role="dialog"] h2,
    .modal-title {
        font-size: 1.125rem !important;
    }
    
    /* Botões do modal em coluna quando necessário */
    .modal-footer,
    [role="dialog"] .flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .modal-footer button,
    [role="dialog"] .flex.gap-2 button {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    /* Conteúdo do modal de detalhes de conta */
    #detailModalContent .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    #detailModalContent .p-4 {
        padding: 0.75rem !important;
    }
    
    #detailModalContent .text-2xl {
        font-size: 1.25rem !important;
    }
}

/* ============================================================================================================ */
/* TABLES - Responsive scroll */
/* ============================================================================================================ */

@media (max-width: 768px) {
    /* Tabelas com scroll horizontal */
    .table-responsive,
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
    
    /* Ocultar colunas menos importantes em mobile */
    .hide-on-mobile {
        display: none !important;
    }
}

/* ============================================================================================================ */
/* GENERAL - Touch improvements */
/* ============================================================================================================ */

@media (max-width: 640px) {
    /* Botões mais fáceis de tocar em mobile */
    button,
    [role="button"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Links e elementos clicáveis */
    a,
    .clickable {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Inputs maiores para touch */
    input,
    select,
    textarea {
        font-size: 16px !important; /* Previne zoom no iOS */
    }
}

/* ============================================================================================================ */
/* CALENDAR DAY DETAIL MODAL - Mobile Responsive */
/* ============================================================================================================ */

@media (max-width: 640px) {
    /* Modal de detalhes do dia no calendário */
    #dayDetailModal [role="dialog"] {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: 90vh !important;
        padding: 0.75rem !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        overflow-y: auto !important;
        gap: 0.5rem !important;
    }
    
    /* Título do modal menor */
    #dayDetailModalTitle {
        font-size: 0.85rem !important;
    }
    
    /* Grid de métricas do modal - 3 colunas mais compactas */
    #dayDetailMetricsGrid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.15rem !important;
    }
    
    #dayDetailMetricsGrid > div {
        padding: 0.25rem !important;
        border-width: 1px !important;
    }
    
    /* Labels das métricas */
    #dayDetailMetricsGrid .text-\[11px\],
    #dayDetailMetricsGrid p[class*="text-muted"] {
        font-size: 0.4rem !important;
        margin-bottom: 0.0625rem !important;
    }
    
    /* Valores das métricas (text-2xl -> muito menor) */
    #dayDetailMetricsGrid .text-2xl {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
    }
    
    /* ESCONDER gráfico em mobile para dar mais espaço aos trades */
    #dayDetailChart {
        display: none !important;
    }
    
    /* Container do gráfico também esconder */
    #dayDetailModal .rounded-lg.border.bg-card:has(#dayDetailChart) {
        display: none !important;
    }
    
    /* Lista de trades em 1 coluna com mais espaço */
    #dayDetailTradesList {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
    }
    
    /* Cards de trade */
    #dayDetailTradesList > div {
        padding: 0.625rem !important;
    }
    
    /* Botão limpar dia menor */
    #dayDetailModal button[onclick*="clearDay"] {
        height: auto !important;
        padding: 0.375rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Header das operações mais compacto */
    #dayDetailModal .text-lg.font-semibold {
        font-size: 0.875rem !important;
    }

    /* ========== TRADE CARDS NO MODAL - Fontes menores em mobile ========== */
    /* Card de trade - padding menor */
    #dayDetailTradesList > div {
        padding: 0.5rem !important;
    }

    /* Número do trade (badge circular) */
    #dayDetailTradesList .absolute.-top-2.-right-2 {
        height: 1.25rem !important;
        width: 1.25rem !important;
        font-size: 0.5rem !important;
        top: -0.375rem !important;
        right: -0.375rem !important;
    }

    /* Nome do ativo (symbol) */
    #dayDetailTradesList h5.text-lg {
        font-size: 0.7rem !important;
        margin-bottom: 0.125rem !important;
    }

    /* Badge Win/Loss/BE */
    #dayDetailTradesList .inline-flex.items-center.rounded-full {
        font-size: 0.5rem !important;
        padding: 0.0625rem 0.375rem !important;
    }

    /* Valor do PnL ao lado do badge */
    #dayDetailTradesList span.text-lg.font-bold {
        font-size: 0.7rem !important;
    }

    /* Botões Editar/Excluir trade */
    #dayDetailTradesList button.rounded-md {
        height: 1.5rem !important;
        padding: 0 0.375rem !important;
        font-size: 0.55rem !important;
        min-height: auto !important;
        min-width: auto !important;
    }

    #dayDetailTradesList button.rounded-md svg {
        width: 10px !important;
        height: 10px !important;
        margin-right: 0.125rem !important;
    }

    /* RR e outras infos */
    #dayDetailTradesList .flex.gap-4.text-sm {
        font-size: 0.6rem !important;
        gap: 0.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Comentários */
    #dayDetailTradesList .text-sm.text-muted-foreground.leading-relaxed {
        font-size: 0.6rem !important;
    }

    /* Screenshots label */
    #dayDetailTradesList .text-xs.font-medium.text-muted-foreground {
        font-size: 0.55rem !important;
    }

    /* Screenshots images menores */
    #dayDetailTradesList img.h-24 {
        height: 3.5rem !important;
    }

    /* Espaçamento entre header e botões */
    #dayDetailTradesList .flex.items-start.justify-between.mb-3 {
        margin-bottom: 0.25rem !important;
    }

    /* Card "Adicionar Trade" menor */
    #dayDetailTradesList .min-h-\[200px\] {
        min-height: 80px !important;
    }

    #dayDetailTradesList .min-h-\[200px\] p.text-base {
        font-size: 0.7rem !important;
    }

    #dayDetailTradesList .min-h-\[200px\] p.text-xs {
        font-size: 0.55rem !important;
    }

    #dayDetailTradesList .min-h-\[200px\] svg.h-8 {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    #dayDetailTradesList .min-h-\[200px\] .p-4 {
        padding: 0.5rem !important;
    }
}

/* ============================================================================================================ */
/* ACCOUNTS PAGE - Chart Size Control */
/* ============================================================================================================ */

/* Gráfico de evolução do capital - garantir responsividade (apenas accounts page) */
#accounts-container [id^="equity-chart-"] {
    max-width: 100%;
    overflow: hidden;
}

#accounts-container [id^="equity-chart-"] svg {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
}

@media (max-width: 640px) {
    /* Gráfico de evolução do capital nas contas - apenas reduzir altura */
    #accounts-container [id^="equity-chart-"] {
        height: 80px !important;
    }
    
    #accounts-container [id^="equity-chart-"] svg {
        max-height: 80px;
    }
    
    /* Cards de contas - padding menor */
    #accounts-container .rounded-lg,
    #accounts-container .rounded-xl {
        padding: 0.75rem !important;
    }
    
    /* Stats dentro do card de conta */
    #accounts-container .grid.grid-cols-2 {
        gap: 0.5rem !important;
    }
    
    #accounts-container .text-lg {
        font-size: 0.875rem !important;
    }
    
    /* Label do gráfico */
    #accounts-container .text-sm.font-semibold.text-muted-foreground {
        font-size: 0.75rem !important;
    }
}

/* ============================================================================================================ */
/* CONFIRMATION MODAL - Beautiful replacement for confirm() */
/* ============================================================================================================ */

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.confirm-modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 400px;
    width: calc(100% - 2rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.2s ease-out;
}

.confirm-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.confirm-modal-icon.warning {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.confirm-modal-icon.info {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.confirm-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.confirm-modal-message {
    font-size: 0.875rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.confirm-modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 100px;
}

.confirm-modal-btn.cancel {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.confirm-modal-btn.cancel:hover {
    background: hsl(var(--accent));
}

.confirm-modal-btn.confirm {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.confirm-modal-btn.confirm:hover {
    opacity: 0.9;
}

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

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

/* ============================================================================================================ */
/* PREVENT HORIZONTAL SCROLL - Global */
/* ============================================================================================================ */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 768px) {
    /* Forçar todos elementos a respeitar largura da tela */
    * {
        max-width: 100vw;
    }
    
    /* Container principal */
    #root,
    main,
    .flex-1 {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Gráficos responsivos */
    canvas,
    svg:not(.lucide):not([class*="h-"]):not([class*="w-"]) {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Cards que podem ter conteúdo largo */
    .rounded-lg.border,
    .rounded-xl,
    .rounded-2xl {
        max-width: 100% !important;
        overflow: hidden;
    }
}