/* MERK PRAXIS v3.0 — Design System, Navegação, Componentes */

/* ── Layout: v3 sobrescreve grid legado do crm.css ── */
body.v3-nav #main-screen.active {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
  grid-template-areas: unset !important;
  height: 100vh !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  overflow: hidden;
}

body.v3-nav .app-sidebar { display: none !important; }

body.v3-nav .view {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px !important;
  padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  height: auto !important;
  min-height: 0;
}

body.v3-nav .app-header.v3-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

body.v3-nav .header-home-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
}

body.v3-nav #lock-screen {
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
}

body.v3-nav .bottom-nav { display: none !important; }

body.v3-nav .action-bar {
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 180;
}

body.v3-nav .fab-dialer {
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 170;
}

body.v3-nav:has(.action-bar.show) .fab-dialer.visible {
  bottom: calc(140px + env(safe-area-inset-bottom));
}

body.v3-nav:has(.dialer-island.show) .fab-dialer.visible {
  bottom: calc(100px + env(safe-area-inset-bottom));
}

body.v3-nav .crm-panel-overlay { z-index: 850; }
body.v3-nav .crm-panel { z-index: 860; }
body.v3-nav .v3-menu-backdrop { z-index: 900; }
body.v3-nav .v3-floating-menu { z-index: 910; }
body.v3-nav .modal-overlay { z-index: 950; }
body.v3-nav .theme-panel-overlay { z-index: 960; }
body.v3-nav .theme-panel { z-index: 970; }
body.v3-nav .toast { z-index: 9999; }

body.v3-nav #dialer-view.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.v3-nav #msgs-view.active,
body.v3-nav #dash-view.active,
body.v3-nav #whatsapp-view.active,
body.v3-nav #files-view.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}

body.v3-nav #msgs-view .msgs-container,
body.v3-nav #dash-view .dash-layout,
body.v3-nav #whatsapp-view .whatsapp-container,
body.v3-nav #files-view .files-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.v3-nav #dash-view .dash-content-area.active,
body.v3-nav #msgs-panel-chat.active {
  min-height: 0;
}

body.v3-nav .kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  min-height: 360px;
}

body.v3-nav .kanban-col {
  min-width: 100%;
  flex-shrink: 0;
}

/* ── Tipografia v3 ── */
body { font-weight: 300; }
h1, h2, h3, .dash-header-title, .kanban-col-title, .v3-island-label {
  font-weight: 500;
  font-family: var(--font-display);
}

/* ── Modo Claro v3 (dark inalterado) ── */
[data-theme="light"] {
  --color-bg-primary:       #FAF7F2;
  --color-bg-secondary:     #FFFDF8;
  --color-bg-tertiary:      #EDE6FA;
  --color-bg-input:         #F5F0FF;
  --color-purple-primary:   #9B7FD4;
  --color-purple-bright:    #9B7FD4;
  --color-purple-soft:      #D8CCEF;
  --color-purple-glow:      rgba(155, 127, 212, 0.25);
  --color-accent-neon:      #9B7FD4;
  --color-text-primary:     #1A1A1A;
  --color-text-secondary:   #3D3D3D;
  --color-border:           #E8E0F0;
  --color-border-active:    #C4B0E8;
  --color-card-surface:     #FFFDF8;
  --color-btn-primary-bg:     #9B7FD4;
  --color-btn-primary-text:   #FFFFFF;
  --color-btn-secondary-border: #9B7FD4;
  --color-btn-secondary-text: #9B7FD4;

  --bg: var(--color-bg-primary);
  --bg2: var(--color-bg-secondary);
  --bg3: var(--color-bg-tertiary);
  --bg4: #D8CCEF;
  --border: var(--color-border);
  --border2: var(--color-border-active);
  --purple: var(--color-purple-primary);
  --purple2: var(--color-purple-primary);
  --text: #1A1A1A;
  --text2: var(--color-text-secondary);
  --text3: #5C5C5C;
}

[data-theme="light"] body::before { opacity: 0.35; }

[data-theme="light"] .rel-input,
[data-theme="light"] .dinput,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--color-bg-input);
  border-color: var(--color-border-active);
  color: #1A1A1A;
}

[data-theme="light"] .hbtn.primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border-color: var(--color-btn-primary-bg);
}

[data-theme="light"] .hbtn:not(.primary) {
  background: transparent;
  border-color: var(--color-btn-secondary-border);
  color: var(--color-btn-secondary-text);
}

