/* VelvetLive - Sexy Romantic Monetized Video Call Theme */
:root {
    --bg-dark: #090510;
    --bg-surface: rgba(22, 13, 34, 0.85);
    --bg-glass: rgba(28, 15, 45, 0.65);
    --border-glass: rgba(255, 64, 129, 0.22);
    --border-glow: rgba(255, 42, 122, 0.6);
    
    --pink-hot: #ff2a7a;
    --pink-neon: #ff007f;
    --pink-soft: #ff758f;
    --purple-deep: #220038;
    --purple-vibrant: #7209b7;
    --purple-glow: #9d4edd;
    --gold-glow: #ffd166;
    --gold-vip: #ffb703;
    --rose-red: #e63946;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.48);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
}

.sheet-handle {
    display: none;
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 0 auto 14px;
}

/* Ambient Neon Glow */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: floatGlow 14s infinite alternate ease-in-out;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff007f, transparent 70%);
    top: -60px;
    left: -60px;
}
.glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #7209b7, transparent 70%);
    bottom: -90px;
    right: -90px;
    animation-delay: -5s;
}
.glow-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #ffb703, transparent 70%);
    top: 40%;
    left: 45%;
    opacity: 0.2;
    animation-delay: -9s;
}

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

#hearts-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* App Viewport Container */
.app-viewport {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: radial-gradient(circle at center, transparent 0%, rgba(9, 5, 16, 0.9) 100%);
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
                inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    z-index: 10;
    gap: 10px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--pink-hot));
    animation: gentlePulse 2s infinite ease-in-out;
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 20%, var(--pink-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.accent-text {
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.live-badge {
    background: rgba(255, 42, 122, 0.2);
    border: 1px solid var(--pink-hot);
    color: var(--pink-soft);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--pink-hot);
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}
@keyframes blink { from { opacity: 0.3; } to { opacity: 1; } }

/* Header Center: Checkin, Wallet & VIP */
.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkin-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(114, 9, 183, 0.25));
    border: 1px solid var(--pink-hot);
    color: #fff;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 42, 122, 0.3);
    transition: all 0.2s ease;
}
.checkin-pill:hover { transform: scale(1.05); box-shadow: 0 0 18px rgba(255, 42, 122, 0.6); }
.checkin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0055;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px #ff0055;
    animation: gentlePulse 1.5s infinite;
}
.checkin-pill.claimed .checkin-badge { display: none; }
.checkin-pill.claimed {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}
.wallet-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(255, 42, 122, 0.2));
    border: 1px solid var(--gold-vip);
    color: #fff;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.3);
    transition: all 0.2s ease;
}
.wallet-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.5);
}
.coin-icon { font-size: 1.1rem; }
.coin-val { color: var(--gold-glow); font-size: 0.95rem; }
.coin-unit { font-size: 0.75rem; color: var(--text-secondary); }
.plus-add {
    background: var(--gold-vip);
    color: #000;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    margin-left: 2px;
}

.quota-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--pink-soft);
    font-weight: 600;
}
.quota-pill.vip {
    background: rgba(255, 183, 3, 0.2);
    border-color: var(--gold-vip);
    color: var(--gold-glow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px 4px 6px;
    border-radius: 30px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-avatar-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--pink-hot);
}
.vip-crown {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px var(--gold-vip));
}
.user-name { font-weight: 600; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-btn:hover { color: #fff; background: rgba(230, 57, 70, 0.3); border-color: var(--rose-red); }

/* Main Stage / Video Area */
.call-stage {
    position: relative;
    flex: 1;
    margin: 0 16px;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 40px rgba(114, 9, 183, 0.25),
                0 0 0 1px rgba(255, 42, 122, 0.25);
}
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.remote-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.8s ease;
}
/* Blur effect when call is about to expire */
.remote-wrapper.blurred video {
    filter: blur(18px) brightness(50%);
}

/* Radar & Searching UI */
.radar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(34, 0, 56, 0.92) 0%, rgba(9, 5, 16, 0.98) 85%);
    z-index: 5;
    transition: opacity 0.5s ease;
}
.radar-overlay.hidden { opacity: 0; pointer-events: none; }
.radar-center { position: relative; z-index: 2; text-align: center; }
.radar-heart {
    font-size: 4rem;
    filter: drop-shadow(0 0 30px var(--pink-hot));
    animation: heartThrob 1.2s infinite ease-in-out;
}
.radar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 14px;
    background: linear-gradient(135deg, #fff, var(--pink-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.radar-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }
.radar-rule-hint {
    margin-top: 14px;
    display: inline-block;
    background: rgba(255, 42, 122, 0.15);
    border: 1px solid var(--pink-hot);
    color: var(--pink-soft);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--pink-hot);
    box-shadow: 0 0 25px var(--pink-neon);
    animation: ripple 3s infinite cubic-bezier(0.1, 0.7, 0.1, 1);
}
.ring-1 { width: 140px; height: 140px; animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; animation-delay: 0.9s; }
.ring-3 { width: 380px; height: 380px; animation-delay: 1.8s; }

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}
@keyframes heartThrob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

