/* ========================================
   RecuperaZap Pro - Design Minimalista v4
   Com efeitos sutis em todas as telas
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Paleta Minimalista */
    --bg-deep: #0a0a0c;
    --bg-primary: #111113;
    --bg-secondary: #18181b;
    --bg-card: #1c1c1f;
    --bg-elevated: #232326;
    --bg-terminal: #0e0e10;

    /* Accent sutil */
    --accent: #5c6bc0;
    --accent-muted: #4a5568;
    --accent-subtle: rgba(92, 107, 192, 0.15);

    /* Status */
    --success: #4ade80;
    --success-muted: rgba(74, 222, 128, 0.12);
    --warning: #fbbf24;
    --error: #f87171;

    /* Texto */
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;

    /* Bordas */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Espaçamento */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;

    /* Transições */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Efeitos Globais
======================================== */

/* Fade in da página inteira */
.app-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    animation: pageLoad 0.6s var(--ease-out);
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Header com efeito
======================================== */

.header {
    text-align: center;
    padding: 32px 0 36px;
    animation: headerFloat 0.8s var(--ease-out);
}

@keyframes headerFloat {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    transition: transform 0.3s var(--ease);
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.logo-icon:hover {
    border-color: var(--border-hover);
    transform: rotate(-3deg);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInDelayed 0.8s var(--ease) 0.3s forwards;
}

@keyframes fadeInDelayed {
    to {
        opacity: 1;
    }
}

/* ========================================
   Cards - Com hover suave
======================================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
    animation: cardSlideUp 0.6s var(--ease-out) 0.2s backwards;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.card:hover .card-icon {
    transform: scale(1.05);
    border-color: var(--border-hover);
}

.card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========================================
   Formulário
======================================== */

.form-group {
    margin-bottom: 18px;
    animation: formFadeIn 0.5s var(--ease) backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.3s;
}

.form-group:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.2s var(--ease);
}

.form-label svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s var(--ease);
    outline: none;
}

.form-control:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.form-control:focus {
    border-color: var(--accent-muted);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.08);
}

.form-control::placeholder {
    color: var(--text-dim);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}

select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========================================
   Botões - Com efeitos
======================================== */

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease), height 0.4s var(--ease);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-primary:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: var(--success-muted);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.btn-success:hover {
    background: rgba(74, 222, 128, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease);
}

.btn:hover svg {
    transform: scale(1.1);
}

/* ========================================
   Testimonials
======================================== */

.testimonials-section {
    margin-top: 24px;
    padding: 0;
}

