:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --primary-red: #E60000;
    --primary-red-gradient: linear-gradient(180deg, #FF1F1F 0%, #D80000 100%);
    --accent-red: #FF0000;
    --input-bg: #ffffff;
    --input-text: #000000;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    /* Mobile size restriction */
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* HELPER CLASSES */
.hidden {
    display: none !important;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* HEADER */
#main-header {
    background-color: var(--primary-red);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    position: sticky;
    top: 0;
    top: 0;
    z-index: 100;
}

/* Background Matrix */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

.matrix-number {
    position: absolute;
    color: var(--primary-red);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 14px;
    user-select: none;
}

.logo-mini {
    font-weight: 800;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.discovery-counter {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    /* Green typically for "live" */
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* ENTRY SCREEN */
#screen-entry {
    padding: 40px 24px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon-container {
    font-size: 2.5rem;
    margin-bottom: 32px;
    color: white;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.2));
}

.brand-badge {
    background: rgba(230, 0, 0, 0.15);
    border: 1px solid rgba(230, 0, 0, 0.3);
    color: #ff4d4d;
    padding: 6px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.05rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 48px;
    max-width: 320px;
    font-weight: 400;
}

.input-section {
    width: 100%;
    margin-bottom: 20px;
}

.input-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-input-group {
    background-color: var(--input-bg);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    height: 60px;
    align-items: center;
}

.ddi-box {
    background-color: var(--input-bg);
    color: var(--input-text);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    border-right: 1px solid #ddd;
}

#phone {
    border: none;
    outline: none;
    height: 100%;
    width: 100%;
    padding: 0 16px;
    font-size: 1.2rem;
    font-family: var(--font-mono);
    color: var(--input-text);
    background-color: transparent;
}

.disclaimer {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.3;
    max-width: 90%;
}

.warning-box {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary-red);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 10px;
    text-align: left;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #ffcccc;
}

.warning-box i {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-top: 2px;
}

.btn-primary {
    background: var(--primary-red-gradient);
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(220, 0, 0, 0.4);
}

/* SIMULATION / LOADER */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.scanner-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 0, 0, 0.3);
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--accent-red);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* MODULES */
.module {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    width: 90%;
    max-width: 400px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-header {
    background: #222;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.module-header i {
    color: var(--primary-red);
}

.module-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ddd;
}

