/* Growth War Room — Web App Stylesheet (Linear / Vercel Dark Aesthetic) */
.member-auth-gate{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,rgba(0,229,255,.12),transparent 42%),#09090b;color:#f8fafc}.member-auth-gate[hidden]{display:none}.member-auth-card{width:min(100%,480px);padding:clamp(28px,6vw,48px);border:1px solid #27272a;border-radius:18px;background:#111116;box-shadow:0 30px 90px rgba(0,0,0,.5)}.member-auth-card .app-brand-mark{margin-bottom:24px}.member-auth-kicker{font:700 10px/1.3 "IBM Plex Mono",monospace;color:#00e5ff;letter-spacing:.08em}.member-auth-card h1{margin:12px 0 10px;font:700 clamp(30px,7vw,46px)/1 "Space Grotesk",sans-serif;letter-spacing:-.05em}.member-auth-card>p{color:#a1a1aa;line-height:1.6}.member-auth-form{display:grid;gap:10px;margin-top:28px}.member-auth-form label{font:600 11px/1.2 "IBM Plex Mono",monospace;text-transform:uppercase;color:#d4d4d8}.member-auth-form input{width:100%;min-height:48px;padding:0 14px;border:1px solid #3f3f46;border-radius:8px;background:#09090b;color:#fff;font:500 14px/1.2 Inter,sans-serif}.member-auth-form input:focus{outline:2px solid #00e5ff;outline-offset:2px}.member-auth-form .btn-primary{justify-content:center;margin-top:4px}.member-auth-status{min-height:24px;margin:14px 0 0!important;font-size:13px}.member-auth-status[data-state="error"]{color:#f87171}.member-auth-status[data-state="success"]{color:#1ed67a}.member-auth-help{margin-top:18px!important;font-size:11px}.member-auth-credit{margin-top:28px!important;font-size:11px}.member-auth-credit a{color:#00e5ff}.app-shell,.access-sim-banner,.member-sign-out{visibility:hidden}.member-authorized .app-shell,.member-authorized .member-sign-out{visibility:visible}.gwr-production .access-sim-banner{display:none}.member-sign-out{position:fixed;right:18px;bottom:18px;z-index:80;padding:7px 11px;border:1px solid #27272a;border-radius:999px;background:#111116;color:#a1a1aa;font:600 10px/1 "IBM Plex Mono",monospace;cursor:pointer}.member-sign-out:hover{color:#fff;border-color:#52525b}.btn-whatsapp-join.is-locked{pointer-events:none;opacity:.55;filter:grayscale(1)}
:root {
  --app-bg: #09090b;
  --app-sidebar: #101014;
  --app-surface: #15151a;
  --app-surface-hover: #1c1c22;
  --app-card: #18181f;
  --app-border: rgba(255, 255, 255, 0.08);
  --app-border-focus: rgba(0, 229, 255, 0.4);
  --app-text: #f4f4f5;
  --app-muted: #a1a1aa;
  --app-subtle: #71717a;
  --app-cyan: #00e5ff;
  --app-cyan-glow: rgba(0, 229, 255, 0.15);
  --app-green: #1ed67a;
  --app-green-glow: rgba(30, 214, 122, 0.15);
  --app-amber: #f59e0b;
  --app-font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --app-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --app-font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  padding: 0;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* App Shell Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: 270px;
  background: var(--app-sidebar);
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.25s ease;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-brand-mark {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 70%), #181822;
  border: 1px solid var(--app-cyan);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--app-cyan);
  font-family: var(--app-font-mono);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 16px var(--app-cyan-glow);
}

.app-brand-meta strong {
  display: block;
  font-family: var(--app-font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--app-text);
}

.app-brand-meta small {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  padding: 12px 12px 6px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--app-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--app-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: var(--app-surface-hover);
  color: var(--app-text);
}

