/* ============================================================
   PORTAL MUGUET — página única (shell + painéis por dentro)
   Paleta Arcca (verde), light mode, acabamento premium.
   Topo fixo com abas; palco ocupa o resto da tela (iframe).
   ============================================================ */
:root {
  --arcca-green: #8fa83a;
  --arcca-green-d: #6f8a24;
  --arcca-green-dim: rgba(143,168,58,0.10);
  --bg-base: #f4f6f2;
  --bg-card: #ffffff;
  --border: rgba(0,0,0,0.07);
  --border-accent: rgba(143,168,58,0.38);
  --text-primary: #171a1f;
  --text-secondary: #565c6b;
  --text-muted: #99a0ad;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(24,30,20,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 16px 40px rgba(24,30,20,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

/* .wrap = app inteiro em coluna; auth.js esconde isto até liberar a senha */
.wrap {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOPO (marca + abas) ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  height: 62px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 34px; width: auto; object-fit: contain;
  border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub {
  font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--arcca-green-d);
}
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: -0.3px; }

/* ── ABAS ── */
.tabs { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.tab {
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  background: transparent; border: none; cursor: pointer;
  padding: 9px 16px; border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
}
.tab:hover { background: var(--arcca-green-dim); color: var(--arcca-green-d); }
.tab.active { background: var(--arcca-green); color: #fff; }

/* aba "em breve" — visível mas apagada; clicar mostra o painel de aviso */
.tab-soon { color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.tab-soon:hover { background: rgba(0,0,0,0.04); color: var(--text-muted); }
.tab-soon.active { background: rgba(0,0,0,0.05); color: var(--text-secondary); }
.soon-badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(0,0,0,0.06); color: var(--text-muted);
  padding: 2px 8px; border-radius: 20px;
}

/* ── PALCO (onde o painel é encaixado) ── */
.stage { flex: 1; position: relative; background: var(--bg-base); }
.stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; background: #fff;
}

/* painel "em breve" */
.soon-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 28px;
}
.soon-panel[hidden] { display: none; }
.soon-icon {
  width: 66px; height: 66px; border-radius: 18px;
  background: linear-gradient(140deg, rgba(143,168,58,0.16), rgba(143,168,58,0.05));
  display: grid; place-items: center; color: var(--arcca-green-d);
}
.soon-icon svg { width: 30px; height: 30px; }
.soon-panel h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.3px; }
.soon-panel p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); max-width: 440px; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .topbar { height: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
  .tabs { margin-left: 0; justify-content: center; }
  .wrap { height: 100dvh; }
}
