* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body {
background-color: #ffe0ec;
height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden;
position: relative;
}
body::before {
content: "";
position: fixed;
top: -70px; left: -70px;
width: calc(100vw + 140px);
height: calc(100vh + 140px);
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='70'><text y='50' font-size='44'>💋</text></svg>");
background-size: 70px 70px;
background-color: #ffe0ec;
animation: kissSlide 16s linear infinite;
will-change: transform;
z-index: -1;
}
@keyframes kissSlide {
    from { transform: translate(0, 0); }
    to { transform: translate(70px, 70px); }
}
.chat-card {
width: 375px; height: 720px; max-height: 90vh; background: white; border-radius: 45px;
display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.2); border: 8px solid white;
position: relative;
animation: cardFadeIn 0.6s ease forwards;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-header {
background: linear-gradient(120deg, #ff0080, #ff5da2, #ff9dcb, #c961d8, #ff5da2, #ff0080);
background-size: 300% 300%;
animation: headerShimmer 6s ease infinite;
padding: 25px 20px 20px 20px; display: flex; align-items: center; gap: 12px; color: white; flex-shrink: 0; z-index: 1001; position: relative;
box-shadow: 0 4px 20px rgba(255, 0, 128, 0.4);
}
@keyframes headerShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#ali-avatar { width: 52px; height: 52px; background: white url('towel-graphic.png') no-repeat center; background-size: 110%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); }
.status-dot { width: 8px; height: 8px; background-color: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; }
.status-row { display: flex; align-items: center; gap: 4px; }
.status { font-size: 12px; opacity: 0.9; }
.chat-messages { flex: 1; padding: 20px 20px 80px 20px; background: #fffcfd; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.unhinged-header {
align-self: center; text-align: center; margin: 15px 0; font-weight: 800; font-size: 11px;
text-transform: uppercase; letter-spacing: 2px; padding: 10px 25px; border-radius: 50px;
background: linear-gradient(90deg, #ff00bd, #ff5da2); color: white; border: 2px solid #00f2ff;
box-shadow: 0 0 15px rgba(255, 0, 189, 0.8);
animation: neonPulse 1.5s infinite alternate, pillPopIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pillPopIn {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
@keyframes neonPulse { from { box-shadow: 0 0 10px rgba(255, 0, 189, 0.5); } to { box-shadow: 0 0 25px rgba(255, 0, 189, 1); } }
.message { max-width: 85%; padding: 12px 16px; border-radius: 20px; font-size: 15px; transition: all 0.3s ease; animation: messageGlide 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes messageGlide { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
.exit-animation { opacity: 0 !important; transform: translateX(110%) !important; transition: all 0.5s ease !important; }
.ali-message { align-self: flex-start; background: #f0f0f0; color: #1a1a1a; border-bottom-left-radius: 4px; }
.typing-dots { display: flex; align-items: center; gap: 5px; padding: 2px 4px; }
.typing-dots span { width: 7px; height: 7px; background: #aaa; border-radius: 50%; animation: dotBounce 1.2s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes dotBounce {
    0%, 57%, 100% { transform: translateY(0); }
    28% { transform: translateY(-6px); }
}
.user-message { align-self: flex-end; background: #ff5da2; color: white; border-bottom-right-radius: 4px; }
.selection-pill { align-self: flex-end; background: #00d68f; color: white; padding: 8px 20px; border-radius: 25px; font-weight: 600; margin: 5px 0; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }

/* PINK CARDS */
.video-card {
    background: #fff0f6;
    border: 2px solid #ff5da2;
    border-radius: 24px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 93, 162, 0.2);
    min-width: 0;
}

.video-card.selected {
    border-color: #00d68f;
    background: #f0fff8;
    box-shadow: 0 5px 20px rgba(0, 214, 143, 0.35);
    cursor: default;
}
.video-card.dimmed {
    opacity: 0.38;
    filter: grayscale(80%);
    pointer-events: none;
    cursor: default;
}

/* ONE LINE HEADERS */
.video-card p {
    font-size: 13px; /* Slightly smaller text */
    margin-top: 8px;
    font-weight: 700;
    color: #333;
    white-space: nowrap; /* Forces one line */
    overflow: hidden; /* Standard truncation logic */
    text-overflow: ellipsis; /*Standard truncation logic */
}

.video-preview-thumb { width: 100%; aspect-ratio: 9/13; background: #000; border-radius: 16px; overflow: hidden; }
.video-preview-thumb video { width: 100%; height: 100%; object-fit: cover; }
.delivery-form { background: white; border: 1px solid #eee; border-radius: 25px; padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.delivery-form input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #eee; outline: none; font-size: 15px; transition: border 0.3s; }
.delivery-form input:focus { border-color: #ff5da2; }
.country-lock { display: flex; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid #eee; background: #f5f5f5; font-size: 15px; font-weight: 600; color: #555; white-space: nowrap; flex-shrink: 0; user-select: none; }
.country-dropdown-wrap { position: relative; flex-shrink: 0; }
.country-toggle { padding: 12px 14px; border-radius: 12px; border: 2px solid #ff5da2; background: #fff0f6; font-size: 15px; font-weight: 600; color: #ff5da2; white-space: nowrap; cursor: pointer; transition: background 0.15s, color 0.15s; }
.country-toggle:active { background: #ff5da2; color: white; }
.country-dropdown { position: absolute; top: calc(100% + 6px); left: 0; background: white; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); z-index: 999; overflow: hidden; min-width: 120px; transform-origin: top left; transition: opacity 0.2s ease, transform 0.2s ease; opacity: 1; transform: scale(1); pointer-events: all; }
.country-dropdown.hidden { opacity: 0; transform: scale(0.9) translateY(-6px); pointer-events: none; }
.country-dropdown button { display: block; width: 100%; padding: 12px 18px; background: none; border: none; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 15px; font-weight: 600; color: #1a1a1a; cursor: pointer; transition: background 0.15s, color 0.15s; }
.country-dropdown button:last-child { border-bottom: none; }
.country-dropdown button:hover { background: #fff0f6; color: #ff5da2; }
.country-dropdown button:disabled { color: #bbb; cursor: default; font-style: italic; }
.country-dropdown button:disabled:hover { background: none; color: #bbb; }
.confirm-delivery-btn { background: #ff5da2; color: white; border: none; padding: 14px; border-radius: 14px; font-weight: 700; cursor: pointer; transition: background 0.4s ease; }
.confirm-delivery-btn.locked { background: #00d68f !important; pointer-events: none; }
.payment-card {
position: relative; width: 100%; background: white; border-radius: 25px;
padding: 20px; display: flex; flex-direction: column; align-items: center;
text-align: center; margin: 10px 0 35px 0; overflow: hidden; z-index: 5; flex-shrink: 0;
}
.payment-card::before {
content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
background: conic-gradient(from 0deg, #ff00bd, #00f2ff, transparent 50%);
animation: rotate-iridescent 2.5s linear infinite; z-index: 1;
}
.payment-card::after {
content: ""; position: absolute; inset: 3px; background: white;
border-radius: 22px; z-index: 2;
}
.price-tag { font-size: 1.6rem; font-weight: 800; color: #1a1a1a; position: relative; z-index: 3; margin-bottom: 8px; }
.pay-now-btn { width: 100%; background: #1a1a1a; color: white; border: none; padding: 14px; border-radius: 18px; font-weight: 600; cursor: pointer; position: relative; z-index: 3; }
.chat-input-area { padding: 15px 15px 35px 15px; display: flex; align-items: flex-end; gap: 10px; background: white; border-top: 1px solid #f0f0f0; z-index: 10; flex-shrink: 0; }
#message-input { flex: 1; padding: 12px 18px; border-radius: 22px; border: 1px solid #efefef; background: #f9f9f9; outline: none; font-size: 14px; resize: none; }
#send-button { background: #ff5da2; color: white; border: none; padding: 10px 18px; border-radius: 20px; font-weight: 600; cursor: pointer; height: 40px; }
.input-degraded { opacity: 0.35 !important; cursor: not-allowed !important; transition: opacity 0.4s ease; }

/* THE GLOWING ORB STYLE - FIXED OVERFLOW */
.sparkle-orb { 
    position: relative; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; /* This keeps the square edges hidden */
    background: white; 
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 93, 162, 0.3);
    animation: orbInvite 2s infinite ease-in-out;
}
.sparkle-orb::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, #ffb3d9, #b3ffff, #b3d9ff, #d9b3ff, #ff80c0, #ffb3d9); animation: rotate-iridescent 2s linear infinite; z-index: 1; }
#orb-icon { position: relative; z-index: 2; font-size: 18px; animation: sparkleIcon 2s ease-in-out infinite; display: inline-block; }

@keyframes rotate-iridescent { to { transform: rotate(360deg); } }
@keyframes orbInvite {
    0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(255, 93, 162, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(255, 0, 189, 0.4); }
}
@keyframes sparkleIcon {
    0%, 100% { transform: scale(1) rotate(-8deg); }
    25% { transform: scale(1.25) rotate(0deg); }
    50% { transform: scale(1) rotate(8deg); }
    75% { transform: scale(1.2) rotate(0deg); }
}

/* BURGER MENU */
.menu-btn { margin-left: auto; background: rgba(255,255,255,0.2); border: none; color: white; font-size: 20px; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.15s, background 0.15s; }
.menu-btn:active { transform: scale(0.85); background: rgba(255,255,255,0.4); }
.menu-dropdown { position: absolute; top: 75px; right: 15px; background: white; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); z-index: 999; overflow: hidden; min-width: 180px; transform-origin: top right; transition: opacity 0.2s ease, transform 0.2s ease; opacity: 1; transform: scale(1); pointer-events: all; }
.menu-dropdown.hidden { opacity: 0; transform: scale(0.9) translateY(-6px); pointer-events: none; }
.menu-dropdown button { display: block; width: 100%; padding: 14px 20px; background: none; border: none; text-align: left; font-size: 15px; font-weight: 600; color: #1a1a1a; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: background 0.15s, color 0.15s; }
.menu-dropdown button:last-child { border-bottom: none; }
.menu-dropdown button:hover { background: #fff0f6; color: #ff5da2; }

/* SUCCESS SCREEN */
#success-overlay { position: absolute; inset: 0; background: rgba(255, 240, 246, 0.92); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; border-radius: 30px; animation: successFadeIn 0.5s ease; }
@keyframes successFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
#success-overlay.success-swipe-out {
    animation: successSwipeOut 0.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
@keyframes successSwipeOut {
    0%   { transform: translateY(0);    opacity: 1; }
    100% { transform: translateY(-105%); opacity: 0; }
}
.success-card { background: white; border-radius: 28px; padding: 40px 28px; text-align: center; box-shadow: 0 8px 40px rgba(255, 93, 162, 0.2); max-width: 280px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.success-emoji { font-size: 56px; animation: successBounce 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.2s both; }
@keyframes successBounce {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-card h2 { font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 4px 0 0 0; }
.success-card p { font-size: 14px; color: #888; line-height: 1.6; margin: 0; }
.success-btn { margin-top: 8px; background: #ff5da2; color: white; border: none; padding: 14px 28px; border-radius: 20px; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; }

/* OFFLINE MODE */
#offline-overlay { position: absolute; inset: 0; background: rgba(255, 240, 246, 0.85); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; border-radius: 30px; }
.offline-card { background: white; border-radius: 24px; padding: 36px 28px; text-align: center; box-shadow: 0 8px 40px rgba(255, 93, 162, 0.15); max-width: 280px; }
.offline-emoji { font-size: 52px; margin-bottom: 12px; }
.offline-card h2 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
.offline-card p { font-size: 14px; color: #888; line-height: 1.5; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; transition: opacity 0.25s ease; opacity: 1; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-box { background: white; border-radius: 28px; width: 100%; max-width: 360px; max-height: 80vh; overflow: hidden; position: relative; transform: scale(1); transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1); }
.modal-box-inner { overflow-y: auto; max-height: 80vh; padding: 30px 25px; }
.modal-overlay.hidden .modal-box { transform: scale(0.92); }
.modal-close { position: absolute; top: 16px; right: 16px; background: #f0f0f0; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-title { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 16px; }
.modal-body { font-size: 14px; color: #555; line-height: 1.7; }
.modal-body h3 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 14px 0 4px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #eee; outline: none; font-size: 15px; font-family: 'Inter', sans-serif; transition: border 0.3s; resize: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #ff5da2; }
.contact-form textarea { min-height: 100px; }
.contact-submit-btn { background: #ff5da2; color: white; border: none; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 4px; }
.contact-submit-btn:disabled { background: #ccc; cursor: default; }
#modal-content { transition: opacity 0.2s ease; }
#modal-content.fading { opacity: 0; }

.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: black; z-index: 1001; display: none; flex-direction: column; opacity: 0; transition: opacity 0.3s ease; }
.video-overlay.show { opacity: 1; }
.video-container { flex: 1; width: 100%; position: relative; overflow: hidden; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.preview-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 11px;
    border-radius: 20px;
    z-index: 1003;
    pointer-events: none;
}
.script-drawer { position: absolute; bottom: 0; left: 0; width: 100%; height: 80%; background: rgba(10, 10, 10, 0.75); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: 30px 30px 0 0; z-index: 1002; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }
.drawer-handle-area { width: 100%; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: grab; flex-shrink: 0; }
.drawer-handle { width: 40px; height: 5px; background: rgba(255,255,255,0.5); border-radius: 10px; }
.script-content-wrapper { padding: 0 28px 60px 28px; overflow-y: auto; height: calc(100% - 90px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.script-text { color: rgba(255,255,255,0.92); font-size: 16px; line-height: 1.75; }
.preview-controls { width: 100%; display: flex; gap: 8px; background: #000; padding: 10px 15px 35px 15px; }
.use-vid-btn { flex: 2; background: #ff5da2; color: white; border: none; padding: 18px; border-radius: 18px; font-weight: 700; font-size: 16px; cursor: pointer; }
.close-vid-btn { flex: 1; background: #222; color: white; border: none; padding: 18px; border-radius: 18px; font-weight: 600; font-size: 16px; cursor: pointer; }
.card-expansion-container { position: absolute; display: none; background: white; border-radius: 24px; overflow: hidden; z-index: 1000; transition: all 0.5s ease; }
.expanding { border-radius: 0 !important; width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; }
.drawer-label { color: white; margin-top: 16px; font-size: 14px; }

/* PUSH TO PLAY CARD */
.push-to-play-card {
    position: relative;
    align-self: center;
    width: 88%;
    background: white;
    border-radius: 25px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 6px 0 4px 0;
    overflow: hidden;
    z-index: 5;
    flex-shrink: 0;
    animation: pushCardFadeIn 0.7s ease forwards;
}
@keyframes pushCardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes swipeRight {
    0%   { transform: translateX(0);    opacity: 1; max-height: 300px; padding: 24px 20px; margin: 6px 0 4px 0; }
    45%  { transform: translateX(115%); opacity: 0; max-height: 300px; padding: 24px 20px; margin: 6px 0 4px 0; }
    80%  { transform: translateX(115%); opacity: 0; max-height: 0;     padding: 0;         margin: 0; }
    100% { transform: translateX(115%); opacity: 0; max-height: 0;     padding: 0;         margin: 0; }
}
.push-to-play-card.swiping-away {
    animation: swipeRight 0.6s ease forwards;
    pointer-events: none;
    overflow: hidden;
}
.push-to-play-card::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, #ff00bd, #00f2ff, transparent 50%);
    animation: rotate-iridescent 2.5s linear infinite;
    z-index: 1;
}
.push-to-play-card::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 0, 189, 0.09), transparent 60%),
                radial-gradient(ellipse at 75% 65%, rgba(0, 242, 255, 0.08), transparent 55%),
                white;
    border-radius: 22px;
    z-index: 2;
    animation: cardGlowShift 4s ease-in-out infinite alternate;
}
@keyframes cardGlowShift {
    from { background: radial-gradient(ellipse at 30% 40%, rgba(255, 0, 189, 0.09), transparent 60%), radial-gradient(ellipse at 75% 65%, rgba(0, 242, 255, 0.08), transparent 55%), white; }
    to   { background: radial-gradient(ellipse at 70% 55%, rgba(255, 0, 189, 0.11), transparent 60%), radial-gradient(ellipse at 25% 35%, rgba(0, 242, 255, 0.09), transparent 55%), white; }
}
.push-to-play-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.push-to-play-label {
    font-size: 12px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}
.push-to-play-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff00bd, #ff5da2);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 189, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.3px;
}
.push-to-play-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(255, 0, 189, 0.25);
}
.btn-sparkle {
    display: inline-block;
    animation: sparkleFloat 2.2s ease-in-out infinite;
    transform-origin: center;
}
@keyframes sparkleFloat {
    0%   { transform: translateY(0)    scale(1);    opacity: 1; }
    20%  { transform: translateY(-4px) scale(1.22); opacity: 0.75; }
    40%  { transform: translateY(-2px) scale(1.05); opacity: 1; }
    60%  { transform: translateY(-5px) scale(1.28); opacity: 0.8; }
    80%  { transform: translateY(-1px) scale(1.1);  opacity: 0.9; }
    100% { transform: translateY(0)    scale(1);    opacity: 1; }
}