/* Peer Tag & Countdown */
.peer-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    z-index: 6;
}
.peer-badge {
    background: rgba(255, 42, 122, 0.35);
    border: 1px solid var(--pink-hot);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.peer-name { font-weight: 700; }
.countdown-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-glow);
}
.countdown-pill.urgent {
    background: rgba(230, 57, 70, 0.6);
    border-color: var(--rose-red);
    color: #fff;
    animation: urgentBlink 0.6s infinite alternate;
}
@keyframes urgentBlink {
    from { transform: scale(1); box-shadow: 0 0 10px var(--rose-red); }
    to { transform: scale(1.08); box-shadow: 0 0 25px var(--rose-red); }
}

/* Urgent Extension Alert Banner */
.call-urgent-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(380px, 90%);
    z-index: 8;
    background: rgba(18, 10, 28, 0.9);
    border: 2px solid var(--rose-red);
    box-shadow: 0 0 35px rgba(230, 57, 70, 0.7);
    border-radius: 20px;
    padding: 18px 20px;
    text-align: center;
    animation: bannerPop 0.3s ease-out;
}
.urgent-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@keyframes bannerPop {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.urgent-heart { font-size: 2.5rem; animation: heartThrob 0.6s infinite; }
.urgent-text strong { display: block; font-size: 1.1rem; color: #ff858d; margin-top: 4px; }
.urgent-text span { font-size: 0.8rem; color: var(--text-secondary); }
.btn-extend-call {
    margin-top: 14px;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff007f 0%, #ff2a7a 50%, #7209b7 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
    transition: transform 0.15s ease;
}
.btn-extend-call:active { transform: scale(0.95); }

/* Local Video (Selfie PIP) */
.local-wrapper {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 125px;
    height: 175px;
    border-radius: 18px;
    border: 2px solid var(--border-glow);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 42, 122, 0.5);
    z-index: 8;
    background: #11081d;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.local-wrapper:active { cursor: grabbing; }
.local-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}
.local-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-secondary);
}
.cam-off-placeholder {
    position: absolute;
    inset: 0;
    background: #11081d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.8rem;
}

/* Beauty Filters */
.filter-smooth { filter: contrast(102%) brightness(105%) saturate(108%); }
.filter-rosy { filter: contrast(105%) saturate(125%) hue-rotate(-8deg) brightness(108%); }
.filter-sexy { filter: contrast(110%) saturate(135%) brightness(104%) drop-shadow(0 0 4px rgba(255, 0, 127, 0.3)); }
.filter-vintage { filter: sepia(20%) saturate(120%) contrast(115%) brightness(98%); }

/* In-Call Chat Overlay */
.chat-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: min(320px, 80%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.chat-messages {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
}
.chat-messages::-webkit-scrollbar { display: none; }
.chat-msg {
    align-self: flex-start;
    background: rgba(18, 10, 28, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    color: #fff;
    max-width: 90%;
    word-break: break-word;
    animation: slideUp 0.25s ease-out;
}
.chat-msg.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.85), rgba(157, 78, 221, 0.85));
    border-color: rgba(255, 255, 255, 0.3);
}
.chat-msg.system-msg {
    font-size: 0.72rem;
    color: var(--pink-soft);
    background: rgba(255, 42, 122, 0.15);
    border-color: rgba(255, 42, 122, 0.3);
}
.chat-input-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 10, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
    padding: 4px 5px 4px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.chat-flirt-trigger {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 42, 122, 0.45);
    background: rgba(255, 42, 122, 0.2);
    color: #fff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.chat-input-bar input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.82rem;
    font-family: var(--font-main);
}
.chat-input-bar input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-vibrant));
    border: none;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.chat-send-btn:active { transform: scale(0.9); }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Flying Gift Effects */