[data-theme="light"] .org-contact-card,
[data-theme="light"] .settings-card,
[data-theme="light"] .dash-card,
[data-theme="light"] .sheet-card {
  background: var(--color-card-surface);
  border: 1px solid var(--color-border);
}

/* ── Header v3 ── */
.v3-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 60;
}

.v3-hamburger {
  width: 44px;
  height: 44px;
  min-width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  animation: v3-hamburger-pulse 2s ease-in-out infinite;
  /* Alinhamento para a direita */
  margin-left: auto; 
}

.v3-hamburger.open {
  animation: none;
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.v3-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
}
.v3-user-avatar:hover {
  border-color: var(--purple);
  box-shadow: 0 0 10px var(--purple-glow);
}

.v3-planet-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.v3-planet-logo img { height: 36px; width: auto; }
.v3-planet-logo:active { transform: scale(0.92); }

.app-header.v3-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px 10px;
  position: relative;
}

.app-header.v3-header .v3-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ── Busca global centralizada ── */
.v3-search-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 55;
}

.v3-search-box {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s;
}

[data-theme="light"] .v3-search-box {
  background: #FFFDF8;
  border-color: var(--color-border);
}

.v3-search-box:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.v3-search-box input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 14px;
  font-family: var(--font);
  outline: none !important;
  min-height: 24px;
  box-shadow: none !important;
}
.v3-search-box input:focus {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.v3-search-box input::placeholder { color: var(--text3); }

.v3-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow-card);
}

.v3-search-results.open { display: block; }

.v3-search-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  min-height: 44px;
}
.v3-search-item:active { background: var(--purple-glow); }

/* ── Menu flutuante (direita → centro) ── */
.v3-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.v3-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.v3-floating-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: min(280px, 85vw);
  z-index: 910;
  padding: 80px 14px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  transform: translateX(-100%);
  background: rgba(5, 0, 15, 0.52);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 8px 0 40px rgba(0,0,0,0.6), inset 1px 0 0 rgba(139,92,246,0.07);
}

.v3-floating-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

.v3-menu-islands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v3-menu-island {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.055);
  cursor: pointer;
  transition: all 0.22s ease, transform 0.18s ease;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

[data-theme="light"] .v3-menu-island {
  color: #1A1A1A;
}

.v3-menu-island:hover:not(.active) {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.22), inset 0 0 12px rgba(139, 92, 246, 0.06);
  transform: scale(1.025) translateX(3px);
  color: #c4b5fd;
}

.v3-menu-island.active {
    background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(99,102,241,.95));
    border-color: rgba(139, 92, 246, 0.8) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: #fff;
    font-weight: 600;
  }

.v3-menu-island {
  flex-wrap: wrap;
}

.v3-island-icon {
  display: none !important;
}

.v3-submenu {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  padding: 0 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height .24s ease, opacity .18s ease, transform .22s ease, margin-top .22s ease;
}

.v3-menu-island.expanded .v3-submenu {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}

.v3-submenu-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  text-align: center;
}

.v3-submenu-item:hover,
.v3-submenu-item.active {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* Esconder bottom-nav no v3 */
body.v3-nav .bottom-nav { display: none !important; }

/* ── Botão WhatsApp Organizados ── */
.org-wpp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: #25D366 !important;
  border: none !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: none !important;
}

.org-wpp-btn:active { background: #1DA851 !important; }
.org-wpp-btn svg { display: none !important; }

/* ── Mensagens — Chat WhatsApp ── */
.msgs-container { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.msgs-subtabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.msgs-stab {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
}

.msgs-stab.active {
  color: var(--purple2);
  border-bottom-color: var(--purple);
}

.msgs-panel { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.msgs-panel.active { display: flex; }

.msgs-panel-templates { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.wa-chat-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.wa-conv-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wa-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.wa-conv-item:active { background: var(--bg3); }

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.wa-conv-meta { flex: 1; min-width: 0; }
.wa-conv-name { font-weight: 600; font-size: 14px; color: var(--text); }
.wa-conv-preview { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-conv-time { font-size: 11px; color: var(--text3); }
.wa-unread {
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-thread { display: none; flex-direction: column; height: 100%; }
.wa-thread.active { display: flex; }

.wa-thread-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wa-lead-mini-card {
  margin: 8px 16px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 12px;
}

.wa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.wa-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}

.wa-bubble.out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--purple), #25D366);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.wa-bubble.in {
  align-self: flex-start;
  background: var(--bg4);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.wa-bubble-time { font-size: 10px; opacity: 0.75; margin-top: 4px; display: block; }
.wa-bubble-status { font-size: 10px; float: right; margin-left: 6px; }

.wa-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}

.wa-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  resize: none;
  border-radius: 20px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}

.wa-compose-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Discador — abas ── */
.dialer-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
}

.dialer-tab {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
}

.dialer-tab.active { color: var(--purple2); border-bottom-color: var(--purple); }

.dialer-subpanel { display: none; flex: 1; overflow-y: auto; flex-direction: column; }
.dialer-subpanel.active { display: flex; }

.phone-pad-wrap { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }

.phone-display {
  text-align: center;
  font-size: 28px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  min-height: 48px;
  color: var(--text);
}

.phone-display .cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--purple);
}