.blur-container {
    padding: 16px;
    position: relative;
    /* The blur effect needs to look like "locked content" */
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

/* Map specific */
.map-container {
    height: 150px;
    background: #1a1a1a;
    position: relative;
}

.map-bg {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(#333 1px, transparent 1px),
        linear-gradient(90deg, #333 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.map-pin {
    width: 12px;
    height: 12px;
    background-color: var(--primary-red);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px red;
}

.pin-1 {
    top: 30%;
    left: 40%;
}

.pin-2 {
    top: 60%;
    left: 70%;
}

.pin-3 {
    top: 40%;
    left: 20%;
}

/* List specific */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

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

.item-icon {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.item-date,
.item-preview {
    font-size: 0.75rem;
    color: #888;
}

.item-value {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
}

.msg-time {
    font-size: 0.7rem;
    color: #666;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: #444;
    border-radius: 50%;
}

.avatar-circle.color-2 {
    background-color: #555;
}

/* Fix loader visibility */
/* Fix loader visibility & Centering */
#simulation-content {
    width: 100%;
    min-height: calc(100vh - 80px);
    /* Subtract header height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertical Center */
    padding: 20px;
    padding-bottom: 40px;
}

/* PAYWALL SCREEN */
/* PAYWALL SCREEN */
.summary-box {
    background: #1c1c1e;
    /* Card Module Dark Grey */
    border: 1px solid #2c2c2e;
    /* Card Module Border */
    border-radius: 20px;
    /* Card Module Radius */
    padding: 24px;
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Card Module Shadow */
}

.summary-box h3 {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-box li i {
    color: #00ff00;
}

.price-box {
    margin-bottom: 40px;
    /* Increased margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* More gap */
}

.old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9rem;
}

.new-price {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

/* --- NEW HEADER STYLES --- */
#main-header {
    background: var(--primary-red-gradient);
    /* Red background for entire header wrapper based on image? No, image has red top bar */
    /* Wait, image shows: Left: "descobertas ..." (Red Pill), Right: Avatar + Name (Dark bg?) */
    /* Actually the whole header background seems red or dark fading to red. */
    /* Let's follow the image: Top bar is bright red. */
    background: #b30000;
    /* Darker red base */
    background: linear-gradient(90deg, #d80000 0%, #a00000 100%);
    padding: 10px 16px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.discovery-badge {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.discovery-badge .label {
    background: #E60000;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 16px;
    text-transform: lowercase;
}

.discovery-badge .count-box {
    padding: 0 8px;
    font-weight: 800;
    color: #E60000;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.target-avatar i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.2rem;
}

/* Blur effect on avatar */
.target-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
}

.target-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
}

.phone-display {
    color: white;
    font-weight: 700;
    font-family: var(--font-mono);
}

.status-display {
    color: #00ff00;
    font-size: 0.7rem;
    font-weight: 600;
}

/* --- LOADING OVERLAY STYLES --- */
.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.magnifying-glass-container {
    font-size: 5rem;
    color: white;
    animation: searchMove 2s infinite alternate ease-in-out;
}

@keyframes searchMove {
    0% {
        transform: translate(-20px, -20px) rotate(0deg);
    }

    100% {
        transform: translate(20px, 20px) rotate(10deg);
    }
}

.loading-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.card-top {
    background: white;
    color: black;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.card-bottom {
    background: var(--primary-red-gradient);
    padding: 12px;
    text-align: center;
}

#loading-topic {
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* --- MODULE RESULT (New Style) --- */
.module-result {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.evidence-item {
    aspect-ratio: 1/1;
    background: #222;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.map-blur {
    /* Create a fake map background pattern */
    background-color: #e0e0e0;
    background-image:
        linear-gradient(90deg, #fff 2px, transparent 2px),
        linear-gradient(#fff 2px, transparent 2px);
    background-size: 20px 20px;
}

/* Hard blur overlay */
.map-blur::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.4);
}

.pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-red);
    font-size: 2rem;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.delay-pin {
    top: 40%;
    left: 60%;
}

/* Notification Card */
/* Notification Card - REDESIGNED */
.notification-card {
    display: flex;
    align-items: center;
    width: 100%;
    background: #1c1c1e;
    /* Apple dark Gray */
    border-radius: 16px;
    overflow: visible;
    /* Allow shadow */
    margin-bottom: 24px;
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2c2c2e;
}

.notif-count {
    background: var(--primary-red);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
}

.notif-text {
    flex: 1;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    padding: 0;
    text-align: left;
    text-transform: none;
    /* More natural */
}

.region-text {
    color: #888;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

#ddd-region {
    color: white;
    font-weight: 700;
}

.btn-reveal {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 14px;
    /* iOS button curvature */
    cursor: pointer;
    text-transform: none;
    /* Less aggressive */
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    animation: none;
    /* Cleaner static state, maybe subtle pulse on active */
    margin-bottom: 24px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-reveal:active {
    transform: scale(0.97);
    background: #cc0000;
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.disclaimer-small {
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
}

/* --- MODULE RESULT (New Style) --- */
.module-result {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.evidence-item {
    aspect-ratio: 1/1;
    background: #222;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.single-evidence {
    grid-template-columns: 1fr;
    max-width: 340px;
    /* Slightly wider */
}

.single-evidence .evidence-item {
    aspect-ratio: 9/16;
    /* Mobile format */
}

.print-container {
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blur-hard {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    /* Strong blur as requested */
    opacity: 0.8;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(255, 0, 0, 0.4) 50%, transparent 60%);
    background-size: 100% 200%;
    animation: scanDown 1s linear infinite;
    pointer-events: none;
}

@keyframes scanDown {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Social Module Specifics */
/* Social Module Specifics */
.social-profile-container {
    width: 100%;
    height: auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto !important;
    /* Allow natural dimension */
}

.blur-social {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
}

/* Social Match Bar - Redesigned */
.social-match-bar {
    display: flex;
    align-items: center;
    width: 100%;
    background: #1c1c1e;
    border-radius: 16px;
    margin-bottom: 24px;
    min-height: 72px;
    padding: 12px 16px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2c2c2e;
    max-width: 100%;
    /* Fix width constraint */
}

/* Reuse the notif-count style logic but keep class if JS expects it, just restyle */
.match-count-box {
    background: var(--primary-red);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
    margin-right: 0;
    /* Clear old margins */
}

.match-info-box {
    flex: 1;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    display: block;
    padding-left: 0;
    text-align: left;
}



.map-blur {
    /* Create a fake map background pattern */
    background-color: #e0e0e0;
    background-image:
        linear-gradient(90deg, #fff 2px, transparent 2px),
        linear-gradient(#fff 2px, transparent 2px);
    background-size: 20px 20px;
}

/* Hard blur overlay */
.map-blur::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.4);
}

.pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-red);
    font-size: 2rem;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.delay-pin {
    top: 40%;
    left: 60%;
}

/* Notification Card */

/* --- UNIFIED CARD MODULE STYLES --- */
.card-module {
    background: #1c1c1e;
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Updated Evidence Grid within Card */
.evidence-grid {
    width: 100%;
    margin-bottom: 24px;
    gap: 12px;
    display: flex;
    justify-content: center;
}

.single-evidence {
    max-width: 300px;
    /* Standardize single item width */
    margin: 0 auto 24px auto;
}

/* AVATARS (Re-adding missing styles) */
.avatars-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 320px;
    /* Constrain width */
    margin: 0 auto 24px auto;
}

.avatar-circle-container {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(220, 0, 0, 0.2);
    background: #000;
}

.blur-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
}

/* MAPS (Re-adding missing styles) */
.map-container-real {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.blur-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
}

.pin-overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-pin {
    color: var(--primary-red);
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: pinPulse 1.5s infinite;
}

/* PRE-CHECKOUT & LOADERS (Re-adding missing styles) */
.loader-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.loader-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 6px solid var(--primary-red);
    border-radius: 50%;
    animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--primary-red) transparent transparent transparent;
}

.loader-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.loader-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.loader-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes loader-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.log-text {
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-red);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 100px;
}

#screen-paywall {
    padding-top: 20px;
    /* Reduced space from top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Was center, moved to start to reduce top gap */
    min-height: calc(100vh - 60px);
    padding-bottom: 40px;
    /* Add bottom padding for scrolling */
}

#screen-paywall .content-wrapper {
    width: 100%;
    padding: 20px;
    margin-top: 10px;
    /* Reduced breathing room */
}

/* Fix Pre-Checkout Centering */
#screen-pre-checkout {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    /* flex is redundant if .screen has it, but good for safety */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* COSTS SUMMARY SECTION (New) */
.costs-summary-section {
    width: 100%;
    margin-bottom: 32px;
    background: #0f0f0f;
    border: 1px dashed #333;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: left;
}

.costs-title {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
}

.costs-list {
    list-style: none;
    margin-bottom: 16px;
    padding: 0;
}

.costs-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #bbb;
    font-family: var(--font-mono);
}

.costs-list li .cost-value {
    color: #fff;
    font-weight: 600;
}

.costs-footer {
    border-top: 1px solid #222;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.cost-row.original-total span:first-child {
    color: #888;
}

.strikethrough {
    text-decoration: line-through;
    color: #666;
}

.discount-badge {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    font-size: 0.75rem;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    margin: 4px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-row.final-total {
    margin-top: 8px;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    align-items: center;
}

.highlight-price {
    font-size: 1.4rem;
    color: #00ff00;
    font-weight: 800;
}

.maintenance-note {
    font-size: 0.7rem;
    color: #666;
    text-align: right;
    font-style: italic;
    margin-top: -4px;
}

/* GUARANTEE BOX */
.guarantee-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 255, 0, 0.05);
    /* Very subtle green tint */
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

.guarantee-icon {
    font-size: 2.2rem;
    color: #00ff00;
    /* Security Green */
}

.guarantee-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.guarantee-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.guarantee-desc {
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.3;
}

/* FINAL LOADING SCREEN (Refined) */
.loading-main-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.loading-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* TIMER BOX */
.timer-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    width: 200px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.timer-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timer-display {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* TERMINAL WINDOW */
.terminal-window {
    width: 100%;
    max-width: 400px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Ensure block formatting context */
    flex-direction: column;
}

.terminal-header {
    background: #222;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 12px;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots .dot.red {
    background: #ff5f56;
}

.terminal-dots .dot.yellow {
    background: #ffbd2e;
}

.terminal-dots .dot.green {
    background: #27c93f;
}

.terminal-title {
    color: #888;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.terminal-body {
    padding: 12px;
    height: 160px;
    overflow-y: hidden;
    color: #00ff00;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Keep text at bottom */
    gap: 4px;
}

.terminal-line {
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-line.success {
    color: #00ff00;
}

.terminal-line.warning {
    color: #ffbd2e;
}

.terminal-line.error {
    color: #ff5f56;
}

.terminal-line.info {
    color: #ccc;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PROGRESS BAR NEW */
.progress-container-new {
    width: 100%;
    margin-bottom: 12px;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #222;
    border-radius: 6px;
    border: 1px solid #333;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill-new {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0000 0%, #ff4d4d 100%);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: width 0.2s linear;
}

.progress-percent-text {
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}

.vsl-wrapper {
    width: 100%;
    margin-bottom: 24px;
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(220, 0, 0, 0.4);
    background: #000;
}

/* COMPACT PREVIEW SECTION */
.compact-preview-section {
    width: 100%;
    background: #111;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
    0% {
        border-color: rgba(255, 0, 0, 0.2);
    }

    50% {
        border-color: rgba(255, 0, 0, 0.6);
    }

    100% {
        border-color: rgba(255, 0, 0, 0.2);
    }
}

.preview-header {
    font-family: var(--font-mono);
    color: #4ade80;
    /* Green terminal text */
    font-size: 0.75rem;
    margin-bottom: 12px;
    text-align: left;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.command-prefix {
    color: #fff;
    font-weight: bold;
}

.preview-items-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* Scrollbar space if needed */
    justify-content: space-between;
}

/* Hide scrollbar for cleaner look */
.preview-items-row::-webkit-scrollbar {
    display: none;
}

.preview-item {
    flex: 1;
    min-width: 0;
    /* Allow shrinking */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.preview-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background: #222;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #444;
}

.preview-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #888;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Chat Thumb Styles */
.chat-thumb {
    background: #0b141a;
    /* WhatsApp Dark bg */
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
    justify-content: center;
}

.chat-bubble {
    height: 8px;
    border-radius: 4px;
    width: 70%;
}

.chat-bubble.received {
    background: #202c33;
    align-self: flex-start;
}

.chat-bubble.sent {
    background: #005c4b;
    align-self: flex-end;
}

.chat-time {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 1;
    /* Below blur */
    font-weight: bold;
}

.chat-msg-deleted {
    font-size: 7px;
    color: #ccc;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    width: 100%;
}

/* Photo Thumb Styles */
.photo-thumb {
    background-size: cover;
    background-position: center;
}

.photo-1 {
    /* Explicit photo evidence */
    background-image: url('assets/thumb_evidence_1.png');
}

.photo-2 {
    /* Explicit photo evidence */
    background-image: url('assets/thumb_evidence_2.png');
}

/* Pixel/Blur overlays */
.blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2.5px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.blur-overlay-heavy {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px) contrast(1.5);
    /* Heavier blur for photos */
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: var(--primary-red);
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Updated Chat Thumbs with Real Images */
.chat-img-1 {
    background-image: url('assets/thumb_chat_1.png');
    background-size: cover;
    background-position: top center;
}

.chat-img-2 {
    background-image: url('assets/thumb_chat_2.png');
    background-size: cover;
    background-position: center;
}

/* Specific blur for chat previews to make them recognizable but unreadable */
.blur-overlay-chat {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2.5px);
    /* Lighter blur for chats */
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}