/* CAM PLATFORM - PREMIUM DESIGN */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #080810;
    --bg-secondary: #0f0f18;
    --bg-card: #151520;
    --bg-hover: #1a1a28;
    --primary: #ff3366;
    --primary-glow: rgba(255, 51, 102, 0.4);
    --secondary: #9333ea;
    --accent: #ff6b9d;
    --gold: #fbbf24;
    --success: #22c55e;
    --text: #ffffff;
    --text-muted: #8b8b9e;
    --border: #252535;
    --gradient: linear-gradient(135deg, #ff3366 0%, #9333ea 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --shadow: 0 25px 50px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-lg: 24px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 51, 102, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(147, 51, 234, 0.06) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 30s ease-in-out infinite;
}
@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--accent); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: rgba(8, 8, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { 
    color: var(--text-muted); 
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 40px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px var(--primary-glow);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { 
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}
.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 51, 102, 0.3);
}

/* Performer Grid */
.performers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.performer-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background: var(--bg-card);
}
.performer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.performer-card:hover img { transform: scale(1.08); }

.performer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(8, 8, 16, 0.95) 0%,
        rgba(8, 8, 16, 0.4) 40%,
        transparent 60%
    );
    pointer-events: none;
}

.performer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}
.performer-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.performer-info .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.performer-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.performer-tag {
    padding: 5px 12px;
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent);
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}
.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.viewer-count {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 35px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Categories */
.categories {
    display: flex;
    gap: 12px;
    padding: 25px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.categories::-webkit-scrollbar { display: none; }
.category-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 12px 24px;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}
.category-btn:hover {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--primary);
    color: var(--text);
}
.category-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 20px;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-header a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Token Balance */
.token-balance {
    background: var(--gradient-gold);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.3);
}

/* Stream Page */
.stream-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding-top: 90px;
    min-height: 100vh;
}
.stream-video {
    background: #000;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.stream-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Chat */
.chat-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    position: sticky;
    top: 90px;
}
.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { 
    background: var(--border); 
    border-radius: 10px; 
}
.chat-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}
.chat-message .username {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}
.chat-message p {
    color: var(--text-muted);
    margin-top: 5px;
    font-size: 0.95rem;
}
.chat-message.tip {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-left-color: var(--gold);
}
.chat-message.tip .username { color: var(--gold); }

/* Tip Panel */
.tip-panel {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.tip-panel-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tip-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.tip-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 10px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.tip-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--primary-glow);
}
.tip-btn .amount { 
    font-weight: 800; 
    font-size: 1.2rem;
    display: block;
}
.tip-btn .icon { 
    font-size: 1.5rem;
    margin-top: 5px;
}

/* Chat Input */
.chat-input {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}
.chat-input input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    color: var(--text);
    font-size: 0.95rem;
}
.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.chat-input input::placeholder { color: var(--text-muted); }

/* Forms */
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(255,255,255,0.05);
}

/* Age Verification */
.age-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.age-modal {
    text-align: center;
    padding: 60px;
    max-width: 500px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.age-modal h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.age-modal p { 
    color: var(--text-muted); 
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.age-buttons { 
    display: flex; 
    gap: 15px; 
    justify-content: center;
    margin-top: 30px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 50px 0;
    margin-top: 80px;
    text-align: center;
}
.footer p { color: var(--text-muted); }
.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 25px;
    justify-content: center;
}
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
    .stream-container {
        grid-template-columns: 1fr;
    }
    .chat-container {
        position: relative;
        top: 0;
        height: 500px;
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .performers-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .nav { display: none; }
    .tip-amounts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .performers-grid { grid-template-columns: 1fr; }
}
