/* =====================================================================
   BOOKCENTER PRO V5 - Camada de design profissional
   ---------------------------------------------------------------------
   Carregado DEPOIS de style.css. Contem:
   1. Tokens de design (cores, espacos, tipografia, sombras)
   2. Componentes globais (botoes, container, badges)
   3. Header responsivo com menu mobile
   4. Secao "Modelos em destaque" (3 botoes condicionais + planos)
   5. Modal de video
   6. Wizard de criacao em 7 etapas
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. TOKENS                                                           */
/* ------------------------------------------------------------------ */
:root {
    --bcp-ink: #0a1130;
    --bcp-ink-2: #101b46;
    --bcp-text: #19213d;
    --bcp-muted: #5a6580;
    --bcp-bg: #f4f6fb;
    --bcp-surface: #ffffff;
    --bcp-border: #dfe5f2;
    --bcp-blue: #315dff;
    --bcp-purple: #7f35ff;
    --bcp-green: #19c86b;
    --bcp-amber: #f5a524;
    --bcp-danger: #e5484d;
    --bcp-grad: linear-gradient(135deg, var(--bcp-blue), var(--bcp-purple));
    --bcp-radius: 16px;
    --bcp-radius-lg: 26px;
    --bcp-shadow: 0 18px 50px rgba(10, 17, 48, .10);
    --bcp-shadow-sm: 0 8px 22px rgba(10, 17, 48, .08);
    --bcp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.bc-container {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}
@media (max-width: 560px) {
    .bc-container { width: calc(100% - 28px); }
}

/* ------------------------------------------------------------------ */
/* 2. BOTOES                                                           */
/* ------------------------------------------------------------------ */
.bc-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font: 800 .95rem/1 var(--bcp-font);
    cursor: pointer;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.bc-btn:hover { transform: translateY(-2px); }
.bc-btn:focus-visible { outline: 3px solid rgba(49, 93, 255, .4); outline-offset: 2px; }
.bc-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.bc-btn-primary { background: var(--bcp-grad); color: #fff !important; box-shadow: 0 14px 34px rgba(49, 93, 255, .26); }
.bc-btn-green   { background: var(--bcp-green); color: #fff !important; box-shadow: 0 14px 34px rgba(25, 200, 107, .22); }
.bc-btn-light   { background: #fff; color: var(--bcp-text) !important; border-color: var(--bcp-border); box-shadow: var(--bcp-shadow-sm); }
.bc-btn-ghost   { background: transparent; color: var(--bcp-blue) !important; border-color: rgba(49, 93, 255, .35); }
.bc-btn-ghost:hover { background: rgba(49, 93, 255, .07); }

/* ------------------------------------------------------------------ */
/* 3. HEADER RESPONSIVO                                                */
/* ------------------------------------------------------------------ */
.bcp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.bcp-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.bcp-brand { display: flex; align-items: center; text-decoration: none; }
.bcp-brand img { max-height: 52px; width: auto; display: block; }

.bcp-nav { display: flex; align-items: center; gap: 24px; }
.bcp-nav a {
    color: #5b647d;
    font: 700 .95rem/1 var(--bcp-font);
    text-decoration: none;
    padding: 8px 2px;
    transition: color .18s ease;
}
.bcp-nav a:hover, .bcp-nav a.active { color: var(--bcp-blue); }
.bcp-header-cta { white-space: nowrap; }

.bcp-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--bcp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--bcp-text);
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 960px) {
    .bcp-menu-toggle { display: inline-flex; }
    .bcp-header-cta { display: none; }
    .bcp-nav {
        position: fixed;
        inset: 71px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--bcp-border);
        box-shadow: var(--bcp-shadow);
        padding: 8px 20px 18px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: .22s ease;
    }
    .bcp-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .bcp-nav a { padding: 14px 4px; border-bottom: 1px solid #eef1f8; font-size: 1rem; }
    .bcp-nav a:last-child { border-bottom: 0; }
    .bcp-nav .bc-btn { margin-top: 10px; }
}

/* ------------------------------------------------------------------ */
/* 4. MODELOS EM DESTAQUE                                              */
/* ------------------------------------------------------------------ */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}
.model-card {
    display: flex;
    flex-direction: column;
    background: var(--bcp-surface);
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius-lg);
    overflow: hidden;
    box-shadow: var(--bcp-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.model-card:hover { transform: translateY(-5px); box-shadow: var(--bcp-shadow); }

.model-media {
    position: relative;
    height: 215px;
    background: linear-gradient(135deg, #16235a, #101735);
}
.model-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.model-trial-flag {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--bcp-green);
    color: #fff;
    font: 800 .76rem/1 var(--bcp-font);
    letter-spacing: .02em;
    box-shadow: 0 8px 20px rgba(25, 200, 107, .35);
}

.model-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.model-body h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.4px; color: var(--bcp-ink); }
.model-body > p { margin: 0; color: var(--bcp-muted); line-height: 1.6; font-size: .95rem; }

.model-perks { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0; padding: 0; list-style: none; }
.model-perks li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3a4a8f;
    font: 700 .76rem/1 var(--bcp-font);
}
.model-perks li i { color: var(--bcp-blue); }