.flying-effects-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    overflow: hidden;
}
.flying-gift-item {
    position: absolute;
    bottom: -60px;
    font-size: 3.5rem;
    animation: flyAndFade 3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
    filter: drop-shadow(0 0 20px rgba(255, 42, 122, 0.8));
}
@keyframes flyAndFade {
    0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-50vh) scale(1.4) rotate(15deg); opacity: 1; }
    100% { transform: translateY(-90vh) scale(1.1) rotate(-15deg); opacity: 0; }
}

/* App Footer / Control Shelf */
.app-footer {
    padding: 12px 18px;
    z-index: 10;
}
.controls-shelf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 0 auto;
    max-width: 620px;
}
.divider-v {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
}

.ctrl-btn {
    position: relative;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-iconic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 1.1rem;
}
.btn-iconic:hover {
    background: rgba(255, 42, 122, 0.25);
    border-color: var(--pink-hot);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 42, 122, 0.35);
}
.btn-iconic:active { transform: scale(0.92); }
.btn-iconic.muted {
    background: rgba(230, 57, 70, 0.3);
    border-color: var(--rose-red);
    color: #ff858d;
}

.badge-mini-vip {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--gold-vip), #ff9e00);
    color: #000;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(255, 183, 3, 0.7);
}

/* Hangup / Immediate End Call Button */
.btn-hangup {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #d90429 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 16px rgba(230, 57, 70, 0.7);
    animation: hangupPulse 1.5s infinite;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-hangup:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.95);
}
.btn-hangup:active {
    transform: scale(0.92);
}
@keyframes hangupPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(230, 57, 70, 0.5); }
    50% { box-shadow: 0 0 24px rgba(230, 57, 70, 0.95); }
}

/* Floating Quick Chat Trigger on Call Screen */
.floating-chat-trigger {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 10, 28, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glow);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 42, 122, 0.35);
    transition: all 0.2s ease;
}
.floating-chat-trigger:hover {
    background: rgba(255, 42, 122, 0.3);
    border-color: var(--pink-hot);
    transform: translateY(-2px);
}
.floating-chat-trigger span {
    color: var(--text-secondary);
}

/* Custom Velvet Dialog & Popup System */
.custom-dialog-card {
    position: relative;
    width: min(400px, 92%);
    padding: 26px 20px;
    text-align: center;
    animation: bannerPop 0.25s ease-out;
}
.dialog-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 15px var(--pink-hot));
    animation: gentlePulse 2s infinite ease-in-out;
}
.dialog-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--pink-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.dialog-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: break-word;
    white-space: pre-line;
}
.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-dialog-confirm {
    flex: 1;
    padding: 11px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-vibrant));
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 42, 122, 0.4);
    transition: all 0.2s ease;
}
.btn-dialog-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 42, 122, 0.6);
}
.btn-dialog-cancel {
    flex: 1;
    padding: 11px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-dialog-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Floating Non-intrusive Velvet Toast System */
.velvet-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: min(440px, 92%);
}
.velvet-toast {
    pointer-events: auto;
    background: rgba(18, 10, 28, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--border-glow);
    border-radius: 20px;
    padding: 12px 18px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 42, 122, 0.35);
    animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition: all 0.3s ease;
}
.velvet-toast.toast-fadeout {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero Match Button */
.btn-match {
    padding: 11px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff007f 0%, #ff2a7a 50%, #7209b7 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    gap: 9px;
    box-shadow: 0 4px 25px rgba(255, 0, 127, 0.5), 0 0 10px rgba(255, 42, 122, 0.4);
    overflow: hidden;
}
.btn-match:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(255, 0, 127, 0.7); }
.btn-match:active { transform: scale(0.95); }
.btn-match.matching {
    background: linear-gradient(135deg, #e63946 0%, #ff4d6d 100%);
    box-shadow: 0 4px 25px rgba(230, 57, 70, 0.6);
}
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: shineEffect 3.5s infinite;
}
@keyframes shineEffect {
    0%, 60% { left: -100%; }
    100% { left: 160%; }
}

