@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&family=Outfit:wght@300;600;900&display=swap');

/* ============================================================
   PREMIUM.CSS — CHAMPAGNE GOLD ELITE (FLAT EDITION)
   ============================================================ */

:root {
    --prm-gold: #d4af37;
    --prm-gold-soft: rgba(212, 175, 55, 0.2);
    --prm-bg: #000000;
    --border: rgba(212, 175, 55, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: 'Inter', sans-serif; }

body.content-body { background-color: var(--prm-bg); color: #fff; overflow-x: hidden; }

/* 🟡 PARTICLES GOLD */
.prm-particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.prm-particle { position: absolute; background: var(--prm-gold); border-radius: 50%; opacity: 0.2; animation: prmFloat var(--dur) linear infinite; animation-delay: var(--delay); }
@keyframes prmFloat { from { transform: translateY(110vh); opacity: 0.2; } to { transform: translateY(-10vh); opacity: 0; } }

/* 🟡 NAV BARS */
.content-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; background: rgba(0,0,0,0.95); backdrop-filter: blur(25px);
    z-index: 4000; border-bottom: 0.5px solid var(--border);
}

.back-link { color: var(--prm-gold); text-decoration: none; font-size: 0.65rem; font-weight: 900; border: 1px solid var(--prm-gold); padding: 8px 12px; border-radius: 100px; }
.tier-indicator { font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 900; color: #fff; letter-spacing: 2px; }

/* 🟡 BOTTOM TABS (Flat Style) */
.tabs-container {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 75px;
    display: flex; justify-content: space-around; align-items: center;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(30px);
    z-index: 4000; border-top: 0.5px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-btn { flex: 1; height: 100%; background: none; border: none; color: #444; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.55rem; font-weight: 700; cursor: pointer; }
.tab-btn i { font-size: 1.5rem; }
.tab-btn.active { color: #fff; }
.tab-btn.active i { color: var(--prm-gold); } /* Sin sombras */

/* 🟡 CONTENT WRAPPER */
.content-wrapper { padding-top: 60px; padding-bottom: 75px; min-height: 100vh; }

.tab-content { display: none; animation: prmIn 0.4s cubic-bezier(0.2, 0, 0.2, 1); height: 100%; }
.tab-content.active { display: block; }
.tab-content#chat.active { display: flex; flex-direction: column; }

@keyframes prmIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* 🟡 GALLERY (Professional Gapless Mosaic Gold) */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 200px;
    gap: 2px; 
    padding: 0;
    background: #000;
}

.gallery-item { 
    position: relative; 
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 2; } 
.gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(7) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(8) { grid-column: span 1; grid-row: span 1; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.item-badge { 
    position: absolute; top: 10px; right: 10px; 
    background: rgba(0, 0, 0, 0.6); 
    color: var(--prm-gold); 
    font-size: 0.5rem; font-weight: 900; 
    padding: 4px 10px; border-radius: 4px; 
    border: 0.5px solid var(--prm-gold);
    z-index: 10; 
}

/* 🟡 LIGHTBOX (Facebook Style Gold) */
.prm-modal {
    position: fixed; inset: 0;
    background: #000000;
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    animation: prmZoom 0.2s ease;
}

.prm-modal.active { display: flex; }

.modal-close {
    position: absolute; top: 40px; right: 30px;
    color: #fff; font-size: 2.5rem; font-weight: 300;
    cursor: pointer; z-index: 10001;
    opacity: 0.8;
}

.modal-img {
    width: 100%; height: 100%;
    object-fit: contain;
}

@keyframes prmZoom { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* 🟡 VIDEOS PREMIUM (Cinematic Gold) */
.tab-content#videos {
    position: fixed;
    top: 60px; 
    bottom: 0; /* Fill to bottom */
    left: 0; 
    right: 0;
    background: #000;
    z-index: 3000;
    overflow-y: auto;
    padding-bottom: 120px; /* Room for tabs */
    -webkit-overflow-scrolling: touch;
}

.prm-video-list { 
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.prm-v-card { 
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 0.5px solid var(--border);
}

.v-preview { width: 100%; height: 100%; position: relative; }
.v-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.play-btn-prm { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    width: 60px; height: 60px; 
    background: rgba(197, 160, 89, 0.2); 
    backdrop-filter: blur(10px); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--prm-gold); font-size: 1.5rem; 
    border: 1px solid var(--prm-gold);
    z-index: 10;
}

.v-details { 
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 5;
}

.v-details h3 { font-size: 0.9rem; color: #fff; font-weight: 900; margin: 0; letter-spacing: 1px; font-family: 'Outfit', sans-serif; }

/* 🟡 LIVE PREMIUM */
.tab-content#live {
    position: fixed;
    top: 60px; 
    bottom: 0;
    left: 0; 
    right: 0;
    background: #000;
    z-index: 3000;
    overflow-y: auto;
    padding: 15px 15px 120px 15px;
    -webkit-overflow-scrolling: touch;
}

.live-status-bar { display: flex; justify-content: space-between; margin-bottom: 15px; }
.live-tag { background: #ff3b30; color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 0.6rem; font-weight: 900; }
.live-countdown { color: #fff; font-size: 0.7rem; font-weight: 900; }

.live-preview-box {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    aspect-ratio: 1/1; /* Más compacto para teléfono */
    max-height: 400px;
    border: 0.5px solid var(--border);
    background: #050505;
}

.live-preview-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }

.live-overlay-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; text-align: center;
}

.live-avatar { width: 80px; height: 80px; margin-bottom: 20px; border: 2px solid var(--prm-gold); border-radius: 50%; padding: 3px; }
.live-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.remind-btn {
    background: var(--prm-gold); color: #000; border: none;
    padding: 18px 40px; border-radius: 100px; 
    font-weight: 900; font-size: 0.85rem;
    margin-top: 20px;
}

/* 🟡 CHAT — Controlado por chat-premium.css */
.tab-content#chat {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    overflow: hidden;
    padding: 0 !important;
}

.tab-content#chat .prm-chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
/* 🟡 PERSONAL SECTION (Responsive & Gold Elite) */
.prm-personal-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    padding-bottom: 120px;
}

.prm-personal-box {
    text-align: center;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.prm-personal-box:active { transform: scale(0.98); }

.prm-personal-box i { 
    font-size: 3rem; 
    color: var(--prm-gold); 
    margin-bottom: 20px; 
    display: block;
}

.prm-personal-box h3 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 1.4rem; 
    font-weight: 900;
    margin-bottom: 12px; 
    letter-spacing: 1px;
}

.prm-personal-box p { 
    font-size: 0.9rem; 
    color: #888; 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.request-btn { 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 16px 40px; 
    border-radius: 100px; 
    font-weight: 900; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    width: 100%;
    max-width: 250px;
    cursor: pointer;
}

.donation-box {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.1);
}

@media (max-width: 768px) {
    .prm-personal-box { padding: 35px 20px; }
}
/* 🟡 LIVE SECTION (Clean & Professional Gold) */
.live-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.live-tag { 
    color: var(--prm-gold); 
    font-size: 0.8rem; 
    font-weight: 900; 
    letter-spacing: 1px;
}

.live-countdown { 
    color: #888; 
    font-size: 0.7rem; 
    font-weight: 700;
}

.live-preview-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    margin: 0 10px;
}

.live-preview-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6;
}

.live-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.live-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--prm-gold);
    margin-bottom: 10px;
    overflow: hidden;
}

.live-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.live-description {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 15px;
    max-width: 250px;
}

.remind-btn {
    background: var(--prm-gold);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
}
