/* ==========================================================================
   AGTESTUDIO - Design System & Modern CSS Stylesheet
   Theme: Dark Cyber Gamer / Tech Luxury (Glassmorphism & Neon Glow)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #0A0D14;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-card-hover: rgba(26, 35, 56, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(139, 92, 246, 0.4);

    /* Accents */
    --accent-cyan: #06B6D4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.35);
    --accent-violet: #8B5CF6;
    --accent-violet-glow: rgba(139, 92, 246, 0.35);
    --accent-pink: #EC4899;
    --accent-pink-glow: rgba(236, 72, 153, 0.35);
    --accent-amber: #F59E0B;

    /* Text Colors */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 50%, #EC4899 100%);
    --grad-alt: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --grad-dark-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Fonts */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-main);
    --font-code: 'Fira Code', monospace;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
    --shadow-glow-violet: 0 0 25px rgba(139, 92, 246, 0.3);

    /* Altura real da navbar — atualizada pelo script.js */
    --navbar-height: 64px;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Impede o iOS de reescalar o texto ao girar o aparelho */
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Mídia nunca estoura o contêiner no celular */
img, svg, video, canvas {
    max-width: 100%;
}

/* Acessibilidade: anel de foco visível para navegação por teclado
   (cobre botões, links, inputs e afins num único ponto) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Compensa a navbar fixa ao navegar pelas âncoras */
section[id] {
    scroll-margin-top: 84px;
}

/* Ambient Glow Background Orbs */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-purple {
    top: -10%;
    left: 20%;
    width: min(500px, 75vw);
    height: min(500px, 75vw);
    background: var(--accent-violet);
}

.glow-cyan {
    top: 40%;
    right: -10%;
    width: min(600px, 85vw);
    height: min(600px, 85vw);
    background: var(--accent-cyan);
    animation-delay: 4s;
}

.glow-pink {
    bottom: -10%;
    left: 10%;
    width: min(550px, 80vw);
    height: min(550px, 80vw);
    background: var(--accent-pink);
    animation-delay: 8s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
    position: relative;
    z-index: 1;
}

.small-container {
    max-width: 860px;
}

.section {
    padding: clamp(3.25rem, 8vw, 6rem) 0;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--accent-cyan);
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--grad-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.15);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: translate(-100%, -100%) rotate(30deg); }
    20%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Badge Pill */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    color: #C4B5FD;
    margin-bottom: 1.2rem;
}