@keyframes blink { 50% { opacity: 0; } }

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.phone-key {
  aspect-ratio: 1;
  max-height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.12);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, background 0.15s;
  min-height: 56px;
  min-width: 56px;
}

.phone-key:active {
  transform: scale(0.94);
  background: rgba(124, 58, 237, 0.28);
}

.phone-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.phone-call-btn, .phone-hang-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-call-btn { background: #25D366; color: #fff; }
.phone-hang-btn { background: #EF4444; color: #fff; }

.phone-history { padding: 0 16px 20px; }
.phone-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

/* ── Settings v3 simplificado ── */
.settings-v3 { padding: 16px; max-width: 100%; margin: 0 auto; overflow-y: auto; height: 100%; }
.settings-v3-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.settings-v3-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.settings-v3-field { margin-bottom: 12px; }
.settings-v3-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; margin-bottom: 6px; }
.settings-v3-field input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg3); color: var(--text); font-family: var(--font); }

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

/* ── Kanban v3 extras ── */
.kanban-funnel-wrap { padding: 16px; overflow-y: auto; }
.funnel-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; min-height: 44px; }
.funnel-bar { height: 28px; border-radius: 6px; background: linear-gradient(90deg, var(--purple), var(--cyan)); transition: width 0.4s; }

.alert-config-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WPP preview modal */
.wpp-send-modal textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--font);
  resize: none;
}

/* ── PREMIUM REDESIGN V3 ── */
.premium-glass-card {
  background: rgba(30, 30, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
}

.premium-input {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text);
  padding: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.premium-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  outline: none;
}

.premium-btn {
  background: linear-gradient(135deg, var(--purple) 0%, #60a5fa 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.premium-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(124,58,237,0.4);
}
.premium-btn:active {
  transform: translateY(0) scale(0.98);
}

.premium-title-section {
  text-align: center;
  margin-bottom: 24px;
}
.premium-title-section .dash-header-title {
  font-size: 28px;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.premium-import-box {
  background: rgba(124,58,237,0.05);
  border: 2px dashed rgba(124,58,237,0.3);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}
.premium-import-box:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.6);
  transform: scale(1.02);
}
.premium-import-box svg {
  width: 48px;
  height: 48px;
  fill: var(--purple);
  margin-bottom: 12px;
}




/* CARROSSEL PROFISSIONAL E MODERNO */
#info-view .feat-carousel {
  padding: 20px 10px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
#info-view .feat-slide {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  /* IMPORTANTE: Não usar translateZ, rotatY, scale aqui. O app.js usa translateX. */
}
#info-view .feat-slide.active {
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
#info-view .slide-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a78bfa;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
#info-view .feat-slide h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f8fafc;
  line-height: 1.3;
}
#info-view .feat-slide p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 14px;
}