.nav-item.active {
  background: rgba(0, 229, 255, 0.08);
  color: var(--app-cyan);
  border-color: rgba(0, 229, 255, 0.2);
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active svg {
  opacity: 1;
  stroke: var(--app-cyan);
}

.nav-badge {
  margin-left: auto;
  font-family: var(--app-font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-muted);
}

.nav-item.active .nav-badge {
  background: rgba(0, 229, 255, 0.15);
  color: var(--app-cyan);
}

/* Sidebar Footer Profile */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--app-border);
  background: rgba(0, 0, 0, 0.2);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed67a 0%, #00e5ff 100%);
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 700;
  font-size: 13px;
}

.profile-info strong {
  display: block;
  font-size: 13px;
  color: var(--app-text);
}

.profile-info small {
  display: block;
  font-size: 11px;
  color: var(--app-green);
  font-family: var(--app-font-mono);
}

.app-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.app-progress-fill {
  height: 100%;
  background: var(--app-green);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--app-green-glow);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-subtle);
  margin-top: 6px;
}

/* Main Viewport */
.app-main {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--app-bg);
}

/* App Header */
.app-header-bar {
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--app-text);
  padding: 6px;
  cursor: pointer;
}

.header-page-title {
  font-family: var(--app-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.search-box {
  position: relative;
  width: 340px;
}

.search-box input {
  width: 100%;
  height: 36px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 36px 0 12px;
  color: var(--app-text);
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
}

.search-box input:focus {
  border-color: var(--app-cyan);
  box-shadow: 0 0 12px var(--app-cyan-glow);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--app-subtle);
  pointer-events: none;
  font-family: var(--app-font-mono);
  font-size: 11px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-green);
  background: rgba(30, 214, 122, 0.08);
  border: 1px solid rgba(30, 214, 122, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--app-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--app-green);
}

/* App View Containers */
.app-view {
  padding: 32px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.app-view.hidden {
  display: none;
}

/* Welcome Hero Box */
.welcome-hero-card {
  background: radial-gradient(circle at 90% 10%, rgba(0, 229, 255, 0.08), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(30, 214, 122, 0.06), transparent 30%),
              var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.welcome-copy h2 {
  font-family: var(--app-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.welcome-copy p {
  color: var(--app-muted);
  margin: 0;
  max-width: 680px;
  font-size: 14px;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--app-cyan);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: #33ebff;
  box-shadow: 0 0 16px var(--app-cyan-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--app-surface);
  color: var(--app-text);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--app-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--app-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  border: 1px solid #25d366;
}

.btn-whatsapp:hover {
  background: #0f7569;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.2);
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--app-text);
  border-color: rgba(255, 255, 255, 0.18);
}

.filter-pill.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--app-cyan);
  border-color: rgba(0, 229, 255, 0.3);
  font-weight: 600;
}

/* Systems Grid */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* System Card */
.system-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.system-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.system-card.completed {
  border-color: rgba(30, 214, 122, 0.3);
}

.card-media {
  height: 160px;
  background: #0f0f14;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--app-border);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.system-card:hover .card-media img {
  transform: scale(1.03);
}

.card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-pending {
  background: rgba(0, 0, 0, 0.65);
  color: var(--app-muted);
  border: 1px solid var(--app-border);
}

.badge-done {
  background: rgba(30, 214, 122, 0.2);
  color: var(--app-green);
  border: 1px solid rgba(30, 214, 122, 0.4);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--app-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--app-muted);
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--app-border);
}

.card-meta-tag {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-subtle);
}

/* Playbook Drawer / Modal */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(100%, 720px);
  background: var(--app-card);
  border-left: 1px solid var(--app-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.drawer-title-area h3 {
  font-family: var(--app-font-display);
  font-size: 20px;
  margin: 4px 0 0;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--app-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  color: var(--app-text);
  background: var(--app-surface);
}

.drawer-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface);
}

.drawer-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}

.drawer-tab:hover {
  color: var(--app-text);
}