.btn-gift { color: var(--gold-glow); animation: gentlePulse 2s infinite ease-in-out; }
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Drawers (Gifts & Filters) */
.gift-drawer, .filter-drawer {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 92%);
    z-index: 15;
    padding: 16px;
    animation: drawerPop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes drawerPop {
    from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.gift-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.gift-drawer-header h3 { font-size: 0.95rem; font-weight: 700; }
.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover { color: #fff; }

/* Universal High-Visibility Close Button */
.modal-close-corner {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.modal-close-corner:hover {
    background: rgba(255, 42, 122, 0.5);
    border-color: var(--pink-hot);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 42, 122, 0.6);
}
.modal-close-corner:active {
    transform: scale(0.92);
}

/* Chat Drawer & Quick Flirts */
.chat-drawer {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 94%);
    z-index: 18;
    padding: 16px;
    animation: drawerPop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.chat-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-header-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
}
.peer-chat-target {
    color: var(--pink-soft);
}
.chat-rule-pill {
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid var(--rose-red);
    color: #ff858d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
}
.quick-flirts-container {
    margin-bottom: 12px;
}
.quick-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.quick-flirts-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.quick-flirts-scroll::-webkit-scrollbar {
    display: none;
}
.flirt-chip {
    white-space: nowrap;
    background: rgba(255, 42, 122, 0.15);
    border: 1px solid rgba(255, 42, 122, 0.35);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.flirt-chip:hover {
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-vibrant));
    border-color: var(--pink-neon);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 42, 122, 0.4);
}
.flirt-chip:active {
    transform: scale(0.95);
}

.chat-unread-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #ff0055;
    border: 1.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0055;
    animation: blink 0.8s infinite alternate;
}

.gifts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px 4px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}
.gift-item:hover {
    background: rgba(255, 42, 122, 0.2);
    border-color: var(--pink-hot);
    transform: translateY(-3px);
}
.gift-icon { font-size: 1.8rem; filter: drop-shadow(0 0 10px rgba(255, 42, 122, 0.5)); }
.gift-name { font-size: 0.78rem; font-weight: 600; }
.gift-tag { font-size: 0.65rem; color: var(--pink-soft); }

.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
    flex: 1;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-chip.active {
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-vibrant));
    border-color: var(--pink-neon);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 42, 122, 0.5);
}

/* =================================================== */
/* MONETIZATION: SHOP / NẠP XU & VIP MODAL STYLING */
/* =================================================== */
.shop-card {
    position: relative;
    width: min(520px, 95%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 20px;
    scrollbar-width: none;
}
.shop-card::-webkit-scrollbar { display: none; }
.glow-gold {
    background: radial-gradient(circle, rgba(255, 183, 3, 0.4) 0%, transparent 70%);
}
.shop-header {
    position: relative;
    text-align: center;
    margin-bottom: 16px;
}
.shop-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.shop-icon { font-size: 1.6rem; }
.shop-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--gold-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.shop-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.shop-close {
    position: absolute;
    top: 0;
    right: 0;
}

/* Flash Deal Banner */
.flash-deal-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.25), rgba(255, 183, 3, 0.25));
    border: 2px solid var(--gold-vip);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.flash-deal-card:hover { transform: translateY(-2px); }
.deal-tag {
    display: inline-block;
    background: linear-gradient(90deg, #ff007f, #e63946);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.deal-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.deal-coins {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-glow);
    line-height: 1;
}
.deal-coins .unit { font-size: 0.9rem; color: #fff; }
.deal-sub { font-size: 0.75rem; color: var(--pink-soft); margin-top: 2px; }
.deal-right { text-align: right; }
.old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}
.deal-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
}
.btn-buy-deal {
    display: block;
    margin-top: 6px;
    padding: 6px 14px;
    background: var(--gold-vip);
    color: #000;
    border: none;
    border-radius: 15px;
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
}

/* Shop Tabs */
.shop-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 16px;
}
.shop-tab-btn {
    flex: 1;
    padding: 9px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.shop-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.4), rgba(114, 9, 183, 0.4));
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* VIP Perks Box */
.vip-perks-box {
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.78rem;
}
.vip-perks-box strong { color: var(--gold-glow); display: block; margin-bottom: 6px; }
.vip-perks-box ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

