/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-input: #2a2a2a;
    --border: #333;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent: #00c853;
    --accent-hover: #00e676;
    --accent-dark: #009624;
    --danger: #ff4444;
    --warning: #ffbb33;
    --success: #00c853;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --transition: all 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 500px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.main-header {
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo img { height: 36px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 16px; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.user-menu-btn:hover { border-color: var(--accent); }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 200px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 100;
}
.user-dropdown.active { display: block; }
.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg-input); color: var(--accent); }
.logout-link { color: var(--danger) !important; }
.logout-link:hover { color: var(--danger) !important; }
.dropdown-divider { border-top: 1px solid var(--border); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); color: #000; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card-text { font-size: 0.9rem; color: var(--text-secondary); }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.product-card .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.product-card { position: relative; }
.product-card .card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* === ALERTS === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 0.9rem;
}
.alert-error { background: rgba(255,68,68,0.15); border: 1px solid rgba(255,68,68,0.3); color: #ff6b6b; }
.alert-success { background: rgba(0,200,83,0.15); border: 1px solid rgba(0,200,83,0.3); color: var(--accent); }
.alert-warning { background: rgba(255,187,51,0.15); border: 1px solid rgba(255,187,51,0.3); color: var(--warning); }

/* === AUTH PAGES === */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-card h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: center;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === ADMIN === */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 64px);
}
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 0;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--bg-input);
    color: var(--accent);
    border-right: 3px solid var(--accent);
}
.admin-content { padding: 32px; }
.admin-content h1 { font-size: 1.5rem; margin-bottom: 24px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* === COURSE VIEWER === */
.course-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: calc(100vh - 64px);
}
.course-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    max-height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
}
.course-sidebar .module-title {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.course-sidebar .module-title:hover { color: var(--text-secondary); }
.course-sidebar .lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 28px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(51,51,51,0.5);
}
.course-sidebar .lesson-item:hover, .course-sidebar .lesson-item.active {
    background: var(--bg-input);
    color: var(--accent);
}
.course-content { padding: 32px; overflow-y: auto; }

/* === VIDEO PLAYER (Plyr) === */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 32px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Plyr protection wrapper */
.plyr-protected {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Gradient overlays to hide YouTube native UI */
.plyr-protected .plyr__video-embed::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.7) 55%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
.plyr-protected .plyr__video-embed::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Block iframe interaction */
.plyr-protected iframe { pointer-events: none !important; }

/* Plyr controls above overlays */
.plyr-protected .plyr__controls { z-index: 10; position: relative; }
.plyr-protected .plyr__control--overlaid { z-index: 10; }
.plyr-protected .plyr__video-embed__container { overflow: hidden; }

/* === Plyr Dark Theme === */
.plyr--video {
    --plyr-color-main: #00c853;
    --plyr-video-control-color: #f0f0f0;
    --plyr-video-control-color-hover: #fff;
    --plyr-video-control-background-hover: rgba(0,200,83,0.2);
    --plyr-range-fill-background: #00c853;
    --plyr-range-thumb-background: #00c853;
    --plyr-range-thumb-shadow: 0 1px 3px rgba(0,0,0,0.5);
    --plyr-range-thumb-height: 14px;
    --plyr-range-track-height: 4px;
    --plyr-video-controls-background: linear-gradient(transparent, rgba(0,0,0,0.85));
    border-radius: var(--radius);
    overflow: hidden;
}

/* Big center play button */
.plyr--video .plyr__control--overlaid {
    background: rgba(0,200,83,0.9) !important;
    border-radius: 50% !important;
    width: 68px !important;
    height: 68px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 24px rgba(0,200,83,0.35);
    opacity: 1 !important;
}
.plyr--video .plyr__control--overlaid:hover {
    background: #00e676 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(0,200,83,0.5);
}
.plyr--video .plyr__control--overlaid svg { left: 2px; }

/* Controls bar */
.plyr--video .plyr__controls {
    padding: 6px 10px !important;
    font-size: 0.85rem;
}
.plyr--video .plyr__controls .plyr__control {
    border-radius: 6px;
}
.plyr--video .plyr__controls .plyr__control:hover {
    background: rgba(0,200,83,0.2);
}

/* Progress bar */
.plyr--video .plyr__progress__buffer { background: rgba(255,255,255,0.15); }
.plyr--video input[type="range"]::-webkit-slider-runnable-track { border-radius: 4px; }
.plyr--video input[type="range"]::-webkit-slider-thumb { border-radius: 50%; }

/* Tooltip */
.plyr__tooltip {
    background: #1e1e1e !important;
    color: #f0f0f0 !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6) !important;
    border: 1px solid #333 !important;
}

/* Volume slider smooth */
.plyr--video .plyr__volume input[type="range"] { max-width: 80px; }

/* Fullscreen */
.plyr--fullscreen-active { border-radius: 0; }
.plyr--fullscreen-active .plyr__video-embed::before,
.plyr--fullscreen-active .plyr__video-embed::after { display: none; }