.drawer-tab.active {
  color: var(--app-cyan);
  border-bottom-color: var(--app-cyan);
  font-weight: 600;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.drawer-tab-pane {
  display: none;
}

.drawer-tab-pane.active {
  display: block;
}

.code-block-container {
  position: relative;
  background: #0d0d11;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--app-font-mono);
  font-size: 12px;
  color: #e4e4e7;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  background: var(--app-cyan);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   PLAYBOOK INTERATIVO (STEPPER, MINI-SIMULADOR & CHECKLIST)
   ========================================================================== */
.playbook-stepper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stepper-step {
  background: #0f0f14;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s ease;
}

.stepper-step:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stepper-badge {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.stepper-step-title {
  font-family: var(--app-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-text);
  margin: 0;
}

.stepper-body {
  font-size: 13px;
  color: var(--app-muted);
  line-height: 1.6;
}

/* Mini-Simulador Operacional Integrado */
.interactive-playground {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, rgba(17, 17, 24, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}

.playground-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.playground-field label {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-subtle);
  margin-bottom: 4px;
}

.playground-input,
.playground-select {
  width: 100%;
  height: 34px;
  background: #09090d;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--app-text);
  outline: none;
}

.playground-input:focus,
.playground-select:focus {
  border-color: var(--app-cyan);
}

.playground-btn {
  background: var(--app-cyan);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.playground-btn:hover {
  background: #33ebff;
  box-shadow: 0 0 12px var(--app-cyan-glow);
}

.playground-result-box {
  margin-top: 12px;
  background: #09090c;
  border: 1px solid rgba(30, 214, 122, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  display: none;
}

.playground-result-box.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

.result-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.result-tag {
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-green);
  font-weight: 700;
}

.result-metric-large {
  font-family: var(--app-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 4px;
}

.result-action-advice {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.4;
  margin: 0;
}

/* Checklist Interativo do Playbook */
.playbook-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.checklist-item input[type="checkbox"] {
  accent-color: var(--app-cyan);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

.checklist-item span {
  font-size: 12px;
  color: var(--app-text);
  line-height: 1.4;
}

.checklist-item.checked span {
  text-decoration: line-through;
  color: var(--app-subtle);
}

/* Container de Iframe para Preview Local */
.drawer-iframe-wrapper {
  width: 100%;
  height: 480px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
  background: #000;
}

.drawer-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--app-border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #181822;
  border: 1px solid var(--app-cyan);
  color: var(--app-text);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--app-cyan-glow);
  z-index: 200;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* App Footer */
.app-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--app-subtle);
  font-size: 12px;
  margin-top: auto;
}

.app-footer a {
  color: var(--app-muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--app-cyan);
}

/* Responsive */
@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .search-box {
    width: 180px;
  }
  .welcome-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-header-bar {
    padding: 0 16px;
  }
  .app-view {
    padding: 20px 16px;
  }
  .systems-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   QUIZZ DE PRIMEIRO ACESSO (ONBOARDING WIZARD MODAL)
   ========================================================================== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.88);
  backdrop-filter: blur(14px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.quiz-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quiz-modal {
  width: 100%;
  max-width: 680px;
  background: #111116;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 229, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-overlay.open .quiz-modal {
  transform: scale(1) translateY(0);
}

.quiz-header {
  padding: 20px 28px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-brand-badge {
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 229, 255, 0.15);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.quiz-step-indicator {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-subtle);
}

.quiz-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--app-cyan);
  width: 33.3%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--app-cyan);
}