/* Extracted from index.html */
#info-view{
     --mp-bg:#09080d;--mp-surface:#11101a;--mp-border:rgba(255,255,255,.08);
     --mp-fg:#f5f3ff;--mp-muted:#9ca3af;--mp-accent:#c4b5fd;--mp-primary:#8b5cf6;
     position:relative;background:var(--mp-bg);color:var(--mp-fg);
     font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
     overflow-x:hidden;min-height:100vh;
   }
   #info-view *{box-sizing:border-box}
   #info-view .mp-brand,#info-view .mp-h1,#info-view .mp-h2,#info-view .mp-card h3,#info-view .mp-cta h2{
     font-family:'Avenir Next','Avenir','Jost',-apple-system,BlinkMacSystemFont,sans-serif !important;
     font-weight:300 !important;
   }
   #info-view .mp-h1 em,#info-view .mp-cta h2 em{font-weight:300 !important}

   #info-view .mp-glow{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}
   #info-view .mp-glow span{position:absolute;border-radius:9999px;filter:blur(120px);background:radial-gradient(circle,var(--pp-primary-2) 0%,transparent 70%);opacity:.45}
   #info-view .mp-glow span:nth-child(1){left:-10%;top:-10%;width:55vw;height:55vw;animation:mpGlow 8s ease-in-out infinite alternate}
   #info-view .mp-glow span:nth-child(2){right:-10%;bottom:-15%;width:45vw;height:45vw;opacity:.25}
   @keyframes mpGlow{0%{transform:translate(0,0) scale(1)}100%{transform:translate(4%,3%) scale(1.05)}}
   #info-view .mp-wrap{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:0 32px}
   #info-view .mp-nav{display:flex;align-items:center;justify-content:space-between;padding:24px 0;border-bottom:1px solid var(--mp-border)}
   #info-view .mp-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:14px;letter-spacing:-.01em;text-transform:uppercase}
   #info-view .mp-brand i{width:10px;height:10px;border-radius:50%;background:var(--mp-primary);box-shadow:0 0 24px var(--mp-primary)}
   #info-view .mp-nav-right{display:flex;align-items:center;gap:24px}
   #info-view .mp-tag{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--mp-accent)}
   #info-view .mp-btn-outline{background:transparent;border:1px solid var(--mp-border);color:var(--mp-fg);padding:10px 18px;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;transition:.3s}
   #info-view .mp-btn-outline:hover{background:rgba(139,92,246,.1);border-color:var(--mp-primary)}
   #info-view .mp-hero{display:grid;grid-template-columns:2fr 1fr;gap:48px;padding:80px 0 120px;align-items:center}
   #info-view .mp-kicker{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.26em;text-transform:uppercase;color:var(--mp-accent);margin-bottom:32px}
   #info-view .mp-h1{font-size:clamp(48px,7vw,104px);font-weight:800;line-height:.94;letter-spacing:-.055em;margin:0;max-width:14ch}
   #info-view .mp-h1 em{font-style:normal;color:var(--mp-primary)}
   #info-view .mp-lead{margin-top:40px;font-size:20px;line-height:1.6;color:var(--mp-muted);max-width:42ch;font-weight:300}
   #info-view .mp-hero-card{aspect-ratio:1;border:1px solid var(--mp-border);border-radius:20px;background:linear-gradient(135deg,#1a1530 0%,#0f0c1c 100%);position:relative;overflow:hidden}
   #info-view .mp-hero-card::after{content:"[ Sistema ativo ]";position:absolute;bottom:24px;left:24px;font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.2em;color:var(--mp-accent);text-transform:uppercase}
   #info-view .mp-hero-card::before{content:"";position:absolute;inset:20%;border:1px dashed rgba(196,181,253,.2);border-radius:50%}
   #info-view .mp-manifesto{border-top:1px solid var(--mp-border);border-bottom:1px solid var(--mp-border);background:rgba(17,16,26,.55);padding:120px 0}
   #info-view .mp-manifesto-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
   #info-view .mp-h2{font-size:clamp(28px,3.2vw,42px);font-weight:700;line-height:1.1;letter-spacing:-.02em;margin:0;max-width:19ch}
   #info-view .mp-manifesto-text{font-size:18px;line-height:1.7;color:var(--mp-muted);font-weight:300;display:flex;flex-direction:column;gap:40px}
   #info-view .mp-manifesto-text blockquote{border-left:1px solid rgba(139,92,246,.5);padding:8px 0 8px 32px;margin:0;font-style:italic;color:var(--mp-fg);font-weight:400}
   #info-view .mp-cap{padding:120px 0}
   #info-view .mp-cap-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:48px;gap:24px}
   #info-view .mp-cap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
   #info-view .mp-card{border:1px solid var(--mp-border);border-radius:24px;background:var(--mp-surface);padding:32px;transition:.5s}
   #info-view .mp-card:hover{border-color:rgba(139,92,246,.5);transform:translateY(-4px)}
   #info-view .mp-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
   #info-view .mp-card-icon{width:48px;height:48px;border-radius:12px;background:rgba(139,92,246,.15);display:flex;align-items:center;justify-content:center}
   #info-view .mp-card-icon i{width:16px;height:16px;background:var(--mp-primary);display:block}
   #info-view .mp-card-icon.r i{border-radius:50%}
   #info-view .mp-card-icon.d i{transform:rotate(45deg);border-radius:2px}
   #info-view .mp-card-num{font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.2em;color:var(--mp-muted)}
   #info-view .mp-card h3{font-size:24px;font-weight:700;margin:0 0 16px;letter-spacing:-.01em}
   #info-view .mp-card p{font-size:15px;line-height:1.65;color:var(--mp-muted);font-weight:300;margin:0 0 28px;min-height:75px}
   #info-view .mp-card-img{aspect-ratio:8/5;border-radius:12px;background:linear-gradient(135deg,#1a1530,#0a0814);position:relative;overflow:hidden;border:1px solid var(--mp-border)}
   #info-view .mp-card-img::after{content:attr(data-label);position:absolute;bottom:16px;left:16px;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.2em;color:rgba(245,243,255,.6);text-transform:uppercase}
   #info-view .mp-cta{border-top:1px solid var(--mp-border);background:linear-gradient(180deg,var(--mp-bg) 0%,#16121f 100%);padding:160px 0;text-align:center}
   #info-view .mp-cta h2{font-size:clamp(40px,5.5vw,84px);font-weight:800;line-height:1.02;letter-spacing:-.045em;margin:0 auto;max-width:14ch}
   #info-view .mp-cta h2 em{font-style:normal;color:var(--mp-accent)}
   #info-view .mp-btn-primary{margin-top:48px;display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#fff;border:none;padding:20px 44px;font-size:16px;font-weight:700;border-radius:999px;cursor:pointer;box-shadow:0 18px 40px -10px rgba(139,92,246,.55);transition:.3s;font-family:inherit}
   #info-view .mp-btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 50px -10px rgba(139,92,246,.7)}
   #info-view .mp-btn-primary svg{transition:.3s}
   #info-view .mp-btn-primary:hover svg{transform:translateX(4px)}
   #info-view .mp-foot{position:relative;z-index:1;border-top:1px solid var(--mp-border);padding:40px 0;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--mp-muted)}
   #info-view .mp-foot-row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
   
     #info-view .mp-hero{grid-template-columns:1fr;padding:60px 0 80px;gap:40px}
     #info-view .mp-manifesto{padding:80px 0}
     #info-view .mp-manifesto-grid{grid-template-columns:1fr;gap:40px}
     #info-view .mp-cap{padding:80px 0}
     #info-view .mp-cap-grid{grid-template-columns:1fr}
     #info-view .mp-cta{padding:100px 0}
     #info-view .mp-wrap{padding:0 20px}
     #info-view .mp-tag{display:none}
   
  
  #info-view .mp-card-img{background-size:cover;background-position:center}
  #info-view .mp-card-img::after{background:linear-gradient(180deg,transparent,rgba(10,8,20,.85));padding:24px 16px 16px;width:100%;left:0;bottom:0}
  #info-view .mp-hero-card{background-size:cover;background-position:center}

