/* Custom CSS */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-bottom: 40px;
}

.card-curve {
    transition: transform 0.2s;
    border: 1px solid #dee2e6;
}

.card-curve:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.model-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
}

.rating-stars {
    color: #ffc107;
}

.chat-box {
    height: 400px;
    overflow-y: scroll;
    border: 1px solid #dee2e6;
    padding: 15px;
    background-color: #fff;
}

/* === MARKETPLACE: Botão Piscante (Blink) === */
.marketplace-blink-btn {
    color: #fff !important;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcc00);
    background-size: 200% 200%;
    border-radius: 6px;
    padding: 5px 12px !important;
    margin: 3px 8px 3px 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    animation: marketplace-blink-shine 2s ease-in-out infinite, marketplace-blink-bg 4s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.marketplace-blink-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6);
    color: #fff !important;
}

.marketplace-blink-btn i {
    animation: marketplace-blink-icon 1s ease-in-out infinite;
}

@keyframes marketplace-blink-shine {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4), 0 0 0 0 rgba(255, 204, 0, 0);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4), 0 0 12px 3px rgba(255, 204, 0, 0.7);
    }
}

@keyframes marketplace-blink-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes marketplace-blink-icon {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    25% { transform: rotate(-8deg) scale(1.1); opacity: 0.9; }
    75% { transform: rotate(8deg) scale(1.1); opacity: 0.9; }
}

/* CTA ANIMADO DENTRO DO DASHBOARD - alinhado a altura do titulo */
.dashboard-marketplace-cta {
    font-size: 1.25rem !important;        /* FONTE BEM MAIOR */
    font-weight: 800 !important;
    padding: 14px 26px !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 8px rgba(255,255,255,0.3);
    background: linear-gradient(45deg, #ff3d00, #ff9100, #ffd600, #ff9100, #ff3d00);
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(255, 61, 0, 0.55),
                0 0 0 0 rgba(255, 214, 0, 0.7);
    animation:
        dash-cta-bg      2.8s ease-in-out infinite,
        dash-cta-pulse   1.1s ease-in-out infinite,
        dash-cta-glow    1.4s ease-out infinite,
        dash-cta-shake   2.2s ease-in-out infinite;
    transition: transform 0.15s ease;
}
/* Brilho que percorre o botao (shimmer / piscar) */
.dashboard-marketplace-cta::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255,255,255,0.55) 50%,
        transparent 100%);
    animation: dash-cta-shimmer 1.6s ease-in-out infinite;
}
.dashboard-marketplace-cta:hover {
    transform: translateY(-2px) scale(1.04) !important;
    color: #fff !important;
    text-decoration: none !important;
}
.dashboard-marketplace-cta i {
    animation: marketplace-blink-icon 0.8s ease-in-out infinite;
}

/* === Animações INTENSAS do CTA do Dashboard === */
@keyframes dash-cta-bg {
    0%, 100% { background-position:   0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes dash-cta-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
@keyframes dash-cta-glow {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(255, 61, 0, 0.55),
                    0 0 0 0 rgba(255, 214, 0, 0.0);
    }
    50% {
        box-shadow: 0 6px 24px rgba(255, 61, 0, 0.75),
                    0 0 0 12px rgba(255, 214, 0, 0.0),
                    0 0 30px 6px rgba(255, 145, 0, 0.45);
    }
}
@keyframes dash-cta-shake {
    0%, 100%      { transform: rotate(0deg)  scale(1); }
    5%            { transform: rotate(-1.2deg); }
    10%           { transform: rotate(1.2deg);  }
    15%           { transform: rotate(-0.8deg); }
    20%           { transform: rotate(0.8deg);  }
    25%, 100%     { transform: rotate(0deg);    }
}
@keyframes dash-cta-shimmer {
    0%   { left: -100%; }
    100% { left:  120%; }
}

/* === MARKETPLACE: Geral === */
.marketplace-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
    background: #fff;
    will-change: transform;
}
.marketplace-card:hover {
    transform: translateY(-7px) scale(1.028);
    box-shadow:
        0 18px 44px -12px rgba(10,20,50,.26),
        0 6px 18px -5px rgba(255,145,0,.35);
    border-color: #ffb74d;
    z-index: 5;
}
.marketplace-card img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.marketplace-card:hover img { transform: scale(1.07); }

.marketplace-card .featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}
.marketplace-card .paid-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}
.marketplace-courses-card {
    border-left: 4px solid #6f42c1;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.marketplace-courses-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -10px rgba(111,66,193,.28);
}
.marketplace-model-tab.nav-link {
    font-weight: 600;
    transition: all .2s ease;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
}
.marketplace-model-tab.nav-link:hover { background: #fff8e1; }
.marketplace-model-tab.nav-link.active {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255,107,53,.3);
}

/* =========================================================
   TÍTULO ANIMADO DO MARKETPLACE - BOTAO PISCANTE
   ========================================================= */
