/* 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],html.gwr-cached-authorized .member-auth-gate{display:none!important}.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,html.gwr-cached-authorized .app-shell,html.gwr-cached-authorized .member-sign-out{visibility:visible!important;display:flex!important}body:not(.member-authorized):not(.gwr-cached-body) .app-shell{display:none}html.gwr-cached-authorized body:not(.member-authorized) .app-shell{display:flex!important}.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)}
.gwr-onboarding-required .app-sidebar,.gwr-onboarding-required .app-main{visibility:hidden;pointer-events:none}.gwr-onboarding-required .member-sign-out{display:none}
/* Auth Gate Multi-View & Password Controls (TASK-080) */
.auth-view{display:none;flex-direction:column}
.auth-view.active{display:flex}
.auth-view h2{margin:12px 0 10px;font:700 clamp(24px,5.5vw,36px)/1.1 "Space Grotesk",sans-serif;letter-spacing:-.04em;color:#fff}
.auth-view>p{color:#a1a1aa;line-height:1.5;font-size:13.5px;margin:0 0 16px}
.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:4px}
.form-label-row{display:flex;justify-content:space-between;align-items:center}
.password-input-group{position:relative;display:flex;align-items:center;width:100%}
.password-input-group input{padding-right:44px!important}
.password-toggle-btn{position:absolute;right:8px;background:transparent;border:none;color:#71717a;cursor:pointer;padding:8px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;transition:color .15s ease}
.password-toggle-btn:hover,.password-toggle-btn:focus{color:#00e5ff;outline:none}
.auth-text-btn{background:transparent;border:none;color:#00e5ff;font-family:"IBM Plex Mono",monospace;font-size:11px;cursor:pointer;padding:2px 0;text-decoration:underline;text-underline-offset:3px;transition:color .15s ease}
.auth-text-btn:hover{color:#fff}
.auth-switch-box{margin-top:20px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#a1a1aa;text-align:center}
.auth-hint{font-size:11px;color:#71717a;font-family:Inter,sans-serif;line-height:1.4;margin-top:2px}

: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;
}

html {
  scroll-padding-top: 80px;
}

* {
  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);
}

/* Blocos Clínicos da Nova Aula Prática & Operação */
.playbook-clinical-box {
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
}

.clinical-subheading {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.clinical-text {
  font-size: 12px;
  color: #e4e4e7;
  line-height: 1.55;
  margin: 0 0 10px;
}
.clinical-text:last-child {
  margin-bottom: 0;
}

/* Guia de Instalação: Duplo Método */
.install-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .install-methods-grid {
    grid-template-columns: 1fr;
  }
}

.install-method-card {
  background: #09090d;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s;
}
.install-method-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--app-font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.method-badge.offline {
  background: rgba(0, 230, 118, 0.1);
  color: var(--app-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}
.method-badge.ai {
  background: rgba(0, 229, 255, 0.1);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.method-title {
  font-family: var(--app-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.method-desc {
  font-size: 11px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0 0 10px;
  flex-grow: 1;
}

/* Dicionário de Dados */
.data-dict-container {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #08080b;
}

.data-dict-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.data-dict-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--app-subtle);
  font-family: var(--app-font-mono);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--app-border);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.data-dict-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  vertical-align: top;
  line-height: 1.4;
}

.data-dict-table tr:last-child td {
  border-bottom: none;
}

.dict-col-name {
  font-family: var(--app-font-mono);
  color: var(--app-cyan);
  font-weight: 600;
}

.dict-col-type {
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-subtle);
}

/* Matriz de Intervenção Clínica P0 / P1 / P2 */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.matrix-card {
  background: #09090c;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--app-border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-card.p0 {
  border-color: rgba(255, 77, 79, 0.35);
  background: linear-gradient(180deg, rgba(255, 77, 79, 0.04) 0%, #09090c 100%);
}
.matrix-card.p1 {
  border-color: rgba(255, 176, 32, 0.35);
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.04) 0%, #09090c 100%);
}
.matrix-card.p2 {
  border-color: rgba(0, 230, 118, 0.35);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.04) 0%, #09090c 100%);
}

.matrix-badge {
  font-family: var(--app-font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 4px;
}
.matrix-card.p0 .matrix-badge {
  background: rgba(255, 77, 79, 0.15);
  color: #ff4d4f;
  border: 1px solid rgba(255, 77, 79, 0.3);
}
.matrix-card.p1 .matrix-badge {
  background: rgba(255, 176, 32, 0.15);
  color: #ffb020;
  border: 1px solid rgba(255, 176, 32, 0.3);
}
.matrix-card.p2 .matrix-badge {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.matrix-condition {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.matrix-action {
  font-size: 11px;
  color: var(--app-muted);
  line-height: 1.4;
  margin: 0;
}

/* 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-save-status {
  min-height: 20px;
  margin: 0;
  padding: 0 28px 16px;
  color: var(--app-subtle);
  font: 500 11px/1.45 var(--app-font-mono);
}

.quiz-save-status[data-state="error"] { color: #ff7378; }
.quiz-save-status[data-state="saving"] { color: var(--app-cyan); }

.quiz-modal {
  width: 100%;
  max-width: 680px;
  max-height: calc(100dvh - 40px);
  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;
  flex-shrink: 0;
}

.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;
  flex-shrink: 0;
}

.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;
  overflow-y: auto;
}

.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 Passo 4: Recomendação & Instagram */
.quiz-recommendation-box {
  background: linear-gradient(135deg, rgba(30, 214, 122, 0.08) 0%, rgba(0, 229, 255, 0.05) 100%), #14141a;
  border: 1px solid rgba(30, 214, 122, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.quiz-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.quiz-rec-badge {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quiz-rec-tag {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 229, 255, 0.15);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.quiz-rec-title {
  font-family: var(--app-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 4px;
}

.quiz-rec-desc {
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

.quiz-instagram-group {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-instagram-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-text);
}

.quiz-instagram-hint {
  font-size: 11px;
  color: var(--app-subtle);
  font-weight: 400;
  line-height: 1.35;
}

.quiz-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.quiz-input-prefix {
  position: absolute;
  left: 14px;
  color: var(--app-cyan);
  font-family: var(--app-font-mono);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

.quiz-text-input {
  width: 100%;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 11px 14px 11px 32px;
  color: var(--app-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.quiz-text-input:focus {
  border-color: var(--app-cyan);
  background: var(--app-surface-hover);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.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);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .quiz-overlay { padding: 0; align-items: stretch; }
  .quiz-modal { max-height: 100dvh; border-radius: 0; border-inline: 0; }
  .quiz-header { padding: 14px 16px 12px; align-items: flex-start; gap: 12px; }
  .quiz-brand { align-items: flex-start; flex-direction: column; gap: 6px; }
  .quiz-body { min-height: 0; padding: 18px 16px 8px; }
  .quiz-question-title { font-size: 18px; }
  .quiz-question-desc { margin-bottom: 14px; }
  .quiz-options-list { gap: 8px; margin-bottom: 10px; }
  .quiz-option-btn { padding: 10px 12px; gap: 10px; }
  .option-text-group small { line-height: 1.35; }
  .quiz-save-status { padding: 8px 16px; }
  .quiz-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .quiz-footer .btn-primary,.quiz-footer .btn-secondary { min-height: 42px; padding-inline: 14px; }
}

/* 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;
}

/* ==========================================================================
   UPGRADE UI: HEADER BUTTON & SIDEBAR BOX
   ========================================================================== */
.btn-header-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(30, 214, 122, 0.14) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  color: var(--app-cyan);
  font-family: var(--app-font-display);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-header-upgrade:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22) 0%, rgba(30, 214, 122, 0.24) 100%);
  border-color: var(--app-cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.2);
}

.sidebar-upgrade-box {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.06) 0%, rgba(13, 17, 23, 0.8) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0 14px;
}

.sidebar-plan-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-subtle);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-plan-label svg {
  color: var(--app-cyan);
}

.btn-sidebar-upgrade {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  color: #f0f6fc;
  font-family: var(--app-font-display);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-upgrade:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--app-cyan);
  color: #fff;
}

/* ==========================================================================
   DRAWER ENHANCEMENTS: VIDEO CONTAINER & QUICK ACTIONS
   ========================================================================== */
.drawer-video-container {
  margin-bottom: 12px;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.drawer-video-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: radial-gradient(circle at 10% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%), #0d1117;
  border-left: 3px solid var(--app-cyan);
}

.video-play-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-cyan);
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.video-copy h5 {
  font-family: var(--app-font-display);
  font-size: 13px;
  font-weight: 600;
  color: #f0f6fc;
  margin: 0 0 3px;
}

.video-copy p {
  font-size: 11.5px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

/* 3 Quick Action Buttons */
.drawer-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .drawer-quick-actions {
    grid-template-columns: 1fr;
  }
}

.btn-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  font-family: var(--app-font-display);
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  border: 1px solid transparent;
}

.btn-qa-primary {
  background: var(--app-cyan);
  color: #07090e !important;
}

.btn-qa-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}

.btn-qa-secondary {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f6fc !important;
}

.btn-qa-secondary:hover {
  border-color: var(--app-cyan);
  color: #fff !important;
  background: #161822;
}

.btn-qa-tertiary {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f6fc;
}

.btn-qa-tertiary:hover {
  border-color: var(--app-green);
  color: var(--app-green);
  background: #161822;
}

/* Callout de Upgrade no Rodapé do Drawer */
.drawer-upgrade-callout {
  margin-top: 20px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.06) 0%, rgba(30, 214, 122, 0.06) 100%), #0d1117;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  padding: 16px;
}

.callout-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.callout-tag {
  font-family: var(--app-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--app-cyan);
  letter-spacing: 0.05em;
}

.callout-pill {
  font-family: var(--app-font-mono);
  font-size: 9px;
  color: var(--app-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.callout-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.callout-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-cyan);
  flex-shrink: 0;
}

.callout-text strong {
  display: block;
  font-size: 12.5px;
  color: #f0f6fc;
  margin-bottom: 3px;
}

.callout-text p {
  font-size: 11px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

.btn-callout-upgrade {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 6px;
  color: var(--app-cyan);
  font-family: var(--app-font-display);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-callout-upgrade:hover {
  background: var(--app-cyan);
  color: #07090e;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.25);
}

/* ==========================================================================
   MODAL DE UPGRADE: O BONDE (COMUNIDADE DE GROWTH)
   ========================================================================== */
.upgrade-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.upgrade-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.upgrade-modal-dialog {
  position: relative;
  background: #0d1117;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 229, 255, 0.1);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.upgrade-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.upgrade-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.upgrade-modal-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

.upgrade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.upgrade-modal-header h2 {
  font-family: var(--app-font-display);
  font-size: 24px;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.upgrade-modal-header p {
  font-size: 13.5px;
  color: var(--app-muted);
  line-height: 1.55;
  margin: 0;
}

.upgrade-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.upgrade-plans-grid.single-plan {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto 24px;
}

@media (max-width: 720px) {
  .upgrade-plans-grid {
    grid-template-columns: 1fr;
  }
  .upgrade-modal-dialog {
    padding: 24px 20px;
  }
}

.upgrade-plan-card {
  position: relative;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.upgrade-plan-card.recommended {
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.06) 0%, rgba(17, 17, 24, 0.98) 60%);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.1);
}

.plan-popular-pill {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--app-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #07090e;
  background: var(--app-cyan);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 229, 255, 0.35);
}

.plan-card-header {
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.plan-name {
  display: block;
  font-family: var(--app-font-display);
  font-size: 15px;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-currency {
  font-size: 13px;
  color: var(--app-muted);
  font-weight: 500;
}

.plan-amount {
  font-family: var(--app-font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.plan-period {
  font-size: 13px;
  color: var(--app-muted);
}

.plan-cash-price {
  display: block;
  font-size: 11px;
  color: var(--app-cyan);
  font-family: var(--app-font-mono);
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.plan-features li svg {
  color: var(--app-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-plan-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-family: var(--app-font-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-plan-primary {
  background: var(--app-cyan);
  color: #07090e !important;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
}

.btn-plan-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 229, 255, 0.35);
}

.btn-plan-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f6fc !important;
}

.btn-plan-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff !important;
}

.upgrade-modal-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--app-subtle);
}

.secure-badge svg {
  color: var(--app-green);
}


/* ==========================================================================
   MINIMALIST CLEAN SYSTEM CARDS (ZERO NOISE / HIGH-TICKET LOOK)
   ========================================================================== */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}

.card-category-badge {
  font-family: var(--app-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-status-pill {
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--app-border);
  padding: 2px 7px;
  border-radius: 4px;
}

.card-tools-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.tool-pill {
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.tool-pill.tool-highlight {
  color: var(--app-cyan);
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.06);
}

.btn-access-system {
  width: 100%;
  justify-content: center;
  font-size: 11.5px;
  padding: 8px 14px;
}

/* ==========================================================================
   DRAWER CINEMA VIDEO PLAYER & 1-CLICK MATERIALS
   ========================================================================== */
.drawer-video-cinema {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.12) 0%, #08080c 70%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-video-cinema:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.2);
}

.drawer-video-cinema:hover .cinema-play-btn {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  background: var(--app-cyan);
  color: #000;
}

.cinema-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 2px solid var(--app-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-cyan);
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-meta {
  text-align: center;
  padding: 0 20px;
}

.cinema-title {
  font-family: var(--app-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.cinema-sub {
  font-size: 12px;
  color: var(--app-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

.cinema-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-tools-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-section-label {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tools-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-badge-lg {
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-badge-lg.highlight {
  color: var(--app-cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}

.materials-section-title {
  font-family: var(--app-font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.material-card {
  background: #0d0d12;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.material-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: #111118;
}

.material-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.material-card-title {
  font-family: var(--app-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.material-card-desc {
  font-size: 11px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}

.material-action-btn {
  width: 100%;
  justify-content: center;
  font-size: 11px;
  padding: 8px 12px;
}

.step-roadmap-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
}

.step-roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.step-roadmap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 12.5px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.step-text p {
  font-size: 11.5px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   SYSTEM STUDIO VIEW (VISÃO DE ESTÚDIO EM TELA CHEIA - ARQUITETURA 2 COLUNAS)
   ========================================================================== */
.drawer-overlay.studio-fullscreen-view {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(4, 4, 7, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.studio-fullscreen-view .drawer-panel.studio-panel {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  border-left: none;
  background: #09090e;
  transform: scale(0.985);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-overlay.studio-fullscreen-view.open .drawer-panel.studio-panel {
  transform: scale(1);
  opacity: 1;
}

/* Header do Estúdio */
.studio-header {
  padding: 14px 36px;
  background: #0d0d13;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 24px;
}

.studio-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1;
}

.studio-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.studio-back-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--app-cyan);
  transform: translateX(-3px);
}

.studio-title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.studio-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.studio-category-pill {
  font-family: var(--app-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
}

.studio-stack-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-stack-pill {
  font-family: var(--app-font-mono);
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.studio-stack-pill.highlight {
  color: var(--app-cyan);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.studio-main-title {
  font-family: var(--app-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.studio-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.studio-complete-btn {
  font-size: 12px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.studio-close-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.studio-close-icon-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Tabs do Estúdio */
.studio-tabs {
  padding: 0 36px;
  background: #09090e;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.studio-tabs .drawer-tab {
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
}

.studio-tabs .drawer-tab.active {
  color: var(--app-cyan);
  border-bottom-color: var(--app-cyan);
}

/* Conteúdo Principal do Estúdio */
.studio-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px 60px;
  width: 100%;
  box-sizing: border-box;
}

.studio-two-col-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}

.studio-stage-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.studio-aside-col {
  min-width: 0;
}

.studio-sticky-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-aside-col .materials-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

/* Aba 2 (Prompt) e Aba 3 (Amostra) */
.studio-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--app-border);
  max-width: 1600px;
  margin-inline: auto;
}

.studio-code-block {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: calc(100dvh - 230px);
  max-height: calc(100dvh - 230px);
  overflow-y: auto;
  font-family: var(--app-font-mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 24px;
  background: #060609;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
}

.studio-iframe-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: calc(100dvh - 230px);
  min-height: 640px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

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

/* Responsividade do Estúdio */
@media (max-width: 1100px) {
  .studio-header {
    padding: 12px 18px;
  }
  .studio-tabs {
    padding: 0 18px;
    overflow-x: auto;
  }
  .studio-content {
    padding: 20px 18px 40px;
  }
  .studio-two-col-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .studio-sticky-panel {
    position: static;
  }
  .studio-main-title {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .studio-header-left {
    gap: 12px;
  }
  .studio-back-btn span {
    display: none;
  }
  .studio-back-btn {
    padding: 8px;
  }
  .studio-complete-btn span {
    display: none;
  }
  .studio-complete-btn {
    padding: 8px;
  }
}

/* ==========================================================================
   COCKPIT INAUGURAL HERO (AULA INAUGURAL 16:9 + GUIA DE ROTA EM 3 PASSOS)
   ========================================================================== */
.cockpit-inaugural-card {
  background: radial-gradient(circle at 85% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(30, 214, 122, 0.05) 0%, transparent 40%),
              #0f0f15;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.inaugural-stage {
  min-width: 0;
}

.inaugural-video-block {
  min-width: 0;
  width: 100%;
}

.inaugural-video-cinema,
.inaugural-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06070a;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 229, 255, 0.12);
  box-sizing: border-box;
}

.custom-video-cover,
.inaugural-custom-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.65) 0%, rgba(8, 10, 16, 0.08) 38%, rgba(8, 10, 16, 0.25) 65%, rgba(8, 10, 16, 0.96) 100%),
              url('../assets/gwr-aula-inaugural-cover.jpg?v=20260929v2') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
  user-select: none;
}

.custom-video-cover.bump-video-cover {
  background: radial-gradient(circle at 75% 25%, rgba(0, 229, 255, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 25% 85%, rgba(30, 214, 122, 0.14) 0%, transparent 45%),
              linear-gradient(180deg, rgba(8, 11, 18, 0.82) 0%, rgba(5, 7, 12, 0.96) 100%);
}

.custom-video-cover:hover,
.inaugural-custom-cover:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.custom-video-cover.is-hidden,
.inaugural-custom-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.cover-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.cover-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 6px;
  padding: 5px 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cover-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-cyan);
  box-shadow: 0 0 10px var(--app-cyan);
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.cover-quality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 4px 9px;
  letter-spacing: 0.04em;
}

.cover-quality svg {
  color: var(--app-cyan);
}

.cover-play-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: auto 0;
}

.custom-play-btn,
.cover-play-button {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(8, 10, 16, 0.75);
  border: 2px solid var(--app-cyan);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-cyan);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.45), inset 0 0 16px rgba(0, 229, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.custom-play-btn svg,
.cover-play-button svg {
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.cover-play-caption {
  font-family: var(--app-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  transition: color 0.2s ease;
}

.custom-video-cover:hover .custom-play-btn,
.custom-video-cover:hover .cover-play-button,
.inaugural-custom-cover:hover .custom-play-btn,
.inaugural-custom-cover:hover .cover-play-button {
  transform: scale(1.12);
  background: var(--app-cyan);
  color: #07090e;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.75);
}

.custom-video-cover:hover .custom-play-btn svg,
.custom-video-cover:hover .cover-play-button svg,
.inaugural-custom-cover:hover .custom-play-btn svg,
.inaugural-custom-cover:hover .cover-play-button svg {
  transform: scale(1.06);
}

.custom-video-cover:hover .cover-play-caption,
.inaugural-custom-cover:hover .cover-play-caption {
  color: var(--app-cyan);
}

.cover-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cover-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.cover-title {
  font-family: var(--app-font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f6fc;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}

.cover-subtitle {
  font-size: 11.5px;
  color: #cbd5e1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
}

.cover-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-font-display);
  font-size: 11px;
  font-weight: 700;
  color: #07090e;
  background: var(--app-cyan);
  padding: 7px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-video-cover:hover .cover-action-pill,
.inaugural-custom-cover:hover .cover-action-pill {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.55);
}

.inaugural-iframe-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 5;
}

.inaugural-iframe-wrapper:empty {
  display: none !important;
  pointer-events: none !important;
}

.inaugural-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   CAMADAS DE PROTEÇÃO ONFLOW SOBRE O PLAYER DO YOUTUBE (ANTI-LEAK)
   ========================================================================== */
.yt-shield-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.88) 0%, rgba(6, 8, 12, 0.35) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 6;
  pointer-events: auto; /* Bloqueia cliques no avatar/título/share do YouTube */
  user-select: none;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.yt-shield-top:hover {
  opacity: 1;
}

.yt-shield-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.yt-shield-tag {
  font-family: var(--app-font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.yt-shield-bottom-right {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 92px;
  height: 38px;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--app-cyan);
  letter-spacing: 0.06em;
  z-index: 6;
  pointer-events: auto; /* Bloqueia clique no logo do YouTube */
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   MODAL DE PRÉVIA & ROTEIRO DA AULA OFICIAL (ESTADO EM GRAVAÇÃO)
   ========================================================================== */
.video-preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-preview-modal-overlay.open,
.video-preview-modal-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.video-preview-modal-dialog {
  background: #0d0f17;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 229, 255, 0.15);
  max-width: 640px;
  width: 100%;
  padding: 32px 30px;
  position: relative;
  box-sizing: border-box;
  transform: scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.video-preview-modal-overlay.open .video-preview-modal-dialog,
.video-preview-modal-overlay:not([hidden]) .video-preview-modal-dialog {
  transform: scale(1);
}

.video-preview-header {
  margin-bottom: 20px;
}

.video-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.video-preview-modal-dialog h2 {
  font-family: var(--app-font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.video-preview-modal-dialog p#previewModalSubtitle {
  font-size: 13px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0;
}

.video-preview-syllabus {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.syllabus-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.syllabus-num {
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.syllabus-text strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.syllabus-text p {
  font-size: 11.5px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

.video-preview-callout {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.video-preview-callout .callout-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.video-preview-callout .callout-text strong {
  display: block;
  font-size: 12.5px;
  color: var(--app-cyan);
  margin-bottom: 2px;
}

.video-preview-callout .callout-text p {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.video-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Coluna Direita (Guia de Rota) */
.inaugural-guide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.guide-header {
  margin-bottom: 12px;
}

.guide-eyebrow {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 3px;
}

.guide-title {
  font-family: var(--app-font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.guide-desc {
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px;
}

.guide-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.18s ease;
}

.guide-step-item:hover {
  background: rgba(0, 229, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateX(2px);
}

.guide-step-num {
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content strong {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.guide-step-content p {
  font-size: 11px;
  color: var(--app-muted);
  line-height: 1.4;
  margin: 0;
}

.guide-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.guide-actions-bar .btn-primary {
  font-size: 11.5px;
  padding: 8px 14px;
}

.guide-actions-bar .btn-secondary {
  font-size: 11.5px;
  padding: 8px 12px;
}

@media (max-width: 1100px) {
  .cockpit-inaugural-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ONFLOW GROWTH AGENT OS v0.2.0 — FRONTEND STYLES               */
/* ═══════════════════════════════════════════════════════════════ */

.agent-hero-card {
  background: radial-gradient(circle at 15% 10%, rgba(0, 229, 255, 0.08), transparent 45%),
              radial-gradient(circle at 85% 90%, rgba(30, 214, 122, 0.06), transparent 50%),
              #111116;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.agent-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.agent-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--app-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agent-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-cyan);
  box-shadow: 0 0 10px var(--app-cyan);
  animation: agentPulse 2s infinite ease-in-out;
}

@keyframes agentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.agent-hero-meta-badge {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-hero-title {
  font-family: var(--app-font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.agent-hero-title span {
  background: linear-gradient(135deg, #00e5ff 0%, #1ed67a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agent-hero-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 820px;
  margin: 0 0 24px;
}

/* Tríade de Acesso Instantâneo */
.agent-access-triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.agent-access-card {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
  position: relative;
  backdrop-filter: blur(8px);
}

.agent-access-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(22, 22, 30, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.agent-access-card.card--primary {
  border-color: rgba(0, 229, 255, 0.3);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.06), rgba(18, 18, 24, 0.9));
}

.access-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.access-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--app-cyan);
}

.card--primary .access-card-icon {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--app-cyan);
}

.access-card-pill {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.pill-cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.pill-green {
  background: rgba(30, 214, 122, 0.1);
  color: var(--app-green);
  border: 1px solid rgba(30, 214, 122, 0.25);
}

.pill-gray {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.access-card-body h4 {
  font-family: var(--app-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

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

.access-card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

/* Terminal de Atalhos Executivos */
.quick-terminal-card {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--app-font-mono);
  font-size: 11.5px;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.command-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.command-row-btn:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateX(2px);
}

.command-row-btn code {
  font-family: var(--app-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--app-cyan);
}

.command-row-btn span {
  font-size: 11.5px;
  color: var(--app-muted);
}

.command-copy-icon {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.command-row-btn:hover .command-copy-icon {
  opacity: 1;
  color: var(--app-cyan);
}

/* Subagentes Especialistas */
.subagents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.subagent-card {
  background: #111116;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.subagent-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.subagent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.subagent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--app-cyan);
  font-family: var(--app-font-mono);
  font-weight: 700;
  font-size: 11px;
}

.subagent-role-pill {
  font-family: var(--app-font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.subagent-title {
  font-family: var(--app-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.subagent-subtitle {
  font-size: 11.5px;
  color: var(--app-cyan);
  font-family: var(--app-font-mono);
  margin-bottom: 12px;
  display: block;
}

.subagent-mission {
  font-size: 12.5px;
  color: var(--app-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.subagent-quote-pill {
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid var(--app-cyan);
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  font-size: 11px;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Memória & Conectores */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.memory-block {
  background: #111116;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 22px;
}

.memory-block h3 {
  font-family: var(--app-font-display);
  font-size: 17px;
  color: #fff;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-block p {
  font-size: 12.5px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.memory-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memory-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--app-font-mono);
  font-size: 11.5px;
  color: #f1f5f9;
}

.memory-file-item code {
  color: var(--app-cyan);
}

/* Modal do System Prompt Universal */
.universal-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.universal-prompt-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.universal-modal-card {
  width: min(100%, 880px);
  max-height: 88vh;
  background: #0d0d12;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.universal-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #111116;
}

.universal-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.universal-code-pre {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 18px;
  font-family: var(--app-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 55vh;
  overflow-y: auto;
}

/* ==========================================================================
   AGENT SKILL PLAYBOOK & PERSONALIZATION VIEW
   ========================================================================== */
.badge-agent-active {
  font-family: var(--app-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--app-green);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.studio-header-copy-btn {
  font-size: 12px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.playbook-skill-hero {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, rgba(9, 9, 14, 0.8) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.playbook-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.playbook-meta-pill {
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-subtle);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.playbook-hero-title {
  font-family: var(--app-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.playbook-hero-goal {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 14px;
  font-weight: 400;
}

.playbook-hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  font-family: var(--app-font-mono);
  font-size: 11.5px;
  color: var(--app-subtle);
}

.playbook-card {
  background: #09090e;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.playbook-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

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

.playbook-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playbook-card-title {
  font-family: var(--app-font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

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

.chat-prompt-box {
  background: #050508;
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
}

.chat-prompt-pre {
  font-family: var(--app-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
}

.quick-exec-card {
  background: #0d0d14;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.cli-cmd-display {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--app-font-mono);
  font-size: 11.5px;
  color: var(--app-cyan);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-copy-mini {
  background: none;
  border: none;
  color: var(--app-subtle);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-copy-mini:hover {
  color: var(--app-cyan);
  background: rgba(0, 229, 255, 0.1);
}



/* ==========================================================================
   REFINAMENTO RESPONSIVO MOBILE COMPLETO (GROWTH AGENT OS)
   ========================================================================== */

/* Sidebar Backdrop e Botão de Fechar no Mobile */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Slots de Vídeo nos Cards de Bump */
.bump-mini-video-slot {
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px dashed rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  font-family: var(--app-font-mono);
  font-size: 11px;
  color: var(--app-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.bump-mini-video-slot:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--app-cyan);
}

.bump-slot-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Regras Mobile Principais (Telas <= 840px) */
@media (max-width: 840px) {
  /* Header Bar sem overflow e sem quebra em 3 linhas */
  .app-header-bar {
    height: 56px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    background: rgba(9, 9, 11, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--app-border) !important;
  }

  .header-left {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--app-border) !important;
  }

  .header-page-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .search-box {
    display: none !important;
  }

  .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .btn-header-upgrade {
    padding: 5px 9px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    gap: 4px !important;
  }

  .status-indicator {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }

  /* Sidebar Mobile */
  .sidebar-close-btn {
    display: flex !important;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.85) !important;
    z-index: 100 !important;
  }

  .sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* App Views */
  .app-view {
    padding: 16px 12px 60px !important;
  }

  /* Diagnostic Widget */
  .diagnostic-widget {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    margin-bottom: 16px !important;
  }

  .diagnostic-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Card da Aula Inaugural / Video Spotlight (1ª e 2ª Dobra) */
  .cockpit-inaugural-card,
  .bump-inaugural-card {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 16px 14px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }

  .inaugural-video-frame {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 10px !important;
  }

  .custom-video-cover,
  .inaugural-custom-cover {
    padding: 10px 12px !important;
  }

  .cover-top-bar {
    gap: 6px !important;
  }

  .cover-badge {
    font-size: 8px !important;
    padding: 3px 6px !important;
    gap: 4px !important;
    letter-spacing: 0.02em !important;
  }

  .cover-badge-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .cover-quality {
    font-size: 8px !important;
    padding: 2px 5px !important;
    letter-spacing: 0.02em !important;
  }

  .cover-play-center {
    margin: 2px 0 !important;
  }

  .custom-play-btn,
  .cover-play-button {
    width: 44px !important;
    height: 44px !important;
  }

  .custom-play-btn svg,
  .cover-play-button svg {
    width: 18px !important;
    height: 18px !important;
  }

  .cover-play-caption {
    font-size: 8px !important;
    letter-spacing: 0.08em !important;
  }

  .cover-bottom-bar {
    gap: 8px !important;
  }

  .cover-title {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .cover-subtitle {
    display: none !important;
  }

  .cover-action-pill {
    font-size: 9.5px !important;
    padding: 4px 8px !important;
    gap: 4px !important;
  }

  .guide-actions-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .guide-actions-bar button,
  .guide-actions-bar a {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 12.5px !important;
  }

  /* Agent Hero Card */
  .agent-hero-card {
    padding: 18px 14px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }

  .agent-hero-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .agent-hero-title {
    font-size: clamp(19px, 5.5vw, 23px) !important;
    line-height: 1.25 !important;
    margin: 8px 0 10px !important;
  }

  .agent-hero-desc {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  .agent-access-triad {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .agent-access-card {
    padding: 14px !important;
    border-radius: 10px !important;
  }

  /* Quick Terminal Card */
  .quick-terminal-card {
    padding: 14px 12px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }

  .terminal-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .terminal-dots {
    display: flex !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .terminal-title {
    font-size: 11px !important;
    font-family: var(--app-font-mono) !important;
    color: var(--app-muted) !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  .terminal-commands-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .command-row-btn {
    padding: 10px 12px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Playbook Studio Drawer Mobile */
  .studio-fullscreen-view {
    padding: 0 !important;
  }

  .studio-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
  }

  .studio-header {
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .studio-header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .studio-title-block {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .studio-main-title {
    font-size: 16px !important;
    margin: 2px 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .studio-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .studio-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .studio-header-copy-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .studio-tabs {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 12px !important;
    gap: 4px !important;
    scrollbar-width: none !important;
    border-bottom: 1px solid var(--app-border) !important;
  }

  .studio-tabs::-webkit-scrollbar {
    display: none;
  }

  .drawer-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
  }

  .studio-content {
    padding: 16px 12px 40px !important;
  }

  /* App Footer Mobile */
  .app-footer {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    padding: 20px 14px !important;
  }
}

@media (max-width: 640px) {
  .btn-header-upgrade {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
  }
  .btn-header-upgrade svg {
    width: 12px !important;
    height: 12px !important;
  }
  .status-indicator {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  .status-dot {
    width: 5px !important;
    height: 5px !important;
    margin-right: 4px !important;
  }
  .header-page-title {
    font-size: 13.5px !important;
  }
}

@media (max-width: 500px) {
  .upgrade-btn-text {
    font-size: 0 !important;
  }
  .upgrade-btn-text::before {
    content: "O BONDE";
    font-size: 10.5px !important;
    font-weight: 700 !important;
  }
  .status-text {
    font-size: 0 !important;
  }
  .status-text::before {
    content: "Online";
    font-size: 10px !important;
    color: var(--app-green) !important;
  }
}

/* ==========================================================================
   BUMP DRAWER (TELA INTEIRA DOS ACELERADORES PRO)
   Design System Onflow: Dark Cinema + Acabamento Executivo
   ========================================================================== */

.bump-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: #09090e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.bump-drawer-backdrop {
  display: none;
}

.bump-drawer-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #09090e;
  display: flex;
  flex-direction: column;
  transform: scale(0.97) translateY(8px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  overflow: hidden;
  z-index: 1;
}

.bump-drawer-overlay.open .bump-drawer-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.bump-drawer-header {
  padding: 18px 40px;
  background: #0d0d14;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  max-width: 100%;
}

.bump-drawer-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.bump-drawer-back-btn {
  background: transparent;
  border: none;
  color: var(--app-muted);
  font-size: 11.5px;
  font-family: var(--app-font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  width: fit-content;
}

.bump-drawer-back-btn:hover {
  color: var(--app-cyan);
}

.bump-drawer-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bump-drawer-category-pill {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--app-cyan);
}

.bump-drawer-status-badge {
  font-family: var(--app-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #1ed67a;
  background: rgba(30, 214, 122, 0.12);
  border: 1px solid rgba(30, 214, 122, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.bump-drawer-title {
  font-family: var(--app-font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: #fff;
  margin: 2px 0 0;
  line-height: 1.25;
}

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

.bump-drawer-copy-btn {
  font-size: 11.5px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
}

.bump-drawer-close-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.bump-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Corpo da Tela Inteira */
.bump-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Seções contínuas */
.bump-drawer-section {
  display: block;
}

.bump-drawer-divider {
  height: 1px;
  background: var(--app-border);
  margin: 32px 0;
  opacity: 0.6;
}

.bump-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bump-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-cyan);
  flex-shrink: 0;
}

.bump-section-title {
  font-family: var(--app-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Aba 1: Aula */
.bump-drawer-video-container {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background: #000;
}

.bump-drawer-lesson-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bump-lesson-summary-card {
  background: #101018;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 22px 24px;
}

.bump-lesson-eyebrow {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--app-cyan);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.bump-lesson-title {
  font-family: var(--app-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.bump-lesson-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bump-lesson-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bump-lesson-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(0, 229, 255, 0.15);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.bump-lesson-step-content strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}

.bump-lesson-step-content p {
  font-size: 12.5px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0;
}

/* Aba 2: Playbook */
.bump-playbook-section {
  background: #101018;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.bump-playbook-section-title {
  font-family: var(--app-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bump-playbook-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bump-playbook-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 12px 14px;
}

.bump-playbook-mini-card h5 {
  font-family: var(--app-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.bump-playbook-mini-card p {
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.45;
  margin: 0;
}

.bump-prompt-code-container {
  position: relative;
  margin-top: 12px;
}

.bump-prompt-code-pre {
  background: #07070b;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--app-font-mono);
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

.bump-copy-prompt-btn-inline {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 5px 10px;
}

/* Aba 3: Downloads */
.bump-downloads-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bump-downloads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--app-border);
}

.bump-downloads-title {
  font-family: var(--app-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.bump-downloads-subtitle {
  font-size: 12.5px;
  color: var(--app-muted);
  margin: 4px 0 0;
}

.bump-download-all-btn {
  font-size: 12px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
}

.bump-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bump-download-card {
  background: #101018;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.16s ease;
}

.bump-download-card:hover {
  background: #13131e;
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.bump-download-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.bump-download-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--app-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bump-download-text {
  min-width: 0;
}

.bump-download-filename {
  font-family: var(--app-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bump-download-badge {
  font-size: 9px;
  font-family: var(--app-font-mono);
  background: rgba(0, 229, 255, 0.15);
  color: var(--app-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.bump-download-desc {
  font-size: 12px;
  color: var(--app-muted);
  margin: 3px 0 0;
  line-height: 1.4;
}

.bump-download-action {
  flex-shrink: 0;
}

.bump-download-action a,
.bump-download-action button {
  font-size: 11.5px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .bump-drawer-header {
    padding: 14px 18px;
  }
  .bump-drawer-body {
    padding: 16px 18px;
  }
  .bump-drawer-divider {
    margin: 24px 0;
  }
  .bump-playbook-grid-3 {
    grid-template-columns: 1fr;
  }
  .bump-download-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .bump-download-action {
    width: 100%;
  }
  .bump-download-action a,
  .bump-download-action button {
    width: 100%;
    justify-content: center;
  }
}

