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

:root { --pink: #e1306c; --black: #000000; --gold: #ffd700; }

body { background: #fff; font-family: 'Inter', sans-serif; margin: 0; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
.mesh-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(at 0% 0%, rgba(225,48,108,0.1) 0, transparent 50%), radial-gradient(at 100% 100%, rgba(225,48,108,0.05) 0, transparent 50%); z-index: -1; }

.db-header { padding: 50px 5% 15px; text-align: center; }
.live-tag { font-size: 0.55rem; font-weight: 900; color: var(--pink); letter-spacing: 2px; border: 1px solid var(--pink); display: inline-block; padding: 2px 8px; border-radius: 4px; }
h1 { font-size: 2.8rem; font-weight: 900; margin: 5px 0 15px; letter-spacing: -2px; }

/* THE DIGITAL / LIVE TOGGLE */
.mode-toggle-container { display: flex; align-items: center; justify-content: center; gap: 10px; background: #f0f0f0; padding: 8px 15px; border-radius: 50px; width: fit-content; margin: 0 auto; border: 2px solid #000; }
.mode-label { font-size: 0.65rem; font-weight: 900; color: #888; transition: 0.3s; }
.mode-label.active { color: #000; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--pink); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--gold); }
input:checked + .slider:before { transform: translateX(20px); }

/* HUD */
.search-hud { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 12px 15px; border-bottom: 2px solid #000; }
.input-group { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-bottom: 12px; }
input { background: #f5f5f5; border: 2px solid #000; padding: 12px; font-weight: 900; text-transform: uppercase; font-size: 0.85rem; border-radius: 4px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { flex: 0 0 auto; background: #000; color: #fff; border: none; padding: 10px 18px; font-weight: 900; font-size: 0.65rem; text-transform: uppercase; border-radius: 4px; }
.filter-btn.active { background: var(--pink); }

/* 3D CARD GRID */
.talent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px 10px 20px; perspective: 1000px; }
.creator-card { background: transparent; height: 280px; position: relative; cursor: pointer; }
.card-flipper { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.talent-grid.event-mode .card-flipper { transform: rotateY(180deg); }

/* FRONT & BACK STYLES */
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px; padding: 15px; display: flex; flex-direction: column; align-items: center; text-align: center; background: #000; box-sizing: border-box; }
.card-back { transform: rotateY(180deg); background: #111; border: 2px solid var(--gold); }
.vip-header { background: var(--gold); color: #000; font-size: 0.6rem; font-weight: 900; padding: 3px 15px; border-radius: 0 0 10px 10px; position: absolute; top: 0; letter-spacing: 2px; }

/* CARD CONTENTS */
.trending-badge { position: absolute; top: 0; left: 0; background: var(--gold); color: #000; font-size: 0.5rem; font-weight: 900; padding: 4px 8px; z-index: 2; border-bottom-right-radius: 8px; }
.avatar-box { position: relative; width: 65px; height: 65px; margin-bottom: 8px; margin-top: 10px; }
.avatar { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--pink); object-fit: cover; }
.card-back .avatar { border-color: var(--gold); }
.verified-seal { position: absolute; top: 0; right: -5px; background: var(--pink); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; line-height: 18px; font-weight: 900; border: 2px solid #000; }

h3 { font-size: 0.95rem; margin: 0; font-weight: 900; text-transform: uppercase; color: #fff; }
.handle { font-size: 0.65rem; color: var(--pink); font-weight: 800; display: block; margin-bottom: 5px; }
.cat-badge { background: #fff; color: #000; padding: 2px 6px; font-size: 0.45rem; font-weight: 900; border-radius: 2px; margin-bottom: 5px;}
.metrics { margin-top: 5px; display: flex; flex-direction: column; }
.val { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.lab { font-size: 0.5rem; color: #888; font-weight: 900; letter-spacing: 1px; margin-top: 2px;}
.event-metrics { margin-top: 10px; }

/* ADD TO BRIEF BUTTON */
.add-brief-btn { width: 100%; background: #fff; color: #000; border: none; padding: 10px; font-weight: 900; font-size: 0.65rem; margin-top: auto; border-radius: 4px; transition: 0.2s; }
.add-brief-btn.selected { background: var(--pink); color: #fff; }
.add-brief-btn.gold-btn { background: #333; color: #fff; }
.add-brief-btn.gold-btn.selected { background: var(--gold); color: #000; }

/* FLOATING BRIEFCASE BAR */
.briefcase-bar { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: linear-gradient(90deg, #000, #222); border: 2px solid var(--pink); padding: 12px 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2000; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 30px rgba(225,48,108,0.4); box-sizing: border-box;}
.briefcase-bar.visible { bottom: 85px; } /* Appears just above standard nav */
.brief-text { color: #fff; font-weight: 900; font-size: 0.8rem; letter-spacing: 1px; }
.brief-btn { background: var(--pink); color: #fff; border: none; padding: 8px 15px; font-weight: 900; border-radius: 4px; font-size: 0.7rem; }

/* STANDARD UI Elements */
.help-section { padding: 10px 15px 40px; }
.help-card { background: var(--pink); color: #fff; padding: 30px 20px; border-radius: 12px; text-align: center; }
.help-btn { display: inline-block; background: #000; color: #fff; padding: 14px 25px; font-weight: 900; border-radius: 6px; font-size: 0.8rem; margin-top:10px; text-decoration: none;}

/* THE MODAL CONTAINER */
.modal { 
    display: none; /* THIS KEEPS IT HIDDEN BY DEFAULT */
    position: fixed; /* STICKY TO THE SCREEN */
    z-index: 9999; /* HIGHER THAN EVERYTHING ELSE */
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.85); /* DARK OVERLAY */
    overflow-y: auto; /* ALLOWS SCROLLING IF BIO IS LONG */
}

/* THE BOX INSIDE THE MODAL */
.modal-content { 
    background: #fff; 
    margin: 15% auto; /* CENTERS IT VERTICALLY */
    padding: 30px; 
    border-radius: 20px; 
    width: 85%; 
    max-width: 400px; 
    position: relative; /* FOR THE CLOSE BUTTON */
    text-align: center; 
    border: 2px solid var(--pink); 
    animation: popIn 0.3s ease-out; 
}

/* ANIMATION FOR THE POP UP */
@keyframes popIn { 
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

/* THE CLOSE BUTTON */
.close-modal { 
    position: absolute; 
    right: 20px; 
    top: 15px; 
    font-size: 30px; 
    font-weight: 900; 
    color: #000; 
    cursor: pointer; 
}

.pagination-container { display: flex; justify-content: center; gap: 10px; padding-bottom: 120px; }
.page-btn { background: #000; color: #fff; border: none; padding: 12px 18px; font-weight: 900; border-radius: 4px; cursor: pointer; }
.page-btn.active-page { background: var(--pink); }
.floating-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #000; padding: 14px 25px; border-radius: 50px; display: flex; gap: 20px; z-index: 1000; white-space: nowrap; }
.floating-nav a { color: #fff; text-decoration: none; font-size: 0.65rem; font-weight: 900; text-transform: uppercase; }