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

/* ============================================================
   STANDARD.CSS — PLATINUM SILVER (FLAT EDITION)
   ============================================================ */

:root {
    --std-silver: #a1a1a1;
    --std-bg: #000000;
    --border: rgba(255, 255, 255, 0.1);
}

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

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

/* ⚪ PARTICLES SILVER */
.std-particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.std-particle { position: absolute; background: #fff; border-radius: 50%; opacity: 0.15; animation: stdFloat var(--dur) linear infinite; animation-delay: var(--delay); }
@keyframes stdFloat { from { transform: translateY(110vh); opacity: 0.15; } 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: #fff; text-decoration: none; font-size: 0.65rem; font-weight: 900; border: 1px solid #fff; 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: #fff; }

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

.tab-content { display: none; animation: stdIn 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 stdIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* ⚪ GALLERY (Professional Gapless Mosaic Silver) */
.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 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: #fff; 
    font-size: 0.5rem; font-weight: 900; 
    padding: 4px 10px; border-radius: 4px; 
    border: 0.5px solid #fff;
    z-index: 10; 
}

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

.std-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 stdZoom { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ⚪ VIDEOS STANDARD (Cinematic Silver) */
.tab-content#videos {
    position: fixed;
    top: 60px; 
    bottom: 0; /* Fill to bottom to ensure scroll reach */
    left: 0; 
    right: 0;
    background: #000;
    z-index: 3000;
    overflow-y: auto;
    padding-bottom: 120px; /* Room for tabs + margin */
    -webkit-overflow-scrolling: touch;
}

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

.std-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-std { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    width: 60px; height: 60px; 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: #fff; font-size: 1.5rem; 
    border: 1px solid #fff;
    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; }

/* ⚪ STANDARD CHAT (Fixed & Professional) */
.tab-content#chat { 
    position: fixed; 
    top: 60px; 
    bottom: 75px; 
    left: 0; 
    right: 0; 
    background: #000; 
    z-index: 3000;
    overflow: hidden;
}

.std-chat-interface { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    width: 100%; 
    background: #000;
}
.std-chat-header { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    flex-shrink: 0; 
    padding: 12px 15px; 
    border-bottom: 0.5px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #000;
}
.std-user { display: flex; align-items: center; gap: 12px; }
.std-avatar { position: relative; width: 45px; height: 45px; }
.std-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.online-pulse { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background: #30d158; border: 2.5px solid #000; border-radius: 50%; }

.std-name { font-size: 0.95rem; font-weight: 900; color: #fff; }
.std-status { font-size: 0.6rem; color: #888; font-weight: 700; }

.std-chat-body { 
    flex: 1; 
    overflow-y: auto; 
    padding: 20px 15px; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 15px !important; 
    background-color: #0b141a;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-blend-mode: overlay;
}
.std-msg { 
    align-self: flex-start !important; 
    background: #202c33 !important; 
    color: #e9edef !important; 
    padding: 8px 12px 18px 12px !important; 
    border-radius: 0 8px 8px 8px !important; 
    font-size: 0.92rem !important; 
    max-width: 85% !important; 
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.std-msg-me { 
    align-self: flex-end !important; 
    background: #005c4b !important; 
    color: #e9edef !important; 
    padding: 8px 12px 18px 12px !important; 
    border-radius: 8px 0 8px 8px !important; 
    font-size: 0.92rem !important; 
    max-width: 85% !important; 
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.std-input-bar { padding: 15px; background: rgba(0,0,0,0.9); border-top: 0.5px solid var(--border); display: flex; align-items: center; gap: 12px; }
.std-input-bar input { flex: 1; background: #0a0a0a; border: 0.5px solid var(--border); padding: 14px 20px; border-radius: 30px; color: #fff; font-size: 1rem; }
.std-send { background: #fff; border: none; width: 45px; height: 45px; border-radius: 50%; color: #000; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
    /* Mobile Chat Fullscreen Experience */
    body.chat-active {
        overflow: hidden;
    }
    
    body.chat-active .content-nav,
    body.chat-active .tabs-container {
        display: none !important;
    }
    
    .tab-content#chat {
        top: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
        z-index: 5000;
    }
    
    .std-chat-header {
        padding-top: env(safe-area-inset-top, 20px) !important;
        height: auto !important;
        min-height: 70px;
        background: #0a0a0a !important;
    }

    .std-input-bar { 
        padding-bottom: calc(env(safe-area-inset-bottom, 10px) + 15px) !important; 
    }
    
    .std-name { font-size: 0.85rem !important; }
    .std-status { font-size: 0.5rem !important; }
}
