/* ==========================================================================
   VARIÁVEIS GLOBAIS E RESET
   Paleta inspirada fielmente na referência:
   - Preto profundo (#06010a, #0b0314, #0f051c)
   - Roxo neon vibrante (#a855f7, #bc13fe, #9333ea, #c084fc, #e879f9)
   - Gradientes metálicos e neon glows
   ========================================================================== */

:root {
    --bg-main: #06010a;
    --bg-card: rgba(14, 5, 24, 0.82);
    --bg-card-hover: rgba(25, 9, 44, 0.94);
    --bg-card-border: rgba(188, 19, 254, 0.45);
    --bg-card-border-hover: rgba(216, 80, 255, 0.95);
    
    --neon-purple: #bc13fe;
    --neon-purple-bright: #d946ef;
    --neon-purple-light: #e879f9;
    --neon-purple-glow: rgba(188, 19, 254, 0.6);
    --neon-purple-soft: rgba(168, 85, 247, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #c084fc;
    --text-muted: #94a3b8;
    --text-sub: #b3a4c4;
    
    --live-green: #22c55e;
    --live-green-glow: rgba(34, 197, 94, 0.6);
    --live-red: #ef4444;
    --live-red-glow: rgba(239, 68, 68, 0.6);
    
    --font-heading: 'Sora', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --card-radius: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 60px;
}

/* ==========================================================================
   CANVAS DE FUNDO: GRÁFICO DINÂMICO DE TRADE (NOS 3 TERÇOS DA TELA)
   Cobre 100% da viewport e funciona ininterruptamente no fundo
   ========================================================================== */
.chart-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#chartCanvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.92;
}

/* Linha de Grid Cibernética em toda a tela */
.cyber-grid-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(168, 85, 247, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

/* Vinheta de escurecimento sutil no centro para manter legibilidade máxima */
.ambient-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at 50% 50%, rgba(6, 1, 10, 0.45) 0%, rgba(6, 1, 10, 0.8) 100%);
}

/* ==========================================================================
   CONTAINER PRINCIPAL
   ========================================================================== */
.main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   HEADER: AVATAR, STATUS LIVE E IDENTIDADE
   ========================================================================== */
.profile-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 10px;
}

/* Anel do Avatar Neon */
.avatar-container {
    position: relative;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.avatar-ring-outer {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #bc13fe, #9333ea, #f43f5e, #a855f7, #bc13fe);
    filter: drop-shadow(0 0 16px rgba(188, 19, 254, 0.95)) drop-shadow(0 0 32px rgba(147, 51, 234, 0.6));
    animation: spinRing 8s linear infinite;
}

.avatar-ring-inner {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #090212;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(217, 70, 239, 0.9);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Badge de Status: Offline / Ao Vivo */
.live-status-pill {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(18, 6, 32, 0.85);
    border: 1px solid rgba(188, 19, 254, 0.45);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.25);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 16px;
    user-select: none;
}

.live-status-pill:hover {
    border-color: var(--neon-purple-bright);
    box-shadow: 0 0 22px rgba(188, 19, 254, 0.55);
    transform: scale(1.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8b5cf6;
    box-shadow: 0 0 8px #8b5cf6;
    transition: var(--transition-smooth);
}

.status-text {
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e2d9f3;
}

/* Estado AO VIVO do Badge */
.live-status-pill.is-live {
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(9, 36, 18, 0.85);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
    animation: livePulse 2s infinite alternate;
}

.live-status-pill.is-live .status-dot {
    background-color: var(--live-green);
    box-shadow: 0 0 12px var(--live-green), 0 0 20px var(--live-green);
    animation: liveRadar 1.5s infinite;
}

.live-status-pill.is-live .status-text {
    color: #bbf7d0;
}

/* Mini Player / Card de Transmissão ao Vivo */
.live-player-card {
    width: 100%;
    max-width: 480px;
    margin-bottom: 22px;
    background: rgba(14, 4, 28, 0.94);
    border: 1px solid rgba(188, 19, 254, 0.6);
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.35);
    backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    display: none;
    overflow: hidden;
}

.live-player-card.active {
    display: block;
    animation: expandFadeIn 0.4s ease-out forwards;
}

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

.live-badge-glow {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.8);
}

.live-badge-glow .pulse-ring {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: liveRadar 1.2s infinite;
}

.live-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.live-close-btn:hover {
    color: #fff;
}

.live-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-video-wrapper iframe,
.live-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #18072e 0%, #080210 100%);
    gap: 12px;
}

.play-button-big {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bc13fe, #9333ea);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.8);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.play-button-big:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(217, 70, 239, 1);
}

.play-button-big svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    margin-left: 3px;
}

.live-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #bc13fe 0%, #9333ea 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(188, 19, 254, 0.4);
    transition: var(--transition-smooth);
}

.live-cta-btn:hover {
    box-shadow: 0 0 28px rgba(217, 70, 239, 0.7);
    filter: brightness(1.1);
}