/* VIP Packages Grid */
.vip-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.vip-pkg-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vip-pkg-card:hover { transform: translateY(-3px); border-color: var(--pink-hot); }
.vip-pkg-card.highlight {
    border: 2px solid var(--gold-vip);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.3);
}
.pkg-ribbon {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pink-hot);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.pkg-ribbon.gold { background: var(--gold-vip); color: #000; }
.pkg-name { display: block; font-size: 1rem; font-weight: 800; margin-top: 4px; }
.pkg-price { display: block; font-size: 1.35rem; font-weight: 900; color: var(--gold-glow); margin: 6px 0; }
.pkg-desc { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; flex: 1; }
.btn-buy-pkg {
    width: 100%;
    padding: 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-vibrant));
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}
.btn-buy-pkg.gold-btn {
    background: linear-gradient(135deg, var(--gold-vip), #ff9e00);
    color: #000;
}

/* Coins Section */
.coin-rate-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    text-align: center;
}
.coins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.coin-pkg-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}
.coin-pkg-item:hover {
    background: rgba(255, 42, 122, 0.15);
    border-color: var(--pink-hot);
}
.coin-pkg-item.highlight { border-color: var(--gold-vip); }
.coin-amt { font-size: 1rem; font-weight: 800; color: var(--gold-glow); }
.coin-cost { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }
.coin-badge {
    position: absolute;
    top: -7px;
    right: 8px;
    background: var(--gold-vip);
    color: #000;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
}
.btn-buy-mini {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

/* Payment Preview Box (VietQR & Cron Bank) */
.payment-preview-box {
    background: rgba(14, 7, 24, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
    animation: slideUp 0.25s ease-out;
}
.payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.bank-live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 214, 160, 0.12);
    border: 1px solid rgba(6, 214, 160, 0.35);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    color: #06d6a0;
    margin-bottom: 12px;
}
.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #06d6a0;
    border-radius: 50%;
    box-shadow: 0 0 10px #06d6a0;
    animation: blink 0.9s infinite alternate;
}
.qr-container {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 14px;
}
.qr-code-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
}
.qr-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.text-highlight { color: #00f0ff; font-weight: 800; font-family: monospace; font-size: 0.95rem; }
.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.btn-copy:hover { color: #fff; background: var(--pink-hot); }
.payment-action-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.btn-check-bank {
    width: 100%;
    padding: 11px;
    border-radius: 14px;
    background: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease;
}
.btn-check-bank:active { transform: scale(0.96); }
.btn-confirm-payment {
    width: 100%;
    padding: 9px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
}
.btn-confirm-payment:hover { background: rgba(255, 42, 122, 0.2); border-color: var(--pink-hot); color: #fff; }
.btn-back-shop {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}

/* =================================================== */
/* MANDATORY GOOGLE LOGIN MODAL */
/* =================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 3, 14, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}
.modal-backdrop.hidden { opacity: 0; pointer-events: none; }
.login-card {
    position: relative;
    width: min(420px, 95%);
    padding: 32px 24px;
    text-align: center;
    overflow: hidden;
}
.login-header .big-icon { font-size: 3rem; filter: drop-shadow(0 0 20px var(--pink-hot)); margin-bottom: 8px; }
.login-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--pink-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-header p { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 18px; }

.login-gift-box {
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.15), rgba(114, 9, 183, 0.15));
    border: 1px dashed var(--pink-hot);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 22px;
}
.gift-badge {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--gold-glow);
    margin-bottom: 2px;
}
.login-gift-box p { font-size: 0.8rem; color: #fff; }
.login-gift-box strong { color: var(--pink-soft); }

.btn-google-login {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: none;
    color: #1f1f1f;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}
.btn-google-login:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2); }
.google-icon { width: 20px; height: 20px; }

.divider-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 16px 0 10px;
    position: relative;
}
.quick-accounts {
    display: flex;
    gap: 10px;
}
.btn-quick-acc {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 6px;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s ease;
}
.btn-quick-acc:hover {
    background: rgba(255, 42, 122, 0.2);
    border-color: var(--pink-hot);
}
.btn-quick-acc span { font-size: 0.82rem; font-weight: 600; }
.btn-quick-acc small { font-size: 0.68rem; color: var(--text-muted); }

.login-terms {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.4;
}

/* Profile Form */
.profile-card {
    position: relative;
    width: min(400px, 95%);
    padding: 24px;
    text-align: center;
}
.form-group { text-align: left; margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.custom-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-main);
    outline: none;
}
.custom-input:focus { border-color: var(--pink-hot); }
.radio-pill-group { display: flex; gap: 8px; }
.radio-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.radio-pill.active {
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.35), rgba(114, 9, 183, 0.35));
    border-color: var(--pink-hot);
    color: #fff;
}
.btn-submit-profile {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-vibrant));
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.text-pink { color: var(--pink-hot); }
.text-gold { color: var(--gold-glow); }
.hidden { display: none !important; }

