/* CSS Updates - Expanded Funnel */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #D4AF37;
    /* Luxury Gold */
    --primary-gradient: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    --accent: #E91E63;
    /* Notification Red/Pink */
    --bg-dark: #000000;
    --surface: #121212;
    --surface-light: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --success: #4CAF50;
    --max-width: 430px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 60%);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.app-container {
    width: 100%;
    max-width: var(--max-width);
    background: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    padding-bottom: 80px;
}

@media (min-width: 450px) {
    body {
        align-items: center;
        padding: 20px;
        background-color: #111;
    }

    .app-container {
        border-radius: 40px;
        min-height: 850px;
        max-height: 90vh;
        border: 8px solid #222;
        overflow-y: auto;
        /* Hide Scrollbar */
        scrollbar-width: none;
    }

    .app-container::-webkit-scrollbar {
        display: none;
    }
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.text-gold {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

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

.w-full {
    width: 100%;
}

/* Components */
.btn-primary {
    background: var(--primary-gradient);
    color: #000;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:active {
    transform: scale(0.97);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

/* Header */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1a1a1a;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* Quiz Styles */
.quiz-option {
    background: var(--surface-light);
    border: 1px solid #2a2a2a;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

/* 1. Photo Analysis / Scanner Extras */
.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scanner-line {
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    position: absolute;
    top: 0;
    animation: scanMove 2s infinite linear;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 2. Tinder-style Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

.profile-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    color: white;
}

.tinder-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.dislike {
    background: #222;
    color: #ff4444;
}

.action-btn.like {
    background: var(--primary);
    color: #000;
}

.action-btn:active {
    transform: scale(0.9);
}

/* 3. Real-time Chat Simulation */
.chat-window {
    height: 60vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: msgPop 0.3s forwards;
}

.message.received {
    background: #222;
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.sent {
    background: var(--primary);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.typing-indicator {
    padding: 10px 15px;
    background: #222;
    border-radius: 20px;
    align-self: flex-start;
    display: none;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

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

/* 4. Sales/Scarcity Modal Overlay */
.sales-overlay {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 25px;
    padding-bottom: 40px;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-top: 1px solid #333;
}

.sales-overlay.active {
    transform: translateY(0);
}

.countdown-box {
    background: rgba(233, 30, 99, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
    font-size: 14px;
}

.blur-content {
    transition: filter 0.3s;
}

.modal-open .blur-content {
    filter: blur(5px);
    pointer-events: none;
}

/* Profile Setup Form */
.setup-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
}

.upload-box {
    border: 2px dashed #444;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: 0.2s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

/* Sales Page Typography (Long Copy) */
.sales-content {
    padding: 20px;
    line-height: 1.6;
}

.sales-headline {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-align: center;
}

.sales-subhead {
    font-size: 16px;
    color: #aaa;
    text-align: center;
    margin-bottom: 30px;
}

.benefit-list {
    margin: 20px 0;
    list-style: none;
}

.benefit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.checkmark {
    color: var(--success);
    font-weight: bold;
    font-size: 18px;
}

/* Chat Error Message */
.msg-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Pix Key Highlight */
.pix-highlight {
    background: #333;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--success);
    font-family: monospace;
    font-size: 14px;
    color: var(--success);
    margin-bottom: 20px;
}

/* ========== INBOX / CHAT LIST STYLES (NEW) ========== */
.chat-list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.avatar-container {
    position: relative;
    margin-right: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.chat-list-item:hover .avatar {
    border-color: var(--primary);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.chat-info {
    flex: 1;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.chat-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.chat-time {
    font-size: 12px;
    color: #888;
}

.chat-preview {
    font-size: 14px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}