/* Nome e Subtítulo Principal */
.trader-name {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(188, 19, 254, 0.6), 0 2px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 6px;
    line-height: 1.1;
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.subtitle-line {
    width: 40px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #bc13fe);
}

.subtitle-line.right {
    background: linear-gradient(90deg, #bc13fe, transparent);
}

.trader-subtitle {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #c084fc;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.trader-bio {
    max-width: 440px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #e2d9f3;
    font-weight: 400;
    margin-bottom: 16px;
}

.trader-bio .highlight {
    color: #d946ef;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
}

/* ==========================================================================
   1. BARRA DE MÉTRICAS DE AUTORIDADE
   ========================================================================== */
.authority-metrics-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-bottom: 18px;
    position: relative;
    z-index: 5;
}

.metric-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 14px 10px;
    background: linear-gradient(145deg, rgba(28, 10, 48, 0.75) 0%, rgba(12, 4, 22, 0.85) 100%);
    border: 1px solid rgba(188, 19, 254, 0.45);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(188, 19, 254, 0.12);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    border-color: rgba(217, 70, 239, 0.8);
    box-shadow: 0 8px 25px rgba(188, 19, 254, 0.35), inset 0 0 20px rgba(217, 70, 239, 0.2);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.metric-icon-mini {
    width: 18px;
    height: 18px;
    fill: #e879f9;
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.8));
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(217, 70, 239, 0.85);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.68rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #d8b4fe;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-pill-tag {
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(188, 19, 254, 0.25);
    color: #f0abfc;
    border: 1px solid rgba(217, 70, 239, 0.4);
}

.metric-pill-tag.green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
}

.scroll-indicator-arrow {
    color: #bc13fe;
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 20px;
    animation: bounceSlow 2.2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(188, 19, 254, 0.8));
}

/* ==========================================================================
   SEÇÃO DE LINKS & BOTÕES DE CONVERSÃO
   ========================================================================== */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section-label {
    align-self: flex-start;
    font-size: 0.76rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.26em;
    color: #8b5cf6;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 6px;
    opacity: 0.9;
}

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

/* Card de Link / Botão Individual */
.link-card {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--card-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(188, 19, 254, 0.05);
    backdrop-filter: blur(12px);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: var(--bg-card-hover);
    border-color: var(--bg-card-border-hover);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.35), 0 0 15px rgba(217, 70, 239, 0.25);
}

/* ==========================================================================
   BOTÃO DE CADASTRO ESTILO RAFAEL VOLKER + SHINE SWEEP
   ========================================================================== */
.link-card.primary-cta {
    border-color: rgba(188, 19, 254, 0.85);
    background: linear-gradient(135deg, rgba(28, 8, 48, 0.9) 0%, rgba(14, 5, 24, 0.95) 100%);
    animation: volkerBouncePulse 2.4s ease-in-out infinite;
    position: relative;
}

/* Container do feixe com border-radius e overflow hidden para NÃO cortar o badge */
.shine-sweep-container {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

/* O Feixe de Luz / Reflexo de Vidro Diagonal Ultra-Brilhante */
.shine-sweep-bar {
    position: absolute;
    top: -50%;
    left: 0;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(240, 171, 252, 0.95) 50%,
        rgba(255, 255, 255, 0.9) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 25px rgba(240, 171, 252, 0.9), 0 0 15px #ffffff;
    filter: blur(0.5px);
    pointer-events: none;
    animation: shineSweepEffect 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.link-card.primary-cta:hover {
    animation-play-state: paused;
    transform: translateY(-4px) scale(1.03);
    border-color: #f0abfc;
    box-shadow: 0 0 35px rgba(217, 70, 239, 0.9), 0 0 15px rgba(240, 171, 252, 0.8);
}

/* ==========================================================================
   BADGE "PARCEIRA OFICIAL" (TOTALMENTE VISÍVEL COM NEON ROXO FORTE)
   ========================================================================== */
.badge-partner {
    position: absolute;
    top: -13px;
    right: 22px;
    background: linear-gradient(90deg, #bc13fe 0%, #e879f9 100%);
    color: #ffffff;
    font-size: 0.66rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.95), 0 0 10px rgba(188, 19, 254, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 25;
    pointer-events: none;
    animation: partnerGlow 3s infinite alternate;
}

/* Ícone do Card */
.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(188, 19, 254, 0.15);
    border: 1px solid rgba(188, 19, 254, 0.3);
    margin-right: 18px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.link-card:hover .card-icon-box {
    background: linear-gradient(135deg, #bc13fe 0%, #9333ea 100%);
    border-color: #f0abfc;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.6);
    transform: scale(1.05);
}

.card-icon-box svg {
    width: 24px;
    height: 24px;
    fill: #e879f9;
    transition: var(--transition-smooth);
}

.link-card:hover .card-icon-box svg {
    fill: #ffffff;
}

/* Conteúdo de Texto do Card */
.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    position: relative;
    z-index: 2;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.sparkle-icon {
    color: #f0abfc;
    font-size: 0.82rem;
    filter: drop-shadow(0 0 6px #f0abfc);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    font-weight: 400;
}

/* Seta para a Direita */
.card-chevron {
    color: #a855f7;
    margin-left: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.link-card:hover .card-chevron {
    color: #f0abfc;
    transform: translateX(4px);
    opacity: 1;
}

/* ==========================================================================
   FOOTER / AVISO DE RISCO
   ========================================================================== */
.footer-disclaimer {
    margin-top: 36px;
    padding: 0 12px;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(180, 165, 200, 0.5);
    max-width: 440px;
}
