/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: #f8a2f2; 
    display: flex; 
    justify-content: center; 
    padding: 40px 20px; 
    font-family: 'Finger Paint', cursive; 
    min-height: 100vh;
}

.page-container { 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
    position: relative; 
}

/* --- BRANDING & HEADER --- */
.brand-name { 
    font-size: 1.8rem; 
    color: #ffffff !important; 
    margin: 10px 0; 
}

#follower-count-white { 
    margin-top: -15px; 
    margin-bottom: 35px; 
    font-size: 0.65rem; 
    color: rgba(255, 255, 255, 0.6) !important; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
}

/* --- SOCIAL LINKS --- */
.social-row { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.social-link { 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: inline-block; 
}

.social-link img { 
    width: 26px; 
    height: 26px; 
    filter: brightness(0) invert(1); 
    transition: 0.3s; 
}

.social-link:hover { 
    transform: translateY(-3px) scale(1.1); 
}

.social-link:hover img { 
    filter: brightness(0) invert(1) drop-shadow(0 0 8px #ffffff); 
}

.social-divider { 
    width: 1.5px; 
    height: 20px; 
    background: rgba(255, 255, 255, 0.3); 
}

/* --- AVATAR & LIVE SYSTEM --- */
.avatar-container { 
    position: relative; 
    display: inline-block; 
    margin-bottom: 10px; 
}

.avatar { 
    width: 110px; 
    height: 110px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid rgba(255, 255, 255, 0.5); 
    z-index: 5; 
    transition: 0.2s; 
    cursor: pointer;
}

.avatar:active { transform: scale(0.95); }

.pulse-red { 
    animation: avatar-pulse 0.8s infinite ease-in-out; 
    border: 3px solid #ff4444 !important; 
}

@keyframes avatar-pulse { 
    0% { box-shadow: 0 0 0 0 rgba(255,68,68,0.8); transform: scale(1); } 
    50% { box-shadow: 0 0 0 12px rgba(255,68,68,0); transform: scale(1.02); } 
    100% { box-shadow: 0 0 0 0 rgba(255,68,68,0); transform: scale(1); } 
}

#live-status-container { 
    position: absolute; 
    top: -18px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    z-index: 10; 
    pointer-events: none;
}

.live-badge { 
    background: #ff4444; 
    color: white; 
    padding: 2px 10px; 
    border-radius: 12px; 
    font-size: 0.7rem; 
    font-weight: bold; 
}

.audio-bars { 
    display: flex; 
    gap: 3px; 
    height: 15px; 
    align-items: flex-end; 
    margin-top: 2px; 
}

.bar { 
    width: 3px; 
    background: #ff4444; 
    border-radius: 1px; 
    animation: sound 0.4s infinite ease-in-out; 
}

@keyframes sound { 
    0%, 100% { height: 4px; opacity: 0.5; } 
    50% { height: 15px; opacity: 1; } 
}

/* --- PERFECTLY CENTERED TABS --- */
.content-stack { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    gap: 10px; 
}

.tab-btn { 
    height: 60px; /* Standardized height */
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.22) !important; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.6); 
    border-radius: 18px;
    padding: 0 10px; 
    position: relative;
}

.tab-btn:hover { 
    transform: scale(1.02); 
    background: rgba(255, 255, 255, 0.3) !important; 
    border-color: rgba(255,255,255,0.8);
}

.side-slot { 
    width: 50px; 
    height: 60px; /* Matches tab height for vertical center */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2; 
    flex-shrink: 0;
}

.logo-circle-small { 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.logo-circle-small img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.tab-text { 
    font-size: 1.1rem; 
    flex: 1; 
    text-align: center; 
    color: #fff; 
    font-weight: 600; 
    line-height: 60px; /* Forces vertical centering in the font box */
    height: 60px;
}

/* --- LIVE INDICATOR --- */
.live-indicator { 
    display: none; 
    position: absolute;
    right: 55px; 
    top: 50%;
    transform: translateY(-50%); 
    color: #00ff66 !important; 
    font-weight: 900; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    align-items: center;
}

.tab-btn.is-live .live-indicator { display: flex; }

.green-dot {
    width: 5.5px; 
    height: 5.5px;
    background: #00ff66;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #00ff66, 0 0 15px rgba(0, 255, 102, 0.8);
}

/* --- CLIPS GRID --- */
.grid-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 8px; 
    width: 100%; 
    margin-top: 5px; 
}

.grid-tile { 
    height: 115px; 
    border-radius: 22px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    padding-top: 5px; 
    position: relative; 
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grid-tile:hover { transform: scale(1.02); }

.mega-clip-logo { 
    width: 110px; 
    height: 110px; 
    margin-top: -15px; 
}

.mega-clip-logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.nudge-c4s { transform: translateY(5px); }

/* --- JIGGLE ANIMATION --- */
.live-jiggle { animation: jiggle-snappy 0.5s ease-in-out; }

@keyframes jiggle-snappy { 
    0% { transform: scale(1.02) rotate(0deg); } 
    25% { transform: scale(1.05) rotate(-1.5deg); } 
    50% { transform: scale(1.05) rotate(2deg); } 
    75% { transform: scale(1.05) rotate(-2deg); } 
    100% { transform: scale(1) rotate(0deg); } 
}

/* --- LOCKS --- */
.lock-icon { 
    width: 18px; 
    height: 18px; 
    stroke: #ffffff; 
    stroke-width: 2.5; 
    fill: none; 
    transition: 0.4s; 
}

.unlocked-neon { 
    stroke: #00ff66 !important; 
    filter: drop-shadow(0 0 10px #00ff66); 
}

.grid-lock-adjust { margin-top: -12px; }

/* --- WARNING DROPDOWNS --- */
.warning-dropdown { 
    display: none; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(30px); 
    border-radius: 22px; 
    padding: 18px; 
    border: 2px solid rgba(255, 255, 255, 1); 
    text-align: center; 
    margin-top: 5px; 
    color: #000 !important; 
    z-index: 20;
}

.continue-btn { 
    width: 100%; 
    border: none; 
    background: #000; 
    color: #fff; 
    padding: 12px; 
    border-radius: 12px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
    margin-top: 5px;
}

/* --- SPACERS --- */
.glass-spacer { 
    height: 2px; 
    width: 100%; 
    margin: 10px 0; 
    background: rgba(255, 255, 255, 0.3); 
}