/* Extracted from index.html */
#dash-view {
   --pp-surface:#111111;
   --pp-border:rgba(255,255,255,.06);
   --pp-fg:#f5f5f5;--pp-muted:#7a7a7a;
   --pp-primary:#8b5cf6;--pp-primary-2:#a78bfa;
   --pp-primary-glow:rgba(139,92,246,.3);
  }
  #dash-view .dash-subtabs {
   display:inline-flex;gap:4px;padding:5px;margin:18px 18px 10px;
   background:var(--pp-surface);border:1px solid var(--pp-border);
   border-radius:14px;box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
  }
  #dash-view .dtab {
   padding:9px 18px;border-radius:10px;font-size:13px;font-weight:600;
   letter-spacing:.01em;color:var(--pp-muted);cursor:pointer;
   transition:color .2s ease,background .2s ease,box-shadow .2s ease;
  }
  #dash-view .dtab:hover { color:var(--pp-fg); }
  #dash-view .dtab.active {
   color:#fff;
   background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));
   box-shadow:0 6px 18px -6px var(--pp-primary-glow),0 1px 0 rgba(255,255,255,.15) inset;
  }
  #dash-view .dash-content-area { display:none; }
  #dash-view .dash-content-area.active { display:flex; animation:sub-in .24s cubic-bezier(.22,.61,.36,1) both; }