.badge-pill.pink {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
    color: #FBCFE8;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

/* Fallback: se o CDN de ícones falhar, o botão do menu continua visível */
.mobile-toggle::before {
    content: '\2630';
    font-size: 1.5rem;
}
.mobile-toggle:has(svg)::before {
    content: none;
}

/* Hero Section */
.hero {
    padding-top: clamp(7rem, 20vw, 10rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-grid > * {
    min-width: 0;
}

.hero-title {
    font-size: clamp(2rem, 7.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 6vw, 2.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.stat-plus {
    font-size: 1.8rem;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Hero Card Mockup Area */
.hero-visual {
    position: relative;
}

.main-hero-card {
    padding: 1.5rem;
    border-color: var(--border-glow);
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.card-title-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: pulse 1.5s infinite;
}

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

.mockup-screen {
    width: 100%;
    height: 260px;
    background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.stream-hud {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    position: relative;
}

.stream-hud::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.hud-top, .hud-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hud-center {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.play-btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    cursor: pointer;
}

.hud-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hud-tag.cyan { color: var(--accent-cyan); border-color: rgba(6,182,212,0.3); }

.webcam-frame-demo {
    font-size: 0.75rem;
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid var(--accent-violet);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alert-box-demo {
    font-size: 0.75rem;
    background: rgba(236, 72, 153, 0.3);
    border: 1px solid var(--accent-pink);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: bounceAlert 3s infinite ease-in-out;
}

@keyframes bounceAlert {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.card-services-pills {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pill {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.7rem, 5.5vw, 2.5rem);
    margin-bottom: 0.8rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2.6vw, 1.05rem);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    /* min() evita que a coluna fixe uma largura mínima maior que a tela */
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
    gap: 1.8rem;
}

.service-card {
    padding: clamp(1.35rem, 4.5vw, 2.2rem);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.4);
}

.highlighted-card {
    border-color: var(--accent-pink);
    box-shadow: 0 0 30px var(--accent-pink-glow);
}

.badge-featured {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-pink);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

.service-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 1.8rem;
}

.service-features li {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--accent-cyan);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Simulator Section */
.simulator-wrapper {
    padding: clamp(1rem, 4vw, 2rem);
    border-color: rgba(6, 182, 212, 0.3);
}

.simulator-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.control-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.theme-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.theme-btn.active {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
    color: #000;
    box-shadow: var(--shadow-glow-violet);
}

.stream-viewport-container {
    width: 100%;
    height: 440px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

/* Stream Overlay Simulation Themes */
.game-bg-layer {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    filter: brightness(0.7);
}

.game-hud-overlay {
    position: absolute;
    /* logo abaixo da barra de metas: no canto inferior ficava escondido
       atrás do chat em telas pequenas */
    top: 3.2rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #00FFCC;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-hp-bar {
    width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.game-hp-bar::after {
    content: '';
    position: absolute;
    inset: 0 30% 0 0;
    background: #10B981;
}

/* Overlay Theme Configurations */
/* Theme 1: Cyberpunk Neon */
[data-active-theme="cyberpunk"] .overlay-topbar {
    background: linear-gradient(90deg, rgba(6,182,212,0.85) 0%, rgba(236,72,153,0.85) 100%);
    color: #FFF;
    border-bottom: 2px solid #00FFFF;
}
[data-active-theme="cyberpunk"] .webcam-box {
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}
[data-active-theme="cyberpunk"] .webcam-label {
    background: var(--accent-pink);
    color: #FFF;
}
[data-active-theme="cyberpunk"] .overlay-chatbox {
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid var(--accent-cyan);
}

/* Theme 2: Minimalist Sleek */
[data-active-theme="minimalist"] .overlay-topbar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: #F3F4F6;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
[data-active-theme="minimalist"] .webcam-box {
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
[data-active-theme="minimalist"] .webcam-label {
    background: rgba(255,255,255,0.2);
    color: #FFF;
}
[data-active-theme="minimalist"] .overlay-chatbox {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Theme 3: Gamer Violet Pro */
[data-active-theme="gamer"] .overlay-topbar {
    background: linear-gradient(90deg, rgba(139,92,246,0.9) 0%, rgba(79,70,229,0.9) 100%);
    color: #FFF;
}
[data-active-theme="gamer"] .webcam-box {
    border: 3px solid var(--accent-violet);
    box-shadow: 0 0 20px var(--accent-violet-glow);
}
[data-active-theme="gamer"] .webcam-label {
    background: var(--accent-violet);
    color: #FFF;
}
[data-active-theme="gamer"] .overlay-chatbox {
    background: rgba(19, 14, 38, 0.85);
    border: 1px solid var(--accent-violet);
}

/* Theme 4: Sunset Soft */
[data-active-theme="anime"] .overlay-topbar {
    background: linear-gradient(90deg, rgba(245,158,11,0.9) 0%, rgba(236,72,153,0.9) 100%);
    color: #FFF;
}
[data-active-theme="anime"] .webcam-box {
    border: 3px solid var(--accent-amber);
    box-shadow: 0 0 18px rgba(245,158,11,0.4);
}
[data-active-theme="anime"] .webcam-label {
    background: var(--accent-amber);
    color: #000;
    font-weight: 700;
}
[data-active-theme="anime"] .overlay-chatbox {
    background: rgba(30, 20, 20, 0.85);
    border: 1px solid var(--accent-amber);
}

/* Stream Layout Components */
.overlay-graphics-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.overlay-topbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-code);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.meta-item i, .meta-item svg {
    flex-shrink: 0;
}

.meta-val {
    color: #FFF;
}

.progress-bar-small {
    width: 60px;
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-small .fill {
    height: 100%;
    background: #FFF;
}

/* Alert Box Animated */
.overlay-alert-box {
    position: absolute;
    top: 60px;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 2rem);
    transform: translateX(-50%) scale(0.9);
    background: rgba(10, 13, 20, 0.95);
    border: 2px solid var(--accent-pink);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 30px var(--accent-pink-glow);
    /* o alerta é o elemento mais importante: sempre acima do chat/webcam */
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.overlay-alert-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.alert-icon-anim {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: spinGift 2s infinite ease-in-out;
}

@keyframes spinGift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(15deg); }
}

.alert-text-content {
    display: flex;
    flex-direction: column;
}

.alert-title {
    font-weight: 800;
    color: var(--accent-pink);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.alert-user {
    font-size: 0.8rem;
    color: #FFF;
}

/* Webcam Container in Simulator */
.overlay-webcam-container {
    /* `position: relative` duplicado aqui anulava o posicionamento absoluto,
       jogando a webcam para o fluxo do flex container */
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 180px;
    height: 120px;
    max-width: 42%;
}

.webcam-box {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.webcam-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.webcam-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Chatbox in Simulator */
.overlay-chatbox {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 240px;
    max-width: 46%;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.chat-title {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-msg {
    color: #E2E8F0;
    line-height: 1.3;
}

.chat-msg .user { font-weight: 700; }
.chat-msg .user.red { color: #EF4444; }
.chat-msg .user.cyan { color: #06B6D4; }
.chat-msg .user.yellow { color: #F59E0B; }
.chat-msg .user.violet { color: #A78BFA; }

.chat-msg.highlight {
    background: rgba(139, 92, 246, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* ==========================================================================
   Link na Bio Showcase & Smartphone Mockup
   ========================================================================== */
.linkbio-showcase-grid {
    padding: clamp(1.1rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

.linkbio-showcase-grid > * {
    min-width: 0;
}

.linkbio-controls {
    display: flex;
    flex-direction: column;
}

.control-title {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.margin-bottom {
    margin-bottom: 1.5rem;
}

.control-disclosure {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.2rem;
}

.control-disclosure-summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
    margin-bottom: 1.2rem;
}

.control-disclosure-summary::-webkit-details-marker { display: none; }

.control-disclosure-summary i {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.control-disclosure[open] .control-disclosure-summary i {
    transform: rotate(180deg);
}

.bio-theme-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.bio-theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.bio-theme-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.bio-theme-btn.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #000;
    box-shadow: var(--shadow-glow-cyan);
}

.bio-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bio-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
}

/* Escondido visualmente mas ainda focável por teclado/leitor de tela
   (display:none removeria o campo da ordem de tabulação inteiramente) */
.bio-toggle-item input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bio-toggle-item input[type="checkbox"]:focus-visible + .toggle-switch {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #FFF;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.bio-toggle-item input[type="checkbox"]:checked + .toggle-switch {
    background: var(--accent-cyan);
}

.bio-toggle-item input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
    background: #000;
}

.bio-cta-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.5rem;
    border-radius: 14px;
    margin-top: 1.5rem;
}

.bio-price-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.bio-price-tag strong {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

.delivery-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Smartphone Mockup Stage */
.linkbio-phone-stage {
    display: flex;
    justify-content: center;
    width: 100%;
}

.phone-frame {
    width: min(290px, 100%);
    height: 540px;
    background: #0D111A;
    border-radius: 38px;
    padding: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.25);
    position: relative;
}

.phone-speaker {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: none;
    transition: var(--transition-smooth);
}
.phone-screen::-webkit-scrollbar { display: none; }

/* Bio Screen Themes */
[data-bio-theme="cyber"] {
    background: #090B10;
    color: #FFF;
}
[data-bio-theme="cyber"] .bio-link-btn {
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
    color: #FFF;
}

[data-bio-theme="oled"] {
    background: #000000;
    color: #F3F4F6;
}
[data-bio-theme="oled"] .bio-link-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
}

[data-bio-theme="esports"] {
    background: radial-gradient(circle at top, #2C0B0E 0%, #0A0405 100%);
    color: #FFF;
}
[data-bio-theme="esports"] .bio-link-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
    color: #FFF;
}
[data-bio-theme="esports"] .bio-mini-name {
    color: #EF4444;
}

[data-bio-theme="gradient"] {
    background: linear-gradient(180deg, #3B0764 0%, #1E1B4B 100%);
    color: #FFF;
}
[data-bio-theme="gradient"] .bio-link-btn {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid var(--accent-pink);
    box-shadow: 0 0 12px var(--accent-pink-glow);
    color: #FFF;
}

/* Canva Motion Pro Theme */
[data-bio-theme="canva"] {
    background: linear-gradient(135deg, #1E1B4B 0%, #31103F 50%, #0F172A 100%);
    color: #FFF;
}
[data-bio-theme="canva"] .bio-link-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px dashed rgba(6, 182, 212, 0.6);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
    color: #FFF;
    border-radius: 16px;
}

/* Motion Animation Style Selector Buttons */
.bio-anim-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.anim-style-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.anim-style-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFF;
}

.anim-style-btn.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #000;
    box-shadow: 0 0 25px var(--accent-pink-glow);
}

/* Item Animation Modes */
.bio-link-btn.anim-float {
    animation: floatItem 3s infinite ease-in-out alternate !important;
}
.bio-link-btn.anim-float:nth-child(2) { animation-delay: 0.4s !important; }
.bio-link-btn.anim-float:nth-child(3) { animation-delay: 0.8s !important; }
.bio-link-btn.anim-float:nth-child(4) { animation-delay: 1.2s !important; }
.bio-link-btn.anim-float:nth-child(5) { animation-delay: 1.6s !important; }

@keyframes floatItem {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.bio-link-btn.anim-pulse-glow {
    animation: pulseItemGlow 2.5s infinite ease-in-out alternate !important;
}

@keyframes pulseItemGlow {
    0% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.2); }
    100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.7); }
}

/* Stagger Entrance Animation */
.stagger-in {
    animation: slideInUpStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUpStagger {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Background Animated Gradient Mesh */
.bio-bg-anim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.35) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.35) 0%, transparent 60%);
    filter: blur(25px);
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: rotateMesh 8s infinite alternate ease-in-out;
}

@keyframes rotateMesh {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.2) rotate(15deg); }
}

/* Profile Header inside Phone */
.bio-profile-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 1.2rem;
}

.bio-avatar-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 0.6rem auto;
}

.bio-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFF;
    border: 2px solid #FFF;
}

.bio-live-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #EF4444;
    color: #FFF;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    opacity: 1;
    transition: opacity 0.3s;
}

.bio-avatar-img-real {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFF;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.bio-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 0.1rem;
}

.bio-user-tag {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Bio Link Buttons */
.bio-links-list {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bio-link-btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.bio-btn-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bio-btn-thumb {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.bio-link-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.badge-live-mini {
    background: #EF4444;
    color: #000;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.icon-red { color: #EF4444; }
.icon-purple { color: #A78BFA; }
.icon-blue { color: #3B82F6; }

/* Shimmer Button Animation */
.btn-shimmer-anim::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(30deg);
    animation: bioShimmer 3s infinite;
}

@keyframes bioShimmer {
    0% { transform: translate(-100%, -100%) rotate(30deg); }
    30%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

.bio-footer-credits {
    position: relative;
    z-index: 2;
    margin-top: 1.2rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

.calculator-grid > * {
    min-width: 0;
}

.calc-options-container {
    padding: clamp(1.1rem, 4vw, 2.2rem);
}

.calc-group-title {
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
}

.calc-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}
.calc-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.cat-icon { font-size: 1.2rem; }

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.calc-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.calc-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Escondido visualmente mas ainda focável por teclado/leitor de tela
   (display:none removeria o campo da ordem de tabulação inteiramente) */
.calc-option input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.calc-option input[type="checkbox"]:focus-visible + .checkbox-custom {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
    transition: var(--transition-fast);
}

.calc-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.calc-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #000;
    font-weight: 900;
    font-size: 0.85rem;
}

.option-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.option-name {
    font-weight: 600;
    color: #FFF;
    font-size: 0.98rem;
}

.option-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.option-price {
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1rem;
}

/* Calculator Summary Sticky Sidebar */
.sticky-card {
    position: sticky;
    top: 100px;
}

.summary-card {
    padding: clamp(1.1rem, 4vw, 2rem);
    border-color: var(--accent-violet);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.2rem;
    color: var(--accent-violet);
}

.selected-items-list {
    min-height: 120px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.selected-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.empty-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.summary-total-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.discount-badge {
    font-size: 0.78rem;
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.total-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.total-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin: 0.2rem 0;
}

.total-price-wrapper .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.total-amount {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #FFFFFF;
}

.payment-terms {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: #FFF;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.form-textarea {
    resize: vertical;
}

.btn-whatsapp {
    background: #25D366;
    color: #000;
    font-weight: 800;
}

.btn-whatsapp:hover {
    background: #1EBE57;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}

.feature-box {
    padding: 2rem;
    text-align: center;
}

.feat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.2rem auto;
}

.feature-box h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.8rem;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #F59E0B;
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
}

.author-name {
    font-weight: 700;
    color: #FFF;
    display: block;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 1rem;
}

.faq-icon {
    transition: var(--transition-fast);
    color: var(--accent-cyan);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: grid-template-rows 0.35s ease-out;
}

.faq-answer p {
    overflow: hidden;
    min-height: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-bottom: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

/* Contact Section */
.contact-box {
    padding: clamp(1.25rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}

.contact-box > * {
    min-width: 0;
}

.contact-content h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.4rem;
}
.icon-whatsapp { color: #25D366; }

.info-item strong {
    color: #FFF;
    display: block;
    font-size: 0.95rem;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: rgba(10, 13, 20, 0.6);
    padding: clamp(1.1rem, 4vw, 2rem);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
}

.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
}

/* Footer */
.footer {
    background: #06080E;
    border-top: 1px solid var(--border-glass);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 340px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: #FFF;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--accent-violet);
    color: #FFF;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 99;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.pulse-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toast {
    background: rgba(18, 24, 38, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent-cyan);
    color: #FFF;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Link na Bio Gallery — Canva-Style Premium Showcase
   ========================================================================== */

/* Gallery grid of 3 link-in-bio phone previews */
.linkbio-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

/* Card wrapper with entrance animation */
.bio-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: bioCardEntrance 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: var(--delay, 0s);
}

@keyframes bioCardEntrance {
    0% { opacity: 0; transform: translateY(40px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Label above each phone */
.bio-card-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.bio-card-label svg { width: 13px; height: 13px; }

.featured-label {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
}
.canva-label {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #A78BFA;
}

/* Mini phone container — no scrollbar */
.bio-phone-mini {
    width: min(220px, 100%);
    height: 440px;
    border-radius: 30px;
    padding: 1.2rem 0.85rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.6),
        0 0 0 2px rgba(255,255,255,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s ease;
}
.bio-phone-mini:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 35px 70px rgba(0,0,0,0.7),
        0 0 0 2px rgba(255,255,255,0.2),
        0 0 40px rgba(139, 92, 246, 0.2);
}

/* Phone themes */
[data-bio-theme="cyber"].bio-phone-mini {
    background: #090B10;
}
[data-bio-theme="esports"].bio-phone-mini {
    background: radial-gradient(circle at top, #1A0608 0%, #080203 100%);
}
[data-bio-theme="canva"].bio-phone-mini {
    background: linear-gradient(160deg, #1E1B4B 0%, #2D1B4E 50%, #0F172A 100%);
}

/* Animated mesh gradient backgrounds per theme */
.bio-bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.cyber-mesh {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(6, 182, 212, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(139, 92, 246, 0.35) 0%, transparent 55%);
    filter: blur(20px);
    animation: meshRotate 8s ease-in-out infinite alternate;
}
.esports-mesh {
    background:
        radial-gradient(ellipse at 60% 20%, rgba(239, 68, 68, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
    filter: blur(18px);
    animation: meshRotate 6s ease-in-out infinite alternate;
}
.canva-mesh {
    background:
        radial-gradient(ellipse at 50% 15%, rgba(236, 72, 153, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 70%, rgba(139, 92, 246, 0.4) 0%, transparent 50%);
    filter: blur(22px);
    animation: meshRotate 10s ease-in-out infinite alternate;
}

@keyframes meshRotate {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.3) rotate(20deg); }
}

/* Gallery mesh backgrounds stay still at rest; only the card being looked at moves */
.cyber-mesh, .esports-mesh, .canva-mesh, .canva-ring {
    animation-play-state: paused;
}
.bio-phone-mini:hover .cyber-mesh,
.bio-phone-mini:focus-within .cyber-mesh,
.bio-phone-mini:hover .esports-mesh,
.bio-phone-mini:focus-within .esports-mesh,
.bio-phone-mini:hover .canva-mesh,
.bio-phone-mini:focus-within .canva-mesh,
.bio-phone-mini:hover .canva-ring,
.bio-phone-mini:focus-within .canva-ring {
    animation-play-state: running;
}

/* Profile inside mini phone */
.bio-mini-profile {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 0.9rem;
    width: 100%;
}

.bio-mini-avatar-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 2px;
    background: var(--grad-primary);
    margin: 0 auto 0.4rem;
    position: relative;
}
.esports-ring {
    background: linear-gradient(135deg, #EF4444, #7C3AED);
}
.canva-ring {
    background: linear-gradient(135deg, #EC4899, #7C3AED, #06B6D4);
    animation: ringRotate 3s linear infinite;
}

@keyframes ringRotate {
    0% { background: linear-gradient(135deg, #EC4899, #7C3AED, #06B6D4); }
    50% { background: linear-gradient(315deg, #06B6D4, #EC4899, #7C3AED); }
    100% { background: linear-gradient(135deg, #EC4899, #7C3AED, #06B6D4); }
}

.bio-mini-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
}

.bio-mini-live-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #EF4444;
    color: #FFF;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.08rem 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: 0.04em;
    box-shadow: 0 0 8px rgba(239,68,68,0.6);
    white-space: nowrap;
}

.bio-mini-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFF;
    margin-top: 0.6rem;
    margin-bottom: 0.1rem;
}

.bio-mini-tag {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.6);
}

/* Links list inside mini phone */
.bio-mini-links {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Base mini button */
.bio-mini-btn {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFF;
    position: relative;
    overflow: hidden;
    /* stagger entrance */
    animation: bioItemEnter 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: var(--item-delay, 0.1s);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bio-mini-btn:hover {
    transform: translateX(4px) scale(1.025);
}

@keyframes bioItemEnter {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Cyber Neon style buttons */
.shimmer-btn {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -60%;
    width: 40%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: shimmerPass 3s infinite;
    animation-delay: var(--item-delay, 0s);
    animation-play-state: paused;
}
.shimmer-btn:hover::after,
.shimmer-btn:focus-visible::after {
    animation-play-state: running;
}
@keyframes shimmerPass {
    0%   { left: -60%; }
    30%, 100% { left: 120%; }
}

/* E-sports style buttons */
.esports-btn {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 8px rgba(239,68,68,0.2);
    justify-content: center;
    flex: 1;
}

/* Canva Motion style buttons */
.canva-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.4);
    backdrop-filter: blur(10px);
    justify-content: space-between;
}

/* Float animation for Canva buttons */
.float-anim {
    animation:
        bioItemEnter 0.55s cubic-bezier(0.23, 1, 0.32, 1) both,
        floatUpDown 3.5s ease-in-out infinite alternate;
    animation-delay: var(--item-delay, 0.1s), var(--item-delay, 0.1s);
    animation-play-state: running, paused;
}
.bio-phone-mini:hover .float-anim,
.bio-phone-mini:focus-within .float-anim {
    animation-play-state: running, running;
}
@keyframes floatUpDown {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-4px); }
}

/* Arrow for Canva style */
.bio-canva-arrow {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-left: auto;
}

/* Row layout for 2 side-by-side mini buttons */
.bio-mini-row {
    display: flex;
    gap: 0.45rem;
}

/* Big card image links (E-sports style) */
.card-style-links {
    gap: 0.45rem;
}

.bio-card-link {
    display: block;
    width: 100%;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    animation: bioItemEnter 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: var(--item-delay, 0.1s);
    transition: transform 0.25s ease;
}
.bio-card-link:hover { transform: scale(1.03); }

.bio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}
.bio-card-link:hover .bio-card-img { filter: brightness(0.8); }

.bio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    display: flex;
    flex-direction: column;
}

.bio-card-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #FFF;
}
.bio-card-sub {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.7);
}

/* Mini badge (ON) */
.bio-mini-badge {
    font-size: 0.55rem;
    font-weight: 900;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    margin-left: auto;
}
.cyber-badge {
    background: #EF4444;
    color: #000;
    box-shadow: 0 0 6px rgba(239,68,68,0.7);
}

/* Image thumbnail inside mini buttons */
.bio-mini-img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
}
.rounded-full-img {
    border-radius: 50%;
}

/* Footer inside mini phone */
.bio-mini-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.58rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* Pulse dot animation shared */
.pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FFF;
    display: inline-block;
    animation: pulseDotAnim 1.2s ease-in-out infinite;
}
@keyframes pulseDotAnim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ==========================================================================
   Responsivo — mantenha este bloco SEMPRE no fim do arquivo, para que as
   media queries vençam as regras de desktop declaradas acima.
   ========================================================================== */

/* ---------- Ponteiro grosso (touch), independente da largura ----------
   Cobre notebooks touchscreen, Surface e tablets em paisagem (ex.: iPad Pro
   1366px) que ficam acima do breakpoint de celular e por isso renderizam a
   navbar de desktop — sem isso os links de navegação ficam menores que o
   alvo de toque mínimo de 44px. */
@media (pointer: coarse) {
    .nav-link {
        min-height: 44px;
        padding: 0.4rem 0.2rem;
    }
    .nav-links { gap: 1.4rem; }
}

/* ---------- Sem hover real (touch): remove o "levantar" que fica preso
   depois do toque em botões, cards e mockups ---------- */
@media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover,
    .btn-whatsapp:hover,
    .service-card:hover,
    .bio-link-btn:hover,
    .social-btn:hover,
    .floating-whatsapp-btn:hover,
    .bio-phone-mini:hover,
    .bio-mini-btn:hover,
    .bio-card-link:hover {
        transform: none;
    }

    /* Sem hover real, o motion pausado-até-hover nunca dispara — roda em
       ritmo ambiente só enquanto o card está visível na tela (evita 3
       mockups do carrossel animando ao mesmo tempo fora da viewport) */
    .bio-phone-mini.in-view .cyber-mesh,
    .bio-phone-mini.in-view .esports-mesh,
    .bio-phone-mini.in-view .canva-mesh,
    .bio-phone-mini.in-view .canva-ring {
        animation-play-state: running;
    }
    .bio-phone-mini.in-view .shimmer-btn::after {
        animation-play-state: running;
    }
    .bio-phone-mini.in-view .float-anim {
        animation-play-state: running, running;
    }
}

/* ---------- Tablets / telas médias ---------- */
@media (max-width: 1024px) {
    .linkbio-showcase-grid {
        grid-template-columns: 1fr;
    }
    /* Celular primeiro, controles logo abaixo */
    .linkbio-phone-stage {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle { margin: 0 auto 2rem auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .calculator-grid { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .contact-box { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2.2rem; }
    .footer-brand p { max-width: none; }

    .linkbio-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ---------- Celulares ---------- */
@media (max-width: 768px) {
    /* --- Navegação --- */
    .navbar { padding: 0.75rem 0; }
    .navbar.scrolled { padding: 0.6rem 0; }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -0.5rem;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height, 64px);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--navbar-height, 64px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(10, 13, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem 1.25rem 1.75rem;
        border-bottom: 1px solid var(--border-glass);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-smooth), opacity 0.25s ease, visibility 0.25s;
    }

    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Itens do menu viram linhas com alvo de toque confortável */
    .nav-link {
        min-height: 48px;
        padding: 0.35rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-link:last-of-type { border-bottom: none; }

    .nav-cta {
        margin-top: 0.75rem;
        width: 100%;
        min-height: 48px;
    }

    /* --- Geral / toque --- */
    .btn {
        min-height: 46px;
        padding: 0.8rem 1.35rem;
    }
    .btn-sm { min-height: 40px; }

    .section-header { margin-bottom: 2.5rem; }

    /* Evita o zoom automático do iOS ao focar um campo (< 16px) */
    .form-input,
    select.form-input,
    textarea.form-input {
        font-size: 16px;
        min-height: 46px;
    }

    /* --- Hero --- */
    .hero-stats {
        gap: 1rem;
        justify-content: space-between;
    }
    .stat-card {
        flex: 1 1 30%;
        align-items: center;
        text-align: center;
    }
    .stat-number { font-size: 1.8rem; }
    .stat-plus { font-size: 1.4rem; }
    .stat-label { font-size: 0.75rem; }

    .main-hero-card { padding: 1rem; }
    .card-title-text { font-size: 0.78rem; }
    .mockup-screen { height: 220px; }
    .hud-top, .hud-bottom { flex-wrap: wrap; gap: 0.4rem; }
    .hud-tag, .webcam-frame-demo, .alert-box-demo { font-size: 0.68rem; }

    /* --- Simulador de stream --- */
    .simulator-controls { gap: 1rem; }
    .theme-buttons { gap: 0.5rem; }
    .theme-btn { font-size: 0.8rem; padding: 0.55rem 0.8rem; }

    .stream-viewport-container {
        height: auto;
        aspect-ratio: 16 / 10;
        min-height: 230px;
    }

    .overlay-topbar {
        padding: 0.4rem 0.6rem;
        font-size: 0.55rem;
        gap: 0.2rem 0.5rem;
    }
    .overlay-topbar svg { width: 11px; height: 11px; }

    .overlay-webcam-container {
        bottom: 0.7rem;
        left: 0.7rem;
        width: 112px;
        height: 76px;
    }
    .webcam-placeholder { font-size: 0.6rem; text-align: center; }
    .webcam-placeholder svg { width: 16px; height: 16px; }
    .webcam-label { font-size: 0.55rem; }

    .overlay-chatbox {
        bottom: 0.7rem;
        right: 0.7rem;
        width: 150px;
        padding: 0.5rem;
        font-size: 0.58rem;
    }
    .chat-title { font-size: 0.6rem; margin-bottom: 0.3rem; }
    .chat-messages { gap: 0.25rem; }

    .overlay-alert-box {
        top: 46px;
        padding: 0.5rem 0.8rem;
        gap: 0.6rem;
    }
    .alert-icon-anim { width: 30px; height: 30px; }
    .alert-title { font-size: 0.7rem; }
    .alert-user { font-size: 0.65rem; }

    .game-hud-overlay { font-size: 0.65rem; padding: 0.3rem 0.5rem; gap: 0.5rem; }
    .game-hp-bar { width: 60px; }

    /* --- Link na Bio --- */
    /* Galeria vira carrossel horizontal com snap, em vez de 3 celulares empilhados */
    .linkbio-gallery {
        display: flex;
        grid-template-columns: none;
        gap: 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* sangra até a borda da tela para indicar que há mais conteúdo */
        margin-inline: calc(clamp(1rem, 4vw, 1.5rem) * -1);
        padding: 0.5rem clamp(1rem, 4vw, 1.5rem) 1rem;
    }
    .linkbio-gallery::-webkit-scrollbar { display: none; }

    .bio-card-wrapper {
        flex: 0 0 auto;
        width: 200px;
        scroll-snap-align: center;
    }
    .bio-phone-mini { width: 200px; height: 400px; }
    /* hover translate não faz sentido em toque e quebra o snap */
    .bio-phone-mini:hover { transform: none; }

    .linkbio-controls { align-items: stretch; }
    .control-title { font-size: 1.1rem; }
    .bio-toggle-item { min-height: 44px; }

    /* Alvos de toque confortáveis nos seletores de tema/animação */
    .theme-btn,
    .bio-theme-btn,
    .anim-style-btn {
        min-height: 42px;
        padding-block: 0.6rem;
        font-size: 0.8rem;
    }

    /* --- Calculadora --- */
    .calc-option {
        flex-wrap: wrap;
        gap: 0.7rem;
        padding: 0.9rem;
    }
    .calc-option .option-info { flex: 1 1 60%; }
    .option-name { font-size: 0.92rem; }
    .option-desc { font-size: 0.78rem; }
    .option-price {
        flex: 0 0 100%;
        padding-left: calc(22px + 0.7rem);
        font-size: 0.95rem;
    }
    .calc-group-title { font-size: 1.1rem; margin-bottom: 1.2rem; }
    .total-amount { font-size: 2rem; }
    .selected-item-row { font-size: 0.82rem; gap: 0.5rem; }

    /* --- Depoimentos / FAQ --- */
    .testimonial-card, .feature-box { padding: 1.5rem; }
    .faq-question { padding: 1rem 1.1rem; font-size: 0.98rem; }
    .faq-answer { padding: 0 1.1rem; }

    /* --- Rodapé --- */
    .bottom-flex {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    /* --- Elementos flutuantes --- */
    .floating-whatsapp-btn {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: 16px;
    }

    .toast-container {
        left: 12px;
        right: 88px; /* não fica embaixo do botão do WhatsApp */
        bottom: 16px;
    }
    .toast { font-size: 0.8rem; padding: 0.65rem 0.9rem; }
}

/* ---------- Celulares pequenos ---------- */
@media (max-width: 480px) {
    .badge-pill { font-size: 0.78rem; padding: 0.35rem 0.8rem; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .brand-logo { font-size: 1.25rem; }
    .logo-icon { width: 34px; height: 34px; }

    .service-icon-box { width: 50px; height: 50px; margin-bottom: 1.1rem; }
    .service-title { font-size: 1.2rem; }

    .theme-buttons, .bio-theme-buttons, .bio-anim-buttons { width: 100%; }
    .theme-btn, .bio-theme-btn { flex: 1 1 calc(50% - 0.3rem); justify-content: center; }

    /* Meta do simulador some para não poluir a barra estreita */
    .overlay-topbar .goal-item { display: none; }

    .stream-viewport-container { aspect-ratio: 4 / 3; }
    .overlay-chatbox { width: 44%; }

    .contact-info-list { gap: 1rem; }
    .social-icons { flex-wrap: wrap; }
}

/* ---------- Telas muito estreitas (≤360px) ---------- */
@media (max-width: 360px) {
    .hero-stats { gap: 0.75rem; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.7rem; }
    .overlay-topbar .meta-val { display: none; }
    .bio-card-wrapper, .bio-phone-mini { width: 185px; }
}

/* ---------- Modo paisagem baixo (evita hero gigante) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero { padding-top: 6rem; }
    .nav-links { max-height: calc(100dvh - var(--navbar-height, 64px)); }

    /* Os mockups de celular (540px / 440px) ficam mais altos que a própria
       tela em paisagem. Em vez de estourar a página inteira, o "aparelho"
       ganha altura limitada com scroll interno — como um celular de verdade. */
    .phone-frame {
        height: min(70vh, 460px);
    }
    .bio-phone-mini {
        height: min(60vh, 360px);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
    }
    .bio-phone-mini::-webkit-scrollbar { display: none; }
}

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .glow-bg { animation: none; }
}