.model-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f6f8ff;
    border: 1px dashed rgba(49, 93, 255, .3);
}
.model-pricing strong { font-size: 1.18rem; color: var(--bcp-ink); }
.model-pricing small { color: var(--bcp-muted); font-weight: 600; }

.model-actions { display: grid; gap: 9px; margin-top: auto; }
.model-actions .bc-btn { width: 100%; min-height: 46px; font-size: .9rem; }

/* ------------------------------------------------------------------ */
/* 5. MODAL DE VIDEO                                                   */
/* ------------------------------------------------------------------ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(7, 11, 28, .82);
    backdrop-filter: blur(6px);
}
.video-modal.open { display: flex; }
.video-modal-box {
    position: relative;
    width: min(920px, 100%);
    background: #0a1130;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .5);
}
.video-modal-box .ratio { position: relative; padding-top: 56.25%; }
.video-modal-box iframe, .video-modal-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}
.video-modal-close:hover { background: rgba(255, 255, 255, .26); }

/* ------------------------------------------------------------------ */
/* 6. WIZARD DE CRIACAO EM ETAPAS                                      */
/* ------------------------------------------------------------------ */
.wizard-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--bcp-font);
    color: var(--bcp-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(49, 93, 255, .10), transparent 38%),
        radial-gradient(circle at 95% 8%, rgba(127, 53, 255, .08), transparent 36%),
        var(--bcp-bg);
}

.wizard-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bcp-border);
}
.wizard-topbar-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.wizard-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 900 1.1rem/1 var(--bcp-font);
    color: var(--bcp-ink);
    text-decoration: none;
}
.wizard-logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bcp-grad);
    color: #fff;
    font-size: .92rem;
}
.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(25, 200, 107, .12);
    color: #0f7a43;
    font: 800 .82rem/1 var(--bcp-font);
}
.wizard-exit { color: var(--bcp-muted); text-decoration: none; font-weight: 700; font-size: .9rem; }
.wizard-exit:hover { color: var(--bcp-danger); }

.wizard-main { padding: 38px 0 80px; }
.wizard-shell { max-width: 860px; }
.wizard-head h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -1px; color: var(--bcp-ink); }
.wizard-head p { margin: 0 0 24px; color: var(--bcp-muted); line-height: 1.65; }

.wizard-progress {
    height: 7px;
    border-radius: 99px;
    background: #e4e9f5;
    overflow: hidden;
}
.wizard-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--bcp-grad);
    transition: width .35s ease;
}

.wizard-steps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 22px;
    padding: 0;
    list-style: none;
}
.wizard-steps-nav li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--bcp-border);
    background: #fff;
    color: var(--bcp-muted);
    font: 700 .8rem/1 var(--bcp-font);
    cursor: pointer;
    user-select: none;
    transition: .16s ease;
}
.wizard-steps-nav li span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: #e8ecf7;
    font-size: .72rem;
}
.wizard-steps-nav li.active { border-color: var(--bcp-blue); color: var(--bcp-blue); box-shadow: 0 6px 16px rgba(49, 93, 255, .14); }
.wizard-steps-nav li.active span { background: var(--bcp-grad); color: #fff; }
.wizard-steps-nav li.done { color: #0f7a43; border-color: rgba(25, 200, 107, .45); }
.wizard-steps-nav li.done span { background: var(--bcp-green); color: #fff; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wzIn .28s ease; }
@keyframes wzIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .wizard-step.active { animation: none; }
    .bc-btn, .model-card { transition: none; }
}

.wizard-card {
    background: var(--bcp-surface);
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius-lg);
    box-shadow: var(--bcp-shadow-sm);
    padding: 28px;
}
.wizard-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 1.3rem;
    letter-spacing: -.4px;
    color: var(--bcp-ink);
}
.wizard-card h2 i { color: var(--bcp-blue); }
.wizard-hint { margin: 0 0 22px; color: var(--bcp-muted); line-height: 1.6; font-size: .95rem; }

