/* ===== ROOT VARIABLES ===== */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.85);
    --cyan: #00e5ff;
    --magenta: #ff00ff;
    --purple: #6b2fd6;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --gradient-btn: linear-gradient(135deg, #00e5ff 0%, #ff00ff 100%);
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.5);
    --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.3);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-top {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 47, 214, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-bottom {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    z-index: 1;
    padding: 10px;
    min-height: 100vh;
}

/* ===== AD CONTAINER ===== */
.ad-container {
    width: 100%;
    min-height: 250px;
    margin: 10px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(30, 30, 50, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ===== GIRLS GRID ===== */
.girls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 0;
}

/* ===== GIRL CARD ===== */
.girl-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: var(--glow-cyan);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.girl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.girl-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.girl-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-btn);
    margin-bottom: 15px;
}

.girl-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
}

.btn-call {
    background: var(--gradient-btn);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 12px;
    padding: 10px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
}

.btn-call:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-magenta);
}

.live-users {
    font-size: 11px;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-users::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== ARTICLE SECTION ===== */
.article-section {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    padding: 25px 20px;
    margin-top: 30px;
    border-radius: 16px 16px 0 0;
}

.article-section h1 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111;
    line-height: 1.3;
}

.article-section h2 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: #222;
}

.article-section p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #444;
}

.article-section ul {
    margin: 10px 0 15px 20px;
}

.article-section li {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 5px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
    color: var(--cyan);
    margin: 0 15px;
    font-size: 13px;
}

/* ===== DETAILS PAGE ===== */
.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: var(--text-white);
    cursor: pointer;
    z-index: 10;
}

.profile-section {
    padding: 60px 20px 30px;
    text-align: center;
}

.profile-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-btn);
    margin: 0 auto 25px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.btn-call-large {
    background: var(--gradient-btn);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 60px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    transition: transform 0.2s ease;
}

.btn-call-large:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 3px;
}

.profile-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    padding: 0 10px;
}

/* ===== VIDEO CALL PAGE ===== */
.videocall-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-dark);
    overflow: hidden;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remote-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.call-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.call-header {
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: auto;
}

.caller-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.call-timer {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 3px;
}

.call-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.btn-end {
    background: #ff3b3b;
    color: white;
}

.btn-mute {
    background: rgba(50, 50, 50, 0.8);
    color: white;
}

.local-video-wrapper {
    position: absolute;
    bottom: 80px;
    right: 15px;
    width: 100px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    background: #111;
    pointer-events: auto;
}

.local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* ===== LOADING ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-text {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}