.testimonials-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.testimonials-title svg {
    width: 16px;
    height: 16px;
    color: var(--warning);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    animation: fadeInUp 0.4s var(--ease) backwards;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonial-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.testimonial-info span {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

.verified-badge {
    display: inline-block;
    background: var(--success-muted);
    color: var(--success);
    font-size: 0.625rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
}

.testimonial-stars {
    color: var(--warning);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 8px;
}

.testimonial-date {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* ========================================
   Device Info Card
======================================== */

.device-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.device-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}

.device-info-row:last-child {
    border-bottom: none;
}

.device-info-row span {
    color: var(--text-muted);
}

.device-info-row strong {
    color: var(--text-primary);
    text-align: right;
}

.device-info-row .status-warning {
    color: var(--warning);
    animation: pulseGlow 2s infinite;
}

.device-info-row.highlight {
    background: rgba(251, 191, 36, 0.08);
    margin: 8px -16px -16px -16px;
    padding: 12px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    border-bottom: none;
}

.device-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}

.device-info-icon {
    font-size: 1rem;
}

/* ========================================
   Scanner
======================================== */

.scan-section {
    display: none;
}

.scan-section.active {
    display: block;
    animation: sectionFadeIn 0.5s var(--ease);
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scanner-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

.scanner-visual {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.scanner-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Ondas sutis */
.scanner-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 1px solid var(--border);
    border-radius: 18px;
    opacity: 0;
    animation: waveExpand 2.5s ease-out infinite;
}

.scanner-wave:nth-child(2) {
    animation-delay: 0.8s;
}

.scanner-wave:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes waveExpand {
    0% {
        width: 64px;
        height: 64px;
        opacity: 0.3;
    }

    100% {
        width: 110px;
        height: 110px;
        opacity: 0;
    }
}

.scanner-status {
    margin-bottom: 24px;
}

.scanner-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.scanner-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Barra de Progresso */
.progress-container {
    margin-bottom: 24px;
}

.progress-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--text-dim), var(--text-muted));
    border-radius: 2px;
    width: 0%;
    transition: width 0.15s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.progress-percent {
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Terminal */
.terminal {
    background: var(--bg-terminal);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-align: left;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.terminal-line {
    margin-bottom: 6px;
    opacity: 0;
    animation: terminalIn 0.4s var(--ease) forwards;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
}

.terminal-line .icon {
    color: var(--text-dim);
    flex-shrink: 0;
}

.terminal-line.success {
    color: var(--success);
}

.terminal-line.success .icon {
    color: var(--success);
}

@keyframes terminalIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Mensagens Descobertas (durante scan)
======================================== */

.discovered-section {
    margin-top: 20px;
    display: none;
}

.scan-section.active .discovered-section {
    display: block;
    animation: fadeInUp 0.4s var(--ease);
}

.discovered-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--warning);
    margin-bottom: 10px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.discovered-label svg {
    width: 14px;
    height: 14px;
}

.discovered-messages {
    background: var(--bg-terminal);
    border-radius: var(--radius-sm);
    padding: 12px;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.discovered-message {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 8px;
    filter: blur(3px);
    opacity: 0.85;
    animation: messageReveal 0.6s var(--ease);
}

.discovered-message:last-child {
    margin-bottom: 0;
}

@keyframes messageReveal {
    from {
        opacity: 0;
        transform: translateX(-10px);
        filter: blur(8px);
    }

    to {
        opacity: 0.85;
        transform: translateX(0);
        filter: blur(3px);
    }
}

.discovered-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--border);
}

.discovered-body {
    flex: 1;
    min-width: 0;
}

.discovered-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.discovered-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.discovered-status {
    font-size: 0.625rem;
    color: var(--error);
    font-weight: 500;
}

.discovered-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Terminal warning style */
.terminal-line.warning {
    color: var(--warning);
}

.terminal-line.warning .icon {
    color: var(--warning);
}

/* ========================================
   Resultados
======================================== */

.results-section {
    display: none;
}

.results-section.active {
    display: block;
    animation: resultsFadeIn 0.6s var(--ease);
}

@keyframes resultsFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 24px;
}

.results-icon {
    width: 56px;
    height: 56px;
    background: var(--success-muted);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: iconPop 0.5s var(--ease) 0.2s backwards;
}

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.results-icon svg {
    width: 28px;
    height: 28px;
    color: var(--success);
}

.results-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.results-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Cards de resultado com hover */
.result-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    animation: cardSlide 0.4s var(--ease) backwards;
    opacity: 1;
    transition: all 0.25s var(--ease);
}

.result-card:nth-child(1) {
    animation-delay: 0.15s;
}

.result-card:nth-child(2) {
    animation-delay: 0.25s;
}

.result-card:nth-child(3) {
    animation-delay: 0.35s;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    background: var(--bg-elevated);
}

.result-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease);
}

.result-card:hover .result-icon {
    transform: scale(1.08);
}

.result-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.result-info h4 {
    font-size: 0.875rem;
    font-weight: 500;
}

.result-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.result-count {
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s var(--ease);
}

.result-card:hover .result-count {
    background: var(--bg-card);
}