.marketplace-title-animated {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 14px;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    background: linear-gradient(45deg, #ff3d00, #ff6f00, #ffc400, #ff6f00, #ff3d00);
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,.25);
    animation:
        marketplace-title-bg   3s ease-in-out infinite,
        marketplace-title-glow 1.5s ease-out infinite,
        marketplace-title-shake 2.4s ease-in-out infinite;
}
.marketplace-title-animated i { animation: marketplace-blink-icon .9s ease-in-out infinite; }
.marketplace-title-animated::after {
    content: "";
    position: absolute;
    top: 0; left: -110%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.65), transparent);
    animation: dash-cta-shimmer 1.8s ease-in-out infinite;
}
@keyframes marketplace-title-bg {
    0%,100% { background-position:   0% 50%; }
    50%     { background-position: 100% 50%; }
}
@keyframes marketplace-title-glow {
    0%,100% { box-shadow: 0 8px 22px rgba(255,87,34,.4); }
    50%     { box-shadow: 0 10px 30px rgba(255,87,34,.6), 0 0 20px 4px rgba(255,193,7,.4); }
}
@keyframes marketplace-title-shake {
    0%,92%,100% { transform: rotate(0); }
    94%  { transform: rotate(-.8deg); }
    97%  { transform: rotate(.8deg);  }
}

/* Legal Disclaimer no Marketplace */
.marketplace-disclaimer {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px dashed #ffc107;
    border-radius: 8px;
}

/* Modal HTML Preview com TOOLBAR de ZOOM */
.html-preview-modal .modal-body {
    padding: 0;
    max-height: 75vh;
    position: relative;
    background: #fafafa;
    overflow: auto;
}
.html-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.html-preview-toolbar .zoom-level {
    min-width: 64px;
    text-align: center;
    background: #fff3e0;
    color: #e65100;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
}
.html-preview-modal iframe {
    width: 100%;
    min-height: 75vh;
    border: 0;
    display: block;
    background: #fff;
    transition: transform .25s ease;
    transform-origin: top left;
}

/* Courses */
.course-card-img {
    height: 180px;
    object-fit: cover;
}
.course-price-tag {
    background: linear-gradient(45deg, #6f42c1, #9b59b6);
    color: #fff;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Paginação do Marketplace (igual modulo curves) */
.marketplace-pagination .page-item .page-link {
    border-radius: 10px;
    margin: 0 3px;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
    font-weight: 600;
    transition: all .18s ease;
}
.marketplace-pagination .page-item.active .page-link {
    background: linear-gradient(45deg,#ff6f00,#ffc400);
    border-color: #ff6f00;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255,111,0,.35);
}
.marketplace-pagination .page-item.disabled .page-link {
    opacity: .55;
    cursor: not-allowed;
}
.marketplace-pagination .page-link:hover { background: #fff3e0; transform: translateY(-2px); }

/* ======================================================== */
/* Ajustes: Preço extraído do anúncio + Preview Fundo Preto */
/* ======================================================== */

/* Badge de preço no card */
.mp-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #00c853, #007e33);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(0,200,83,.45), inset 0 1px 0 rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.15);
    letter-spacing: .3px;
    font-family: system-ui, "Segoe UI", Roboto, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
    backdrop-filter: blur(6px);
}

/* Ajustes para badge Premium e Preço não colidirem */
.marketplace-card .featured-badge { top: 10px; left: 10px; max-width: 50%; }
.marketplace-card .mp-price-badge { top: 10px; right: 10px; max-width: 50%; }

/* ====== Fundo PRETO na Prévia do anúncio (Dark Mode Elegante) ====== */
.marketplace-html-ad-preview {
    background: #0a0a0a !important;
    color: #e6e6e6 !important;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid #1f1f1f;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.75);
    overflow-x: auto;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.marketplace-html-ad-preview * {
    color-scheme: dark !important;
}
.marketplace-html-ad-preview h1,
.marketplace-html-ad-preview h2,
.marketplace-html-ad-preview h3,
.marketplace-html-ad-preview h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-top: 14px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.marketplace-html-ad-preview h1 { font-size: 1.45rem !important; }
.marketplace-html-ad-preview h2 { font-size: 1.2rem !important; }
.marketplace-html-ad-preview p,
.marketplace-html-ad-preview span,
.marketplace-html-ad-preview li,
.marketplace-html-ad-preview td,
.marketplace-html-ad-preview div {
    color: #d9d9d9 !important;
}
.marketplace-html-ad-preview b,
.marketplace-html-ad-preview strong {
    color: #ffffff !important;
}
.marketplace-html-ad-preview a,
.marketplace-html-ad-preview a:hover,
.marketplace-html-ad-preview a:visited {
    color: #ffb74d !important;
    text-decoration: underline !important;
}
.marketplace-html-ad-preview img {
    border-radius: 10px !important;
    border: 2px solid #2a2a2a !important;
    margin: 6px 0 !important;
    max-width: 100% !important;
    height: auto !important;
}
.marketplace-html-ad-preview table {
    background: #141414 !important;
    border-color: #2a2a2a !important;
    color: #e6e6e6 !important;
    border-collapse: collapse;
}
.marketplace-html-ad-preview hr {
    border-color: #2a2a2a !important;
}

/* Destaque Preço Extraído do HTML (dentro do modal body) */
.mp-ad-price-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #ff6f00, #ffc400);
    color: #1a1a1a;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 6px 0 12px;
    box-shadow: 0 4px 14px rgba(255,111,0,.55);
}

/* Suavizar scrollbar do preview (fundo escuro) */
.marketplace-html-ad-preview::-webkit-scrollbar { height: 9px; width: 9px; }
.marketplace-html-ad-preview::-webkit-scrollbar-track { background: #000; border-radius: 8px; }
.marketplace-html-ad-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#ff6f00,#ffc400);
    border-radius: 8px; border: 1px solid #000;
}