/* Extracted from index.html */
#msgs-view {
   --pp-surface:#111111;
   --pp-border:rgba(255,255,255,.06);
   --pp-fg:#f5f5f5;--pp-muted:#7a7a7a;
   --pp-primary:#8b5cf6;--pp-primary-2:#a78bfa;
   --pp-primary-glow:rgba(139,92,246,.3);
  }
  #msgs-view .msgs-subtabs {
   display:inline-flex;gap:4px;padding:5px;margin:18px 18px 10px;
   background:var(--pp-surface);border:1px solid var(--pp-border);
   border-radius:14px;box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
  }
  #msgs-view .msgs-stab {
   background:transparent;border:none;
   padding:9px 18px;border-radius:10px;font-size:13px;font-weight:600;
   letter-spacing:.01em;color:var(--pp-muted);cursor:pointer;font-family:inherit;
   transition:color .2s ease,background .2s ease,box-shadow .2s ease;
  }
  #msgs-view .msgs-stab:hover { color:var(--pp-fg); }
  #msgs-view .msgs-stab.active {
   color:#fff;
   background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));
   box-shadow:0 6px 18px -6px var(--pp-primary-glow),0 1px 0 rgba(255,255,255,.15) inset;
  }
  #msgs-view .msgs-panel { display:none; }
  #msgs-view .msgs-panel.active { display:flex; animation:sub-in .24s cubic-bezier(.22,.61,.36,1) both; }

/* Extracted from index.html */


