/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --bg-primary: #08080e;
    --bg-secondary: #0e0e18;
    --bg-card: rgba(18, 18, 32, 0.7);
    --bg-card-solid: #121220;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #eeeef5;
    --text-secondary: #9898b0;
    --text-muted: #5a5a72;
    --gradient-main: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
    --gradient-soft: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(236,72,153,0.08) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168,85,247,0.3) 0%, rgba(236,72,153,0.15) 100%);
    --purple: #a855f7;
    --pink: #ec4899;
    --rose: #f43f5e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(168, 85, 247, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--purple);
    text-decoration: none;
}

/* ===== AGE VERIFICATION ===== */
.age-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.age-overlay.hidden { display: none; }

.age-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.age-box .icon { font-size: 48px; margin-bottom: 16px; }

.age-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.age-buttons { display: flex; gap: 16px; justify-content: center; }

.btn {
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-yes {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.btn-no {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-no:hover { border-color: var(--rose); color: var(--rose); }

/* ===== HEADER ===== */
.header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 14, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.token-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-glass);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    font-weight: 500;
}

.token-badge .coin { font-size: 1rem; }

/* ===== MAIN PAGE ===== */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== PERSONA CARDS ===== */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.persona-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
}

.persona-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

.persona-card .avatar-wrap {
    width: 100%;
    height: 360px;
    overflow: hidden;
    position: relative;
}

.persona-card .avatar-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(8, 8, 14, 0.95));
    pointer-events: none;
}

.persona-card .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s ease;
}

.persona-card:hover .avatar-wrap img {
    transform: scale(1.05);
}

.persona-card .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: var(--gradient-soft);
}

.persona-card .info {
    padding: 18px 20px 22px;
    position: relative;
    z-index: 1;
    margin-top: -40px;
}

.persona-card .name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.persona-card .name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.persona-card .age-badge {
    background: var(--gradient-main);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.persona-card .origin {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.persona-card .tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.persona-card .desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.persona-card .chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    padding: 12px;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.persona-card .chat-btn:hover {
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.persona-card .gallery-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-top: 8px;
    box-shadow: none;
}

.persona-card .gallery-btn:hover {
    border-color: var(--purple);
    color: var(--text-primary);
    box-shadow: none;
}

/* ===== CHAT PAGE ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-primary);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(8, 8, 14, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.chat-header .back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.chat-header .back-btn:hover { color: var(--text-primary); }

.chat-header .avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-hover);
}

.chat-header .avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header .avatar-sm .mini-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--gradient-soft);
}

.chat-header .persona-info { flex: 1; }

.chat-header .persona-info .name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-header .persona-info .status {
    font-size: 0.75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.msg-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    white-space: nowrap;
    font-weight: 500;
}

/* ===== MESSAGES ===== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-primary);
}

.message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideUp 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: var(--gradient-main);
    color: white;
    border-bottom-right-radius: 6px;
}

.message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
}

.typing-indicator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 18px;
    display: none;
}

.typing-indicator.visible {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ===== CHAT INPUT ===== */
.chat-input-wrap {
    padding: 12px 16px;
    background: rgba(8, 8, 14, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}

.chat-input {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input textarea:focus { border-color: var(--purple); }
.chat-input textarea::placeholder { color: var(--text-muted); }

.photo-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-btn:hover { border-color: var(--purple); color: var(--purple); }

.send-btn {
    width: 44px;
    height: 44px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.send-btn:hover { box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.photo-cost-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

.message-photo {
    max-width: 200px;
    max-height: 260px;
    border-radius: 12px;
    margin-top: 4px;
    cursor: pointer;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.message-photo:hover { opacity: 0.85; }

/* ===== PHOTO OFFERS ===== */
.photo-offer-msg {
    max-width: 75% !important;
    padding: 12px 14px !important;
}

.photo-tease-text { margin-bottom: 10px; line-height: 1.5; }

.photo-preview-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.photo-blurred {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.photo-blurred img {
    width: 100%;
    display: block;
    filter: blur(18px) brightness(0.5);
}

.photo-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 14, 0.2);
}

.photo-unlock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card-solid);
    font-size: 0.8rem;
    color: var(--text-secondary);
    gap: 10px;
}

.btn-photo-unlock {
    padding: 8px 16px;
    background: var(--gradient-main);
    border: none;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-photo-unlock:hover { box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4); }
.btn-photo-unlock:disabled { opacity: 0.5; cursor: wait; }

.photo-unlocked {
    width: 100%;
    display: block;
    cursor: pointer;
    border-radius: 14px;
    transition: transform 0.2s;
}

.photo-unlocked:hover { transform: scale(1.02); }

/* ===== MODAL / PAYWALL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden { display: none; }

.modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    max-width: 460px;
    width: 92%;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.modal h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.package-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.package {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.package:hover {
    border-color: var(--border-hover);
    background: var(--gradient-soft);
}

.package.popular {
    border-color: var(--purple);
    position: relative;
}

.package.popular::after {
    content: 'POPULAR';
    position: absolute;
    top: -9px;
    right: 14px;
    background: var(--gradient-main);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.package .tokens { font-weight: 600; font-size: 0.95rem; }
.package .price {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.95rem;
}

.modal .close-btn {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.modal .close-btn:hover { color: var(--text-primary); }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.lightbox.hidden { display: none; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ===== URGENCY / SALES ===== */
.discount-badge {
    background: var(--rose);
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 6px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 4px;
}

.blur-paywall-msg {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    position: relative;
}

.blur-paywall-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 14, 0.5);
    border-radius: 18px;
    z-index: 1;
}

.blur-paywall-overlay button {
    padding: 8px 16px;
    background: var(--gradient-main);
    border: none;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ===== SEEN INDICATOR ===== */
.seen-indicator {
    align-self: flex-end;
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 2px 6px;
    transition: opacity 0.5s;
}

/* ===== LEVEL BAR ===== */
.level-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
}

.level-emoji { font-size: 0.9rem; }
.level-name { color: var(--text-secondary); white-space: nowrap; font-weight: 500; }

.level-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== TOASTS ===== */
.level-up-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: white;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 3.5s forwards;
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.4);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* ===== FLOATING HEARTS ===== */
.floating-heart {
    position: fixed;
    bottom: 100px;
    font-size: 22px;
    z-index: 8500;
    pointer-events: none;
    animation: floatUp 2s ease forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 0.7; transform: translateY(-100px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-200px) scale(0.8); }
}

