/* ==========================================================================
   RENATO ROSSET — DESIGN DIGITAL DE PRÓTESES DENTÁRIAS
   Design System Autoral: Azul Safira Profundo & Dourado Imperial
   Mobile-First Perfeito • Fluidez 120FPS • Tipografia Prestígio • Zero Cara de IA
   ========================================================================== */

:root {
  /* Paleta Nobre & Discreta */
  --bg-dark: #020612;
  --bg-deep: #030a1b;
  --bg-card: #09142b;
  --bg-card-hover: #0e1e3f;

  /* Acentos de Ouro e Safira */
  --gold-primary: #d4af37;
  --gold-light: #f7e7b4;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.24);
  --gold-border-subtle: rgba(212, 175, 55, 0.12);

  --blue-primary: #1e6bf5;
  --blue-light: #60a5fa;
  --blue-border: rgba(30, 107, 245, 0.22);

  /* Textos */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Efeitos e Raios */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-full: 9999px;
}

/* Reset Universal & Prevenção Total de Rolagem Horizontal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Espaçamento superior natural e equilibrado */
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  background: radial-gradient(circle at 50% 0%, #0c2048 0%, #030a1b 45%, #020612 100%);
  background-attachment: fixed;
}

@media (min-width: 600px) {
  body {
    padding-top: 32px;
    padding-bottom: 48px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Proteção de Visibilidade Crítica */
.actions-container, .btn-master-vip, .btn-action-card, 
.showcase-section, .services-cluster, .schedule-card, .footer-autoral {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Background Atmosférico Leve (0 Vídeo • 0 Lag) */
.bg-ambient-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(30, 107, 245, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(2, 7, 18, 0.25) 0%, rgba(2, 7, 18, 0.95) 100%);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Container Principal — Espaçoso e Elegante */
.main-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* Respiro equilibrado entre seções */
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HEADER DO PERFIL
   ========================================================================== */
.profile-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .avatar-wrapper {
    width: 104px;
    height: 104px;
    margin-bottom: 14px;
  }
}

.avatar-glow {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: conic-gradient(from 0deg, var(--gold-primary), var(--blue-primary), var(--gold-light), var(--blue-primary), var(--gold-primary));
  filter: blur(6px);
  opacity: 0.4;
  animation: rotateGlow 14s linear infinite;
  pointer-events: none;
}

.avatar-border {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  padding: 2.5px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--blue-primary) 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  display: block;
}

.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #1e6bf5, #1449aa);
  border: 2px solid #020612;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(30, 107, 245, 0.5);
  color: #fff;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.profile-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  margin: 3px 0 0;
  word-break: break-word;
}

.profile-subtitle {
  font-size: clamp(0.82rem, 3vw, 0.9rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.45;
  padding: 0 4px;
}

/* Badges de Autoridade Limpas */
.authority-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.auth-pill svg {
  width: 12px;
  height: 12px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Status de Atendimento */
.live-status-container {
  margin-top: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.status-badge.open {
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.status-badge.closed {
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.open .status-pulse {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGreen 1.8s infinite;
}

.status-badge.closed .status-pulse {
  background: #eab308;
  box-shadow: 0 0 5px #eab308;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   BOTÕES DE AÇÃO — GLOW FINO, NOBRE E SEM CORTE DE TEXTO
   ========================================================================== */
.actions-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Feixe de Luz Fino e Discreto */
.shiny-sweep {
  position: relative;
  overflow: hidden !important;
  contain: paint;
}

.shiny-sweep::before {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.03) 25%, 
    rgba(247, 231, 180, 0.14) 50%, 
    rgba(255, 255, 255, 0.04) 75%, 
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shinySweepDelicate 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
  filter: blur(1.5px);
}

@keyframes shinySweepDelicate {
  0% { left: -140%; opacity: 0; }
  10% { opacity: 1; }
  32% { left: 190%; opacity: 1; }
  33% { opacity: 0; }
  100% { left: 190%; opacity: 0; }
}

/* Botão Master VIP */
.btn-master-vip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0e1e3f 0%, #08142a 60%, #0a1835 100%);
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: #fff;
  transition: var(--transition-smooth);
}

.btn-master-vip:hover {
  transform: translateY(-1.5px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-vip-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.icon-box-vip {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-vip-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.vip-badge-tag {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  white-space: nowrap;
}

.vip-title {
  font-size: clamp(0.86rem, 3.4vw, 0.95rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  word-break: break-word;
}

.vip-desc {
  font-size: clamp(0.7rem, 2.7vw, 0.76rem);
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
}

.vip-arrow {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-left: 6px;
  transition: var(--transition-smooth);
}

.btn-master-vip:hover .vip-arrow {
  transform: translateX(2px);
  color: var(--gold-light);
}

/* Botões Secundários */
.btn-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--gold-border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.btn-action-card:hover {
  transform: translateY(-1.5px);
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.action-card-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.icon-blue {
  background: rgba(30, 107, 245, 0.12);
  border: 1px solid var(--blue-border);
  color: var(--blue-light);
}

.icon-gold {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}

.icon-insta {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.16) 0%, rgba(253, 29, 29, 0.16) 100%);
  border: 1px solid rgba(225, 48, 108, 0.25);
  color: #f472b6;
}

.btn-action-card:hover .action-icon {
  transform: scale(1.04);
}

.action-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.action-title {
  font-size: clamp(0.82rem, 3.2vw, 0.9rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  word-break: break-word;
}

.action-desc {
  font-size: clamp(0.68rem, 2.6vw, 0.74rem);
  color: var(--text-muted);
  line-height: 1.3;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
}

.action-chevron {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  margin-left: 6px;
}

.btn-action-card:hover .action-chevron {
  color: var(--gold-light);
  transform: translateX(2px);
}

/* ==========================================================================
   SEÇÃO SHOWCASE: CABEÇALHO PERFEITO E ELEGANTE (SEM QUEBRAS ESTRANHAS)
   ========================================================================== */
.showcase-section {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header-compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px;
  gap: 10px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.section-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.96rem, 3.6vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  display: block;
}

.section-badge {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--gold-border-subtle);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.showcase-item:hover {
  transform: translateY(-1.5px);
  border-color: var(--gold-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.showcase-media {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #061025;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-media-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(2, 7, 18, 0.88);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.showcase-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.showcase-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.showcase-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   BLOCO DE DIFERENCIAIS
   ========================================================================== */
.services-cluster {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--gold-border-subtle);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 4px 0;
}

.service-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-text {
  font-size: clamp(0.76rem, 2.8vw, 0.82rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
  word-break: break-word;
}

.service-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   HORÁRIOS & ATENDIMENTO
   ========================================================================== */
.schedule-card {
  width: 100%;
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--gold-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.schedule-header h3 {
  font-size: clamp(0.84rem, 3.1vw, 0.9rem);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-header h3 svg {
  color: var(--gold-primary);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.74rem, 2.7vw, 0.8rem);
  padding: 2px 0;
}

.schedule-item:not(:last-child) {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.schedule-day {
  color: var(--text-muted);
  flex-shrink: 0;
}

.schedule-time {
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.schedule-time.closed {
  color: #ef4444;
  font-weight: 600;
}

/* ==========================================================================
   RODAPÉ AUTORAL
   ========================================================================== */
.footer-autoral {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 18px 0 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer-stamp svg {
  color: var(--gold-primary);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-location {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.75;
}