/* Extracted from index.html */
#info-view{
     --mp-bg:#09080d;--mp-surface:#11101a;--mp-border:rgba(255,255,255,.08);
     --mp-fg:#f5f3ff;--mp-muted:#9ca3af;--mp-accent:#c4b5fd;--mp-primary:#8b5cf6;
     position:relative;background:var(--mp-bg);color:var(--mp-fg);
     font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
     overflow-x:hidden;min-height:100vh;
   }
   #info-view *{box-sizing:border-box}
   #info-view .mp-brand,#info-view .mp-h1,#info-view .mp-h2,#info-view .mp-card h3,#info-view .mp-cta h2{
     font-family:'Avenir Next','Avenir','Jost',-apple-system,BlinkMacSystemFont,sans-serif !important;
     font-weight:300 !important;
   }
   #info-view .mp-h1 em,#info-view .mp-cta h2 em{font-weight:300 !important}

   #info-view .mp-glow{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}
   #info-view .mp-glow span{position:absolute;border-radius:9999px;filter:blur(120px);background:radial-gradient(circle,var(--pp-primary-2) 0%,transparent 70%);opacity:.45}
   #info-view .mp-glow span:nth-child(1){left:-10%;top:-10%;width:55vw;height:55vw;animation:mpGlow 8s ease-in-out infinite alternate}
   #info-view .mp-glow span:nth-child(2){right:-10%;bottom:-15%;width:45vw;height:45vw;opacity:.25}
   @keyframes mpGlow{0%{transform:translate(0,0) scale(1)}100%{transform:translate(4%,3%) scale(1.05)}}
   #info-view .mp-wrap{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:0 32px}
   #info-view .mp-nav{display:flex;align-items:center;justify-content:space-between;padding:24px 0;border-bottom:1px solid var(--mp-border)}
   #info-view .mp-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:14px;letter-spacing:-.01em;text-transform:uppercase}
   #info-view .mp-brand i{width:10px;height:10px;border-radius:50%;background:var(--mp-primary);box-shadow:0 0 24px var(--mp-primary)}
   #info-view .mp-nav-right{display:flex;align-items:center;gap:24px}
   #info-view .mp-tag{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--mp-accent)}
   #info-view .mp-btn-outline{background:transparent;border:1px solid var(--mp-border);color:var(--mp-fg);padding:10px 18px;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;transition:.3s}
   #info-view .mp-btn-outline:hover{background:rgba(139,92,246,.1);border-color:var(--mp-primary)}
   #info-view .mp-hero{display:grid;grid-template-columns:2fr 1fr;gap:48px;padding:80px 0 120px;align-items:center}
   #info-view .mp-kicker{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.26em;text-transform:uppercase;color:var(--mp-accent);margin-bottom:32px}
   #info-view .mp-h1{font-size:clamp(48px,7vw,104px);font-weight:800;line-height:.94;letter-spacing:-.055em;margin:0;max-width:14ch}
   #info-view .mp-h1 em{font-style:normal;color:var(--mp-primary)}
   #info-view .mp-lead{margin-top:40px;font-size:20px;line-height:1.6;color:var(--mp-muted);max-width:42ch;font-weight:300}
   #info-view .mp-hero-card{aspect-ratio:1;border:1px solid var(--mp-border);border-radius:20px;background:linear-gradient(135deg,#1a1530 0%,#0f0c1c 100%);position:relative;overflow:hidden}
   #info-view .mp-hero-card::after{content:"[ Sistema ativo ]";position:absolute;bottom:24px;left:24px;font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.2em;color:var(--mp-accent);text-transform:uppercase}
   #info-view .mp-hero-card::before{content:"";position:absolute;inset:20%;border:1px dashed rgba(196,181,253,.2);border-radius:50%}
   #info-view .mp-manifesto{border-top:1px solid var(--mp-border);border-bottom:1px solid var(--mp-border);background:rgba(17,16,26,.55);padding:120px 0}
   #info-view .mp-manifesto-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
   #info-view .mp-h2{font-size:clamp(28px,3.2vw,42px);font-weight:700;line-height:1.1;letter-spacing:-.02em;margin:0;max-width:19ch}
   #info-view .mp-manifesto-text{font-size:18px;line-height:1.7;color:var(--mp-muted);font-weight:300;display:flex;flex-direction:column;gap:40px}
   #info-view .mp-manifesto-text blockquote{border-left:1px solid rgba(139,92,246,.5);padding:8px 0 8px 32px;margin:0;font-style:italic;color:var(--mp-fg);font-weight:400}
   #info-view .mp-cap{padding:120px 0}
   #info-view .mp-cap-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:48px;gap:24px}
   #info-view .mp-cap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
   #info-view .mp-card{border:1px solid var(--mp-border);border-radius:24px;background:var(--mp-surface);padding:32px;transition:.5s}
   #info-view .mp-card:hover{border-color:rgba(139,92,246,.5);transform:translateY(-4px)}
   #info-view .mp-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
   #info-view .mp-card-icon{width:48px;height:48px;border-radius:12px;background:rgba(139,92,246,.15);display:flex;align-items:center;justify-content:center}
   #info-view .mp-card-icon i{width:16px;height:16px;background:var(--mp-primary);display:block}
   #info-view .mp-card-icon.r i{border-radius:50%}
   #info-view .mp-card-icon.d i{transform:rotate(45deg);border-radius:2px}
   #info-view .mp-card-num{font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.2em;color:var(--mp-muted)}
   #info-view .mp-card h3{font-size:24px;font-weight:700;margin:0 0 16px;letter-spacing:-.01em}
   #info-view .mp-card p{font-size:15px;line-height:1.65;color:var(--mp-muted);font-weight:300;margin:0 0 28px;min-height:75px}
   #info-view .mp-card-img{aspect-ratio:8/5;border-radius:12px;background:linear-gradient(135deg,#1a1530,#0a0814);position:relative;overflow:hidden;border:1px solid var(--mp-border)}
   #info-view .mp-card-img::after{content:attr(data-label);position:absolute;bottom:16px;left:16px;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.2em;color:rgba(245,243,255,.6);text-transform:uppercase}
   #info-view .mp-cta{border-top:1px solid var(--mp-border);background:linear-gradient(180deg,var(--mp-bg) 0%,#16121f 100%);padding:160px 0;text-align:center}
   #info-view .mp-cta h2{font-size:clamp(40px,5.5vw,84px);font-weight:800;line-height:1.02;letter-spacing:-.045em;margin:0 auto;max-width:14ch}
   #info-view .mp-cta h2 em{font-style:normal;color:var(--mp-accent)}
   #info-view .mp-btn-primary{margin-top:48px;display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#fff;border:none;padding:20px 44px;font-size:16px;font-weight:700;border-radius:999px;cursor:pointer;box-shadow:0 18px 40px -10px rgba(139,92,246,.55);transition:.3s;font-family:inherit}
   #info-view .mp-btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 50px -10px rgba(139,92,246,.7)}
   #info-view .mp-btn-primary svg{transition:.3s}
   #info-view .mp-btn-primary:hover svg{transform:translateX(4px)}
   #info-view .mp-foot{position:relative;z-index:1;border-top:1px solid var(--mp-border);padding:40px 0;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--mp-muted)}
   #info-view .mp-foot-row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
   
     #info-view .mp-hero{grid-template-columns:1fr;padding:60px 0 80px;gap:40px}
     #info-view .mp-manifesto{padding:80px 0}
     #info-view .mp-manifesto-grid{grid-template-columns:1fr;gap:40px}
     #info-view .mp-cap{padding:80px 0}
     #info-view .mp-cap-grid{grid-template-columns:1fr}
     #info-view .mp-cta{padding:100px 0}
     #info-view .mp-wrap{padding:0 20px}
     #info-view .mp-tag{display:none}
   
  
  #info-view .mp-card-img{background-size:cover;background-position:center}
  #info-view .mp-card-img::after{background:linear-gradient(180deg,transparent,rgba(10,8,20,.85));padding:24px 16px 16px;width:100%;left:0;bottom:0}
  #info-view .mp-hero-card{background-size:cover;background-position:center}
