@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Poppins:wght@300;400;600&display=swap');

:root {
    /* DEFAULT DARK THEME */
    --primary: #64003C;
    --secondary: #0F2C5C;
    --dark-bg: #05080f;
    --card-bg: #161b22;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --glass: rgba(22, 27, 34, 0.95);
    --gradient: linear-gradient(135deg, #64003C 0%, #0F2C5C 100%);
    --input-bg: rgba(255,255,255,0.05);
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
    --dark-bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --glass: rgba(255, 255, 255, 0.95);
    --input-bg: #e5e7eb;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    background: var(--dark-bg); 
    color: var(--text-main); 
    font-family: 'Poppins', sans-serif; 
    margin: 0; padding-bottom: 90px; 
    min-height: 100vh; overflow-x: hidden; transition: background 0.3s;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; margin: 0; }

/* BRANDING */
.brand-header { text-align: center; padding: 20px 0 10px; z-index: 10; position: relative; }
.brand-title { font-weight: 800; font-size: 32px; background: linear-gradient(to right, #E91E63, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }

/* FORMS */
.form-control {
    width: 100%; padding: 15px; 
    background: var(--input-bg);
    border: 1px solid rgba(128,128,128,0.2);
    color: var(--text-main);
    border-radius: 12px; font-size: 15px; margin-bottom: 15px; display: block;
}
.btn {
    width: 100%; padding: 16px; 
    background: var(--gradient); border: none; border-radius: 12px;
    color: white; font-weight: 700; text-transform: uppercase; cursor: pointer;
}

/* VERIFICATION & VIDEO */
.verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #3b82f6; color: white; width: 18px; height: 18px;
    border-radius: 50%; font-size: 10px; margin-left: 5px;
}
.profile-video { width: 100%; height: 100%; object-fit: cover; }

/* CARD STACK */
.card-container { position: relative; width: 90%; max-width: 450px; height: 60vh; margin: 10px auto; z-index: 5; }
.card { position: absolute; width: 100%; height: 100%; background: var(--card-bg); border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden; transform-origin: 50% 100%; }
.card-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.card-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 80px 20px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, transparent);
    color: white; z-index: 4; cursor: pointer;
}

/* MATCH BUTTONS */
.actions { display: flex; justify-content: center; gap: 20px; margin-top: 10px; position: relative; z-index: 100; }
.action-btn { width: 64px; height: 64px; border-radius: 50%; border: none; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: transform 0.2s; }
.action-btn:active { transform: scale(0.9); }
.pass { background: #1f1f1f; color: #ef4444; border: 1px solid #333; }
.like { background: var(--gradient); color: white; }

.action-row-secondary {
    display: flex; justify-content: center; gap: 40px; margin-bottom: 10px; position: relative; z-index: 100;
}
.small-btn {
    width: 50px; height: 50px; border-radius: 50%; border: none;
    font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.2s;
    background: #2a2a2a; color: white;
}
.btn-rewind { color: #f59e0b; border: 1px solid #f59e0b; }
.btn-super { color: #3b82f6; border: 1px solid #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }

/* NAV */
.nav-bottom {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 400px; height: 70px;
    background: var(--glass); backdrop-filter: blur(10px);
    border: 1px solid rgba(128,128,128,0.2); border-radius: 35px;
    display: flex; justify-content: space-evenly; align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); z-index: 100;
}
.nav-item { color: #888; padding: 10px; font-size: 20px; text-decoration: none; }
.nav-item.active { color: var(--primary); }

/* CHAT HEADER & LAYOUT */
.chat-header {
    flex: 0 0 65px;
    background: rgba(22, 27, 34, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; }
.back-btn { text-decoration: none; color: white; font-size: 24px; }
.header-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.2); }
.header-info { display: flex; flex-direction: column; justify-content: center; }
.header-name { font-weight: 700; font-size: 16px; color: white; line-height: 1.2; }
.header-status { font-size: 11px; color: #22c55e; }
.block-icon { text-decoration: none; font-size: 20px; opacity: 0.7; transition: 0.2s; }
.block-icon:hover { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 5px red); }

/* CHAT BUBBLES */
.msg-secret { background: linear-gradient(135deg, #333, #111); border: 1px dashed #666; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.msg-game { background: linear-gradient(135deg, #7c3aed, #4c1d95); color: white; border-bottom-left-radius: 4px; font-weight: bold; text-align: center; border: 1px solid rgba(255,255,255,0.2); }
.blur-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: black; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.countdown { position: absolute; top: 20px; right: 20px; font-size: 30px; font-weight: bold; color: red; }

/* PREMIUM OVERLAY */
.premium-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.premium-overlay.show-paywall { display: flex !important; }
.premium-card { background: linear-gradient(135deg, #161b22 0%, #0F2C5C 100%); border: 1px solid rgba(255,255,255,0.2); padding: 30px; border-radius: 30px; text-align: center; max-width: 350px; width: 100%; }
.premium-btn { background: linear-gradient(90deg, #E91E63, #64003C); color: white; border: none; padding: 15px; border-radius: 50px; width: 100%; margin-top: 20px; cursor: pointer; }
.close-premium { margin-top: 15px; color: #888; text-decoration: underline; cursor: pointer; }

/* SETTINGS TOGGLES */
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--input-bg); border-radius: 12px; margin-bottom: 10px; }
.danger-zone { margin-top: 30px; border: 1px solid #ef4444; padding: 20px; border-radius: 15px; }