/* VIP-Only Locks & Notices */
.vip-only-tag {
    background: var(--gold-vip);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
}
.tab-lock-icon { font-size: 0.75rem; margin-left: 4px; }
.coin-vip-notice {
    background: rgba(255, 183, 3, 0.1);
    border: 1px dashed var(--gold-vip);
    color: var(--gold-glow);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    margin-bottom: 12px;
    text-align: center;
}

/* Daily Check-in Modal */
.checkin-card {
    position: relative;
    width: min(390px, 92%);
    padding: 26px 22px;
    text-align: center;
}
.checkin-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--gold-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.checkin-header p { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 18px; }
.checkin-box {
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.15), rgba(255, 183, 3, 0.15));
    border: 1.5px solid var(--border-glow);
    border-radius: 18px;
    padding: 20px 14px;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(255, 42, 122, 0.25);
}
.checkin-gift-icon {
    font-size: 3rem;
    margin-bottom: 6px;
    animation: gentlePulse 2s infinite ease-in-out;
}
.checkin-box h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.checkin-box p { font-size: 0.78rem; color: var(--text-secondary); }
.checkin-vip-hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    color: var(--gold-glow);
}
.btn-claim-checkin {
    width: 100%;
    padding: 13px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff007f 0%, #ff2a7a 50%, #7209b7 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5);
    transition: all 0.2s ease;
}
.btn-claim-checkin:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 0, 127, 0.7); }
.btn-claim-checkin.claimed {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* =================================================== */
/* COMPREHENSIVE MOBILE & RESPONSIVE OPTIMIZATION      */
/* =================================================== */

@media (max-width: 768px) {
    /* Mobile GPU Performance: disable heavy multi-layer blur & background animations */
    .ambient-glow,
    .btn-shine {
        display: none !important;
        animation: none !important;
    }
    .glass-panel,
    .app-header,
    .peer-tag,
    .chat-msg,
    .chat-input-bar,
    .radar-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .glass-panel,
    .chat-input-bar {
        background: rgba(18, 10, 28, 0.88);
    }
    .chat-msg {
        background: rgba(18, 10, 28, 0.78);
    }

    /* Show Sheet Drag Handle */
    .sheet-handle {
        display: block;
    }

    /* Edge-to-Edge Mobile Viewport */
    .app-viewport {
        position: relative;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    /* Top Floating Mobile Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 25;
        padding: max(8px, env(safe-area-inset-top)) 8px 8px;
        background: linear-gradient(180deg, rgba(9, 5, 16, 0.92) 0%, rgba(9, 5, 16, 0.5) 60%, transparent 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        gap: 6px;
        overflow: hidden;
    }

    .brand {
        gap: 4px;
        flex-shrink: 0;
    }
    .brand-icon {
        font-size: 1.35rem;
    }
    .brand-name {
        font-size: 1.05rem;
    }
    .live-badge {
        padding: 1px 5px;
        font-size: 0.55rem;
    }

    /* Center Header Elements */
    .header-center {
        gap: 4px;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }
    .checkin-pill {
        padding: 5px 8px;
        font-size: 0.75rem;
        gap: 4px;
        flex-shrink: 0;
    }
    .wallet-pill {
        padding: 5px 8px;
        font-size: 0.75rem;
        gap: 4px;
        flex-shrink: 0;
    }
    .coin-icon {
        font-size: 0.95rem;
    }
    .coin-val {
        font-size: 0.85rem;
    }
    .plus-add {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
    .quota-pill {
        padding: 4px 8px;
        font-size: 0.68rem;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Right Header Elements */
    .header-right {
        gap: 4px;
        flex-shrink: 0;
    }
    .user-chip {
        padding: 3px 6px;
        gap: 4px;
        font-size: 0.75rem;
    }
    .user-avatar-img {
        width: 24px;
        height: 24px;
    }
    .logout-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* Video Stage - Full Edge-to-Edge */
    .call-stage {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .remote-wrapper, .remote-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Local Camera PIP Selfie */
    .local-wrapper {
        position: absolute;
        top: calc(max(8px, env(safe-area-inset-top)) + 56px);
        right: 10px;
        width: 88px;
        height: 126px;
        border-radius: 14px;
        z-index: 20;
        touch-action: none;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 42, 122, 0.4);
    }
    .local-label {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    /* Peer Info Tag */
    .peer-tag {
        position: absolute;
        top: calc(max(8px, env(safe-area-inset-top)) + 56px);
        left: 10px;
        max-width: calc(100% - 116px);
        z-index: 20;
        padding: 4px 8px;
        border-radius: 18px;
        font-size: 0.75rem;
        gap: 4px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .peer-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .peer-badge {
        padding: 1px 6px;
        font-size: 0.68rem;
        flex-shrink: 0;
    }
    .countdown-pill {
        padding: 2px 7px;
        font-size: 0.75rem;
        gap: 3px;
        flex-shrink: 0;
    }

    /* Radar Overlay Scaling */
    .radar-overlay {
        padding: 72px 16px 136px;
    }
    .radar-heart {
        font-size: 3.2rem;
    }
    .radar-title {
        font-size: 1.25rem;
        margin-top: 10px;
    }
    .radar-subtitle {
        font-size: 0.78rem;
    }
    .radar-rule-hint {
        font-size: 0.72rem;
        padding: 3px 10px;
        margin-top: 10px;
    }
    .ring-1 { width: 110px; height: 110px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 290px; height: 290px; }

    /* Urgent Call Extension Banner - Mobile Friendly (Right Above Bottom Controls) */
    .call-urgent-banner {
        top: auto;
        bottom: calc(128px + env(safe-area-inset-bottom));
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: 400px;
        margin: 0 auto;
        z-index: 24;
        padding: 12px 14px;
        border-radius: 18px;
    }
    .urgent-heart {
        font-size: 1.8rem;
    }
    .urgent-text strong {
        font-size: 0.95rem;
    }
    .urgent-text span {
        font-size: 0.72rem;
    }
    .btn-extend-call {
        margin-top: 8px;
        padding: 10px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    /* Hide redundant floating chat trigger on mobile (use bottom bar #toggleChatBtn) */
    .floating-chat-trigger {
        display: none !important;
    }

    /* Floating In-Call Chat Overlay */
    .chat-overlay {
        bottom: calc(126px + env(safe-area-inset-bottom));
        left: 10px;
        width: calc(100% - 20px);
        max-width: 300px;
        z-index: 22;
        gap: 6px;
    }
    .chat-messages {
        max-height: 110px;
        gap: 4px;
    }
    .chat-msg {
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 10px;
    }
    .chat-input-bar {
        padding: 2px 4px 2px 10px;
    }
    .chat-input-bar input {
        font-size: 0.75rem;
    }
    .chat-send-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    /* Bottom Romantic Controls Shelf - 2-row Mobile Layout (No Clipped Buttons) */
    .app-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 25;
        padding: 6px 10px max(10px, env(safe-area-inset-bottom));
        background: linear-gradient(0deg, rgba(9, 5, 16, 0.96) 0%, rgba(9, 5, 16, 0.65) 75%, transparent 100%);
    }
    .controls-shelf {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 8px 12px;
        border-radius: 24px;
        gap: 8px 6px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .divider-v {
        display: none;
    }
    .btn-match {
        flex: 1 1 calc(100% - 54px);
        min-height: 44px;
        padding: 9px 14px;
        font-size: 0.88rem;
        border-radius: 22px;
        gap: 6px;
        justify-content: center;
    }
    .btn-hangup {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        flex-shrink: 0;
    }
    .btn-iconic {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        flex-shrink: 0;
    }
    .badge-mini-vip {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    /* Drawers (Gifts, Filters, Chat) - Mobile Bottom Sheet */
    .gift-drawer, .filter-drawer, .chat-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        z-index: 60;
        padding: 16px 16px max(24px, env(safe-area-inset-bottom));
        max-height: 62dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gifts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .gift-item {
        padding: 8px 4px;
        border-radius: 12px;
    }
    .gift-icon {
        font-size: 1.5rem;
    }
    .gift-name {
        font-size: 0.72rem;
    }
    .gift-tag {
        font-size: 0.6rem;
    }
    .filter-options {
        gap: 6px;
    }
    .filter-chip {
        min-width: 65px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Modals - Mobile Bottom Sheet Pattern */
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }
    .shop-card, .login-card, .profile-card, .checkin-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        max-height: 88dvh;
        padding: 18px 16px max(24px, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }

    /* Shop Modal on Mobile */
    .shop-header h2 {
        font-size: 1.15rem;
    }
    .shop-header p {
        font-size: 0.74rem;
    }
    .flash-deal-card {
        padding: 12px;
        border-radius: 16px;
    }
    .deal-body {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .deal-left {
        text-align: left;
    }
    .deal-coins {
        font-size: 1.25rem;
    }
    .deal-sub {
        font-size: 0.72rem;
    }
    .deal-right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }
    .btn-buy-deal {
        padding: 8px 18px;
        font-size: 0.85rem;
        border-radius: 14px;
    }
    .shop-tabs {
        margin: 12px 0;
    }
    .shop-tab-btn {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    .vip-perks-box {
        padding: 12px 14px;
        font-size: 0.75rem;
    }
    .vip-perks-box ul {
        margin-top: 6px;
        padding-left: 14px;
        gap: 4px;
    }
    .vip-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .vip-pkg-card {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .pkg-name {
        font-size: 1rem;
    }
    .pkg-price {
        font-size: 1.1rem;
    }
    .pkg-desc {
        font-size: 0.74rem;
        margin: 8px 0 12px;
    }
    .btn-buy-pkg {
        padding: 10px;
        font-size: 0.85rem;
    }
    .coins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .coin-pkg-item {
        padding: 12px 8px;
        border-radius: 14px;
    }
    .coin-amt {
        font-size: 0.95rem;
    }
    .coin-cost {
        font-size: 0.8rem;
    }
    .btn-buy-mini {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    .payment-preview-box {
        padding: 14px 10px;
    }
    .qr-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .qr-code-img {
        width: 170px;
        height: 170px;
        border-radius: 12px;
    }
    .qr-info {
        width: 100%;
        text-align: left;
        font-size: 0.78rem;
    }
    .payment-action-btns {
        flex-direction: column;
        gap: 8px;
    }
    .btn-check-bank, .btn-confirm-payment, .btn-back-shop {
        width: 100%;
        padding: 10px;
        font-size: 0.82rem;
    }

    /* Login Modal on Mobile */
    .login-header .big-icon {
        font-size: 2.4rem;
        margin-bottom: 4px;
    }
    .login-header h2 {
        font-size: 1.25rem;
    }
    .login-header p {
        font-size: 0.74rem;
        margin-bottom: 12px;
    }
    .login-gift-box {
        padding: 10px 12px;
        margin-bottom: 16px;
    }
    .btn-google-login {
        padding: 11px 14px;
        font-size: 0.85rem;
    }
    .quick-accounts {
        flex-direction: row;
        gap: 8px;
    }
    .btn-quick-acc {
        padding: 8px 4px;
    }
    .btn-quick-acc span {
        font-size: 0.75rem;
    }

    /* Check-in Modal on Mobile */
    .checkin-header h2 {
        font-size: 1.25rem;
    }
    .checkin-box {
        padding: 16px 12px;
        margin-bottom: 14px;
    }
    .checkin-gift-icon {
        font-size: 2.5rem;
    }
    .checkin-box h3 {
        font-size: 1.05rem;
    }
    .btn-claim-checkin {
        padding: 11px;
        font-size: 0.88rem;
    }

    /* Profile Modal on Mobile */
    .profile-card {
        padding: 20px 16px max(24px, env(safe-area-inset-bottom));
    }
}

/* Compact Header for All Mobile Phones (<= 640px) */
@media (max-width: 640px) {
    .brand-name {
        display: none;
    }
    .live-badge {
        display: none;
    }
    .checkin-label {
        display: none;
    }
    .coin-unit {
        display: none;
    }
    .user-name {
        display: none;
    }
    .quota-pill {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 96px;
        font-size: 0.66rem;
        padding: 4px 7px;
    }
    .user-chip {
        padding: 2px 5px;
    }
}

/* Extra Small Phones (iPhone SE, Galaxy A series, <= 380px) */
@media (max-width: 380px) {
    .btn-match span {
        font-size: 0.8rem;
    }
    .btn-hangup,
    .btn-iconic {
        width: 38px;
        height: 38px;
        font-size: 0.92rem;
    }
    .controls-shelf {
        padding: 7px 10px;
        gap: 6px 4px;
    }
    .local-wrapper {
        width: 78px;
        height: 112px;
    }
}
