/* =========================================================
   Hotflixx — Meus sites (FASE EXPERIMENTAL)
========================================================= */

/* Etiqueta no menu */
.nav-badge-exp {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--warning) 55%, transparent);
    background: color-mix(in srgb, var(--warning) 14%, transparent);
    color: var(--warning);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.4;
    white-space: nowrap;
}

.nav-item:has(.nav-badge-exp) > span:not(.nav-icon) { white-space: nowrap; }
.nav-item:has(.nav-badge-exp) { gap: 10px; }

.exp-kicker { color: var(--warning); font-weight: 800; }

/* Aviso no topo da página */
.sites-exp-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
    background: color-mix(in srgb, var(--warning) 10%, var(--surface));
}
.sites-exp-icon { font-size: 22px; line-height: 1; }
.sites-exp-notice strong { display: block; color: var(--warning); font-size: 14px; margin-bottom: 2px; }
.sites-exp-notice p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.5; }

.sites-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.sites-upload-card,
.sites-list {
    min-width: 0;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.sites-upload-card h3,
.sites-list > h3 { margin: 0 0 12px; font-size: 16px; }

.sites-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.sites-steps strong { color: var(--text); }

.sites-form { display: flex; flex-direction: column; gap: 10px; }
.sites-label { font-size: 13px; font-weight: 700; }
.sites-input {
    width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text); font: inherit; font-size: 14px;
}
.sites-input:focus { outline: none; border-color: var(--accent); }
.sites-msg { margin: 0; font-size: 13px; font-weight: 600; }
.sites-msg[hidden] { display: none; }
.sites-msg[data-kind="ok"] { color: var(--success); }
.sites-msg[data-kind="error"] { color: var(--danger, #e5484d); }

.sites-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px;
    border-radius: 12px;
    border: 1.5px dashed var(--border-strong);
    background: var(--surface-2);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.sites-drop:hover, .sites-drop.is-over { border-color: var(--accent); background: var(--surface-3); }
.sites-drop.is-disabled { opacity: .5; cursor: not-allowed; }
.sites-drop span { font-weight: 700; font-size: 14px; word-break: break-all; }
.sites-drop small { color: var(--text-muted); font-size: 12px; }

.sites-limit { margin: 0; }

.site-progress { display: flex; flex-direction: column; gap: 6px; }
.site-progress[hidden] { display: none; }
.site-progress > div { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.site-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.site-progress span { font-size: 12.5px; color: var(--text-muted); }

.sites-report {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
    font-size: 13px;
}
.sites-report strong { color: var(--success); }
.sites-report ul { margin: 6px 0; padding-left: 18px; line-height: 1.5; }
.sites-report p { margin: 0; color: var(--text-muted); }

.sites-empty { color: var(--text-muted); font-size: 14px; margin: 4px 0 14px; }

.site-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.site-card.is-off { opacity: .75; border-style: dashed; }
.site-card-icon {
    flex: 0 0 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.site-card-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.site-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-card-title h3 { margin: 0; font-size: 15px; word-break: break-word; }
.site-off-tag {
    font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px;
    color: var(--danger, #e5484d); border: 1px solid currentColor;
}

.site-link-row { display: flex; gap: 6px; min-width: 0; }
.site-link {
    flex: 1; min-width: 0;
    height: 36px; padding: 0 10px; box-sizing: border-box;
    border-radius: 9px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.site-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.site-meta { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.site-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.site-delete:hover { color: var(--danger, #e5484d); border-color: var(--danger, #e5484d); }

.sites-help {
    margin-top: 6px; padding: 12px 14px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted); line-height: 1.55;
}
.sites-help strong { color: var(--text); }
.sites-help p { margin: 6px 0 0; }

.sites-locked {
    max-width: 460px; margin: 10px auto; padding: 28px 22px; text-align: center;
    border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
}
.sites-locked-icon {
    width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 12px;
    display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted);
}
.sites-locked h3 { margin: 0 0 6px; }
.sites-locked p { margin: 0 0 16px; color: var(--text-muted); }

@media (max-width: 900px) {
    .sites-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .site-card { flex-direction: column; }
    .site-card-icon { align-self: flex-start; width: 40px; }
    .site-link-row { flex-wrap: wrap; }
    .site-link { flex-basis: 100%; }
    .site-link-row .site-btn { flex: 1; }
    .site-actions .site-btn { flex: 1 1 auto; }
}

/* Pedido de adição de produtos (enviado pela Hotflixx) */
.offer-box { text-align: left; }
.offer-box h3, .offer-box .notice-icon { text-align: center; }
.offer-small { font-size: 13px; color: var(--text-muted); }
.offer-msg { min-height: 0; margin: 0; font-size: 13.5px; font-weight: 600; }
.offer-msg:empty { display: none; }
.offer-msg[data-kind="ok"] { color: var(--success); }
.offer-msg[data-kind="error"] { color: var(--danger, #e5484d); }
.offer-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.offer-actions button { flex: 1; }
.offer-later { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