/* ===== DAILY REWARD ===== */
.daily-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.daily-btn:hover { box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3); }
.daily-btn:disabled { opacity: 0.5; cursor: default; }

/* ===== NOTIFICATION BUBBLE ===== */
.persona-card .notif-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--rose);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.5);
    animation: notifPop 0.4s ease;
}

@keyframes notifPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.persona-card .msg-bubble {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 44px;
    z-index: 3;
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    animation: bubbleSlide 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes bubbleSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex: 1;
}

.msg-bubble-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple);
}

.msg-bubble-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-bubble-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== AUTH PAGE ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.auth-logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.auth-tab.active {
    background: var(--gradient-main);
    color: white;
}

.auth-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--rose);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 16px;
    text-align: center;
}

.auth-form.hidden { display: none; }

.input-group { margin-bottom: 14px; }

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus { border-color: var(--purple); }
.input-group input::placeholder { color: var(--text-muted); }

.auth-submit { width: 100%; margin-top: 8px; }

.auth-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 14px;
    line-height: 1.4;
}

.auth-skip { text-align: center; margin-top: 18px; font-size: 0.8rem; }
.auth-skip a { color: var(--text-muted); transition: color 0.2s; }
.auth-skip a:hover { color: var(--purple); }

/* ===== USER BAR ===== */
.user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.logout-btn:hover { border-color: var(--rose); color: var(--rose); }

/* ===== REFERRAL ===== */
.referral-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.referral-box .code {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 2px;
    margin: 8px 0;
    user-select: all;
}

/* ===== PROFILE PAGE ===== */
.back-link {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.back-link:hover { color: var(--text-primary); }

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 14px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.profile-name { font-size: 1.1rem; font-weight: 700; }

.profile-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }

.card-title { font-size: 0.95rem; margin-bottom: 14px; font-weight: 600; }

.rel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.rel-row:last-child { border-bottom: none; }
.rel-name { font-weight: 600; min-width: 65px; }
.rel-level { font-size: 0.75rem; color: var(--text-secondary); min-width: 85px; }
.rel-msgs { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    background: var(--bg-card-solid);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    animation: slideUp 0.3s ease;
}

.cookie-banner.hidden { display: none; }
.cookie-banner p { color: var(--text-secondary); font-size: 0.8rem; flex: 1; }
.cookie-banner .btn { padding: 8px 20px; font-size: 0.8rem; white-space: nowrap; }

/* ===== VIP PACKAGES ===== */
.package.vip-pkg {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,165,0,0.03));
}

.package.vip-pkg::after {
    content: 'VIP';
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.package.vip-pkg .tokens { color: #FFD700; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.85rem; }

    .header {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .logo { font-size: 1.1rem; }
    .user-bar { gap: 5px; flex-wrap: wrap; }
    .token-badge { padding: 4px 10px; font-size: 0.7rem; }

    .persona-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .persona-card .avatar-wrap { height: 300px; }
    .persona-card .info { padding: 14px 16px 18px; }

    .age-box { padding: 28px 20px; }
    .age-buttons { flex-direction: column; }
    .btn { width: 100%; }

    .chat-header { padding: 10px 12px; gap: 8px; }
    .chat-header .avatar-sm { width: 34px; height: 34px; }
    .chat-header .persona-info .name { font-size: 0.85rem; }
    .msg-counter { font-size: 0.65rem; padding: 4px 8px; }

    .level-bar { padding: 0 12px; height: 26px; font-size: 0.65rem; }

    .chat-messages { padding: 10px; gap: 5px; }

    .message {
        max-width: 85%;
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .message-photo { max-width: 150px; max-height: 190px; }
    .photo-offer-msg { max-width: 85% !important; }

    .photo-unlock-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px;
        font-size: 0.75rem;
    }

    .chat-input-wrap { padding: 8px 10px; }
    .chat-input textarea { padding: 9px 14px; font-size: 0.85rem; min-height: 40px; }
    .photo-btn, .send-btn { width: 40px; height: 40px; font-size: 1rem; }
    .photo-cost-hint { font-size: 0.6rem; }

    .modal { padding: 22px 16px; width: 95%; }
    .modal h2 { font-size: 1.15rem; }
    .package { padding: 11px 14px; }
    .package .tokens, .package .price { font-size: 0.85rem; }

    .main-content { padding: 20px 14px; }
    .profile-card { padding: 16px; }
    .stats-grid { gap: 6px; }
    .stat-box { padding: 10px 4px; }
    .stat-value { font-size: 1.1rem; }

    .cookie-banner { flex-direction: column; padding: 10px 14px; gap: 8px; }
    .lightbox img { max-width: 95vw; max-height: 85vh; }
}