#dash-view {
   --pp-surface:#111111;
   --pp-border:rgba(255,255,255,.06);
   --pp-fg:#f5f5f5;--pp-muted:#7a7a7a;
   --pp-primary:#8b5cf6;--pp-primary-2:#a78bfa;
   --pp-primary-glow:rgba(139,92,246,.3);
  }
  #dash-view .dash-subtabs {
   display:inline-flex;gap:4px;padding:5px;margin:18px 18px 10px;
   background:var(--pp-surface);border:1px solid var(--pp-border);
   border-radius:14px;box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
  }
  #dash-view .dtab {
   padding:9px 18px;border-radius:10px;font-size:13px;font-weight:600;
   letter-spacing:.01em;color:var(--pp-muted);cursor:pointer;
   transition:color .2s ease,background .2s ease,box-shadow .2s ease;
  }
  #dash-view .dtab:hover { color:var(--pp-fg); }
  #dash-view .dtab.active {
   color:#fff;
   background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));
   box-shadow:0 6px 18px -6px var(--pp-primary-glow),0 1px 0 rgba(255,255,255,.15) inset;
  }
  #dash-view .dash-content-area { display:none; }
  #dash-view .dash-content-area.active { display:flex; animation:sub-in .24s cubic-bezier(.22,.61,.36,1) both; }
#msgs-view {
   --pp-surface:#111111;
   --pp-border:rgba(255,255,255,.06);
   --pp-fg:#f5f5f5;--pp-muted:#7a7a7a;
   --pp-primary:#8b5cf6;--pp-primary-2:#a78bfa;
   --pp-primary-glow:rgba(139,92,246,.3);
  }
  #msgs-view .msgs-subtabs {
   display:inline-flex;gap:4px;padding:5px;margin:18px 18px 10px;
   background:var(--pp-surface);border:1px solid var(--pp-border);
   border-radius:14px;box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
  }
  #msgs-view .msgs-stab {
   background:transparent;border:none;
   padding:9px 18px;border-radius:10px;font-size:13px;font-weight:600;
   letter-spacing:.01em;color:var(--pp-muted);cursor:pointer;font-family:inherit;
   transition:color .2s ease,background .2s ease,box-shadow .2s ease;
  }
  #msgs-view .msgs-stab:hover { color:var(--pp-fg); }
  #msgs-view .msgs-stab.active {
   color:#fff;
   background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));
   box-shadow:0 6px 18px -6px var(--pp-primary-glow),0 1px 0 rgba(255,255,255,.15) inset;
  }
  #msgs-view .msgs-panel { display:none; }
  #msgs-view .msgs-panel.active { display:flex; animation:sub-in .24s cubic-bezier(.22,.61,.36,1) both; }



.floating-island { border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); padding: 15px; border: 1px solid var(--color-border); }
.sheet-item { padding: 8px 12px !important; margin-bottom: 6px !important; }
.sheet-grid { touch-action: pan-x pan-y pinch-zoom; zoom: 0.8; }
/* Fix clicks no theme-panel */
.theme-panel { pointer-events: auto !important; z-index: 999999 !important; }
.theme-panel * { pointer-events: auto; }
.theme-panel-overlay { z-index: 999998 !important; }

