/* =============================================
   DRAVEX Curso Page Styles
   ============================================= */

/* --- Timer Bar (sticky top) --- */
.timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #1a1a2e, #16162a);
    border-bottom: 1px solid rgba(108,43,217,.3);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.timer-bar .timer-label {
    font-size: .85rem;
    color: #a0a0b2;
    font-weight: 500;
}
.timer-bar .timer-countdown {
    display: flex;
    gap: 10px;
    align-items: center;
}
.timer-bar .timer-unit {
    text-align: center;
}
.timer-bar .timer-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(108,43,217,.25);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 40px;
    display: inline-block;
}
.timer-bar .timer-unit-label {
    font-size: .65rem;
    color: #606072;
    text-transform: uppercase;
    margin-top: 2px;
}
.timer-bar .timer-sep {
    color: #606072;
    font-size: 1.1rem;
    font-weight: 700;
}
.timer-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.05);
}
.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #6C2BD9, #00D4FF);
    transition: width 1s linear;
    border-radius: 0 2px 2px 0;
}

/* --- Course Page Layout --- */
.curso-page {
    min-height: 100vh;
    background: #0D0D0D;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.curso-page.has-timer {
    padding-top: 70px;
}
.curso-page .navbar {
    top: 0;
}
.curso-page.has-timer .navbar {
    top: 56px;
}

/* --- Loading State --- */
.curso-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 16px;
}
.curso-loading .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(108,43,217,.2);
    border-top-color: #6C2BD9;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.curso-loading p {
    color: #a0a0b2;
    font-size: .95rem;
}

/* --- Blocked State --- */
.curso-blocked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 40px 20px;
}
.curso-blocked .blocked-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(239,68,68,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #EF4444;
    margin-bottom: 20px;
}
.curso-blocked h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.curso-blocked .blocked-desc {
    color: #a0a0b2;
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.7;
}
.curso-blocked .blocked-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #10B981;
    margin-bottom: 24px;
}
.curso-blocked .blocked-expired {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 10px;
    padding: 12px 20px;
    color: #EF4444;
    font-size: .9rem;
    margin-bottom: 20px;
}

/* --- Active Course Content --- */
.curso-hero {
    background: linear-gradient(135deg, rgba(108,43,217,.2), rgba(0,212,255,.05));
    padding: 80px 20px 50px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.curso-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.curso-hero p {
    color: #a0a0b2;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Downloads Section --- */
.curso-downloads {
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.curso-downloads h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.curso-downloads h2 i {
    color: #6C2BD9;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.download-card {
    background: #16161E;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 24px;
    transition: .3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.download-card:hover {
    border-color: rgba(108,43,217,.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,43,217,.15);
}
.download-card .dc-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.download-card.boost .dc-icon { background: rgba(16,185,129,.15); color: #10B981; }
.download-card.restore .dc-icon { background: rgba(245,158,11,.15); color: #F59E0B; }
.download-card.status .dc-icon { background: rgba(0,212,255,.15); color: #00D4FF; }
.download-card h4 {
    font-size: 1rem;
    font-weight: 600;
}
.download-card p {
    font-size: .85rem;
    color: #a0a0b2;
    line-height: 1.5;
    flex: 1;
}
.download-card .btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(108,43,217,.2);
    border: 1px solid rgba(108,43,217,.3);
    color: #fff;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    text-decoration: none;
}
.download-card .btn-download:hover {
    background: #6C2BD9;
    border-color: #6C2BD9;
}

/* --- Course Modules (content) --- */
.curso-modules {
    padding: 30px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}
.curso-modules h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.curso-modules h2 i {
    color: #6C2BD9;
}
.curso-mod {
    background: #16161E;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.curso-mod-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: .2s;
}
.curso-mod-head:hover {
    background: rgba(108,43,217,.05);
}
.curso-mod-num {
    font-family: 'Orbitron', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: #6C2BD9;
    background: rgba(108,43,217,.15);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
}
.curso-mod-head h3 {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}
.curso-mod-head i.chevron {
    color: #606072;
    transition: .3s;
}
.curso-mod.open .curso-mod-head i.chevron {
    transform: rotate(180deg);
}
.curso-mod-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.curso-mod.open .curso-mod-body {
    max-height: 1000px;
}
.curso-mod-content {
    padding: 0 20px 20px;
    color: #c0c0d0;
    font-size: .92rem;
    line-height: 1.7;
}
.curso-mod-content ul {
    margin: 10px 0;
    padding-left: 20px;
}
.curso-mod-content li {
    margin-bottom: 6px;
}
.curso-mod-content code {
    background: rgba(108,43,217,.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85rem;
}
.curso-mod-content .mod-tip {
    background: rgba(16,185,129,.1);
    border-left: 3px solid #10B981;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-top: 12px;
    font-size: .88rem;
}
.curso-mod-content .mod-warning {
    background: rgba(245,158,11,.1);
    border-left: 3px solid #F59E0B;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-top: 12px;
    font-size: .88rem;
}

/* --- PIX Modal for course --- */
.curso-pix-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.curso-pix-overlay.open {
    display: flex;
}
.curso-pix-modal {
    background: #16161E;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}
.curso-pix-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.curso-pix-modal .pix-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: #10B981;
    margin-bottom: 20px;
}
.curso-pix-modal .pix-key-box {
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.curso-pix-modal .pix-key-label {
    font-size: .8rem;
    color: #a0a0b2;
    margin-bottom: 8px;
}
.curso-pix-modal .pix-key-val {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.curso-pix-modal .pix-copy {
    margin-top: 10px;
    padding: 8px 20px;
    background: #6C2BD9;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    transition: .3s;
}
.curso-pix-modal .pix-copy:hover {
    background: #8B5CF6;
}
.curso-pix-modal .pix-instructions {
    font-size: .85rem;
    color: #a0a0b2;
    text-align: left;
    margin: 16px 0;
    line-height: 1.7;
}
.curso-pix-modal .pix-instructions ol {
    padding-left: 18px;
}
.curso-pix-modal .pix-close {
    margin-top: 12px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: #a0a0b2;
    border-radius: 8px;
    cursor: pointer;
    font-size: .85rem;
    transition: .3s;
}
.curso-pix-modal .pix-close:hover {
    border-color: #fff;
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .timer-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
    .timer-bar .timer-value { font-size: .9rem; padding: 3px 7px; }
    .curso-hero h1 { font-size: 1.6rem; }
    .download-grid { grid-template-columns: 1fr; }
    .curso-blocked .blocked-price { font-size: 1.6rem; }
}
