/* ==========================================================================
   SIMULADOR VISUAL — ESTILOS DEDICADOS DOS SMARTPHONES E CHAT
   ========================================================================== */

.sim-hero {
  padding: 50px 0 30px;
  text-align: center;
}

.sim-hero-lead {
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Painel de Ações Rápidas */
.sim-actions-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 960px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.sim-actions-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.sim-actions-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sim-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text-main);
  font-family: var(--font-main);
}

.sim-btn:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  background: rgba(46, 229, 154, 0.08);
}

.sim-btn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sim-btn strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
}

.sim-btn small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.sim-btn-alert {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.sim-btn-alert:hover {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
}

.sim-btn-reset {
  grid-column: 1 / -1;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.2s ease;
}

.sim-btn-reset:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* Devices Section */
.sim-devices-section {
  padding: 30px 0 60px;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
  justify-content: center;
}

.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-label {
  margin-bottom: 16px;
  text-align: center;
}

.device-label strong {
  display: block;
  font-size: 1rem;
}

.device-label small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  margin-right: 6px;
}

.live-dot.dot-blue {
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

/* Smartphone Frame */
.smartphone-frame {
  width: 100%;
  max-width: 380px;
  height: 640px;
  border-radius: 40px;
  border: 10px solid #1f2923;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #0d1410;
}

body.light .smartphone-frame {
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #1f2923;
  border-radius: 0 0 14px 14px;
  z-index: 50;
}

body.light .phone-notch {
  background: #e2e8f0;
}

/* ==========================================================================
   WHATSAPP FRAME SPECIFICS
   ========================================================================== */
.whatsapp-frame {
  background: #0b141a;
}

body.light .whatsapp-frame {
  background: #efeae2;
}

.wa-header {
  background: #1f2c34;
  padding: 30px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light .wa-header {
  background: #008069;
  color: #fff;
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #042f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.wa-contact strong {
  display: block;
  font-size: 0.9rem;
  color: #e9edef;
}

body.light .wa-contact strong {
  color: #fff;
}

.wa-contact small {
  display: block;
  font-size: 0.72rem;
  color: #8696a0;
}

body.light .wa-contact small {
  color: rgba(255, 255, 255, 0.85);
}

.wa-contact small i {
  color: var(--accent-green);
  font-style: normal;
}

/* Chat Body */
.wa-chat {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
}

.wa-date-pill {
  align-self: center;
  background: rgba(17, 27, 33, 0.8);
  font-size: 0.65rem;
  font-weight: 600;
  color: #8696a0;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.wa-msg {
  max-width: 85%;
  padding: 9px 13px 20px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.35;
  position: relative;
  word-break: break-word;
  animation: popMsg 0.25s ease-out;
}

@keyframes popMsg {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.wa-bot {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 2px;
}

body.light .wa-bot {
  background: #ffffff;
  color: #111b21;
}

.wa-user {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 2px;
}

body.light .wa-user {
  background: #d9fdd3;
  color: #111b21;
}

.wa-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}

body.light .wa-time {
  color: rgba(0, 0, 0, 0.45);
}

/* Audio Player Mockup */
.audio-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.audio-waves {
  flex-grow: 1;
  height: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.audio-waves span {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.audio-dur {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Image Mockup */
.receipt-img-mock {
  width: 100%;
  height: 110px;
  background: #151e22;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #8696a0;
  margin-bottom: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.receipt-icon {
  font-size: 1.5rem;
}

/* WhatsApp Input Bar */
.wa-input-bar {
  background: #202c33;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light .wa-input-bar {
  background: #f0f2f5;
}

.wa-input-bar input {
  flex-grow: 1;
  background: #2a3942;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  color: #e9edef;
  font-size: 0.85rem;
  outline: none;
}

body.light .wa-input-bar input {
  background: #ffffff;
  color: #111b21;
}

.wa-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   APP MOBILE UI MOCKUP & 5 VIEWS
   ========================================================================== */

.app-frame {
  background: #0d1310;
}

body.light .app-frame {
  background: #f8faf9;
}

.push-notification {
  position: absolute;
  top: 28px;
  left: 14px;
  right: 14px;
  z-index: 100;
  background: rgba(22, 33, 27, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(46, 229, 154, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideDownPush 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownPush {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.push-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-green);
  color: #042f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.push-content {
  flex-grow: 1;
}

.push-content strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-main);
}

.push-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.push-notification small {
  font-size: 0.65rem;
  color: var(--text-dim);
  align-self: flex-start;
}

/* App Header */
.app-ui-header {
  padding: 30px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.app-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e2d25;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.app-user-chip strong {
  display: block;
  font-size: 0.85rem;
}

.app-user-chip small {
  display: block;
  font-size: 0.7rem;
  color: var(--accent-green);
}

.app-live-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(46, 229, 154, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(46, 229, 154, 0.25);
}

/* App Body Scrollable */
.app-ui-body {
  flex-grow: 1;
  padding: 14px;
  overflow-y: auto;
  position: relative;
}

.app-tab-view {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.app-tab-view.active {
  display: flex;
  animation: fadeInTab 0.2s ease-out;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Balance Card */
.app-balance-card {
  background: linear-gradient(135deg, #15221b 0%, #1a2c23 100%);
  border: 1px solid rgba(46, 229, 154, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.light .app-balance-card {
  background: linear-gradient(135deg, #e6f7ef 0%, #d1f2e2 100%);
  border-color: rgba(5, 150, 105, 0.25);
}

.app-balance-card small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.app-balance-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-green);
  margin: 4px 0 10px;
  transition: transform 0.2s ease;
}

.app-balance-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.meta-in { color: var(--accent-green); }
.meta-out { color: #f87171; }

/* Cards inside App */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.app-card-head strong {
  color: var(--text-main);
}

.app-card-head span {
  font-weight: 700;
  color: var(--accent-green);
}

/* Category Bars */
.app-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.cat-label {
  width: 90px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-bar-bg {
  flex-grow: 1;
  height: 6px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar-bg.lg {
  height: 8px;
  margin: 6px 0;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-green { background: var(--accent-green); }
.fill-amber { background: var(--accent-amber); }
.fill-blue { background: var(--accent-blue); }
.fill-purple { background: var(--accent-purple); }

.cat-val {
  width: 65px;
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

.goal-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Feed */
.app-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.feed-info {
  flex-grow: 1;
}

.feed-info strong {
  display: block;
  font-size: 0.78rem;
}

.feed-info small {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.feed-val {
  font-weight: 700;
}

.feed-val.out { color: #f87171; }
.feed-val.in { color: var(--accent-green); }

/* ==========================================================================
   TAB 2: EXTRATO COMPLETO
   ========================================================================== */

.statement-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.statement-title strong {
  display: block;
  font-size: 1rem;
}

.statement-title small {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.statement-filters {
  display: flex;
  gap: 6px;
}

.st-filter {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.st-filter.active {
  background: var(--accent-green);
  color: #042f1a;
  border-color: var(--accent-green);
}

.statement-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.statement-summary-box small {
  font-size: 0.62rem;
  color: var(--text-dim);
  display: block;
}

.statement-summary-box strong {
  font-size: 0.8rem;
}

.text-green { color: var(--accent-green); }
.text-red { color: #f87171; }

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

.st-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.tag-channel {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(46, 229, 154, 0.12);
  color: var(--accent-green);
  font-weight: 600;
}

/* ==========================================================================
   TAB 3: INVESTIMENTOS
   ========================================================================== */

.invest-hero-card {
  background: linear-gradient(135deg, #1f1a30 0%, #291e45 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

body.light .invest-hero-card {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.invest-hero-card small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.invest-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #c084fc;
  margin: 4px 0;
}

.invest-growth {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

.donut-mock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.donut-chart-mock {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(
    #2ee59a 0% 45%,
    #a855f7 45% 70%,
    #f59e0b 70% 90%,
    #38bdf8 90% 100%
  );
  position: relative;
  flex-shrink: 0;
}

.donut-chart-mock::after {
  content: '';
  position: absolute;
  inset: 16px;
  background: var(--bg-card);
  border-radius: 50%;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
}

.donut-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green { background: var(--accent-green); }
.dot-purple { background: var(--accent-purple); }
.dot-amber { background: var(--accent-amber); }
.dot-blue { background: var(--accent-blue); }

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

.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.asset-item:last-child {
  border-bottom: none;
}

.asset-item small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.asset-price {
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   TAB 4: METAS
   ========================================================================== */

.goals-list-full {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-item-card {
  padding: 14px;
}

.goal-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: 0.05em;
}

.goal-pct-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-green);
}

.goal-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ==========================================================================
   TAB 5: PERFIL & ASSINATURA
   ========================================================================== */

.profile-user-card {
  text-align: center;
  padding: 20px 14px;
}

.profile-big-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #042f1a;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.profile-user-card h3 {
  font-size: 1.1rem;
}

.profile-user-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.subscription-card {
  border-color: rgba(46, 229, 154, 0.3);
  background: rgba(46, 229, 154, 0.04);
}

.status-active {
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.sub-detail {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 0.78rem;
}

.sub-detail small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.sub-stripe-box {
  background: var(--bg-input);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-stripe-box small {
  color: var(--text-dim);
}

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

.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.channel-item:last-child {
  border-bottom: none;
}

.channel-status.ok {
  color: var(--accent-green);
  font-weight: 600;
}

/* ==========================================================================
   APP BOTTOM NAVIGATION
   ========================================================================== */

.app-ui-nav {
  background: #141c17;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 14px;
}

body.light .app-ui-nav {
  background: #ffffff;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 10px;
  transition: all 0.2s ease;
}

.nav-item small {
  font-size: 0.62rem;
  margin-top: 2px;
  font-family: var(--font-main);
}

.nav-item.active {
  color: var(--accent-green);
  font-weight: 700;
}

.nav-item:hover {
  color: var(--accent-green);
}

/* Bottom CTA in Simulator */
.sim-bottom-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 50px;
}

.sim-bottom-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.sim-bottom-cta p {
  margin-bottom: 24px;
}

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