.quiz-body {
  padding: 28px 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.quiz-step-pane {
  display: none;
  flex-direction: column;
  flex: 1;
}

.quiz-step-pane.active {
  display: flex;
}

.quiz-question-eyebrow {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.quiz-question-title {
  font-family: var(--app-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.quiz-question-desc {
  font-size: 13px;
  color: var(--app-muted);
  margin: 0 0 20px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option-btn {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--app-text);
}

.quiz-option-btn:hover {
  background: var(--app-surface-hover);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateX(3px);
}

.quiz-option-btn.selected {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--app-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.option-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--app-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.quiz-option-btn.selected .option-radio-dot {
  border-color: var(--app-cyan);
  background: var(--app-cyan);
}

.option-radio-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  opacity: 0;
}

.quiz-option-btn.selected .option-radio-dot::after {
  opacity: 1;
}

.option-text-group {
  flex: 1;
}

.option-text-group strong {
  display: block;
  font-size: 13px;
  color: var(--app-text);
  margin-bottom: 2px;
}

.option-text-group small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
}

.quiz-footer {
  padding: 16px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--app-border);
  background: rgba(0, 0, 0, 0.2);
}

/* Diagnóstico Ativo Widget (No Dashboard) */
.diagnostic-widget {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(30, 214, 122, 0.04) 100%), #121217;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.diagnostic-meta-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.diagnostic-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.diagnostic-info span {
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.diagnostic-info strong {
  font-size: 14px;
  color: var(--app-text);
  display: block;
}

.diagnostic-info p {
  font-size: 12px;
  color: var(--app-muted);
  margin: 2px 0 0;
}

.diagnostic-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Simulador de Acesso / Entitlement Bar */
.access-sim-banner {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 8px 32px;
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-sim-banner strong {
  color: #38bdf8;
}

.access-sim-pills {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sim-pill {
  padding: 2px 8px;
  border-radius: 4px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 10px;
  cursor: pointer;
  border: 1px solid #334155;
  transition: all 0.15s ease;
}

.sim-pill.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  font-weight: 600;
}

/* Locked Overlay nos Bumps */
.card-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
}

.locked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-cyan);
  margin-bottom: 12px;
}

.locked-title {
  font-family: var(--app-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 6px;
}

.locked-desc {
  font-size: 11px;
  color: var(--app-muted);
  margin-bottom: 14px;
  max-width: 240px;
}

/* ==========================================================================
   NOVA UX: SALA DE CAMPO (COMUNIDADE EXECUTIVA WHATSAPP)
   ========================================================================== */
.community-header {
  margin-bottom: 24px;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
}

.community-header h2 {
  font-family: var(--app-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 6px;
}

.community-header p {
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.community-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--app-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-section-title strong {
  display: block;
  font-size: 13px;
  color: var(--app-text);
}

.community-section-title small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
}

.rules-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-tech-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.rule-tech-card:hover {
  border-color: var(--app-border-hover);
  background: var(--app-surface-hover);
}

.rule-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.rule-icon-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.rule-icon-cyan {
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.2);
}

.rule-icon-green {
  color: var(--app-green);
  background: rgba(30, 214, 122, 0.08);
  border-color: rgba(30, 214, 122, 0.2);
}

.rule-icon-amber {
  color: var(--app-amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.rule-card-body {
  flex: 1;
}

.rule-meta-tag {
  font-family: var(--app-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tag-danger { color: #ef4444; }
.tag-cyan { color: var(--app-cyan); }
.tag-green { color: var(--app-green); }
.tag-amber { color: var(--app-amber); }

.rule-card-body strong {
  display: block;
  font-size: 13px;
  color: var(--app-text);
  margin-bottom: 4px;
}

.rule-card-body p {
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0;
}

/* Coluna Direita (Ação) */
.community-action-panel {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.07) 0%, rgba(17, 17, 24, 0.98) 60%);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.panel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.community-action-panel h3 {
  font-family: var(--app-font-display);
  font-size: 18px;
  color: var(--app-text);
  margin: 0 0 8px;
}

.community-action-panel p {
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0;
}

.presentation-script-box {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}

.script-header {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.presentation-script-box code {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.6;
  display: block;
}

.btn-whatsapp-join {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #25d366;
  color: #000 !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-join:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.action-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px !important;
  color: var(--app-subtle) !important;
  text-align: center;
  margin-top: 12px !important;
}
