/* ConnectTV Cardápio SaaS — estilos compartilhados */
:root {
    --gold: #c9a227;
    --gold-soft: #f5e6b8;
    --surface: rgba(255, 255, 255, 0.045);
    --line: rgba(201, 162, 39, 0.28);
    --bg: #050508;
    --text: #eceae6;
    --muted: #a8a29e;
    --ok: #4ade80;
    --warn: #fbbf24;
    --err: #f87171;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Outfit", system-ui, sans-serif;
    background: radial-gradient(ellipse 100% 55% at 50% -8%, #2a2218 0%, var(--bg) 48%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}
.font-display { font-family: "Cormorant Garamond", serif; }
.saas-wrap { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.saas-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
}
.saas-nav a {
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
}
.saas-nav a:hover { color: var(--gold-soft); background: rgba(201,162,39,0.08); }
.saas-nav a.ativo { color: var(--gold); border-color: var(--line); background: var(--surface); }
.saas-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
}
.saas-label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.saas-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 0.65rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}
.saas-input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,39,0.2); }
.saas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: filter 0.15s, transform 0.15s;
}
.saas-btn-gold {
    background: linear-gradient(135deg, #d4af37, #a67c00);
    color: #1a1408;
}
.saas-btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-soft);
}
.saas-btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
}
.saas-btn:hover:not(:disabled) { filter: brightness(1.06); }
.saas-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.saas-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.saas-metric {
    position: relative;
    overflow: hidden;
}
.saas-metric .valor {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.saas-metric .titulo { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.saas-metric .live {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: pulse-live 1.5s ease infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.saas-alerta {
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: none;
}
.saas-alerta.ok { display: block; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.35); color: #86efac; }
.saas-alerta.erro { display: block; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); color: #fca5a5; }
.saas-lista-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.65rem;
    margin-bottom: 0.5rem;
}
.saas-form-grid { display: grid; gap: 0.85rem; }
.saas-form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .saas-form-grid-2 { grid-template-columns: 1fr; } }
.chart-box { height: 220px; margin-top: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.premium-img-frame {
    width: 100%;
    max-height: 200px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.5rem;
}
.premium-img-frame.frame-thumb {
    width: 56px;
    height: 56px;
    max-height: 56px;
    min-height: 56px;
    padding: 4px;
    flex-shrink: 0;
}
.premium-img-frame.hidden { display: none; }
.premium-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0.4rem;
    display: block;
}
.premium-img.hidden { display: none; }
.premium-img.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