/* Preview */
.preview-section {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s var(--ease) 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.preview-label svg {
    width: 12px;
    height: 12px;
}

.preview-container {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: border-color 0.3s var(--ease);
}

.preview-container:hover {
    border-color: var(--border-hover);
}

.preview-content {
    padding: 14px;
    filter: blur(2.5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.9;
}

.preview-message {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.preview-message:last-child {
    border-bottom: none;
}

.preview-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--border);
}

.preview-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.preview-avatar-icon.folder {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

.preview-avatar-icon.browser {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.preview-photo-indicator {
    font-size: 0.6875rem;
    color: var(--warning);
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.preview-photo-indicator.video {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.preview-body {
    flex: 1;
    min-width: 0;
}

.preview-name {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.preview-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-time {
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Overlay com animação sutil */
.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.lock-badge {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockPulse 3s ease-in-out infinite;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.lock-badge svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

.preview-overlay p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ========================================
   Paywall com hover
======================================== */

.paywall-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease);
    animation: fadeInUp 0.5s var(--ease) 0.5s backwards;
}

.paywall-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.paywall-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.paywall-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-box {
    margin-bottom: 20px;
}

.price-original {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.price-info {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.price-highlight {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.6875rem;
}

/* Neuromarketing Elements */
.urgency-banner {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.guarantee-text {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Preview message status */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.preview-status {
    font-size: 0.625rem;
    color: var(--error);
    font-weight: 500;
}

/* Badges de segurança */
.security-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}

.security-badge:hover {
    color: var(--text-muted);
}

.security-badge svg {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}

.security-badge:hover svg {
    color: var(--text-secondary);
}

/* ========================================
   Footer com hover
======================================== */

.footer {
    margin-top: auto;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    animation: footerFade 0.6s var(--ease) 0.6s backwards;
}

@keyframes footerFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s var(--ease);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-muted);
    transition: width 0.2s var(--ease);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copy {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* ========================================
   Página de Entrega
======================================== */

.delivery-header {
    text-align: center;
    padding: 40px 0 32px;
    animation: headerFloat 0.8s var(--ease);
}

.delivery-icon {
    width: 64px;
    height: 64px;
    background: var(--success-muted);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: iconPop 0.6s var(--ease);
}

.delivery-icon svg {
    width: 32px;
    height: 32px;
    color: var(--success);
}

.delivery-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.delivery-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Method cards com hover */
.method-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
    animation: cardSlideUp 0.5s var(--ease) backwards;
}

.method-card:nth-child(1) {
    animation-delay: 0.1s;
}

.method-card:nth-child(2) {
    animation-delay: 0.2s;
}

.method-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.method-number {
    width: 28px;
    height: 28px;
    background: var(--bg-elevated);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.method-card:hover .method-number {
    transform: scale(1.1);
}

.method-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.method-steps {
    padding-left: 0;
    list-style: none;
}

.method-steps li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: transform 0.2s var(--ease);
}

.method-steps li:hover {
    transform: translateX(2px);
}

.method-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--text-dim);
    border-radius: 50%;
    transition: background 0.2s var(--ease);
}

.method-steps li:hover::before {
    background: var(--text-muted);
}

.method-steps li strong {
    color: var(--text-primary);
}

.tip-box {
    background: var(--success-muted);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 14px;
    display: flex;
    gap: 10px;
    transition: all 0.3s var(--ease);
}

.tip-box:hover {
    background: rgba(74, 222, 128, 0.16);
}

.tip-box-icon {
    flex-shrink: 0;
}

.tip-box-icon svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.tip-box-text {
    font-size: 0.8125rem;
    color: var(--success);
    line-height: 1.5;
}

.warning-box {
    background: rgba(251, 191, 36, 0.08);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease);
    animation: cardSlideUp 0.5s var(--ease) 0.3s backwards;
}

.warning-box:hover {
    background: rgba(251, 191, 36, 0.12);
}

.warning-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--warning);
    margin-bottom: 8px;
}

.warning-box h4 svg {
    width: 16px;
    height: 16px;
}

.warning-box p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   Páginas Legais com animação
======================================== */

.legal-page {
    padding: 24px 0;
    animation: pageLoad 0.6s var(--ease);
}

.legal-page h1 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.legal-date {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.legal-page h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.legal-page p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-page li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ========================================
   Utilidades
======================================== */

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--text-secondary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

/* ========================================
   Responsivo
======================================== */

@media (max-width: 400px) {
    .app-container {
        padding: 16px;
    }

    .card,
    .paywall-card,
    .scanner-container {
        padding: 20px;
    }

    .security-row {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Safe Areas */
@supports (padding: env(safe-area-inset-bottom)) {
    .app-container {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* Scrollbar sutil */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-muted);
}

/* ========================================
   EXIT INTENT POPUP
======================================== */

.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.exit-popup.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease);
}

.exit-popup.active .exit-popup-content {
    transform: scale(1);
}

.exit-popup-header {
    margin-bottom: 16px;
}

.exit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.exit-popup-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exit-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.exit-offer {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.exit-offer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.exit-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.exit-old-price {
    font-size: 1rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

.exit-new-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success);
}

.exit-savings {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 8px;
    font-weight: 500;
}

.exit-btn-accept {
    width: 100%;
    margin-bottom: 12px;
}

.exit-btn-decline {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s var(--ease);
}

.exit-btn-decline:hover {
    color: var(--text-muted);
}

/* ========================================
   LOCKED CONTENT POPUP
======================================== */

.locked-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 9998;
    width: calc(100% - 40px);
    max-width: 360px;
    opacity: 0;
    transition: all 0.3s var(--ease);
}

.locked-popup.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.locked-popup-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.locked-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.locked-popup h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.locked-popup p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.locked-dismiss {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s var(--ease);
}

.locked-dismiss:hover {
    color: var(--text-muted);
}

/* ========================================
   SOCIAL PROOF NOTIFICATION
======================================== */

.social-proof {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9990;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 280px;
}

.social-proof.active {
    transform: translateX(0);
    opacity: 1;
}

.social-proof-avatar {
    width: 36px;
    height: 36px;
    background: var(--success-muted);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-proof-avatar::after {
    content: '✓';
    color: var(--success);
    font-size: 1rem;
}

.social-proof-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.social-proof-text strong {
    color: var(--text-primary);
}

.social-proof-text span {
    color: var(--text-dim);
}

/* ========================================
   SHAKE ANIMATION
======================================== */

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

/* Mobile responsivo para popups */
@media (max-width: 400px) {
    .exit-popup-content {
        padding: 24px 20px;
    }

    .social-proof {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .locked-popup {
        bottom: 10px;
        width: calc(100% - 20px);
    }
}

/* ========================================
   CONTENT MODALS
======================================== */

.content-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.content-modal.active {
    opacity: 1;
    visibility: visible;
}

.content-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.content-modal-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease);
}

.content-modal.active .content-modal-container {
    transform: translateY(0);
}

.content-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.content-modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.content-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.content-modal-close:hover {
    color: var(--text-primary);
}

.content-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.content-modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.content-modal-lock {
    font-size: 0.75rem;
    color: var(--warning);
    margin-bottom: 12px;
}

.content-modal-footer .btn {
    width: 100%;
}

/* Blur classes */
.blur-heavy {
    filter: blur(1.2px);
    user-select: none;
}

.blur-light {
    filter: blur(0.8px);
    user-select: none;
}

/* Result arrow */
.result-arrow {
    margin-left: 4px;
    font-size: 1.25rem;
    color: var(--text-dim);
}

.result-card {
    cursor: pointer;
}

/* ========================================
   AUDIO LIST
======================================== */

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.audio-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.audio-header strong {
    font-size: 0.875rem;
}

.audio-date {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-deep);
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.audio-play {
    color: var(--success);
    font-size: 0.875rem;
}

.audio-waves {
    flex: 1;
    height: 20px;
    background: repeating-linear-gradient(90deg,
            var(--accent-muted) 0px,
            var(--accent-muted) 2px,
            transparent 2px,
            transparent 4px);
    border-radius: 4px;
    opacity: 0.6;
}

.audio-duration {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.audio-transcript {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   MEDIA GRID
======================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.media-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.media-preview {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-deep), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.media-placeholder {
    font-size: 2.5rem;
    opacity: 0.5;
}

.media-play-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.media-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.media-filename {
    font-size: 0.6875rem;
    color: var(--warning);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-meta {
    font-size: 0.625rem;
    color: var(--text-dim);
}

.media-desc {
    font-size: 0.8125rem;
    color: var(--warning);
    font-weight: 500;
    margin-top: 2px;
}

.media-date {
    font-size: 0.625rem;
    color: var(--text-dim);
}

/* ========================================
   APPS LIST
======================================== */

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.app-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-deep);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.app-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.app-info {
    flex: 1;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.app-header strong {
    font-size: 0.875rem;
}

.app-badge {
    font-size: 0.625rem;
    background: var(--error-muted);
    color: var(--error);
    padding: 2px 8px;
    border-radius: 10px;
}

.app-msg {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.app-date {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* ========================================
   HISTORY LIST
======================================== */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.history-item.adult {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.history-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.history-info {
    flex: 1;
}

.history-site {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.history-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.history-visits {
    font-size: 0.6875rem;
    color: var(--error);
}

.history-category {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

.history-detail {
    font-size: 0.6875rem;
    color: var(--warning);
}

.history-anon {
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
}

.history-anon span {
    font-size: 0.75rem;
    color: var(--warning);
}

/* ========================================
   CHAT LIST
======================================== */

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-avatar-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-header strong {
    font-size: 0.875rem;
}

.chat-status {
    font-size: 0.625rem;
    color: var(--error);
}

.chat-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.chat-time {
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* ========================================
   BOTTOM NAVIGATION MOBILE
======================================== */

.bottom-nav-spacer {
    height: 80px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 9999;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border-radius: var(--radius-sm);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: 0.625rem;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.highlight {
    color: var(--success);
    animation: pulseGlow 2s infinite;
}

.bottom-nav-item.highlight svg {
    filter: drop-shadow(0 0 6px var(--success));
}

/* ========================================
   NEUROMARKETING ENHANCEMENTS
======================================== */

.cta-phrase {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.cta-phrase strong {
    color: var(--warning);
}

.urgency-pulse {
    animation: pulseGlow 1.5s infinite;
}

.fear-text {
    color: var(--error);
    font-weight: 500;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    color: var(--success);
    background: var(--success-muted);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

.content-modal-cta {
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

.content-modal-cta .highlight {
    color: var(--warning);
    font-weight: 500;
}

/* Phone numbers */
.chat-phone {
    font-size: 0.625rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    filter: blur(0.5px);
}

/* Motel items */
.history-item.motel {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.history-section-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-top: 12px;
    font-weight: 500;
}

.history-section-title:first-child {
    margin-top: 0;
}

/* History Search Queries */
.history-query {
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--text-secondary);
}

.history-time {
    font-size: 0.625rem;
    color: var(--text-dim);
}

.history-images {
    font-size: 0.625rem;
    color: var(--warning);
}

/* Image Search Grid */
.image-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.image-search-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.image-thumb {
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.image-search-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.image-query {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.image-count {
    font-size: 0.5625rem;
    color: var(--error);
}

/* Site Thumbnails */
.site-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Blur Utility Classes */
.blur-heavy {
    filter: blur(3.5px);
}

.blur-light {
    filter: blur(1.5px);
}

/* NO COPY PROTECTION */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input,
select,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent context menu on mobile */
.preview-content,
.content-modal-body,
.blur-heavy,
.blur-light {
    -webkit-touch-callout: none;
    pointer-events: auto;
}

/* FORCED PAYWALL & ANXIETY POPUP */
.force-blur {
    filter: blur(15px) grayscale(0.5);
    pointer-events: none;
    transition: filter 0.5s ease;
}

.forced-paywall {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.forced-paywall.active {
    opacity: 1;
    visibility: visible;
}

.forced-paywall-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.forced-paywall.active .forced-paywall-content {
    transform: scale(1);
}

.paywall-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse-red 2s infinite;
}

.forced-paywall h2 {
    color: var(--error);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.forced-paywall p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.paywall-timer {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: inline-block;
    border: 1px dashed var(--error);
}

.paywall-security {
    margin-top: 20px;
    color: var(--text-dim);
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.5));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
    }
}