/* === VSL Player (Sales Page) - No Progress / No Time === */
.plyr-vsl .plyr__progress,
.plyr-vsl .plyr__time,
.plyr-vsl [data-plyr="current-time"],
.plyr-vsl [data-plyr="duration"],
.plyr-vsl .plyr__time--current,
.plyr-vsl .plyr__time--duration,
.plyr-vsl .plyr__menu,
.plyr-vsl .plyr__progress__container {
    display: none !important;
}
.plyr-vsl .plyr--video .plyr__controls {
    justify-content: center;
    gap: 4px;
}

/* Rich Text Content */
.rich-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.rich-content h1, .rich-content h2, .rich-content h3 { margin: 32px 0 16px; }
.rich-content h1 { font-size: 2rem; }
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.2rem; }
.rich-content p { margin-bottom: 16px; }
.rich-content img { border-radius: var(--radius-sm); margin: 24px 0; }
.rich-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--text-secondary);
    margin: 20px 0;
}
.rich-content ul, .rich-content ol { padding-left: 24px; margin-bottom: 16px; }
.rich-content li { margin-bottom: 8px; }
.rich-content code {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* === COMMUNITY === */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.post-meta .post-author { font-weight: 600; font-size: 0.95rem; }
.post-meta .post-date { font-size: 0.8rem; color: var(--text-muted); }
.post-body { font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.post-body img { border-radius: var(--radius-sm); margin-top: 12px; max-height: 400px; }
.post-product {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
}
.post-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.post-product .product-info { flex: 1; }
.post-product .product-name { font-weight: 600; font-size: 0.9rem; }

.comments-section { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.comment {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
}
.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-author { font-weight: 600; font-size: 0.8rem; color: var(--text-secondary); }
.comment-text { margin-top: 2px; color: var(--text-primary); }
.comment-reply { margin-left: 40px; }

.comment-form { display: flex; gap: 10px; margin-top: 12px; }
.comment-form input { flex: 1; }
.comment-form .btn { flex-shrink: 0; }

/* === SALES PAGE === */
.sales-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}
.sales-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.sales-hero .subheadline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.sales-section {
    padding: 60px 20px;
}
.sales-section:nth-child(even) { background: var(--bg-secondary); }
.sales-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.benefit-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.benefit-item .icon { font-size: 2rem; margin-bottom: 12px; }
.benefit-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit-item p { color: var(--text-secondary); font-size: 0.9rem; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.testimonial-card .stars { color: var(--warning); margin-bottom: 12px; }
.testimonial-card .text { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
.testimonial-card .author { font-weight: 600; font-size: 0.9rem; }

.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 16px 20px;
    background: var(--bg-card);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover { background: var(--bg-input); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 16px 20px; }
.faq-item.active .faq-question { color: var(--accent); }

/* Checkout Section */
.checkout-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}
.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}
.checkout-card h2 { text-align: center; margin-bottom: 8px; }
.price-display {
    text-align: center;
    margin: 20px 0 30px;
}
.price-display .price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}
.price-display .price-installment {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.checkout-steps { display: flex; justify-content: center; gap: 24px; margin-bottom: 32px; }
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.checkout-step.active { color: var(--accent); }
.checkout-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.checkout-step.active .step-num { background: var(--accent); color: #000; border-color: var(--accent); }

.payment-methods { display: flex; gap: 12px; margin-bottom: 24px; }
.payment-method {
    flex: 1;
    padding: 14px;
    text-align: center;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-secondary);
}
.payment-method.active, .payment-method:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.saved-cards { margin-bottom: 20px; }
.saved-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
}
.saved-card.selected, .saved-card:hover { border-color: var(--accent); }
.saved-card .card-brand { font-weight: 600; }
.saved-card .card-number { color: var(--text-secondary); font-size: 0.9rem; }

/* PIX Display */
.pix-display {
    text-align: center;
    padding: 24px;
}
.pix-qr { max-width: 250px; margin: 0 auto 16px; }
.pix-code {
    background: var(--bg-input);
    padding: 12px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Installment Selector */
.installment-options { margin-bottom: 20px; }
.installment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.installment-option:hover, .installment-option.selected {
    border-color: var(--accent);
    background: rgba(0,200,83,0.05);
}
.installment-option .parcela { font-weight: 600; }
.installment-option .total { font-size: 0.85rem; color: var(--text-secondary); }

/* Speed Checkout */
.speed-checkout {
    background: linear-gradient(135deg, rgba(0,200,83,0.1), rgba(0,200,83,0.05));
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.speed-checkout h3 { margin-bottom: 12px; color: var(--accent); }

/* === FOOTER === */
.main-footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.d-none { display: none; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: rgba(0,200,83,0.2); color: var(--accent); }
.badge-warning { background: rgba(255,187,51,0.2); color: var(--warning); }
.badge-danger { background: rgba(255,68,68,0.2); color: var(--danger); }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
    padding: 12px 24px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 64px;
        width: 260px;
        height: calc(100vh - 64px);
        z-index: 999;
        transition: var(--transition);
    }
    .admin-sidebar.open { left: 0; }
    .course-layout { grid-template-columns: 1fr; }
    .course-sidebar {
        position: fixed;
        left: -300px;
        top: 64px;
        width: 300px;
        height: calc(100vh - 64px);
        z-index: 999;
        transition: var(--transition);
    }
    .course-sidebar.open { left: 0; }
    .sales-hero h1 { font-size: 1.8rem; }
    .auth-card { padding: 24px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal h2 { margin-bottom: 20px; }