.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wz-col-2 { grid-column: 1 / -1; }
.wz-field { display: flex; flex-direction: column; gap: 7px; }
.wz-field > span { font: 700 .85rem/1 var(--bcp-font); color: var(--bcp-ink); }
.wz-field input, .wz-field textarea, .wz-repeater-item input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--bcp-border);
    border-radius: 12px;
    background: #fbfcff;
    font: 500 .95rem/1.4 var(--bcp-font);
    color: var(--bcp-text);
    transition: border-color .16s ease, box-shadow .16s ease;
    box-sizing: border-box;
}
.wz-field textarea { min-height: 110px; resize: vertical; }
.wz-field input:focus, .wz-field textarea:focus, .wz-repeater-item input:focus {
    outline: 0;
    border-color: var(--bcp-blue);
    box-shadow: 0 0 0 4px rgba(49, 93, 255, .12);
}
.wz-field input.invalid { border-color: var(--bcp-danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.wz-file input { padding: 10px; background: #fff; }

.wz-domain { display: flex; align-items: stretch; }
.wz-domain input { border-radius: 12px 0 0 12px; }
.wz-domain em {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--bcp-border);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #eef2ff;
    color: #3a4a8f;
    font: 700 .85rem/1 var(--bcp-font);
    font-style: normal;
    white-space: nowrap;
}
.wz-domain-preview {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(49, 93, 255, .07);
    color: var(--bcp-blue);
    font-weight: 700;
    word-break: break-all;
}

.wz-repeater { display: grid; gap: 12px; margin-bottom: 14px; }
.wz-repeater-item {
    display: grid;
    grid-template-columns: 1.4fr .7fr .6fr 1.5fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--bcp-border);
    border-radius: 14px;
    background: #fbfcff;
}
.wz-repeater-item.equipe { grid-template-columns: 1fr 1fr 1.4fr auto; }
.wz-remove {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(229, 72, 77, .3);
    border-radius: 11px;
    background: #fff;
    color: var(--bcp-danger);
    cursor: pointer;
}
.wz-remove:hover { background: rgba(229, 72, 77, .08); }

.wz-summary {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 16px;
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--bcp-border);
    border-radius: 14px;
    background: #fbfcff;
}
.wz-summary dt { font: 800 .85rem/1.5 var(--bcp-font); color: var(--bcp-muted); }
.wz-summary dd { margin: 0; font-weight: 600; color: var(--bcp-ink); word-break: break-word; }

.wz-review-note {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(25, 200, 107, .35);
    background: rgba(25, 200, 107, .07);
    color: #14532d;
    line-height: 1.6;
    margin-bottom: 20px;
}
.wz-review-note i { font-size: 1.3rem; color: var(--bcp-green); }
.wz-submit { width: 100%; min-height: 56px; font-size: 1rem; }

.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}
.wizard-counter { color: var(--bcp-muted); font: 700 .85rem/1 var(--bcp-font); }

.wizard-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.5;
}
.wizard-alert.error { background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .3); color: #9b1c1f; }
.wizard-alert.error a { color: inherit; }

@media (max-width: 760px) {
    .wz-grid { grid-template-columns: 1fr; }
    .wizard-card { padding: 20px; border-radius: 20px; }
    .wz-repeater-item, .wz-repeater-item.equipe { grid-template-columns: 1fr; }
    .wz-remove { justify-self: end; }
    .wz-summary { grid-template-columns: 1fr; gap: 2px 0; }
    .wz-summary dt { margin-top: 10px; }
    .wizard-badge span { display: none; }
    .wizard-nav { flex-wrap: wrap; }
    .wizard-nav .bc-btn { flex: 1; min-width: 130px; }
    .wizard-counter { width: 100%; text-align: center; order: 3; }
    .wizard-steps-nav { gap: 5px; }
    .wizard-steps-nav li { padding: 7px 9px; font-size: .72rem; }
}
@media (max-width: 460px) {
    .wizard-steps-nav li { padding: 7px; }
    .wizard-steps-nav li:not(.active):not(.done) { color: transparent; width: 34px; overflow: hidden; }
    .wizard-steps-nav li:not(.active):not(.done) span { color: var(--bcp-muted); }
}

/* ------------------------------------------------------------------ */
/* 7. PLANOS (frontend)                                                */
/* ------------------------------------------------------------------ */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: var(--bcp-surface);
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius-lg);
    box-shadow: var(--bcp-shadow-sm);
}
.plan-card.featured { border-color: var(--bcp-blue); box-shadow: 0 20px 56px rgba(49, 93, 255, .16); }
.plan-flag {
    position: absolute;
    top: -13px;
    left: 22px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bcp-grad);
    color: #fff;
    font: 800 .74rem/1 var(--bcp-font);
}
.plan-card h3 { margin: 0; font-size: 1.15rem; color: var(--bcp-ink); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 2rem; letter-spacing: -1px; color: var(--bcp-ink); }
.plan-price span { color: var(--bcp-muted); font-weight: 600; }
.plan-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan-card ul li { display: flex; gap: 9px; color: var(--bcp-text); line-height: 1.5; font-size: .93rem; }
.plan-card ul li i { color: var(--bcp-green); margin-top: 2px; }
.plan-card .bc-btn { margin-top: auto; }
